[Pkg-javascript-commits] [pdf.js] 80/207: Fix PageView cache re-insertions.

David Prévot taffit at moszumanska.debian.org
Mon Jul 28 15:36:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 5b7df1830dcb47300bba9a3e88d0c420bbfbd95a
Author: Nicholas Nethercote <nnethercote at mozilla.com>
Date:   Fri Jun 13 07:57:58 2014 -0700

    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 a76892c..9caa815 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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list