diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index 9e29bbe18cba..903e27163bc6 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -592,6 +592,12 @@ var ngRepeatDirective = ['$parse', '$animate', '$compile', function($parse, $ani } } + // Clear the value property from the hashFnLocals object to prevent a reference to the last value + // being leaked into the ngRepeatCompile function scope + if (hashFnLocals) { + hashFnLocals[valueIdentifier] = undefined; + } + // remove leftover items for (var blockKey in lastBlockMap) { block = lastBlockMap[blockKey];