Merge pull request #4936 from nnethercote/fix-cache-splice

Fix PageView cache re-insertions.
This commit is contained in:
Yury Delendik 2014-06-13 10:19:55 -05:00
commit 69d722792d

View File

@ -248,7 +248,7 @@ var Cache = function cacheCache(size) {
this.push = function cachePush(view) {
var i = data.indexOf(view);
if (i >= 0) {
data.splice(i);
data.splice(i, 1);
}
data.push(view);
if (data.length > size) {