maccman/spine — pull request #223 by ewoutkleinsmann (2012-03-03 13:08:08+00:00)
Title: Added history support for shimming

A we can see in the documentation shimming can be quite useful.

***
Sometimes it's convenient to use routes, without any changes to the page's URL or hash fragment. This is an especially common scenario in full-screen mobile or PhoneGap applications, where the page's address isn't even displayed. To cater for this, Route.setup() takes a shim option; for example:

```Spine.Route.setup(shim: true)```
***

When using it while developing a mobile website I noticed it breaks back button support, though. Therefore I made some small change to route.coffee to fix this issue. Using the following code will add history support for shimming.

```Spine.Route.setup(shim: true, history: true)```

Disclaimer: this will only work on browsers with pushState support