Merge pull request #2687 from fredj/legacy-ie
Use ol.LEGACY_IE_SUPPORT and ol.IS_LEGACY_IE define
This commit is contained in:
+5
-3
@@ -113,9 +113,11 @@ ol.ImageTile.prototype.handleImageError_ = function() {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.ImageTile.prototype.handleImageLoad_ = function() {
|
ol.ImageTile.prototype.handleImageLoad_ = function() {
|
||||||
if (!goog.isDef(this.image_.naturalWidth)) {
|
if (ol.LEGACY_IE_SUPPORT && ol.IS_LEGACY_IE) {
|
||||||
this.image_.naturalWidth = this.image_.width;
|
if (!goog.isDef(this.image_.naturalWidth)) {
|
||||||
this.image_.naturalHeight = this.image_.height;
|
this.image_.naturalWidth = this.image_.width;
|
||||||
|
this.image_.naturalHeight = this.image_.height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.image_.naturalWidth && this.image_.naturalHeight) {
|
if (this.image_.naturalWidth && this.image_.naturalHeight) {
|
||||||
|
|||||||
Reference in New Issue
Block a user