mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-10 18:25:45 +01:00
Fix :ha >$filename for the nth time.
This commit is contained in:
@@ -1757,8 +1757,10 @@ var Buffer = Module("Buffer", {
|
|||||||
if (arg) {
|
if (arg) {
|
||||||
prefs.set("print.print_printer", PRINTER);
|
prefs.set("print.print_printer", PRINTER);
|
||||||
|
|
||||||
|
let { path } = io.File(arg.substr(1));
|
||||||
set("print_to_file", true);
|
set("print_to_file", true);
|
||||||
set("print_to_filename", io.File(arg.substr(1)).path);
|
set("print_to_filename", path);
|
||||||
|
prefs.set("print_to_filename", path);
|
||||||
|
|
||||||
dactyl.echomsg(_("print.toFile", arg.substr(1)));
|
dactyl.echomsg(_("print.toFile", arg.substr(1)));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ var DOM = Class("DOM", {
|
|||||||
|
|
||||||
for (let i = 0; i < this.length; i++) {
|
for (let i = 0; i < this.length; i++) {
|
||||||
let tmp = fn.call(self || update(obj, [this[i]]), this[i], i);
|
let tmp = fn.call(self || update(obj, [this[i]]), this[i], i);
|
||||||
if (isObject(tmp) && "length" in tmp)
|
if (isObject(tmp) && !(tmp instanceof Ci.nsIDOMNode) && "length" in tmp)
|
||||||
for (let j = 0; j < tmp.length; j++)
|
for (let j = 0; j < tmp.length; j++)
|
||||||
res[res.length++] = tmp[j];
|
res[res.length++] = tmp[j];
|
||||||
else if (tmp != null)
|
else if (tmp != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user