mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-14 00:38:41 -04:00
refactor(Common.now): simplified the way to detect if Date.now is available
This commit is contained in:
parent
277187381b
commit
6b7d60f641
1 changed files with 2 additions and 1 deletions
|
@ -218,8 +218,9 @@ var Common = {};
|
||||||
performance.msNow ||
|
performance.msNow ||
|
||||||
performance.oNow ||
|
performance.oNow ||
|
||||||
performance.mozNow ||
|
performance.mozNow ||
|
||||||
|
window.Date.now ||
|
||||||
function() {
|
function() {
|
||||||
return Date.now && Date.now() || new Date().getTime();
|
return new Date().getTime();
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue