Comparing version 0.0.2 to 0.0.3
@@ -5,3 +5,7 @@ module.exports = raf | ||
, global = typeof window === 'undefined' ? this : window | ||
, now = Date.now || function () { return +new Date() } | ||
, now = global.performance && global.performance.now ? function() { | ||
return performance.now() | ||
} : Date.now || function () { | ||
return +new Date() | ||
} | ||
@@ -8,0 +12,0 @@ var _raf = |
{ | ||
"name": "raf", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "requestAnimationFrame polyfill library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3153
56