try to unsubscribe from the log when the log view is destroyed, too
This commit is contained in:
parent
8ceff1fb7e
commit
ffd1b6d917
|
@ -1,6 +1,6 @@
|
|||
require 'log'
|
||||
|
||||
Log.DEBUG = false
|
||||
Log.DEBUG = true
|
||||
|
||||
Travis.reopen
|
||||
LogView: Travis.View.extend
|
||||
|
@ -8,6 +8,10 @@ Travis.reopen
|
|||
logBinding: 'job.log'
|
||||
contextBinding: 'job'
|
||||
|
||||
willDestroyElement: ->
|
||||
job = @get('job')
|
||||
job.unsubscribe() if job
|
||||
|
||||
toTop: () ->
|
||||
$(window).scrollTop(0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user