Replace !goog.isDefAndNotNull() with falsey checks

This commit is contained in:
Tim Schaub
2015-09-27 11:42:49 -06:00
parent ac7db89a91
commit ed3dcd636f
9 changed files with 9 additions and 9 deletions

View File

@@ -705,7 +705,7 @@ ol.source.Vector.prototype.handleFeatureChange_ = function(event) {
var feature = /** @type {ol.Feature} */ (event.target);
var featureKey = goog.getUid(feature).toString();
var geometry = feature.getGeometry();
if (!goog.isDefAndNotNull(geometry)) {
if (!geometry) {
if (!(featureKey in this.nullGeometryFeatures_)) {
if (!goog.isNull(this.featuresRtree_)) {
this.featuresRtree_.remove(feature);