Merge pull request #12414 from ahocevar/change-event-type

Replace getChangeEventType() with add/removeChangeListener methods
This commit is contained in:
Andreas Hocevar
2021-06-21 08:04:23 +02:00
committed by GitHub
13 changed files with 49 additions and 110 deletions
+1 -5
View File
@@ -29,7 +29,6 @@ import {
} from '../extent.js';
import {createEditingStyle} from '../style/Style.js';
import {fromUserCoordinate, getUserProjection} from '../proj.js';
import {getChangeEventType} from '../Object.js';
import {squaredDistance as squaredCoordinateDistance} from '../coordinate.js';
/**
@@ -477,10 +476,7 @@ class Draw extends PointerInteraction {
: shiftKeyOnly;
}
this.addEventListener(
getChangeEventType(InteractionProperty.ACTIVE),
this.updateState_
);
this.addChangeListener(InteractionProperty.ACTIVE, this.updateState_);
}
/**