mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-21 00:05:47 +01:00
Fixes, mostly, most of which should really be in the default branch.
--HG-- branch : groups
This commit is contained in:
@@ -1832,8 +1832,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
function () { dactyl.restart(); });
|
||||
|
||||
function findToolbar(name) util.evaluateXPath(
|
||||
"./*[@toolbarname=" + util.escapeString(name, "'") + "]",
|
||||
toolbox).snapshotItem(0);
|
||||
"//*[@toolbarname=" + util.escapeString(name, "'") + "]",
|
||||
document).snapshotItem(0);
|
||||
|
||||
var toolbox = document.getElementById("navigator-toolbox");
|
||||
if (toolbox) {
|
||||
@@ -2017,7 +2017,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]", toolbox);
|
||||
context.completions = util.evaluateXPath("//*[@toolbarname]", document);
|
||||
};
|
||||
|
||||
completion.window = function window(context) {
|
||||
|
||||
Reference in New Issue
Block a user