From 790ec92a3484664bc2d1c88968c1d902e32e1e25 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 1 Aug 2014 12:40:38 +0200 Subject: [PATCH] Add strict equalities in src/display/pattern_helper.js --- src/display/pattern_helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/pattern_helper.js b/src/display/pattern_helper.js index 574edf57e..f6305e69f 100644 --- a/src/display/pattern_helper.js +++ b/src/display/pattern_helper.js @@ -382,7 +382,7 @@ var TilingPattern = (function TilingPatternClosure() { }, clipBbox: function clipBbox(graphics, bbox, x0, y0, x1, y1) { - if (bbox && isArray(bbox) && 4 == bbox.length) { + if (bbox && isArray(bbox) && bbox.length === 4) { var bboxWidth = x1 - x0; var bboxHeight = y1 - y0; graphics.ctx.rect(x0, y0, bboxWidth, bboxHeight);