Skip to content

Commit

Permalink
Merge pull request #3734 from emberjs/revert-3711-workaround-ember-12218
Browse files Browse the repository at this point in the history
Revert "Explicitly set length after setting a new content property"
  • Loading branch information
bmac committed Sep 16, 2015
2 parents 3c49936 + caac301 commit 081cd5e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/ember-data/lib/system/model/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,7 @@ export default Ember.ArrayProxy.extend(Ember.Evented, {
if (get(this, 'isEmpty')) { return; }

let content = this.rejectBy('attribute', attribute);
let length = get(content, 'length');
set(this, 'content', content);
// Explicitly set length after setting a new content property as
// a work around for https://github.com/emberjs/ember.js/pull/12218
if (this.get('length') !== length) {
this.set('length', length);
}
get(this, 'errorsByAttributeName').delete(attribute);

this.notifyPropertyChange(attribute);
Expand Down

0 comments on commit 081cd5e

Please sign in to comment.