From 845957a27f4cbedc17237d92cb433529f1a9117d Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 15 Jan 2015 16:11:29 +0100 Subject: [PATCH] Use array.length = 0 instead of goog.array.clear --- src/ol/source/clustersource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/source/clustersource.js b/src/ol/source/clustersource.js index 4d700db961..3e412fa349 100644 --- a/src/ol/source/clustersource.js +++ b/src/ol/source/clustersource.js @@ -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();