mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 12:05:47 +01:00
Fix 'passkeys' on Minefield.
This commit is contained in:
@@ -473,9 +473,13 @@ function curry(fn, length, self, acc) {
|
||||
}
|
||||
|
||||
if (curry.bind)
|
||||
var bind = function bind(func) func.bind.apply(func, Array.slice(arguments, bind.length));
|
||||
var bind = function bind(meth, self) let (func = callable(meth) ? meth : self[meth])
|
||||
func.bind.apply(func, Array.slice(arguments, 1));
|
||||
else
|
||||
var bind = function bind(func, self) {
|
||||
if (!callable(func))
|
||||
func = self[func];
|
||||
|
||||
let args = Array.slice(arguments, bind.length);
|
||||
return function bound() func.apply(self, args.concat(Array.slice(arguments)));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user