Skip to content

Commit

Permalink
Merge pull request #7 from smilosevic/master
Browse files Browse the repository at this point in the history
removed default sensor param
  • Loading branch information
eschwartz committed Dec 14, 2015
2 parents 3912fc3 + 2e14487 commit 0b7acf6
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/googlemaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define([
this.onload_ = onload || NOOP;
this.baseUrl_ = config.url || GoogleMapsLoader.DEFAULT_BASE_URL;
this.async_ = config.async || async;
this.params_ = this.normalizeParams_(config.params);
this.params_ = config.params;
};


Expand Down Expand Up @@ -109,18 +109,6 @@ define([
};


GoogleMapsLoader.prototype.normalizeParams_ = function(params) {
var defaultParams = {
sensor: false
};
params || (params = {});

params.sensor = (params.sensor == void 0) ? defaultParams.sensor : params.sensor;

return params;
};


GoogleMapsLoader.prototype.isGoogleMapsLoaded_ = function() {
return root.google && root.google.maps;
};
Expand Down

0 comments on commit 0b7acf6

Please sign in to comment.