4 ms·
There is a better way to do the mixins in JS. See this awesome post by Angus Croll: http://javascriptweblog.wordpress.com/2011/05/31/a-fresh-look-at-javascript
by karterk 15y ago
There is a better way to do the mixins in JS. See this awesome post by Angus Croll:
http://javascriptweblog.wordpress.com/2011/05/31/a-fresh-look-at-javascript-mixins/ http://javascriptweblog.wordpress.com/2011/05/31/a-fresh-loo...
`this` in JS generally incurs a lot of wrath, but this is one cool hack with `this`.