Fix typo in cookie sandbox. i-- moved for clarity.
This commit is contained in:
parent
55d9d4ba51
commit
042e2d7fbc
1 changed files with 3 additions and 2 deletions
|
@ -153,8 +153,9 @@ Zotero.CookieSandbox.Observer = new function() {
|
||||||
var ir = this.trackedInterfaceRequestors[i].get();
|
var ir = this.trackedInterfaceRequestors[i].get();
|
||||||
if(!ir) {
|
if(!ir) {
|
||||||
// The interface requestor is gone, so remove it from the list
|
// The interface requestor is gone, so remove it from the list
|
||||||
this.trackedInterfaceRequestors.splice(i--, 1);
|
this.trackedInterfaceRequestors.splice(i, 1);
|
||||||
this.trackedInterfaceRequestorSandboxes.splice(i--, 1);
|
this.trackedInterfaceRequestorSandboxes.splice(i, 1);
|
||||||
|
i--;
|
||||||
} else if(ir == notificationCallbacks) {
|
} else if(ir == notificationCallbacks) {
|
||||||
// We are tracking this interface requestor
|
// We are tracking this interface requestor
|
||||||
trackedBy = this.trackedInterfaceRequestorSandboxes[i];
|
trackedBy = this.trackedInterfaceRequestorSandboxes[i];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue