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
container
parameter to pjax functions should be a string selector, and not a jQuery object anymore. -
The value of
container
parameter cannot be a DOM node with an ID anymore. -
The call signature
$("#main").pjax("a")
is not supported anymore because the container selector#main
cannot 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.hash
references 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
maxCacheLength
setting 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 notype
attribute - Have minifiers retain the copyright notice in source
- Indicate MIT license in source code
- Fix adding
_pjax
parameter whendata
option is explicitly supplied - Simplify & improve detection of same-page anchors
pjax 1.9.2
- Ensure
pjax.state
is consistent beforepjax:beforeReplace
event - Add previous state to
beforeReplace
event - Move
state
andpreviousState
to be event properties - Fix
previousState
scope to success closure
pjax 1.9.1
- Fixes Bower ignore list
pjax 1.9.0
- Don't process events with prevented defaults
- Fire
pjax:beforeReplace
event before replacing HTML
pjax 1.8.2
- IE fix for blurring of active element