lavaca
lavaca copied to clipboard
Replace net/History with standard window.History
Older browsers could use a polyfill.
Files which depend on net/History: lavaca/src/mvc/Application.js lavaca/src/mvc/Router.js lavaca/src/mvc/Controller.js lavaca-starter/src/www/js/app/app.js lavaca-starter/src/www/js/app/ui/views/BaseView.js
These would need to be checked to conform to the History API.
Thinking this through more, we may not be able to avoid having our own History implementation.
- We do back-button detection in here in mvc/Router and here in net/History. We use that for the direction of animations in lavaca-starter's BaseView here. The History API doesn't provide this.
- We seem to use net/History's hash-based method for URLs in most projects. I think this is because no server support is required for routing, which is fair.