Remove static members from BaseObject

This commit is contained in:
Tim Schaub
2018-02-25 08:48:53 -07:00
parent ef92649017
commit 4e6cf58de1
13 changed files with 76 additions and 73 deletions

View File

@@ -6,7 +6,7 @@ import EventType from '../events/EventType.js';
import Feature from '../Feature.js';
import MapBrowserEventType from '../MapBrowserEventType.js';
import MapBrowserPointerEvent from '../MapBrowserPointerEvent.js';
import BaseObject from '../Object.js';
import {getChangeEventType} from '../Object.js';
import {squaredDistance as squaredCoordinateDistance} from '../coordinate.js';
import {listen} from '../events.js';
import Event from '../events/Event.js';
@@ -365,7 +365,7 @@ const Draw = function(options) {
}
listen(this,
BaseObject.getChangeEventType(InteractionProperty.ACTIVE),
getChangeEventType(InteractionProperty.ACTIVE),
this.updateState_, this);
};

View File

@@ -3,7 +3,7 @@
*/
import {inherits} from '../index.js';
import Collection from '../Collection.js';
import BaseObject from '../Object.js';
import {getChangeEventType} from '../Object.js';
import {listen} from '../events.js';
import Event from '../events/Event.js';
import {TRUE} from '../functions.js';
@@ -80,7 +80,7 @@ const Translate = function(opt_options) {
this.lastFeature_ = null;
listen(this,
BaseObject.getChangeEventType(InteractionProperty.ACTIVE),
getChangeEventType(InteractionProperty.ACTIVE),
this.handleActiveChanged_, this);
};