Correctly disconnected event handler.

1.2
M. Scott Ford 2011-06-20 18:55:05 -04:00
parent baa4382de9
commit 95a7650be8
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ window.WebPage = function() {
onScriptLoaded(scriptUrl);
// And disconnect the signal handler
try {
this.javaScriptAlertSent.disconnect(this);
this.javaScriptAlertSent.disconnect(arguments.callee);
} catch (e) {}
}
});

View File

@ -63,7 +63,7 @@ window.WebPage = function() {
onScriptLoaded(scriptUrl);
// And disconnect the signal handler
try {
this.javaScriptAlertSent.disconnect(this);
this.javaScriptAlertSent.disconnect(arguments.callee);
} catch (e) {}
}
});