Comparing version 1.2.1 to 1.2.2
20
index.js
@@ -1,2 +0,2 @@ | ||
var bind = Function.prototype.bind | ||
var global = require('global') | ||
@@ -7,5 +7,5 @@ /** | ||
var request = this.requestAnimationFrame | ||
|| this.webkitRequestAnimationFrame | ||
|| this.mozRequestAnimationFrame | ||
var request = global.requestAnimationFrame | ||
|| global.webkitRequestAnimationFrame | ||
|| global.mozRequestAnimationFrame | ||
|| fallback | ||
@@ -25,10 +25,10 @@ | ||
var cancel = this.cancelAnimationFrame | ||
|| this.webkitCancelAnimationFrame | ||
|| this.mozCancelAnimationFrame | ||
var cancel = global.cancelAnimationFrame | ||
|| global.webkitCancelAnimationFrame | ||
|| global.mozCancelAnimationFrame | ||
|| clearTimeout | ||
if (bind) { | ||
request = bind.call(request, this) | ||
cancel = bind.call(cancel, this) | ||
if (Function.prototype.bind) { | ||
request = request.bind(global) | ||
cancel = cancel.bind(global) | ||
} | ||
@@ -35,0 +35,0 @@ |
{ | ||
"name": "rafl", | ||
"description": "request animation frame", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"keywords": [ | ||
@@ -11,2 +11,5 @@ "animate", | ||
"main": "index.js", | ||
"dependencies": { | ||
"global": "~4.3.0" | ||
}, | ||
"devDependencies": { | ||
@@ -26,3 +29,3 @@ "tape": "~4.5.1" | ||
"author": "Michael Rhodes", | ||
"license": "MIT" | ||
"license": "MIT" | ||
} |
2686
1
+ Addedglobal@~4.3.0
+ Addeddom-walk@0.1.2(transitive)
+ Addedglobal@4.3.2(transitive)
+ Addedmin-document@2.19.0(transitive)
+ Addedprocess@0.5.2(transitive)