File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ export default {
30
30
},
31
31
beforeDestroy () {
32
32
if (this .parentContainer ) {
33
- this .parentContainer .unbindPopup ();
33
+ if (this .parentContainer .unbindPopup ) {
34
+ this .parentContainer .unbindPopup ();
35
+ } else if (this .parentContainer .mapObject && this .parentContainer .mapObject .unbindPopup ) {
36
+ this .parentContainer .mapObject .unbindPopup ();
37
+ }
34
38
}
35
39
}
36
40
};
Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ export default {
21
21
},
22
22
beforeDestroy () {
23
23
if (this .parentContainer ) {
24
- this .parentContainer .unbindTooltip ();
24
+ if (this .parentContainer .unbindTooltip ) {
25
+ this .parentContainer .unbindTooltip ();
26
+ } else if (this .parentContainer .mapObject && this .parentContainer .mapObject .unbindTooltip ) {
27
+ this .parentContainer .mapObject .unbindTooltip ();
28
+ }
25
29
}
26
30
}
27
31
};
You can’t perform that action at this time.
0 commit comments