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

Fix :ha >$filename for the nth time.

This commit is contained in:
Kris Maglione
2013-09-29 14:51:20 -07:00
parent b0ce802384
commit 2e2947b703
2 changed files with 4 additions and 2 deletions

View File

@@ -1757,8 +1757,10 @@ var Buffer = Module("Buffer", {
if (arg) {
prefs.set("print.print_printer", PRINTER);
let { path } = io.File(arg.substr(1));
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)));
}

View File

@@ -213,7 +213,7 @@ var DOM = Class("DOM", {
for (let i = 0; i < this.length; 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++)
res[res.length++] = tmp[j];
else if (tmp != null)