Skip to content

Commit

Permalink
more objectAt
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Apr 18, 2015
1 parent bc088a1 commit 8699d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ember-runtime/tests/mixins/array_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,15 +427,15 @@ testBoth("should be clear caches for computed properties that have dependent key
set(this, 'resources', Ember.A());
},

return objectAt(get(get(this, 'resources'), 0), 'common');
common: computed('resources.@each.common', function() {
return get(objectAt(get(this, 'resources'), 0), 'common');
})
});

get(obj, 'resources').pushObject(EmberObject.create({ common: "HI!" }));
equal("HI!", get(obj, 'common'));

objectAt(set(get(obj, 'resources'), 0), 'common', "BYE!");
set(objectAt(get(obj, 'resources'), 0), 'common', "BYE!");
equal("BYE!", get(obj, 'common'));
});

Expand Down

0 comments on commit 8699d36

Please sign in to comment.