Skip to content

Commit

Permalink
IE11 safe
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Sep 24, 2020
1 parent 578aae0 commit dd9a47a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/model/addon/-private/system/many-array.js
Expand Up @@ -169,7 +169,11 @@ export default EmberObject.extend(MutableArray, DeprecatedEvented, {
// By using `get()`, the tracking system knows to pay attention to changes that occur.
get(this, '[]');

return (Number.isInteger(this._length) && this._length) || 0;
if (typeof this._length === 'number') {
return this._length;
}

return (this._length = 0);
},

set length(value) {
Expand Down

0 comments on commit dd9a47a

Please sign in to comment.