From 37ec9f2090307fd76a624f56316593ebdb41e02b Mon Sep 17 00:00:00 2001 From: Ryan Sonnek Date: Tue, 20 Oct 2015 08:53:29 -0500 Subject: [PATCH] Fix Ember 2.0 deprecation Error message: > Assertion Failed: Depending on arrays using a dependent key ending with `@each` is no longer supported. Please refactor from `Ember.computed('tabList.tab_instances.@each', function() {});` to `Ember.computed('tabList.tab_instances.[]', function() {})`. --- addon/tab-panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/tab-panel.js b/addon/tab-panel.js index 5279bfa..9a80517 100644 --- a/addon/tab-panel.js +++ b/addon/tab-panel.js @@ -43,7 +43,7 @@ export default Em.Component.extend(WithConfigMixin, StyleBindingsMixin, { * @property tab * @type Tab */ - tab: Em.computed('panels.length', 'tabList.tab_instances.@each', function() { + tab: Em.computed('panels.length', 'tabList.tab_instances.[]', function() { var index, tabs; index = this.get('panels').indexOf(this); tabs = this.get('tabList.tab_instances');