Skip to content

Commit

Permalink
fixed in ember
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Oct 1, 2020
1 parent a92c2aa commit cb4ba29
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions packages/model/addon/-private/system/many-array.js
Expand Up @@ -67,9 +67,7 @@ export default EmberObject.extend(MutableArray, DeprecatedEvented, {
@property {Boolean} isLoaded
*/
this.isLoaded = this.isLoaded || false;

// async has-many rendering tests
this._length = 0;
this.length = 0;

/**
Used for async `hasMany` arrays
Expand Down Expand Up @@ -168,17 +166,6 @@ export default EmberObject.extend(MutableArray, DeprecatedEvented, {
return false;
},

get length() {
// By using `get()`, the tracking system knows to pay attention to changes that occur.
get(this, '[]');

return this._length;
},

set length(value) {
return (this._length = value);
},

objectAt(index) {
// TODO we likely need to force flush here
/*
Expand Down

0 comments on commit cb4ba29

Please sign in to comment.