Add EventType enum to ol.Object

This commit is contained in:
Tim Schaub
2016-12-04 14:20:57 -07:00
parent 3d2f677f2a
commit daba1fbcb6
5 changed files with 21 additions and 25 deletions

View File

@@ -5,7 +5,7 @@ goog.provide('ol.source.Vector');
goog.require('ol');
goog.require('ol.Collection');
goog.require('ol.ObjectEventType');
goog.require('ol.Object');
goog.require('ol.array');
goog.require('ol.asserts');
goog.require('ol.events');
@@ -205,7 +205,7 @@ ol.source.Vector.prototype.setupChangeEvents_ = function(featureKey, feature) {
this.featureChangeKeys_[featureKey] = [
ol.events.listen(feature, ol.events.EventType.CHANGE,
this.handleFeatureChange_, this),
ol.events.listen(feature, ol.ObjectEventType.PROPERTYCHANGE,
ol.events.listen(feature, ol.Object.EventType.PROPERTYCHANGE,
this.handleFeatureChange_, this)
];
};