Lines example: use 'new Date().getTime()' instead of 'Date.now()'.

This commit is contained in:
Jonathan Puckey 2011-03-12 15:33:09 +01:00
parent 6430baa858
commit 38018c83f6

View file

@ -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;