Re:Using Dispatch Tables to Avoid Conditionals in JavaScript
by taf2 on Monday May 13, 2013 @10:02AM
(#5698670)
It depends, sometimes if you have a few different context e.g. multiple click handlers that are being bound in different contexts of your app, that a table makes a lot more sense then repeating the switch or even wrapping the switch in a function...
[ Parent
| on HN ]
There are no comments on this comment yet.