gis-common 1.1.23 → 1.1.25

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.
@@ -522,6 +522,29 @@ var MeasureMode = {
522
522
  }).map(function (i) {
523
523
  return [i, data[i]];
524
524
  }));
525
+ },
526
+ deepAssign: function deepAssign() {
527
+ var len = arguments.length,
528
+ target = arguments[0];
529
+ if (!this.getDataType(target) === 'Object') {
530
+ target = {};
531
+ }
532
+ for (var i = 1; i < len; i++) {
533
+ var source = arguments[i];
534
+ if (this.getDataType(source) === 'Object') {
535
+ for (var s in source) {
536
+ if (s === '__proto__' || target === source[s]) {
537
+ continue;
538
+ }
539
+ if (this.getDataType(source[s]) === 'Object') {
540
+ target[s] = this.deepAssign(target[s], source[s]);
541
+ } else {
542
+ target[s] = source[s];
543
+ }
544
+ }
545
+ }
546
+ }
547
+ return target;
525
548
  }
526
549
  });
527
550
  // CONCATENATED MODULE: ./src/utils/ArrayUtils.js
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "gis-common",
3
3
  "description": "gis-common",
4
4
  "main": "dist/resource.min.js",
5
- "version": "1.1.23",
5
+ "version": "1.1.25",
6
6
  "author": "Guo.Yan <luv02@vip.qq.com>",
7
7
  "license": "MIT",
8
8
  "private": false,