Fix log clearing after job restart
In glimmer world rerender doesn't work as before and since we manage log element manually, we need to also clear it manually and reset the log properly
This commit is contained in:
parent
daeb5fa056
commit
7e59794571
|
@ -62,15 +62,18 @@ View = BasicView.extend
|
|||
@teardownLog()
|
||||
|
||||
versionDidChange: (->
|
||||
@rerender() if @get('_state') == 'inDOM'
|
||||
this.$('#log').empty()
|
||||
@teardownLog()
|
||||
@createEngine()
|
||||
).observes('log.version')
|
||||
|
||||
logDidChange: (->
|
||||
console.log 'log view: log did change: rerender' if Log.DEBUG
|
||||
|
||||
this.$('#log').empty()
|
||||
@teardownLog()
|
||||
if @get('log')
|
||||
@createEngine()
|
||||
@rerender() if @get('_state') == 'inDOM'
|
||||
).observes('log')
|
||||
|
||||
teardownLog: ->
|
||||
|
|
Loading…
Reference in New Issue
Block a user