mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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);
|
||||
function draw() {
|
||||
iterate();
|
||||
var now = Date.now();
|
||||
var now = new Date().getTime();
|
||||
if(now - lastRedraw > 30) {
|
||||
document.redraw();
|
||||
lastRedraw = now;
|
||||
|
|
Loading…
Reference in a new issue