1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-23 06:33:33 +01:00

Default arguments ftw.

This commit is contained in:
Kris Maglione
2013-09-21 16:57:09 -07:00
parent 25aae2cc99
commit 35784406a0
8 changed files with 14 additions and 30 deletions

View File

@@ -266,8 +266,8 @@ var IO = Module("io", {
*/
File: Class.Memoize(function () let (io = this)
Class("File", File, {
init: function init(path, checkCWD)
init.supercall(this, path, (arguments.length < 2 || checkCWD) && io.cwd)
init: function init(path, checkCWD=true)
init.supercall(this, path, checkCWD && io.cwd)
})),
/**