Don't mutate this._defaultLocateOptions.

This commit is contained in:
Tom MacWright 2015-01-25 19:27:24 -05:00
parent 165bc298e0
commit a28c9508be

View File

@ -14,7 +14,7 @@ L.Map.include({
locate: function (/*Object*/ options) {
options = this._locateOptions = L.extend(this._defaultLocateOptions, options);
options = this._locateOptions = L.extend({}, this._defaultLocateOptions, options);
if (!navigator.geolocation) {
this._handleGeolocationError({