0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Merge pull request #4132 from novaugust/fix-tab-pane-connection

Fix GhostTab and GhostTabPane array dependencies
This commit is contained in:
Jason Williams 2014-09-25 17:50:59 -05:00
commit 586de0141d

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');