mozilla-b2g/gaia — pull request #1901 by lightsofapollo (2012-06-24 02:40:31+00:00)
Title: Calendar states

Adds view states to calender via pushstate, using third party lib page.js (MIT).

I can easily write something similar for my needs if its really undesirable to use some third party
code but it seems like obvious simple code reuse to me at this point.

There a some things which I don't like about page.js namely it will look up the dom stack for a "a" node when click events occurs, this is hard to avoid when using pushstate with a[href="x"] but can be completely avoided by using a[href="javascript: page('x')"] which is is uglier.

Adds sample views for day/week/add events. Forking this directly and continuing work but this is a good point for review/extension.