Fix this scoping

This commit is contained in:
John Ratcliff 2024-02-09 11:23:38 -08:00
parent f7d86ac244
commit 8f483a3ba0
2 changed files with 2 additions and 2 deletions

View File

@ -1456,7 +1456,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
lowestLevel lowestLevel
); );
_this._isBlending = _this._isBlending || tileIsBlending; _this._isBlending = _this._isBlending || tileIsBlending;
_this._needsDraw = _this._needsDraw || tileIsBlending || this._wasBlending; _this._needsDraw = _this._needsDraw || tileIsBlending || _this._wasBlending;
} }
} }

View File

@ -261,7 +261,7 @@ $.extend( $.World.prototype, $.EventSource.prototype, /** @lends OpenSeadragon.W
draw: function() { draw: function() {
this.viewer.drawer.draw(this._items); this.viewer.drawer.draw(this._items);
this._needsDraw = false; this._needsDraw = false;
this._items.forEach(function(item){ this._items.forEach((item) => {
this._needsDraw = item.setDrawn() || this._needsDraw; this._needsDraw = item.setDrawn() || this._needsDraw;
}); });
}, },