Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix(ngRepeat): fix reference to last collection value remaining acros…
Browse files Browse the repository at this point in the history
…s linkages
  • Loading branch information
jbedard committed Nov 30, 2018
1 parent 77ebb71 commit 8533d4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ng/directive/ngRepeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,10 @@ var ngRepeatDirective = ['$parse', '$animate', '$compile', function($parse, $ani
}
}
lastBlockMap = nextBlockMap;

// Clear the value property from the hashFnLocals object to prevent a reference to the last value
// being leaked into this ngRepeatCompile function scope
hashFnLocals[valueIdentifier] = undefined;
});
};
}
Expand Down

0 comments on commit 8533d4a

Please sign in to comment.