Merge pull request #2687 from fredj/legacy-ie

Use ol.LEGACY_IE_SUPPORT and ol.IS_LEGACY_IE define
This commit is contained in:
Frédéric Junod
2014-09-09 09:25:56 +02:00
+2
View File
@@ -113,10 +113,12 @@ ol.ImageTile.prototype.handleImageError_ = function() {
* @private * @private
*/ */
ol.ImageTile.prototype.handleImageLoad_ = function() { ol.ImageTile.prototype.handleImageLoad_ = function() {
if (ol.LEGACY_IE_SUPPORT && ol.IS_LEGACY_IE) {
if (!goog.isDef(this.image_.naturalWidth)) { if (!goog.isDef(this.image_.naturalWidth)) {
this.image_.naturalWidth = this.image_.width; this.image_.naturalWidth = this.image_.width;
this.image_.naturalHeight = this.image_.height; this.image_.naturalHeight = this.image_.height;
} }
}
if (this.image_.naturalWidth && this.image_.naturalHeight) { if (this.image_.naturalWidth && this.image_.naturalHeight) {
this.state = ol.TileState.LOADED; this.state = ol.TileState.LOADED;