FIX: ensures an anonymous shortcut fn can be used globally (#9605)

This commit is contained in:
Joffrey JAFFEUX 2020-05-01 10:42:28 +02:00 committed by GitHub
parent bcc9ad6f57
commit 2d287ef16a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
},