From e57d6f0b4a529f88e11fb26016d85974b4a2b216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Fri, 21 Jan 2011 20:39:58 +0100 Subject: [PATCH] Fix the :toolbar* commands. Closes issue #288. --- common/content/dactyl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index f257e023..b398c564 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1942,7 +1942,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { function findToolbar(name) util.evaluateXPath( "./*[@toolbarname=" + util.escapeString(name, "'") + "]", - document, toolbox).snapshotItem(0); + toolbox).snapshotItem(0); var toolbox = document.getElementById("navigator-toolbox"); if (toolbox) { @@ -2139,7 +2139,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { completion.toolbar = function toolbar(context) { context.title = ["Toolbar"]; context.keys = { text: function (item) item.getAttribute("toolbarname"), description: function () "" }; - context.completions = util.evaluateXPath("./*[@toolbarname]", document, toolbox); + context.completions = util.evaluateXPath("./*[@toolbarname]", toolbox); }; completion.window = function window(context) {