Permalink
Browse files

worker demo. "px" is required for inline style's left

1 parent 0e4aff9 commit d8ba40d62a868ec4eaf3fe121c1f3020a7ac2749 @paulirish paulirish committed Aug 26, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/worker-main.js
View
@@ -43,7 +43,7 @@
var direction = 39; // right
square.style.top = 0;
- square.style.left = 20;
+ square.style.left = '20px';
square.style.height = SQUARE_SIZE;
square.style.width = SQUARE_SIZE;
@@ -89,4 +89,4 @@
// start the square animating
requestAnimationFrame(moveSquare);
-}());
+}());

0 comments on commit d8ba40d

Please sign in to comment.