From 149b51b9509b4df4ec13e8bfee00c775e5ef5044 Mon Sep 17 00:00:00 2001 From: Craxic Date: Thu, 10 Dec 2015 14:01:21 +1100 Subject: [PATCH] Fixed minor === bug --- paint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paint.js b/paint.js index a020dfa6..8367dfbf 100644 --- a/paint.js +++ b/paint.js @@ -595,7 +595,7 @@ PaintCanvasMorph.prototype.init = function (shift) { // Calculate the center of all the non-transparent pixels on the canvas. PaintCanvasMorph.prototype.calculateCanvasCenter = function(canvas) { var canvasBounds = Costume.prototype.canvasBoundingBox(canvas); - if (canvasBounds == null) { + if (canvasBounds === null) { return null; } // Can't use canvasBounds.center(), it rounds down.