1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-19 08:25:50 +01:00

Cleanup crufty apply code.

This commit is contained in:
Kris Maglione
2015-02-21 22:43:41 -08:00
parent 7ee579200f
commit 1ee5668cac
26 changed files with 65 additions and 69 deletions

View File

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