Releases: defunkt/jquery-pjax
Releases · defunkt/jquery-pjax
jquery-pjax 2.0.1
jquery-pjax 2.0.0
This release brings jQuery 3.x compatibility.
Backwards-incompatible changes:
-
The value of
containerparameter to pjax functions should be a string selector, and not a jQuery object anymore. -
The value of
containerparameter cannot be a DOM node with an ID anymore. -
The call signature
$("#main").pjax("a")is not supported anymore because the container selector#maincannot be inferred from the context of the$.fn.pjax()call. To fix this, pass the container selector explicitly:$("#main").pjax("a", "#main")
pjax 1.9.6
- Change internal cache struct to fix restoring mixed containers.
- Avoid tackling on extra
#on URLs in Safari. - Fix stripping internal query params to avoid touching
&and?in components other than query string.
pjax 1.9.5
Pjax content-related fixes:
- Fix executing inline
<script>tags on pjax back/forward - Fix popstate with different pjax containers
- Scroll to named
<a name="...">anchors after pjax navigation - Decode hash value before querying for named anchor or element by ID
- Avoiding calling
scrollTop()twice
Browser URL and anchor fixes:
- Strip jQuery's cache-busting parameter
- Keep hash in temporarily changed URL while the page is loading
- Reflect the hash of the URI in
state.url - Preserve hash in reloaded URL after pjax request has timed out
Server request fixes:
- Abort pending XHR in popstate handler.
- Handle array form data in pjax fallback behavior
pjax 1.9.4
- Avoid Sizzle CSS syntax errors by looking up whether a
location.hashreferences a DOM ID usingdocument.getElementById()instead of passing the whole value as selector to$().
pjax 1.9.3
- Fix fragment inclusion when fragment === 'body'
- Add support for file input fields for form submits
- Fix
maxCacheLengthsetting and using it to disable caching - Don't break the back button after having loaded a static HTML page
- Fix pjax on iOS Simulator
- Fix handling
<script src>tags with notypeattribute - Have minifiers retain the copyright notice in source
- Indicate MIT license in source code
- Fix adding
_pjaxparameter whendataoption is explicitly supplied - Simplify & improve detection of same-page anchors
pjax 1.9.2
- Ensure
pjax.stateis consistent beforepjax:beforeReplaceevent - Add previous state to
beforeReplaceevent - Move
stateandpreviousStateto be event properties - Fix
previousStatescope to success closure
pjax 1.9.1
- Fixes Bower ignore list
pjax 1.9.0
- Don't process events with prevented defaults
- Fire
pjax:beforeReplaceevent before replacing HTML
pjax 1.8.2
- IE fix for blurring of active element