diff --git a/src/tiledimage.js b/src/tiledimage.js index a1c3054b..c0b264ba 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1456,7 +1456,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag lowestLevel ); _this._isBlending = _this._isBlending || tileIsBlending; - _this._needsDraw = _this._needsDraw || tileIsBlending || this._wasBlending; + _this._needsDraw = _this._needsDraw || tileIsBlending || _this._wasBlending; } } diff --git a/src/world.js b/src/world.js index 5539d2bc..6049bb06 100644 --- a/src/world.js +++ b/src/world.js @@ -261,7 +261,7 @@ $.extend( $.World.prototype, $.EventSource.prototype, /** @lends OpenSeadragon.W draw: function() { this.viewer.drawer.draw(this._items); this._needsDraw = false; - this._items.forEach(function(item){ + this._items.forEach((item) => { this._needsDraw = item.setDrawn() || this._needsDraw; }); },