defunkt/jquery-pjax — pull request #396 by AlexHill (2014-06-05 03:01:37+00:00)
Title: Only set pjax.state if pushing or replacing

PJAX with both both options.push and options.replace set to false can be used to simply replace chunks of page content, without touching your navigation history.

This use case is undocumented and not robust, but this tiny change ensures that PJAX back/forward behaviour stays correct even if PJAX is used in this "stateless" way elsewhere on the page.