From d644dcfa52cba0cee3c6fa8d03e1654cdb654e53 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 26 Nov 2012 20:25:38 +0100 Subject: fix(ngRepeat): attempt to simplify and improve existing fix for #933 I'm keeping this in for future reference. The issue with this solution is that if we shift() the first item in the array, the whole repeater DOM will be rebuilt from scratch, we need to do better than that. --- src/apis.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/apis.js') diff --git a/src/apis.js b/src/apis.js index 098d9cdd..0e94e2a5 100644 --- a/src/apis.js +++ b/src/apis.js @@ -98,12 +98,12 @@ HashQueueMap.prototype = { } } }, - + /** * return the first item without deleting it */ peek: function(key) { - var array = this[key = hashKey(key)]; + var array = this[hashKey(key)]; if (array) { return array[0]; } -- cgit v1.2.3