aboutsummaryrefslogtreecommitdiffstats
path: root/src/apis.js
diff options
context:
space:
mode:
authorIgor Minar2012-11-26 20:25:38 +0100
committerIgor Minar2012-11-26 20:31:54 +0100
commitd644dcfa52cba0cee3c6fa8d03e1654cdb654e53 (patch)
tree026ae156741ea6994785be46dece6db862396c3d /src/apis.js
parente7d37ee45ac48b0ff2a3d43f7236d316be6c241e (diff)
downloadangular.js-d644dcfa52cba0cee3c6fa8d03e1654cdb654e53.tar.bz2
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.
Diffstat (limited to 'src/apis.js')
-rw-r--r--src/apis.js4
1 files changed, 2 insertions, 2 deletions
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];
}