Skip to content

Commit

Permalink
Correctly disconnected event handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
mscottford committed Jun 20, 2011
1 parent baa4382 commit 95a7650
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/pyphantomjs/bootstrap.js
Expand Up @@ -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) {}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap.js
Expand Up @@ -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) {}
}
});
Expand Down

0 comments on commit 95a7650

Please sign in to comment.