mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
refactor(google-maps): fix mistake in previous commit
This commit is contained in:
parent
dac013fe7b
commit
0c0456ada6
@ -389,7 +389,7 @@ export class GoogleMapsMarker {
|
||||
return new Observable(
|
||||
(observer) => {
|
||||
this._objectInstance.addEventListener(event, observer.next.bind);
|
||||
return () => this._objectInstance.removeEventListener(event, cb);
|
||||
return () => this._objectInstance.removeEventListener(event, observer.next.bind);
|
||||
}
|
||||
);
|
||||
}
|
||||
@ -534,7 +534,7 @@ export class GoogleMapsCircle {
|
||||
return new Observable(
|
||||
(observer) => {
|
||||
this._objectInstance.addEventListener(event, observer.next.bind);
|
||||
return () => this._objectInstance.removeEventListener(event, cb);
|
||||
return () => this._objectInstance.removeEventListener(event, observer.next.bind);
|
||||
}
|
||||
);
|
||||
}
|
||||
@ -625,7 +625,7 @@ export class GoogleMapsPolyline {
|
||||
return new Observable(
|
||||
(observer) => {
|
||||
this._objectInstance.addEventListener(event, observer.next.bind);
|
||||
return () => this._objectInstance.removeEventListener(event, cb);
|
||||
return () => this._objectInstance.removeEventListener(event, observer.next.bind);
|
||||
}
|
||||
);
|
||||
}
|
||||
@ -716,7 +716,7 @@ export class GoogleMapsPolygon {
|
||||
return new Observable(
|
||||
(observer) => {
|
||||
this._objectInstance.addEventListener(event, observer.next.bind);
|
||||
return () => this._objectInstance.removeEventListener(event, cb);
|
||||
return () => this._objectInstance.removeEventListener(event, observer.next.bind);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user