0
0
Fork 0
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:
Xavier Balloy 2015-01-21 21:43:27 +01:00
parent 277187381b
commit 6b7d60f641

View file

@ -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();
}; };
})(); })();