guardian/frontend — pull request #48 by mattandrews (2012-08-21 16:48:33+00:00)
Title: Most Popular (expandable) and tabbed components

Would appreciate someone going over this, particularly `tabs.js` and the outlined HTML format there for creating tabbed widgets.

This isn't final by any means (`tabs.js` in particular needs some testing and also some pub/sub to hook into) but as a rough outline of how it could work, I'm happy.

Trying to tread the line between avoiding heavy DOM traversal for tabs (eg. specifying the`id` of the tab's target panel in a `data` attribute on the tab link, rather than just traversing the DOM looking for the next `tab-content` node) but also wanting to keep tab markup relatively quick/simple to throw together in templates.

feedback appreciated.