mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 22:26:10 +03:00
Merge pull request #2468 from thec0keman/fix-this-scoping
Fix `this` scoping
This commit is contained in:
commit
4c331a2000
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user