From d8ba40d62a868ec4eaf3fe121c1f3020a7ac2749 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Mon, 25 Aug 2014 22:58:48 -0700 Subject: [PATCH] worker demo. "px" is required for inline style's left --- js/worker-main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/worker-main.js b/js/worker-main.js index e77cb04..28c90a8 100644 --- a/js/worker-main.js +++ b/js/worker-main.js @@ -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); -}()); \ No newline at end of file +}());