summaryrefslogtreecommitdiff
path: root/common/modules/io.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2015-02-21 22:43:41 -0800
committerKris Maglione <maglione.k@gmail.com>2015-02-21 22:43:41 -0800
commit1ee5668cac9b3e545b359a7736041b20e2ce662f (patch)
tree390db639f893597601583e5e5c9ac89a0cec2cda /common/modules/io.jsm
parent7ee579200f5f49748418fc06b8c37cadea609610 (diff)
downloadpentadactyl-1ee5668cac9b3e545b359a7736041b20e2ce662f.tar.gz
Cleanup crufty `apply` code.
Diffstat (limited to 'common/modules/io.jsm')
-rw-r--r--common/modules/io.jsm4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/modules/io.jsm b/common/modules/io.jsm
index 6b062500..418a22d5 100644
--- a/common/modules/io.jsm
+++ b/common/modules/io.jsm
@@ -306,7 +306,7 @@ var IO = Module("io", {
*/
sourcing: null,
- expandPath: deprecated("File.expandPath", function expandPath() File.expandPath.apply(File, arguments)),
+ expandPath: deprecated("File.expandPath", function expandPath() apply(File, "expandPath", arguments)),
/**
* Returns the first user RC file found in *dir*.
@@ -523,7 +523,7 @@ var IO = Module("io", {
stdin.write(input);
function result(status, output) ({
- __noSuchMethod__: function (meth, args) this.output[meth].apply(this.output, args),
+ __noSuchMethod__: function (meth, args) apply(this.output, meth, args),
valueOf: function () this.output,
output: output.replace(/^(.*)\n$/, "$1"),
returnValue: status,