X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcontent%2Fbrowser.js;fp=common%2Fcontent%2Fbrowser.js;h=a1b111094fd986cd1bb80763c2d9d862365fe984;hb=10dd809e3c62dac9afcb5592982306ab22198f65;hp=cc504ff12b97ba7c742b0a7827d0c0a8409397e4;hpb=c8bcbfcd3f674388aa15b4096ce2c5ed6f91238b;p=dactyl.git diff --git a/common/content/browser.js b/common/content/browser.js index cc504ff..a1b1110 100644 --- a/common/content/browser.js +++ b/common/content/browser.js @@ -1,10 +1,10 @@ // Copyright (c) 2006-2008 by Martin Stubenschrott // Copyright (c) 2007-2011 by Doug Kearns -// Copyright (c) 2008-2011 by Kris Maglione +// Copyright (c) 2008-2012 Kris Maglione // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. -/* use strict */ +"use strict"; /** @scope modules */ @@ -202,11 +202,11 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), commands.add(["redr[aw]"], "Redraw the screen", function () { - window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils) - .redraw(); statusline.overLink = null; statusline.updateStatus(); commandline.clear(); + window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils) + .redraw(); }, { argCount: "0" }); }, @@ -267,12 +267,12 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), mappings.add([modes.NORMAL], ["", "gh"], "Open homepage", - function () { BrowserHome(); }); + function () { window.BrowserHome(); }); mappings.add([modes.NORMAL], ["", "gH"], "Open homepage in a new tab", function () { - let homepages = gHomeButton.getHomePage(); + let homepages = window.gHomeButton.getHomePage(); dactyl.open(homepages, { from: "homepage", where: dactyl.NEW_TAB }); });