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) {