Merge pull request #3136 from fredj/coding-style
Use array.length = 0 instead of goog.array.clear
This commit is contained in:
@@ -93,7 +93,7 @@ ol.source.Cluster.prototype.cluster_ = function() {
|
|||||||
if (!goog.isDef(this.resolution_)) {
|
if (!goog.isDef(this.resolution_)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
goog.array.clear(this.features_);
|
this.features_.length = 0;
|
||||||
var extent = ol.extent.createEmpty();
|
var extent = ol.extent.createEmpty();
|
||||||
var mapDistance = this.distance_ * this.resolution_;
|
var mapDistance = this.distance_ * this.resolution_;
|
||||||
var features = this.source_.getFeatures();
|
var features = this.source_.getFeatures();
|
||||||
|
|||||||
Reference in New Issue
Block a user