mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Use Date.now() as all supported browsers have it.
This commit is contained in:
parent
f6f307822a
commit
37e4c654d3
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ DomEvent.requestAnimationFrame = new function() {
|
|||
|| focused && DomElement.isVisible(element)) {
|
||||
// Handle callback and remove it from callbacks list.
|
||||
callbacks.splice(i, 1);
|
||||
func(+new Date);
|
||||
func(Date.now());
|
||||
}
|
||||
}
|
||||
}, 1000 / 60);
|
||||
|
|
Loading…
Reference in a new issue