Skip to content

Commit

Permalink
Bug fix: Right-hand side of 'instanceof' is not an object
Browse files Browse the repository at this point in the history
  • Loading branch information
wf9a5m75 committed Apr 2, 2018
1 parent b927f5a commit a188d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/@ionic-native/plugins/google-maps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ export class BaseClass {
*/
@CordovaCheck({ sync: true })
destroy(): void {
if (this instanceof GoogleMaps.getPlugin().GoogleMap) {
if (this._objectInstance.type === 'Map') {
let map: GoogleMap = this._objectInstance.getMap();
if (map) {
delete this._objectInstance.getMap().get('_overlays')[this._objectInstance.getId()];
Expand Down

0 comments on commit a188d5f

Please sign in to comment.