Merge pull request #3201 from bartvde/fast_clear

Pass on opt_fast to parent clear function in ol.source.ServerVector (r=@elemoine,@gberaudo)
This commit is contained in:
Bart van den Eijnden
2015-02-04 08:53:51 +01:00

View File

@@ -82,11 +82,12 @@ ol.source.ServerVector.prototype.addFeaturesInternal = function(features) {
/**
* @inheritDoc
* @api stable
*/
ol.source.ServerVector.prototype.clear = function() {
ol.source.ServerVector.prototype.clear = function(opt_fast) {
goog.object.clear(this.loadedFeatures_);
this.loadedExtents_.clear();
goog.base(this, 'clear');
goog.base(this, 'clear', opt_fast);
};