Remove use of goog.array.isEmpty

This commit is contained in:
Frederic Junod
2015-09-22 11:25:04 +02:00
parent 44b1c9da89
commit 0d23ab44b3
5 changed files with 5 additions and 9 deletions

View File

@@ -1,6 +1,5 @@
goog.provide('ol.geom.GeometryCollection');
goog.require('goog.array');
goog.require('goog.events');
goog.require('goog.events.EventType');
goog.require('goog.object');
@@ -231,7 +230,7 @@ ol.geom.GeometryCollection.prototype.intersectsExtent = function(extent) {
* @return {boolean} Is empty.
*/
ol.geom.GeometryCollection.prototype.isEmpty = function() {
return goog.array.isEmpty(this.geometries_);
return this.geometries_.length === 0;
};