Inline various goog.isDef() calls

This commit is contained in:
Tim Schaub
2015-09-27 10:51:03 -06:00
parent 83c59ee255
commit b3b31ea16d
5 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ ol.ImageTile.prototype.handleImageError_ = function() {
*/
ol.ImageTile.prototype.handleImageLoad_ = function() {
if (ol.LEGACY_IE_SUPPORT && ol.IS_LEGACY_IE) {
if (!goog.isDef(this.image_.naturalWidth)) {
if (this.image_.naturalWidth === undefined) {
this.image_.naturalWidth = this.image_.width;
this.image_.naturalHeight = this.image_.height;
}