1540 Use strict equality instead of loose equality

This commit is contained in:
Yansong Hong 2020-02-07 13:16:09 -08:00
parent dadef91ce0
commit b4bf21cda8

View File

@ -195,7 +195,7 @@ $.Drawer.prototype = {
context.beginPath();
polygons.forEach(function (polygon) {
polygon.forEach(function (coord, i) {
context[i == 0 ? 'moveTo' : 'lineTo'](coord.x, coord.y);
context[i === 0 ? 'moveTo' : 'lineTo'](coord.x, coord.y);
});
});
context.clip();