mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 12:34:11 +01:00
Minor fixes/cleanup.
--HG-- extra : rebase_source : 68f5a1d3479b051ee8c081217f18b0121c8ca098
This commit is contained in:
@@ -19,7 +19,7 @@ function module(url) {
|
|||||||
var { XPCOMUtils } = module("resource://gre/modules/XPCOMUtils.jsm");
|
var { XPCOMUtils } = module("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
var { OS, TextDecoder, TextEncoder } = module("resource://gre/modules/osfile.jsm");
|
var { OS, TextDecoder, TextEncoder } = module("resource://gre/modules/osfile.jsm");
|
||||||
try {
|
try {
|
||||||
var ctypes = module("resource://gre/modules/ctypes.jsm");
|
var { ctypes } = module("resource://gre/modules/ctypes.jsm");
|
||||||
}
|
}
|
||||||
catch (e) {}
|
catch (e) {}
|
||||||
|
|
||||||
@@ -310,6 +310,7 @@ function properties(obj, prototypes) {
|
|||||||
else if (!e.stack) {
|
else if (!e.stack) {
|
||||||
throw Error(e);
|
throw Error(e);
|
||||||
}
|
}
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -451,9 +451,9 @@ var File = Class("File", {
|
|||||||
/**
|
/**
|
||||||
* Returns a new file for the given child of this directory entry.
|
* Returns a new file for the given child of this directory entry.
|
||||||
*/
|
*/
|
||||||
child: function child() {
|
child: function child(...args) {
|
||||||
let f = this.constructor(this);
|
let f = this.constructor(this);
|
||||||
for (let [, name] in Iterator(arguments))
|
for (let name of args)
|
||||||
for (let elem of name.split(File.pathSplit))
|
for (let elem of name.split(File.pathSplit))
|
||||||
f.append(elem);
|
f.append(elem);
|
||||||
return f;
|
return f;
|
||||||
|
|||||||
Reference in New Issue
Block a user