Replace references to window with root

This commit is contained in:
Dennis Hotson 2013-03-15 10:56:22 +00:00
parent a1d7eb6f18
commit 43cae6cf02

View File

@ -464,14 +464,14 @@
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; // stolen from coffeescript, thanks jashkenas! ;-) var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; // stolen from coffeescript, thanks jashkenas! ;-)
Springy.requestAnimationFrame = __bind(window.requestAnimationFrame || Springy.requestAnimationFrame = __bind(root.requestAnimationFrame ||
window.webkitRequestAnimationFrame || root.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame || root.mozRequestAnimationFrame ||
window.oRequestAnimationFrame || root.oRequestAnimationFrame ||
window.msRequestAnimationFrame || root.msRequestAnimationFrame ||
function(callback, element) { (function(callback, element) {
window.setTimeout(callback, 10); root.setTimeout(callback, 10);
}, window); }), root);
// start simulation // start simulation