Remove view.state checks (in favor of _state).
This commit is contained in:
parent
89a3c20217
commit
e66ccfdfcd
|
@ -37,12 +37,12 @@ Travis.reopen
|
|||
@lineSelector?.willDestroy()
|
||||
|
||||
versionDidChange: (->
|
||||
@rerender() if @get('state') == 'inDOM'
|
||||
@rerender() if @get('_state') == 'inDOM'
|
||||
).observes('log.version')
|
||||
|
||||
logDidChange: (->
|
||||
console.log 'log view: log did change: rerender' if Log.DEBUG
|
||||
@rerender() if @get('state') == 'inDOM'
|
||||
@rerender() if @get('_state') == 'inDOM'
|
||||
).observes('log')
|
||||
|
||||
createEngine: ->
|
||||
|
|
|
@ -17,9 +17,9 @@ Travis.reopen
|
|||
# TODO: look into fixing it in more general way
|
||||
Ember.run.schedule('afterRender', this, ->
|
||||
pane = Ember.get('_outlets.pane')
|
||||
if @get('controller.repo.isLoaded') && @state == 'inDOM' &&
|
||||
if @get('controller.repo.isLoaded') && @_state == 'inDOM' &&
|
||||
@get('controller.repo.lastBuild') &&
|
||||
@get('controller.tab') == 'current' && (!pane || pane.state == 'destroyed')
|
||||
@get('controller.tab') == 'current' && (!pane || pane._state == 'destroyed')
|
||||
view = @get('controller.container').lookup('view:build')
|
||||
view.set('controller', @get('controller.container').lookup('controller:build'))
|
||||
Ember.run.next =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user