1
0
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:
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

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