1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 16:15:44 +01:00

Get rid of template.maybeXML.

This commit is contained in:
Kris Maglione
2010-12-10 07:43:13 -05:00
parent 36205c6c0e
commit a1c93979ae
4 changed files with 9 additions and 20 deletions

View File

@@ -1158,7 +1158,8 @@ const Buffer = Module("buffer", {
elem = find(doc.body || doc.getElementsByTagName("body")[0] ||
doc.documentElement);
}
return elem;
let doc = buffer.focusedFrame.document;
return elem || doc.body || doc.documentElement;
},
scrollVertical: function scrollVertical(elem, increment, number) {

View File

@@ -1759,7 +1759,7 @@ const Dactyl = Module("dactyl", {
commands.add(["q[uit]"],
dactyl.has("tabs") ? "Quit current tab" : "Quit application",
function (args) {
if (dactyl.has("tabs") && tabs.remove(config.browser.mCurrentTab, 1, false))
if (dactyl.has("tabs") && tabs.remove(tabs.getTab(), 1, false))
return;
else if (dactyl.windows.length > 1)
window.close();
@@ -1889,6 +1889,7 @@ const Dactyl = Module("dactyl", {
return completion.javascript(context);
},
count: true,
hereDoc: true,
literal: 0,
subCommand: 0
});

View File

@@ -668,7 +668,10 @@ const JavaScript = Module("javascript", {
"boolean", false, {
setter: function (value) {
if (services.debugger.isOn != value)
services.debugger[value ? "on" : "off"]();
if (value)
(services.debugger.asyncOn || services.debugger.on)(null);
else
services.debugger.off();
},
getter: function () services.debugger.isOn
});