4 ms·
You don't have to use inline functions all the time, you can do it like this: function foo () {.... } function bar () {....foo(); } function barfoo () {.
by voidr 15y ago
You don't have to use inline functions all the time, you can do it like this:
function foo () {.... }
function bar () {....foo(); }
function barfoo () {....bar(); }
doSomething(barfoo);
- jigs_up 15y agoAnd remember that 'bind' can save your life this.io.sockets.on('connection', this.onConnection.bind(this));