1
0
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:
Kris Maglione
2014-08-14 19:49:17 -07:00
parent df87dc5676
commit 1ea32b603d
2 changed files with 4 additions and 3 deletions

View File

@@ -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;
}
}

View File

@@ -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;