Merge pull request #2684 from ahocevar/notify-change

Rename ol.Observable#dispatchChangeEvent() to #changed()
This commit is contained in:
Andreas Hocevar
2014-09-11 15:51:22 -07:00
32 changed files with 66 additions and 66 deletions
+1 -1
View File
@@ -99,5 +99,5 @@ ol.layer.Layer.prototype.getSourceState = function() {
* @private
*/
ol.layer.Layer.prototype.handleSourceChange_ = function() {
this.dispatchChangeEvent();
this.changed();
};
+4 -4
View File
@@ -78,7 +78,7 @@ goog.inherits(ol.layer.Group, ol.layer.Base);
*/
ol.layer.Group.prototype.handleLayerChange_ = function() {
if (this.getVisible()) {
this.dispatchChangeEvent();
this.changed();
}
};
@@ -114,7 +114,7 @@ ol.layer.Group.prototype.handleLayersChanged_ = function(event) {
}
}
this.dispatchChangeEvent();
this.changed();
};
@@ -127,7 +127,7 @@ ol.layer.Group.prototype.handleLayersAdd_ = function(collectionEvent) {
this.listenerKeys_[goog.getUid(layer).toString()] = goog.events.listen(
layer, [ol.ObjectEventType.PROPERTYCHANGE, goog.events.EventType.CHANGE],
this.handleLayerChange_, false, this);
this.dispatchChangeEvent();
this.changed();
};
@@ -140,7 +140,7 @@ ol.layer.Group.prototype.handleLayersRemove_ = function(collectionEvent) {
var key = goog.getUid(layer).toString();
goog.events.unlistenByKey(this.listenerKeys_[key]);
delete this.listenerKeys_[key];
this.dispatchChangeEvent();
this.changed();
};
+1 -1
View File
@@ -121,5 +121,5 @@ ol.layer.Vector.prototype.setStyle = function(style) {
this.style_ = goog.isDef(style) ? style : ol.style.defaultStyleFunction;
this.styleFunction_ = goog.isNull(style) ?
undefined : ol.style.createStyleFunction(this.style_);
this.dispatchChangeEvent();
this.changed();
};