From c2869cee5d18aee3e7c3cf73de9ab93e4de3d34f Mon Sep 17 00:00:00 2001 From: Aaron King Date: Mon, 31 Dec 2012 10:39:24 -0800 Subject: [PATCH] Fix issue 1226: IE10 "Invalid argument" error in version 0.5 defining retina https://github.com/CloudMade/Leaflet/issues/1226 Credit to dreamfall for the fix. --- src/core/Browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Browser.js b/src/core/Browser.js index 87e6018f..1195abe6 100644 --- a/src/core/Browser.js +++ b/src/core/Browser.js @@ -21,7 +21,7 @@ mobile = typeof orientation !== undefined + '', msTouch = (window.navigator && window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints), retina = (('devicePixelRatio' in window && window.devicePixelRatio > 1) || - ('matchMedia' in window && window.matchMedia("") && window.matchMedia("(min-resolution:144dpi)").matches)), + ('matchMedia' in window && window.matchMedia("(min-resolution:144dpi)") && window.matchMedia("(min-resolution:144dpi)").matches)), doc = document.documentElement, ie3d = ie && ('transition' in doc.style),