Skip to content

Commit a1a7278

Browse files
Merge pull request #5 from brighthas/patch-1
Update example.js
2 parents a0a362c + 00e4c68 commit a1a7278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch02/example-2.31/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function drawPolygon(polygon, angle) {
367367
context.stroke();
368368

369369
if (fillCheckbox.checked) {
370-
context.fill(context);
370+
context.fill();
371371
}
372372

373373
context.restore();

0 commit comments

Comments
 (0)