mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
1540 Use strict equality instead of loose equality
This commit is contained in:
parent
dadef91ce0
commit
b4bf21cda8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user