commit 8b37031174fe5e97d39cbc73fe3439a9bdd5ff84
parent 040fa318877a4d22bb8f692f7410e7939398d583
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 19 Dec 2012 20:11:24 -0800
Merge pull request #215 from aurimasv/typo
Fix typo in cookie sandbox.
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];