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
+1 -2
View File
@@ -1,6 +1,5 @@
goog.provide('ol.format.WKT');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('ol.Feature');
goog.require('ol.format.Feature');
@@ -59,7 +58,7 @@ ol.format.WKT.EMPTY = 'EMPTY';
*/
ol.format.WKT.encodePointGeometry_ = function(geom) {
var coordinates = geom.getCoordinates();
if (goog.array.isEmpty(coordinates)) {
if (coordinates.length === 0) {
return '';
}
return coordinates[0] + ' ' + coordinates[1];