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.
1 parent 3cab791 commit 0065f24Copy full SHA for 0065f24
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