1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 20:04:13 +01:00

Fix the :toolbar* commands. Closes issue #288.

This commit is contained in:
Štěpán Němec
2011-01-21 20:39:58 +01:00
parent 264eed5b97
commit e57d6f0b4a

View File

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