From 8f2bc2c11b8550d007b7da704d38fa5b0ca0ae77 Mon Sep 17 00:00:00 2001 From: mourner Date: Thu, 31 Mar 2011 22:59:46 +0300 Subject: [PATCH] fix removal of useful code by closure compiler --- src/map/ext/Map.ZoomAnimation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/ext/Map.ZoomAnimation.js b/src/map/ext/Map.ZoomAnimation.js index d0c27226..0c17cc5a 100644 --- a/src/map/ext/Map.ZoomAnimation.js +++ b/src/map/ext/Map.ZoomAnimation.js @@ -37,7 +37,7 @@ L.Map.include(!(L.Transition && L.Transition.implemented()) ? {} : { this._tileBg.style[L.DomUtil.TRANSFORM_PROPERTY] = startTransform; - this._tileBg.offsetWidth; //hack to make sure transform is updated before running animation + L.Util.falseFn(this._tileBg.offsetWidth); //hack to make sure transform is updated before running animation var options = {}; options[L.DomUtil.TRANSFORM_PROPERTY] = startTransform + ' ' + L.DomUtil.getScaleString(scale, origin);