We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e22a2dd + 0065f24 commit cda22fcCopy full SHA for cda22fc
src/util/cloneObject.ts
@@ -11,7 +11,7 @@ export default function cloneObject<T>(source: T): T {
11
12
for (const key in source) {
13
// @ts-ignore:next-line
14
- if ("jQuery" in window && source[key] instanceof window.jQuery) {
+ if ("jQuery" in window && window.jQuery && source[key] instanceof window.jQuery) {
15
temp[key] = source[key];
16
} else {
17
temp[key] = cloneObject(source[key]);
0 commit comments