mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Lines example: use 'new Date().getTime()' instead of 'Date.now()'.
This commit is contained in:
parent
6430baa858
commit
38018c83f6
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@
|
||||||
setInterval(draw, 30);
|
setInterval(draw, 30);
|
||||||
function draw() {
|
function draw() {
|
||||||
iterate();
|
iterate();
|
||||||
var now = Date.now();
|
var now = new Date().getTime();
|
||||||
if(now - lastRedraw > 30) {
|
if(now - lastRedraw > 30) {
|
||||||
document.redraw();
|
document.redraw();
|
||||||
lastRedraw = now;
|
lastRedraw = now;
|
||||||
|
|
Loading…
Reference in a new issue