Skip to content

Commit 07cc056

Browse files
bryanfuzhenn
authored andcommitted
replce Array.from with Array.prototype.slice.call for IE9
1 parent a3f3ae5 commit 07cc056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map/Map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ class Map extends Handlerable(Eventable(Renderable(Class))) {
14241424
this._getRenderer().remove();
14251425
}
14261426
if (this._containerDOM.childNodes && this._containerDOM.childNodes.length > 0) {
1427-
Array.from(this._containerDOM.childNodes)
1427+
Array.prototype.slice.call(this._containerDOM.childNodes, 0)
14281428
.filter(node => node.className === 'maptalks-wrapper')
14291429
.forEach(node => this._containerDOM.removeChild(node));
14301430
}

0 commit comments

Comments
 (0)