Shared module for object event types

This commit is contained in:
Tim Schaub
2016-12-27 13:55:23 -07:00
parent 3fd88b3a22
commit 7ee52f413d
6 changed files with 26 additions and 22 deletions

View File

@@ -6,7 +6,7 @@ goog.provide('ol.source.Vector');
goog.require('ol');
goog.require('ol.Collection');
goog.require('ol.CollectionEventType');
goog.require('ol.Object');
goog.require('ol.ObjectEventType');
goog.require('ol.array');
goog.require('ol.asserts');
goog.require('ol.events');
@@ -206,7 +206,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.Object.EventType.PROPERTYCHANGE,
ol.events.listen(feature, ol.ObjectEventType.PROPERTYCHANGE,
this.handleFeatureChange_, this)
];
};