Use ol.isDef in assertion

This addresses comment e558b5db63 (commitcomment-13406867)
by @elemoine.
This commit is contained in:
Marc Jansen
2015-09-25 10:41:09 +02:00
committed by Tim Schaub
parent 8eea827343
commit 7352ddeb89

View File

@@ -140,7 +140,7 @@ ol.renderer.Map.prototype.forEachFeatureAtCoordinate =
* @return {?} Callback result.
*/
function forEachFeatureAtCoordinate(feature) {
goog.asserts.assert(feature !== undefined, 'received a feature');
goog.asserts.assert(ol.isDef(feature), 'received a feature');
var key = goog.getUid(feature).toString();
if (!(key in features)) {
features[key] = true;