Fix the root cause of the IE mouseup event bug.

When the event object is reference outside the call stack of the
original event handler (like in a setTimeout), accessing its
properties results in a "member not found" error. The solution is to
clone the event object and use the clone.
This commit is contained in:
Austin Hyde
2014-01-30 10:17:22 -05:00
parent fb360c019e
commit c9ca219286
2 changed files with 21 additions and 3 deletions

View File

@@ -531,7 +531,7 @@ ol.Map.prototype.freezeRendering = function() {
/**
* Returns the geographical coordinate for a browser event.
* @param {Event|goog.events.BrowserEvent} event Event.
* @param {Event} 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|goog.events.BrowserEvent} event Event.
* @param {Event} event Event.
* @return {ol.Pixel} Pixel.
* @todo stability experimental
*/