Skip to content
Browse files

Fix undeclared variable JS warnings.

  • Loading branch information...
1 parent 0ca4638 commit 25e89c3b92d467d3ddb9b702574daf8f90dfe862 @arantius arantius committed Jul 12, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −2 content/addons4-overlay.js
  2. +0 −1 content/browser.js
View
4 content/addons4-overlay.js
@@ -11,7 +11,7 @@ window.addEventListener('load', init, false);
window.addEventListener('unload', unload, false);
// Patch the default createItem() to add our custom property.
-_createItemOrig = createItem;
+var _createItemOrig = createItem;
createItem = function GM_createItem(aObj, aIsInstall, aIsRemote) {
var item = _createItemOrig(aObj, aIsInstall, aIsRemote);
if (SCRIPT_ADDON_TYPE == aObj.type) {
@@ -24,7 +24,7 @@ createItem = function GM_createItem(aObj, aIsInstall, aIsRemote) {
};
// Patch the default loadView() to suppress the detail view for user scripts.
-_loadViewOrig = gViewController.loadView.bind(gViewController);
+var _loadViewOrig = gViewController.loadView.bind(gViewController);
gViewController.loadView = function(aViewId) {
if (userScriptViewId == gViewController.currentViewId
&& 0 === aViewId.indexOf('addons://detail/')
View
1 content/browser.js
@@ -11,7 +11,6 @@ function GM_BrowserUI() {};
GM_BrowserUI.QueryInterface = function(aIID) {
if (!aIID.equals(Components.interfaces.nsISupports) &&
!aIID.equals(Components.interfaces.nsIObserver) &&
- !aIID.equals(Components.interfaces.gmIBrowserWindow) &&
!aIID.equals(Components.interfaces.nsISupportsWeakReference))
throw Components.results.NS_ERROR_NO_INTERFACE;

0 comments on commit 25e89c3

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