Skip to content

Commit

Permalink
Use ol.LEGACY_IE_SUPPORT and ol.IS_LEGACY_IE define
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj authored and adube committed Sep 26, 2014
1 parent 325d75b commit 5125e66
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ol/imagetile.js
Expand Up @@ -113,9 +113,11 @@ ol.ImageTile.prototype.handleImageError_ = function() {
* @private
*/
ol.ImageTile.prototype.handleImageLoad_ = function() {
if (!goog.isDef(this.image_.naturalWidth)) {
this.image_.naturalWidth = this.image_.width;
this.image_.naturalHeight = this.image_.height;
if (ol.LEGACY_IE_SUPPORT && ol.IS_LEGACY_IE) {
if (!goog.isDef(this.image_.naturalWidth)) {
this.image_.naturalWidth = this.image_.width;
this.image_.naturalHeight = this.image_.height;
}
}

if (this.image_.naturalWidth && this.image_.naturalHeight) {
Expand Down

0 comments on commit 5125e66

Please sign in to comment.