mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 16:22:26 +01:00
Minor fixes/cleanup.
--HG-- extra : rebase_source : 68f5a1d3479b051ee8c081217f18b0121c8ca098
This commit is contained in:
@@ -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