Rename _ol_events_EventType_ to EventType
This commit is contained in:
committed by
Frederic Junod
parent
ec64789940
commit
479c7a4668
@@ -6,7 +6,7 @@ import _ol_ImageState_ from '../ImageState.js';
|
||||
import _ol_asserts_ from '../asserts.js';
|
||||
import _ol_color_ from '../color.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import _ol_style_IconAnchorUnits_ from '../style/IconAnchorUnits.js';
|
||||
import _ol_style_IconImage_ from '../style/IconImage.js';
|
||||
import _ol_style_IconOrigin_ from '../style/IconOrigin.js';
|
||||
@@ -355,7 +355,7 @@ _ol_style_Icon_.prototype.getSize = function() {
|
||||
* @override
|
||||
*/
|
||||
_ol_style_Icon_.prototype.listenImageChange = function(listener, thisArg) {
|
||||
return _ol_events_.listen(this.iconImage_, _ol_events_EventType_.CHANGE,
|
||||
return _ol_events_.listen(this.iconImage_, EventType.CHANGE,
|
||||
listener, thisArg);
|
||||
};
|
||||
|
||||
@@ -377,7 +377,7 @@ _ol_style_Icon_.prototype.load = function() {
|
||||
* @override
|
||||
*/
|
||||
_ol_style_Icon_.prototype.unlistenImageChange = function(listener, thisArg) {
|
||||
_ol_events_.unlisten(this.iconImage_, _ol_events_EventType_.CHANGE,
|
||||
_ol_events_.unlisten(this.iconImage_, EventType.CHANGE,
|
||||
listener, thisArg);
|
||||
};
|
||||
export default _ol_style_Icon_;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {inherits} from '../index.js';
|
||||
import {createCanvasContext2D} from '../dom.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_EventTarget_ from '../events/EventTarget.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import _ol_ImageState_ from '../ImageState.js';
|
||||
import _ol_style_ from '../style.js';
|
||||
|
||||
@@ -132,7 +132,7 @@ _ol_style_IconImage_.prototype.determineTainting_ = function() {
|
||||
* @private
|
||||
*/
|
||||
_ol_style_IconImage_.prototype.dispatchChangeEvent_ = function() {
|
||||
this.dispatchEvent(_ol_events_EventType_.CHANGE);
|
||||
this.dispatchEvent(EventType.CHANGE);
|
||||
};
|
||||
|
||||
|
||||
@@ -223,9 +223,9 @@ _ol_style_IconImage_.prototype.load = function() {
|
||||
if (this.imageState_ == _ol_ImageState_.IDLE) {
|
||||
this.imageState_ = _ol_ImageState_.LOADING;
|
||||
this.imageListenerKeys_ = [
|
||||
_ol_events_.listenOnce(this.image_, _ol_events_EventType_.ERROR,
|
||||
_ol_events_.listenOnce(this.image_, EventType.ERROR,
|
||||
this.handleImageError_, this),
|
||||
_ol_events_.listenOnce(this.image_, _ol_events_EventType_.LOAD,
|
||||
_ol_events_.listenOnce(this.image_, EventType.LOAD,
|
||||
this.handleImageLoad_, this)
|
||||
];
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user