I think your problem is that you're not using bind correctly. bind returns a bound function, but doesn't alter the one you pass as an argument.
a.bind(b); // does nothing
a = a.bind(b); // does what you want
© Espruino, powered by microcosm.
Report a problem