aboutsummaryrefslogtreecommitdiffstats
path: root/src/apis.js
diff options
context:
space:
mode:
authorIgor Minar2012-11-26 20:25:38 +0100
committerIgor Minar2012-11-26 20:39:00 +0100
commit00e7e3141819e14ced3279fa5dfb8eba4ff89e5f (patch)
tree955c7f429c1061a8ccede287d4b89c05cb958c1b /src/apis.js
parentff4b3e20c1bcf8f4c76114f5537c8857393c9b2b (diff)
downloadangular.js-00e7e3141819e14ced3279fa5dfb8eba4ff89e5f.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];
}