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:
Piotr Sarnacki 2015-08-06 11:34:25 +02:00
parent daeb5fa056
commit 7e59794571

View File

@ -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: ->