From deacb0aae3357157d83242661c9337c9494e7ab2 Mon Sep 17 00:00:00 2001 From: Thomas Chandelle Date: Fri, 13 Jan 2017 09:43:41 +0100 Subject: [PATCH] set(Id|Style) don't trigger change:(id|style) events --- src/ol/feature.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ol/feature.js b/src/ol/feature.js index 517852af30..2272f2a9b7 100644 --- a/src/ol/feature.js +++ b/src/ol/feature.js @@ -150,7 +150,6 @@ ol.Feature.prototype.getGeometry = function() { * calling {@link ol.Feature#setId}. * @return {number|string|undefined} Id. * @api stable - * @observable */ ol.Feature.prototype.getId = function() { return this.id_; @@ -175,7 +174,6 @@ ol.Feature.prototype.getGeometryName = function() { * @return {ol.style.Style|Array.| * ol.FeatureStyleFunction} The feature style. * @api stable - * @observable */ ol.Feature.prototype.getStyle = function() { return this.style_; @@ -237,7 +235,7 @@ ol.Feature.prototype.setGeometry = function(geometry) { * @param {ol.style.Style|Array.| * ol.FeatureStyleFunction} style Style for this feature. * @api stable - * @observable + * @fires ol.events.Event#event:change */ ol.Feature.prototype.setStyle = function(style) { this.style_ = style; @@ -254,7 +252,7 @@ ol.Feature.prototype.setStyle = function(style) { * method. * @param {number|string|undefined} id The feature id. * @api stable - * @observable + * @fires ol.events.Event#event:change */ ol.Feature.prototype.setId = function(id) { this.id_ = id;