Replace getChangeEventType() with add/removeChangeListener methods

This commit is contained in:
Andreas Hocevar
2021-06-19 14:22:23 +02:00
parent cf7213c5cb
commit 343e0ffce9
13 changed files with 49 additions and 110 deletions
+2 -3
View File
@@ -7,7 +7,6 @@ import InteractionProperty from './Property.js';
import PointerInteraction from './Pointer.js';
import {TRUE} from '../functions.js';
import {always} from '../events/condition.js';
import {getChangeEventType} from '../Object.js';
import {includes} from '../array.js';
/**
@@ -192,8 +191,8 @@ class Translate extends PointerInteraction {
*/
this.lastFeature_ = null;
this.addEventListener(
getChangeEventType(InteractionProperty.ACTIVE),
this.addChangeListener(
InteractionProperty.ACTIVE,
this.handleActiveChanged_
);
}