Fixed small bug in Polyline.
This commit is contained in:
@@ -43,14 +43,14 @@ export default buildComponent({
|
|||||||
|
|
||||||
name: 'polyline',
|
name: 'polyline',
|
||||||
ctr: () => google.maps.Polyline,
|
ctr: () => google.maps.Polyline,
|
||||||
emits: evants,
|
emits: events,
|
||||||
afterCreate(inst) {
|
afterCreate(inst) {
|
||||||
let clearEvents = () => {}
|
let clearEvents = () => {}
|
||||||
|
|
||||||
events.forEach((event) => {
|
events.forEach((event) => {
|
||||||
inst.addListener(event, (payload) => {
|
inst.addListener(event, (payload) => {
|
||||||
this.$emit(event, payload)
|
this.$emit(event, payload)
|
||||||
});
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
this.$watch(
|
this.$watch(
|
||||||
|
|||||||
Reference in New Issue
Block a user