mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 01:22:27 +01:00
Fix some CPOW issues. Everything is still terrible, though.
This commit is contained in:
@@ -275,6 +275,8 @@ literal.locations = literal_.locations;
|
||||
function apply(obj, meth, args) {
|
||||
// The function's own apply method breaks in strange ways
|
||||
// when using CPOWs.
|
||||
if (callable(meth))
|
||||
return Function.apply.call(meth, obj, args);
|
||||
return Function.apply.call(obj[meth], obj, args);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user