commit 042e2d7fbc9f67527b95d7a9efd69b74a3194f6c
parent 55d9d4ba51897345f7ba47ad766f87b72d505503
Author: aurimasv <aurimas.dev@gmail.com>
Date: Wed, 19 Dec 2012 21:15:08 -0600
Fix typo in cookie sandbox. i-- moved for clarity.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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];