fix whitespace, update build

This commit is contained in:
Vladimir Agafonkin 2013-01-16 17:08:57 +02:00
parent e3528c2d22
commit 8facf33896
3 changed files with 23 additions and 12 deletions

29
dist/leaflet-src.js vendored
View File

@ -416,9 +416,11 @@ L.Mixin.Events.fire = L.Mixin.Events.fireEvent;
android23 = ua.search('android [23]') !== -1, android23 = ua.search('android [23]') !== -1,
mobile = typeof orientation !== undefined + '', mobile = typeof orientation !== undefined + '',
msTouch = (window.navigator && window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints), msTouch = window.navigator && window.navigator.msPointerEnabled &&
retina = (('devicePixelRatio' in window && window.devicePixelRatio > 1) || window.navigator.msMaxTouchPoints,
('matchMedia' in window && window.matchMedia('(min-resolution:144dpi)') && window.matchMedia('(min-resolution:144dpi)').matches)), retina = ('devicePixelRatio' in window && window.devicePixelRatio > 1) ||
('matchMedia' in window && window.matchMedia('(min-resolution:144dpi)') &&
window.matchMedia('(min-resolution:144dpi)').matches),
doc = document.documentElement, doc = document.documentElement,
ie3d = ie && ('transition' in doc.style), ie3d = ie && ('transition' in doc.style),
@ -7275,15 +7277,24 @@ L.Control.Zoom = L.Control.extend({
}, },
onAdd: function (map) { onAdd: function (map) {
var className = 'leaflet-control-zoom', var zoomName = 'leaflet-control-zoom',
container = L.DomUtil.create('div', className); barName = 'leaflet-bar',
partName = barName + '-part',
container = L.DomUtil.create('div', zoomName + ' ' + barName);
this._map = map; this._map = map;
this._zoomInButton = this._createButton( this._zoomInButton = this._createButton('+', 'Zoom in',
'+', 'Zoom in', className + '-in', container, this._zoomIn, this); zoomName + '-in ' +
this._zoomOutButton = this._createButton( partName + ' ' +
'-', 'Zoom out', className + '-out', container, this._zoomOut, this); partName + '-top',
container, this._zoomIn, this);
this._zoomOutButton = this._createButton('-', 'Zoom out',
zoomName + '-out ' +
partName + ' ' +
partName + '-bottom',
container, this._zoomOut, this);
map.on('zoomend', this._updateDisabled, this); map.on('zoomend', this._updateDisabled, this);

2
dist/leaflet.js vendored

File diff suppressed because one or more lines are too long