mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
fix event listener
This commit is contained in:
parent
4ce3b7a946
commit
22aae7422e
@ -590,8 +590,9 @@ export class GoogleMapsCircle {
|
||||
addEventListener(event: any): Observable<any> {
|
||||
return new Observable(
|
||||
(observer) => {
|
||||
this._objectInstance.addEventListener(event, observer.next);
|
||||
return () => this._objectInstance.removeEventListener(event, observer.next);
|
||||
let cb = data => observer.next(data);
|
||||
this._objectInstance.addEventListener(event, cb);
|
||||
return () => this._objectInstance.removeEventListener(event, cb);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user