From f1fac356dd8f128bbc970242fa651c38389c9944 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 19 Dec 2013 13:25:48 +0100 Subject: [PATCH] Change ol.source.Vector#removeFeatureInternal from private to protected --- src/ol/source/vectorsource.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ol/source/vectorsource.js b/src/ol/source/vectorsource.js index c90dbbc679..9d6016973f 100644 --- a/src/ol/source/vectorsource.js +++ b/src/ol/source/vectorsource.js @@ -128,7 +128,7 @@ ol.source.Vector.prototype.addFeaturesInternal = function(features) { * FIXME empty description for jsdoc */ ol.source.Vector.prototype.clear = function() { - this.rBush_.forEach(this.removeFeatureInternal_, this); + this.rBush_.forEach(this.removeFeatureInternal, this); this.rBush_.clear(); this.dispatchChangeEvent(); }; @@ -297,16 +297,17 @@ ol.source.Vector.prototype.removeFeature = function(feature) { } else { this.rBush_.remove(feature); } - this.removeFeatureInternal_(feature); + this.removeFeatureInternal(feature); this.dispatchChangeEvent(); }; /** + * Remove feature without firing a `change` event. * @param {ol.Feature} feature Feature. - * @private + * @protected */ -ol.source.Vector.prototype.removeFeatureInternal_ = function(feature) { +ol.source.Vector.prototype.removeFeatureInternal = function(feature) { var featureKey = goog.getUid(feature) + ''; goog.asserts.assert(featureKey in this.featureChangeKeys_); goog.events.unlistenByKey(this.featureChangeKeys_[featureKey]);