Skip to content

Commit c80a5d1

Browse files
committed
【fix】 fix classic mapv UT review by songym
1 parent 190348d commit c80a5d1

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

dist/classic/iclient-classic-es6.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7797,8 +7797,10 @@ class MapVLayer_MapVLayer extends SuperMap_SuperMap.Layer {
77977797
* @override
77987798
*/
77997799
destroy() {
7800-
this.renderer.animator && this.renderer.animator.stop();
7801-
this.renderer.animator = null;
7800+
if (this.renderer && this.renderer.animator) {
7801+
this.renderer.animator.stop();
7802+
this.renderer.animator = null;
7803+
}
78027804
this.dataSet = null;
78037805
this.options = null;
78047806
this.renderer = null;

dist/classic/iclient-classic-es6.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/classic/iclient-classic.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10396,8 +10396,10 @@ var MapVLayer = exports.MapVLayer = function (_SuperMap$Layer) {
1039610396
_createClass(MapVLayer, [{
1039710397
key: 'destroy',
1039810398
value: function destroy() {
10399-
this.renderer.animator && this.renderer.animator.stop();
10400-
this.renderer.animator = null;
10399+
if (this.renderer && this.renderer.animator) {
10400+
this.renderer.animator.stop();
10401+
this.renderer.animator = null;
10402+
}
1040110403
this.dataSet = null;
1040210404
this.options = null;
1040310405
this.renderer = null;

0 commit comments

Comments
 (0)