Skip to content

Popstate condition fix and better `title` handling

Compare
Choose a tag to compare
@zipper zipper released this 06 Mar 11:41
· 5 commits to master since this release
25c97df
  • fixing condition in popstate event handler; since e is jQuery Event Object, there is no state property defined, we need to use e.originalEvent.state instead
  • if title element has data-ajax-update, then use this title when pushing new state and set document.title to this value; see vojtech-dobes/nette.ajax.js#151