Don't try to connect outlet if current view is desteoyed

This commit is contained in:
Piotr Sarnacki 2013-05-16 01:56:05 +02:00
parent 563c1f8773
commit b432a39fb4

View File

@ -22,7 +22,7 @@ Travis.reopen
view.set('controller', @get('controller.container').lookup('controller:build'))
Ember.run.next =>
@set('_outlets', {}) if !@get('_outlets') && !@isDestroyed
@connectOutlet('pane', view)
@connectOutlet('pane', view) unless @isDestroyed
).observes('controller.repo.isLoaded')
ReposEmptyView: Travis.View.extend