Permalink
Browse files

validation fiddling

  • Loading branch information...
Mark Pilgrim
Mark Pilgrim committed May 22, 2010
1 parent 1fdcfb9 commit c01adaa3eb64eadf1bfb85e276b50e4141bf8b85
Showing with 2 additions and 2 deletions.
  1. +2 −2 canvas.html
View
@@ -661,13 +661,13 @@ <h2 id=halma>A Complete, Live Example</h2>
<pre><code>gDrawingContext.<mark>beginPath()</mark>;
/* vertical lines */
-for (var x = 0; x <= kPixelWidth; x += kPieceWidth) {
+for (var x = 0; x &lt;= kPixelWidth; x += kPieceWidth) {
gDrawingContext.<mark>moveTo</mark>(0.5 + x, 0);
gDrawingContext.<mark>lineTo</mark>(0.5 + x, kPixelHeight);
}
/* horizontal lines */
-for (var y = 0; y <= kPixelHeight; y += kPieceHeight) {
+for (var y = 0; y &lt;= kPixelHeight; y += kPieceHeight) {
gDrawingContext.<mark>moveTo</mark>(0, 0.5 + y);
gDrawingContext.<mark>lineTo</mark>(kPixelWidth, 0.5 + y);
}

0 comments on commit c01adaa

Please sign in to comment.