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
+6 -6
View File
@@ -3,7 +3,7 @@
*/
import {inherits} from './index.js';
import MapEventType from './MapEventType.js';
import BaseObject from './Object.js';
import BaseObject, {getChangeEventType} from './Object.js';
import OverlayPositioning from './OverlayPositioning.js';
import {CLASS_SELECTABLE} from './css.js';
import {removeNode, removeChildren, outerWidth, outerHeight} from './dom.js';
@@ -126,23 +126,23 @@ const Overlay = function(options) {
this.mapPostrenderListenerKey = null;
listen(
this, BaseObject.getChangeEventType(Property.ELEMENT),
this, getChangeEventType(Property.ELEMENT),
this.handleElementChanged, this);
listen(
this, BaseObject.getChangeEventType(Property.MAP),
this, getChangeEventType(Property.MAP),
this.handleMapChanged, this);
listen(
this, BaseObject.getChangeEventType(Property.OFFSET),
this, getChangeEventType(Property.OFFSET),
this.handleOffsetChanged, this);
listen(
this, BaseObject.getChangeEventType(Property.POSITION),
this, getChangeEventType(Property.POSITION),
this.handlePositionChanged, this);
listen(
this, BaseObject.getChangeEventType(Property.POSITIONING),
this, getChangeEventType(Property.POSITIONING),
this.handlePositioningChanged, this);
if (options.element !== undefined) {