h5bp/h5bp-ui — Issue #2: Component structure
Author: addyosmani
Created: 2011-10-27 23:37:26+00:00
State: open

At the moment we're structuring components as self-executing (IIFE) blocks of code. This is as opposed to encapsulating them within jQuery plugins.

I think this approach is fine if we intend on presenting them as snippets (which I think the original idea was), however, if we feel that we might end up releasing these as an actual component pack, it probably makes sense to turn them into jQuery plugins instead. They're fairly basic at the moment and wouldn't be too hard to convert.

I'd like to leave this issue open for us to discuss structure at some point once we have more work done on initial snippets/demos.