From 44b108f00e18fa91ca6ae04748422bce40d131ae Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 5 Oct 2017 14:44:56 -0400 Subject: [PATCH] changed conditional if to else in draw function --- src/tiledimage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index 44ddba33..bfc67fc8 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -312,7 +312,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag this._midDraw = false; } // Images with opacity 0 should not need to be drawn in future. this._needsDraw = false is set in this._updateViewport() for other images. - if (this.opacity === 0) { + else { this._needsDraw = false; } },