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

@@ -3,7 +3,7 @@
*/
import {inherits} from './index.js';
import GeolocationProperty from './GeolocationProperty.js';
import BaseObject from './Object.js';
import BaseObject, {getChangeEventType} from './Object.js';
import {listen} from './events.js';
import EventType from './events/EventType.js';
import {circular as circularPolygon} from './geom/Polygon.js';
@@ -79,10 +79,10 @@ const Geolocation = function(opt_options) {
this.watchId_ = undefined;
listen(
this, BaseObject.getChangeEventType(GeolocationProperty.PROJECTION),
this, getChangeEventType(GeolocationProperty.PROJECTION),
this.handleProjectionChanged_, this);
listen(
this, BaseObject.getChangeEventType(GeolocationProperty.TRACKING),
this, getChangeEventType(GeolocationProperty.TRACKING),
this.handleTrackingChanged_, this);
if (options.projection !== undefined) {