Browse Source

Fix PageView cache re-insertions.

Nicholas Nethercote 11 years ago
parent
commit
5b7df1830d
  1. 2
      web/ui_utils.js

2
web/ui_utils.js

@ -248,7 +248,7 @@ var Cache = function cacheCache(size) { @@ -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) {

Loading…
Cancel
Save