Added credit

This commit is contained in:
Dennis Hotson 2011-08-15 14:20:48 +10:00
parent b4687059d2
commit 24420595c0

View File

@ -359,7 +359,7 @@ Layout.ForceDirected.prototype.totalEnergy = function(timestep) {
return energy;
};
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; // stolen from coffeescript, thanks jashkenas! ;-)
Layout.requestAnimationFrame = __bind(window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||