Add strict equalities in src/display/pattern_helper.js

This commit is contained in:
Jonas Jenwald 2014-08-01 12:40:38 +02:00
parent ec6ec13506
commit 790ec92a34

View File

@ -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);