Skip to content

Commit

Permalink
Merge pull request #4005 from fivetanley/dont-cache-length-in-for-loops
Browse files Browse the repository at this point in the history
don't cache length in for loops
  • Loading branch information
fivetanley committed Dec 16, 2015
2 parents d556c6d + a41290a commit b0f4e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/-private/serializers/embedded-records-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export default Ember.Mixin.create({
let manyArray = Ember.A(hasMany);
let ret = new Array(manyArray.length);

for (let i = 0, l = manyArray.length; i < l; i++) {
for (let i = 0; i < manyArray.length; i++) {
let embeddedSnapshot = manyArray[i];
let embeddedJson = embeddedSnapshot.record.serialize({ includeId: true });
this.removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, embeddedJson);
Expand Down

0 comments on commit b0f4e00

Please sign in to comment.