Navigation Menu

Skip to content

Commit

Permalink
Do not pass strings to setTimeout().
Browse files Browse the repository at this point in the history
Required by Mozilla's 0.9.0 review.
  • Loading branch information
arantius committed Jan 19, 2011
1 parent f01039f commit b4cdf38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/install.js
Expand Up @@ -96,7 +96,7 @@ var GMInstall = {

onOK: function() {
this.scriptDownloader_.installScript();
window.setTimeout("window.close()", 0);
window.setTimeout(window.close, 0);
},

onCancel: function(){
Expand All @@ -106,7 +106,7 @@ var GMInstall = {

onShowSource: function() {
this.scriptDownloader_.showScriptView();
window.setTimeout("window.close()", 0);
window.setTimeout(window.close, 0);
}
};

Expand Down

0 comments on commit b4cdf38

Please sign in to comment.