From 9548ad6a27601365e837616d484405deb782ccd8 Mon Sep 17 00:00:00 2001 From: thejohnhoffer Date: Fri, 4 Nov 2016 09:24:08 -0400 Subject: [PATCH] using the strict === comparison --- src/tiledimage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index 5a763ecd..18ca5917 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1533,7 +1533,7 @@ function compareTiles( previousBest, tile ) { } function drawTiles( tiledImage, lastDrawn ) { - if (this.opacity == 0 || lastDrawn.length === 0) { + if (this.opacity === 0 || lastDrawn.length === 0) { return; } var tile = lastDrawn[0];