Removed some trailing spaces in 'src/map/Map.js'.

Corrected the way L.Map.locateAndSetView() handles the 'options'
parameter so that it is not overriden anymore.
This commit is contained in:
Jonathan DERROUGH 2012-01-11 20:18:06 +01:00
parent 8c428fb660
commit 09279cdc6e
2 changed files with 2 additions and 2 deletions

View File

@ -550,7 +550,7 @@ L.Map = L.Class.extend({
if (type === 'contextmenu') { if (type === 'contextmenu') {
L.DomEvent.preventDefault(e); L.DomEvent.preventDefault(e);
} }
this.fire(type, { this.fire(type, {
latlng: this.mouseEventToLatLng(e), latlng: this.mouseEventToLatLng(e),

View File

@ -42,7 +42,7 @@ L.Map.include({
options = L.Util.extend({ options = L.Util.extend({
maxZoom: maxZoom || Infinity, maxZoom: maxZoom || Infinity,
setView: true setView: true
}); }, options);
return this.locate(options); return this.locate(options);
}, },