From 042e2d7fbc9f67527b95d7a9efd69b74a3194f6c Mon Sep 17 00:00:00 2001 From: aurimasv Date: Wed, 19 Dec 2012 21:15:08 -0600 Subject: [PATCH] Fix typo in cookie sandbox. i-- moved for clarity. --- chrome/content/zotero/xpcom/cookieSandbox.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/cookieSandbox.js b/chrome/content/zotero/xpcom/cookieSandbox.js index 0d013ad91f..6d9d4ddb54 100755 --- a/chrome/content/zotero/xpcom/cookieSandbox.js +++ b/chrome/content/zotero/xpcom/cookieSandbox.js @@ -153,8 +153,9 @@ Zotero.CookieSandbox.Observer = new function() { var ir = this.trackedInterfaceRequestors[i].get(); if(!ir) { // The interface requestor is gone, so remove it from the list - this.trackedInterfaceRequestors.splice(i--, 1); - this.trackedInterfaceRequestorSandboxes.splice(i--, 1); + this.trackedInterfaceRequestors.splice(i, 1); + this.trackedInterfaceRequestorSandboxes.splice(i, 1); + i--; } else if(ir == notificationCallbacks) { // We are tracking this interface requestor trackedBy = this.trackedInterfaceRequestorSandboxes[i];