FIX: ensures an anonymous shortcut fn can be used globally (#9605)
This commit is contained in:
parent
bcc9ad6f57
commit
2d287ef16a
|
@ -494,7 +494,7 @@ export default {
|
|||
_globalBindToFunction(func, binding) {
|
||||
let funcToBind = typeof func === "function" ? func : this[func];
|
||||
if (typeof funcToBind === "function") {
|
||||
this.keyTrapper.bindGlobal(binding, this[func].bind(this));
|
||||
this.keyTrapper.bindGlobal(binding, funcToBind.bind(this));
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue