mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 06:52:28 +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 { OS, TextDecoder, TextEncoder } = module("resource://gre/modules/osfile.jsm");
|
||||
try {
|
||||
var ctypes = module("resource://gre/modules/ctypes.jsm");
|
||||
var { ctypes } = module("resource://gre/modules/ctypes.jsm");
|
||||
}
|
||||
catch (e) {}
|
||||
|
||||
@@ -310,6 +310,7 @@ function properties(obj, prototypes) {
|
||||
else if (!e.stack) {
|
||||
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.
|
||||
*/
|
||||
child: function child() {
|
||||
child: function child(...args) {
|
||||
let f = this.constructor(this);
|
||||
for (let [, name] in Iterator(arguments))
|
||||
for (let name of args)
|
||||
for (let elem of name.split(File.pathSplit))
|
||||
f.append(elem);
|
||||
return f;
|
||||
|
||||
Reference in New Issue
Block a user