4 ms·
You certainly can go smaller if your needs aren't hugely complex. I have a 'make' function for creating and appending to the DOM, 'get' for retrieving, and 'cls
by gmac 14y ago
You certainly can go smaller if your needs aren't hugely complex. I have a 'make' function for creating and appending to the DOM, 'get' for retrieving, and 'cls' for className-wrangling. See for example here (in CoffeeScript, which makes Object arguments seem terribly natural):
https://github.com/jawj/github-widget/blob/master/github-widget.coffee https://github.com/jawj/github-widget/blob/master/github-wid...