Replace goog.isDefAndNotNull() with truthy checks

This commit is contained in:
Tim Schaub
2015-09-27 11:41:17 -06:00
parent 8209ed0a4c
commit ac7db89a91
24 changed files with 45 additions and 45 deletions

View File

@@ -1123,7 +1123,7 @@ ol.Map.prototype.handleLayerGroupChanged_ = function() {
this.layerGroupPropertyListenerKeys_ = null;
}
var layerGroup = this.getLayerGroup();
if (goog.isDefAndNotNull(layerGroup)) {
if (layerGroup) {
this.layerGroupPropertyListenerKeys_ = [
goog.events.listen(
layerGroup, ol.ObjectEventType.PROPERTYCHANGE,