jmgraph 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jmgraph.core.min.js +1 -1
- package/dist/jmgraph.core.min.js.map +1 -1
- package/dist/jmgraph.js +7 -2
- package/dist/jmgraph.min.js +1 -1
- package/package.json +1 -1
- package/src/core/jmGraph.js +1 -0
- package/src/core/jmUtils.js +5 -1
package/src/core/jmUtils.js
CHANGED
|
@@ -61,9 +61,13 @@ export default class jmUtils {
|
|
|
61
61
|
|
|
62
62
|
for(let k in source) {
|
|
63
63
|
if(k === 'constructor') continue;
|
|
64
|
+
const v = source[k];
|
|
65
|
+
// 不复制页面元素和class对象
|
|
66
|
+
if(v && (v.tagName || v.getContext)) continue;
|
|
67
|
+
|
|
64
68
|
// 如果不是对象和空,则采用target的属性
|
|
65
69
|
if(typeof target[k] === 'object' || typeof target[k] === 'undefined') {
|
|
66
|
-
target[k] = this.clone(
|
|
70
|
+
target[k] = this.clone(v, target[k], deep, copyHandler, deepIndex);
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
73
|
return target;
|