From 8f483a3ba000c6a1a0bbcca2aa66529f4d552cf1 Mon Sep 17 00:00:00 2001 From: John Ratcliff Date: Fri, 9 Feb 2024 11:23:38 -0800 Subject: [PATCH] Fix this scoping --- src/tiledimage.js | 2 +- src/world.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }); },