Skip to content

Commit 3abdbb1

Browse files
committed
去掉ie下不识别的方法
1 parent d910f35 commit 3abdbb1

14 files changed

+7775
-5213
lines changed

dist/iclient-classic.js

Lines changed: 970 additions & 295 deletions
Large diffs are not rendered by default.

dist/iclient-classic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-leaflet.js

Lines changed: 2585 additions & 2011 deletions
Large diffs are not rendered by default.

dist/iclient9-leaflet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-mapboxgl.js

Lines changed: 1717 additions & 1086 deletions
Large diffs are not rendered by default.

dist/iclient9-mapboxgl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-openlayers.js

Lines changed: 2476 additions & 1801 deletions
Large diffs are not rendered by default.

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@
4747
"author": "SuperMap",
4848
"license": "Apache-2.0",
4949
"devDependencies": {
50+
"@turf/turf": "^4.7.1",
5051
"babel-core": "^6.24.1",
5152
"babel-loader": "^7.0.0",
52-
"babel-plugin-transform-class-properties": "^6.24.1",
5353
"babel-plugin-istanbul": "^4.1.4",
54+
"babel-plugin-transform-class-properties": "^6.24.1",
5455
"babel-preset-es2015": "^6.24.1",
5556
"babelify": "^7.3.0",
5657
"browserify": "^14.3.0",
@@ -86,7 +87,6 @@
8687
"selenium-server": "^2.53.1",
8788
"shelljs": "^0.7.6",
8889
"style-loader": "^0.13.1",
89-
"@turf/turf": "^4.7.1",
9090
"uglify-js": "^3.0.15",
9191
"url-loader": "^0.5.9",
9292
"watchify": "^3.9.0",
@@ -99,6 +99,7 @@
9999
"jaguarjs-jsdoc": "^1.1.0",
100100
"pbf": "3.0.2",
101101
"proj4": "2.3.15",
102+
"promise-polyfill": "^6.0.2",
102103
"whatwg-fetch-importable": "^1.0.3"
103104
}
104105
}

src/common/commontypes/BaseTypes.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,29 @@ SuperMap.mixin = function (...mixins) {
3535

3636
class Mix {
3737
constructor(options) {
38-
for (let mixin of mixins) {
39-
copyProperties(this, new mixin(options));
38+
for (var index = 0; index < mixins.length; index++) {
39+
copyProperties(this, new mixins[index](options));
4040
}
4141
}
4242
}
43-
44-
for (let mixin of mixins) {
43+
for (var index = 0; index < mixins.length; index++) {
44+
var mixin = mixins[index];
4545
copyProperties(Mix, mixin);
4646
copyProperties(Mix.prototype, mixin.prototype);
4747
copyProperties(Mix.prototype, new mixin());
4848
}
49-
5049
return Mix;
5150

5251
function copyProperties(target, source) {
53-
for (let key of Reflect.ownKeys(source)) {
52+
var ownKeys = Object.getOwnPropertyNames(source);
53+
if (Object.getOwnPropertySymbols) {
54+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source));
55+
}
56+
for (var index = 0; index < ownKeys.length; index++) {
57+
var key = ownKeys[index];
5458
if (key !== "constructor"
5559
&& key !== "prototype"
56-
&& key !== "name"
57-
) {
60+
&& key !== "name"&& key !== "length") {
5861
let desc = Object.getOwnPropertyDescriptor(source, key);
5962
Object.defineProperty(target, key, desc);
6063
}

0 commit comments

Comments
 (0)