Fix PageView cache re-insertions.

This commit is contained in:
Nicholas Nethercote 2014-06-13 07:57:58 -07:00
parent 2efbdfe8d4
commit 5b7df1830d

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) {