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
e
is jQuery Event Object, there is nostate
property defined, we need to usee.originalEvent.state
instead - if
title
element hasdata-ajax-update
, then use this title when pushing new state and setdocument.title
to this value; see vojtech-dobes/nette.ajax.js#151