quirkey / sammy

Sammy is a tiny javascript framework built on top of jQuery, It's RESTful Evented Javascript.
http://sammyjs.org
MIT License
2.99k stars 384 forks source link

Set history.state property #259

Closed bertanyaman closed 6 years ago

bertanyaman commented 7 years ago

Hi,

Is there any way to set an custom state object to history.state property on every hashchange event with sammyjs ?

Example with javascript history.pushState({customStateObject: 1}, "title", "dashboard.html");