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:
@@ -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, 'transitionend', this._removeBackBuffer);
|
||||||
OpenLayers.Event.stopObserving(this._transitionElement, 'webkitTransitionEnd', 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);
|
||||||
|
OpenLayers.Event.stopObserving(this._transitionElement, 'oTransitionEnd', this._removeBackBuffer);
|
||||||
delete this._transitionElement;
|
delete this._transitionElement;
|
||||||
}
|
}
|
||||||
if(this.backBuffer) {
|
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, 'transitionend', this._removeBackBuffer);
|
||||||
OpenLayers.Event.observe(this._transitionElement, 'webkitTransitionEnd', 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);
|
||||||
|
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
|
// the removal of the back buffer is delayed to prevent // flash effects due to the animation of tile displaying
|
||||||
this.backBufferTimerId = window.setTimeout(
|
this.backBufferTimerId = window.setTimeout(
|
||||||
this._removeBackBuffer, this.removeBackBufferDelay
|
this._removeBackBuffer, this.removeBackBufferDelay
|
||||||
|
|||||||
Reference in New Issue
Block a user