// check against existing bind, since TS and SSFML have this for you.if (!Function.prototype.bind) { Function.prototype.bind = function(owner, arg1, arg2) { var m = this; return function(a1, a2) { m.call(owner, a1 || arg1, a2 || arg2); }; }}