Skip to content

Commit

Permalink
restore forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Sep 28, 2019
1 parent 4ba740e commit e66cffb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/store/addon/-private/system/record-array-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ function removeFromAdapterPopulatedRecordArrays(internalModels) {
function removeFromAll(internalModel) {
const recordArrays = internalModel._recordArrays;

for (let i = 0; i < recordArrays.length; i++) {
recordArrays[i]._removeInternalModels([internalModel]);
}
recordArrays.forEach(function(recordArray) {
recordArray._removeInternalModels([internalModel]);
});

recordArrays.clear();
}
Expand Down

0 comments on commit e66cffb

Please sign in to comment.