Skip to content
Browse files

Do not pass strings to setTimeout().

Required by Mozilla's 0.9.0 review.
  • Loading branch information...
1 parent f01039f commit b4cdf38542d5b73f7be7ef7fabe2d625fa9e5613 @arantius arantius committed Jan 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 content/install.js
View
4 content/install.js
@@ -96,7 +96,7 @@ var GMInstall = {
onOK: function() {
this.scriptDownloader_.installScript();
- window.setTimeout("window.close()", 0);
+ window.setTimeout(window.close, 0);
},
onCancel: function(){
@@ -106,7 +106,7 @@ var GMInstall = {
onShowSource: function() {
this.scriptDownloader_.showScriptView();
- window.setTimeout("window.close()", 0);
+ window.setTimeout(window.close, 0);
}
};

0 comments on commit b4cdf38

Please sign in to comment.
Something went wrong with that request. Please try again.