Skip to content

Commit

Permalink
fix(utils): fix jQuery type error (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Oct 4, 2018
1 parent 62202f6 commit 8e393a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function $(param, multi = false) {
} else if (param.nodeName &&
(param.nodeType === 1 || param.nodeType === 9)) { // HTMLElement, Document
el = param;
} else if (("jQuery" in window && param instanceof window.jQuery) ||
} else if ((typeof window.jQuery === "function" && param instanceof window.jQuery) ||
param.constructor.prototype.jquery) { // jQuery
el = $(multi ? param.toArray() : param.get(0), multi);
} else if (Array.isArray(param)) {
Expand Down

0 comments on commit 8e393a0

Please sign in to comment.