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")