refractor(googlemaps): optimize

This commit is contained in:
Ibrahim Hadeed 2016-06-08 21:57:29 -04:00
parent 32f779f53d
commit 3e42bed84e

View File

@ -66,11 +66,7 @@ export class GoogleMap {
} }
constructor(elementId: string, options?: any) { constructor(elementId: string, options?: any) {
if (options) { this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId), options);
this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId), options);
} else {
this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId));
}
} }
on(event: any): Observable<any> { on(event: any): Observable<any> {