Fix GhostTab and GhostTabPane array dependencies

No issue
- TabPanes weren't finding their tab due to not listing all their dependencies in Ember.computed
This commit is contained in:
Matt Enlow 2014-09-23 20:22:15 -06:00
parent d7ef166995
commit 60aa9af424

View File

@ -6,7 +6,8 @@ var TabPane = Ember.Component.extend({
return this.nearestWithProperty('isTabsManager');
}),
tab: Ember.computed('tabsManager.tabs.@each', function () {
tab: Ember.computed('tabsManager.tabs.[]', 'tabsManager.tabPanes.[]',
function () {
var index = this.get('tabsManager.tabPanes').indexOf(this),
tabs = this.get('tabsManager.tabs');