lavaca icon indicating copy to clipboard operation
lavaca copied to clipboard

Replace net/History with standard window.History

Open zship opened this issue 11 years ago • 1 comments

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.

zship avatar Jun 25 '14 19:06 zship

Thinking this through more, we may not be able to avoid having our own History implementation.

  1. 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.
  2. 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.

zship avatar Jul 29 '14 18:07 zship