Inline simple !goog.isDef() calls

This commit is contained in:
Tim Schaub
2015-09-27 10:31:16 -06:00
parent 3a0683f373
commit a86c270f6a
11 changed files with 17 additions and 17 deletions

View File

@@ -866,7 +866,7 @@ ol.render.webgl.ImageReplay.prototype.drawHitDetectionReplayOneByOne_ =
if (!goog.isDef(skippedFeaturesHash[featureUid]) &&
goog.isDefAndNotNull(feature.getGeometry()) &&
(!goog.isDef(opt_hitExtent) || ol.extent.intersects(
(opt_hitExtent === undefined || ol.extent.intersects(
opt_hitExtent, feature.getGeometry().getExtent()))) {
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
this.drawElements_(gl, start, end, elementType, elementSize);