From 5b7df1830dcb47300bba9a3e88d0c420bbfbd95a Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Fri, 13 Jun 2014 07:57:58 -0700 Subject: [PATCH] Fix PageView cache re-insertions. --- web/ui_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ui_utils.js b/web/ui_utils.js index a76892ca4..9caa81513 100644 --- a/web/ui_utils.js +++ b/web/ui_utils.js @@ -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) {