1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-16 07:45:49 +01:00

Remove more cruft.

This commit is contained in:
Kris Maglione
2014-02-16 20:43:15 -08:00
parent 08e00164b2
commit 4f7214873c
2 changed files with 3 additions and 28 deletions

View File

@@ -547,16 +547,9 @@ function curry(fn, length, self, acc) {
return curried;
}
if (curry.bind)
var bind = function bind(meth, self, ...args) let (func = callable(meth) ? meth : self[meth])
var bind = function bind(meth, self, ...args)
let (func = callable(meth) ? meth : self[meth])
func.bind.apply(func, [self].concat(args));
else
var bind = function bind(func, self, ...args) {
if (!callable(func))
func = self[func];
return function bound(...args2) func.apply(self, args.concat(args2));
};
/**
* Returns true if both arguments are functions and