Use new Opera event name as well

As pointed out by @bartvde, according to
http://stackoverflow.com/questions/5819912/webkit-transition-end-in-mozilla-and-opera,
Opera uses otransitionend or oTransitionEnd, depending on the version.
This commit is contained in:
ahocevar
2012-12-21 13:01:15 +01:00
parent dd244e6988
commit 43c646b6da

View File

@@ -762,6 +762,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
OpenLayers.Event.stopObserving(this._transitionElement, 'transitionend', this._removeBackBuffer);
OpenLayers.Event.stopObserving(this._transitionElement, 'webkitTransitionEnd', this._removeBackBuffer);
OpenLayers.Event.stopObserving(this._transitionElement, 'otransitionend', this._removeBackBuffer);
OpenLayers.Event.stopObserving(this._transitionElement, 'oTransitionEnd', this._removeBackBuffer);
delete this._transitionElement;
}
if(this.backBuffer) {
@@ -1131,6 +1132,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
OpenLayers.Event.observe(this._transitionElement, 'transitionend', this._removeBackBuffer);
OpenLayers.Event.observe(this._transitionElement, 'webkitTransitionEnd', this._removeBackBuffer);
OpenLayers.Event.observe(this._transitionElement, 'otransitionend', this._removeBackBuffer);
OpenLayers.Event.observe(this._transitionElement, 'oTransitionEnd', this._removeBackBuffer);
// the removal of the back buffer is delayed to prevent // flash effects due to the animation of tile displaying
this.backBufferTimerId = window.setTimeout(
this._removeBackBuffer, this.removeBackBufferDelay