Releases: zipper/history.nette.ajax.js
Releases · zipper/history.nette.ajax.js
Dependency update
Preserving state object on initialization
When calling replaceState on extension initialization, the original object in history state is preserved. I.e. when other JS call replaceState first with custom object, this object won't be lost after initializing history extension.
Added package.json
1.0.1 added package.json
Popstate condition fix and better `title` handling
- fixing condition in popstate event handler; since
eis jQuery Event Object, there is nostateproperty defined, we need to usee.originalEvent.stateinstead - if
titleelement hasdata-ajax-update, then use this title when pushing new state and setdocument.titleto this value; see vojtech-dobes/nette.ajax.js#151