Skip to content

Commit

Permalink
Fix Ember 2.0 deprecation
Browse files Browse the repository at this point in the history
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() {})`.
  • Loading branch information
wireframe committed Oct 20, 2015
1 parent 9c0845d commit 37ec9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/tab-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 37ec9f2

Please sign in to comment.