We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b5afe9 commit d6addf5Copy full SHA for d6addf5
src/pat/inject/inject.js
@@ -1110,7 +1110,7 @@ const inject = {
1110
1111
async callTypeHandler(type, fn, context, params) {
1112
type = type || "html";
1113
- if (this.handlers[type] && $.isFunction(this.handlers[type][fn])) {
+ if (this.handlers[type] && typeof this.handlers[type][fn] === "function") {
1114
return await this.handlers[type][fn].bind(this)(...params);
1115
} else {
1116
return null;
0 commit comments