Skip to content

Commit

Permalink
Merge pull request pbakaus#6 from levito/patch-1
Browse files Browse the repository at this point in the history
Date.now() fallback to new Date() for < IE9 support
  • Loading branch information
swernerx committed Nov 23, 2011
2 parents e636665 + ab70bdd commit 71acb05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
* based on the pure time difference.
*/
(function(global) {
var time = Date.now;
var time = Date.now || function() {
return +new Date();
};
var desiredFrames = 60;
var millisecondsPerSecond = 1000;
var running = {};
Expand Down

0 comments on commit 71acb05

Please sign in to comment.