Commit Graph
6 Commits
Author SHA1 Message Date
Guillermo Rauch bc178a5228 It now works before dom is ready :) 2012-03-01 19:53:51 -03:00
Guillermo Rauch 110765dbc1 Misc refactoring.
- Switched to `hashchange` listening instead of delegation
  We still check that the given hash exists as a `href` within a valid
  Skeleton tabs markup, but you can now send links around that focus
  on tabs.

  As an example, if I tweet out mypage.com/#activetab, it will check that
  `#activetab` is a valid href in an anchor within an `<ul class="tabs">`
  element, and if so, make that tab active.

- In addition, you can have multiple anchors in the page that
  trigger tabs by simply setting the appropriate `href`.

- Leverage `closest` and `find` instead of `parent`, `siblings` and
  `children` (code simplification).
2012-03-01 19:38:50 -03:00
Guillermo Rauch 4c7d6b0b3e Don't assume $ is jQuery. Rely on jQuery global instead. 2012-03-01 19:33:42 -03:00
Guillermo Rauch 6da48f64c3 Switched to 2-space indentation. 2012-03-01 19:32:51 -03:00
Guillermo Rauch 17f0141da9 JSDoc-compatible comment formatting. 2012-03-01 19:30:57 -03:00
Guillermo Rauch d72703e77a Clear whitespace. 2012-03-01 19:30:17 -03:00