Fix lines too long issues

This commit is contained in:
danzel 2013-10-10 15:27:23 +13:00
parent 6e3e0d9b14
commit a9627d63af
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,8 @@
mobile = typeof orientation !== undefined + '', mobile = typeof orientation !== undefined + '',
msPointer = window.navigator && window.navigator.msPointerEnabled && msPointer = window.navigator && window.navigator.msPointerEnabled &&
window.navigator.msMaxTouchPoints && !window.PointerEvent, window.navigator.msMaxTouchPoints && !window.PointerEvent,
pointer = (window.PointerEvent && window.navigator.pointerEnabled && window.navigator.maxTouchPoints) || msPointer, pointer = (window.PointerEvent && window.navigator.pointerEnabled && window.navigator.maxTouchPoints) ||
msPointer,
retina = ('devicePixelRatio' in window && window.devicePixelRatio > 1) || retina = ('devicePixelRatio' in window && window.devicePixelRatio > 1) ||
('matchMedia' in window && window.matchMedia('(min-resolution:144dpi)') && ('matchMedia' in window && window.matchMedia('(min-resolution:144dpi)') &&
window.matchMedia('(min-resolution:144dpi)').matches), window.matchMedia('(min-resolution:144dpi)').matches),

View File

@ -95,7 +95,8 @@ L.extend(L.DomEvent, {
this._touchend, obj[pre + this._touchend + id], false); this._touchend, obj[pre + this._touchend + id], false);
if (L.Browser.pointer) { if (L.Browser.pointer) {
document.documentElement.removeEventListener(L.DomEvent.POINTER_CANCEL, obj[pre + this._touchend + id], false); document.documentElement.removeEventListener(L.DomEvent.POINTER_CANCEL, obj[pre + this._touchend + id],
false);
} }
return this; return this;