dmachi / dojox_application

Dojox Application Framework for mobile, tablets, and desktops
Other
27 stars 24 forks source link

History should have a config option to automatically create the full url hash from the selected children on the app. #182

Open edchat opened 11 years ago

edchat commented 11 years ago

History should have a config option to automatically create the full url hash from the selected children on the app.
The new config option would be called "autoHashUrl" and when true, the History controller would listen for an event which would be fired by the Transition controller after the transition for all of the views is complete, then the History controller would build up the url hash from the selected children in the app, and use that to call pushState. This would help with cases where a transition is done for -view1 (to remove a view) so that a usable url would still be available.

edchat commented 11 years ago

This branch has an implementation, but it is too late to add new function to 1.9, so it will have to wait. https://github.com/edchat/dojox_application/tree/autoHashUrl