From 60aa9af4245d7f388c8a932f82d4e6b06809e8f7 Mon Sep 17 00:00:00 2001 From: Matt Enlow Date: Tue, 23 Sep 2014 20:22:15 -0600 Subject: [PATCH] Fix GhostTab and GhostTabPane array dependencies No issue - TabPanes weren't finding their tab due to not listing all their dependencies in Ember.computed --- ghost/admin/components/gh-tab-pane.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/admin/components/gh-tab-pane.js b/ghost/admin/components/gh-tab-pane.js index 85b1a68099..eaa7600ab2 100644 --- a/ghost/admin/components/gh-tab-pane.js +++ b/ghost/admin/components/gh-tab-pane.js @@ -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');