From f7ec082411046c6361dbc1b9a6411fe48e11bf96 Mon Sep 17 00:00:00 2001 From: Austin Hyde Date: Fri, 22 Nov 2013 15:01:40 -0500 Subject: [PATCH] Fix weird IE7 bug with mouseup events In IE7, handling some mouseup events are causing the native event underlying goog.events.BrowserEvent to be invalidated, and it would error out with a "Member not found" message. By passing the Closure event rather than the native event around, we avoid this case. --- src/ol/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/map.js b/src/ol/map.js index 140a841f31..136c151205 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -531,7 +531,7 @@ ol.Map.prototype.freezeRendering = function() { /** * Returns the geographical coordinate for a browser event. - * @param {Event} event Event. + * @param {Event|goog.events.BrowserEvent} event Event. * @return {ol.Coordinate} Coordinate. * @todo stability experimental */ @@ -542,7 +542,7 @@ ol.Map.prototype.getEventCoordinate = function(event) { /** * Returns the map pixel position for a browser event. - * @param {Event} event Event. + * @param {Event|goog.events.BrowserEvent} event Event. * @return {ol.Pixel} Pixel. * @todo stability experimental */