|
|
|
|
|
by afshin
5550 days ago
|
|
Yes, this is possible. If you do capability detection by checking to see if window.history.pushState exists, then you can configure RouteMap.handler to be tied to history events. Otherwise, you can set the prefix by calling RouteMap.prefix('!'). EDIT: I re-read your question, and I think that I misunderstood. I do think what you're asking is possible, and what I stated above is a piece of what you'd need to do. Basically, instead of simply binding RouteMap.handler to either onhashchange or onpopstate, you'd probably have to write an event listener for both of those methods + a window onload handler all of which send their respective portions of the URL that you care about to RouteMap.handler. |
|