From 38018c83f6576e6a8bc80a1fca3011e24be03acd Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 12 Mar 2011 15:33:09 +0100 Subject: [PATCH] Lines example: use 'new Date().getTime()' instead of 'Date.now()'. --- examples/Scripts/lines.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Scripts/lines.html b/examples/Scripts/lines.html index c51874c7..c4dd7d67 100644 --- a/examples/Scripts/lines.html +++ b/examples/Scripts/lines.html @@ -40,7 +40,7 @@ setInterval(draw, 30); function draw() { iterate(); - var now = Date.now(); + var now = new Date().getTime(); if(now - lastRedraw > 30) { document.redraw(); lastRedraw = now;