Add strict equalities in src/display/pattern_helper.js
This commit is contained in:
parent
ec6ec13506
commit
790ec92a34
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user