From 616a2d4269be850ddf002fe300ab01d9c22e214f Mon Sep 17 00:00:00 2001 From: Mike Macaulay Date: Thu, 2 Jun 2016 13:06:40 -0500 Subject: [PATCH] use length !==0 for kml entity id checking --- Source/DataSources/KmlDataSource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/DataSources/KmlDataSource.js b/Source/DataSources/KmlDataSource.js index 8145882ee155..2f2def14f0ea 100644 --- a/Source/DataSources/KmlDataSource.js +++ b/Source/DataSources/KmlDataSource.js @@ -279,11 +279,11 @@ define([ return url; } - // an optional context is passed to allow for some malformed kmls (thos with multiple geometries with same ids) to still parse + // an optional context is passed to allow for some malformed kmls (those with multiple geometries with same ids) to still parse // correctly, as they do in Google Earth. function getOrCreateEntity(node, entityCollection, context) { var id = queryStringAttribute(node, 'id'); - id = defined(id) && id !=="" ? id : createGuid(); + id = defined(id) && id.length !== 0 ? id : createGuid(); if(defined(context)){ id = context + id; }