Simplify events and store listeners only in one place
This commit is contained in:
@@ -68,9 +68,7 @@ class MousePosition extends Control {
|
||||
target: options.target
|
||||
});
|
||||
|
||||
listen(this,
|
||||
getChangeEventType(PROJECTION),
|
||||
this.handleProjectionChanged_, this);
|
||||
this.addEventListener(getChangeEventType(PROJECTION), this.handleProjectionChanged_);
|
||||
|
||||
if (options.coordinateFormat) {
|
||||
this.setCoordinateFormat(options.coordinateFormat);
|
||||
|
||||
Reference in New Issue
Block a user