azicchetti/jquerymobile-router — Issue #5: pagebeforecreate fails to process '#next'
Author: aiwilliams
Created: 2011-11-23 21:41:12+00:00
State: open

This line https://github.com/azicchetti/jquerymobile-router/blob/master/js/jquery.mobile.router.js#L44 fails with '#next' as value of ```u.hash``` - routing does not work:

```u.hash.indexOf("?")``` answers ```-1```
```u.hash.indexOf("?") !== -1``` answers ```false```
```u.hash.indexOf("?") != -1``` answers ```false```
```u.hash.indexOf("?") == -1``` answers ```true```

Am I missing something? I've been going around in circles to be sure I'm using the thing correctly. Also, it seems the syntax of the simple form of ```'#hash':'functionname'``` could be done as ```'hash':'functionname'```. There seems to be a lot of duplication in a routing file.