From 3e42bed84e1f77788ca3111c4a1eb198926667f2 Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Wed, 8 Jun 2016 21:57:29 -0400 Subject: [PATCH] refractor(googlemaps): optimize --- src/plugins/googlemaps.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/googlemaps.ts b/src/plugins/googlemaps.ts index 5d0b8ed28..24a8befa4 100644 --- a/src/plugins/googlemaps.ts +++ b/src/plugins/googlemaps.ts @@ -66,11 +66,7 @@ export class GoogleMap { } constructor(elementId: string, options?: any) { - if (options) { - this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId), options); - } else { - this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId)); - } + this._objectInstance = plugin.google.maps.Map.getMap(document.getElementById(elementId), options); } on(event: any): Observable {