Skip to content

Commit

Permalink
Merge pull request ariya#84 from corgibytes/fix-disconnect-this
Browse files Browse the repository at this point in the history
Correctly disconnected event handler.
  • Loading branch information
ariya committed Jun 21, 2011
2 parents 77414c0 + 95a7650 commit 753ef86
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 753ef86

Please sign in to comment.