Inline !goog.isDef() property checks

This commit is contained in:
Tim Schaub
2015-09-27 10:24:38 -06:00
parent 6638ae855d
commit 3a0683f373
8 changed files with 9 additions and 9 deletions

View File

@@ -114,7 +114,7 @@ ol.Image.prototype.handleImageError_ = function() {
* @private
*/
ol.Image.prototype.handleImageLoad_ = function() {
if (!goog.isDef(this.resolution)) {
if (this.resolution === undefined) {
this.resolution = ol.extent.getHeight(this.extent) / this.image_.height;
}
this.state = ol.ImageState.LOADED;