Merge pull request #2684 from ahocevar/notify-change
Rename ol.Observable#dispatchChangeEvent() to #changed()
This commit is contained in:
@@ -81,7 +81,7 @@ ol.source.Cluster.prototype.onSourceChange_ = function() {
|
||||
this.clear();
|
||||
this.cluster_();
|
||||
this.addFeatures(this.features_);
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ ol.source.ImageMapGuide.getScale = function(extent, size, metersPerUnit, dpi) {
|
||||
*/
|
||||
ol.source.ImageMapGuide.prototype.updateParams = function(params) {
|
||||
goog.object.extend(this.params_, params);
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ ol.source.ImageVector.prototype.getTransform_ =
|
||||
*/
|
||||
ol.source.ImageVector.prototype.handleImageChange_ =
|
||||
function(event) {
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@ ol.source.ImageWMS.prototype.setUrl = function(url) {
|
||||
if (url != this.url_) {
|
||||
this.url_ = url;
|
||||
this.image_ = null;
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -333,7 +333,7 @@ ol.source.ImageWMS.prototype.updateParams = function(params) {
|
||||
goog.object.extend(this.params_, params);
|
||||
this.updateV13_();
|
||||
this.image_ = null;
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ ol.source.Source.prototype.setLogo = function(logo) {
|
||||
*/
|
||||
ol.source.Source.prototype.setState = function(state) {
|
||||
this.state_ = state;
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ ol.source.TileImage.prototype.getTileUrlFunction = function() {
|
||||
ol.source.TileImage.prototype.setTileLoadFunction = function(tileLoadFunction) {
|
||||
this.tileCache.clear();
|
||||
this.tileLoadFunction = tileLoadFunction;
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@ ol.source.TileImage.prototype.setTileUrlFunction = function(tileUrlFunction) {
|
||||
// FIXME cache key somehow.
|
||||
this.tileCache.clear();
|
||||
this.tileUrlFunction = tileUrlFunction;
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ ol.source.TileVector.prototype.removeFeature = goog.abstractMethod;
|
||||
*/
|
||||
ol.source.TileVector.prototype.setTileUrlFunction = function(tileUrlFunction) {
|
||||
this.tileUrlFunction_ = tileUrlFunction;
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -341,7 +341,7 @@ ol.source.TileWMS.prototype.setUrl = function(url) {
|
||||
ol.source.TileWMS.prototype.setUrls = function(urls) {
|
||||
this.urls_ = goog.isDefAndNotNull(urls) ? urls : [];
|
||||
this.resetCoordKeyPrefix_();
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
@@ -407,7 +407,7 @@ ol.source.TileWMS.prototype.updateParams = function(params) {
|
||||
goog.object.extend(this.params_, params);
|
||||
this.resetCoordKeyPrefix_();
|
||||
this.updateV13_();
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ goog.inherits(ol.source.Vector, ol.source.Source);
|
||||
*/
|
||||
ol.source.Vector.prototype.addFeature = function(feature) {
|
||||
this.addFeatureInternal(feature);
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ ol.source.Vector.prototype.addFeatureInternal = function(feature) {
|
||||
*/
|
||||
ol.source.Vector.prototype.addFeatures = function(features) {
|
||||
this.addFeaturesInternal(features);
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ ol.source.Vector.prototype.clear = function() {
|
||||
this.nullGeometryFeatures_, this.removeFeatureInternal, this);
|
||||
goog.object.clear(this.nullGeometryFeatures_);
|
||||
goog.asserts.assert(goog.object.isEmpty(this.featureChangeKeys_));
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
@@ -403,7 +403,7 @@ ol.source.Vector.prototype.handleFeatureChange_ = function(event) {
|
||||
goog.asserts.assert(this.undefIdIndex_[featureKey] === feature);
|
||||
}
|
||||
}
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
@@ -436,7 +436,7 @@ ol.source.Vector.prototype.removeFeature = function(feature) {
|
||||
this.rBush_.remove(feature);
|
||||
}
|
||||
this.removeFeatureInternal(feature);
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -232,7 +232,7 @@ ol.source.WMTS.prototype.resetCoordKeyPrefix_ = function() {
|
||||
ol.source.WMTS.prototype.updateDimensions = function(dimensions) {
|
||||
goog.object.extend(this.dimensions_, dimensions);
|
||||
this.resetCoordKeyPrefix_();
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user