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