Use array.length = 0 instead of goog.array.clear

This commit is contained in:
Frederic Junod
2015-01-15 16:11:29 +01:00
parent c23ae78978
commit 845957a27f

View File

@@ -93,7 +93,7 @@ ol.source.Cluster.prototype.cluster_ = function() {
if (!goog.isDef(this.resolution_)) {
return;
}
goog.array.clear(this.features_);
this.features_.length = 0;
var extent = ol.extent.createEmpty();
var mapDistance = this.distance_ * this.resolution_;
var features = this.source_.getFeatures();