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
+2 -2
View File
@@ -366,7 +366,7 @@ ol.Overlay.prototype.panIntoView_ = function() {
goog.asserts.assert(this.autoPan, 'this.autoPan should be true');
var map = this.getMap();
if (!goog.isDef(map) || goog.isNull(map.getTargetElement())) {
if (map === undefined || goog.isNull(map.getTargetElement())) {
return;
}
@@ -474,7 +474,7 @@ ol.Overlay.prototype.setVisible = function(visible) {
ol.Overlay.prototype.updatePixelPosition = function() {
var map = this.getMap();
var position = this.getPosition();
if (!goog.isDef(map) || !map.isRendered() || !goog.isDef(position)) {
if (map === undefined || !map.isRendered() || position === undefined) {
this.setVisible(false);
return;
}