mirror of https://github.com/vitalif/phantomjs
Correctly disconnected event handler.
parent
baa4382de9
commit
95a7650be8
|
@ -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) {}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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) {}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue