Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renamed element to clickedElement.

  • Loading branch information...
commit fa7bb156ff01155e285c5c6a2988bb00742d73f1 1 parent 531b7ca
@littke littke authored
Showing with 10 additions and 10 deletions.
  1. +9 −9 README
  2. +1 −1  jquery.pjax.js
View
18 README
@@ -71,15 +71,15 @@ The $(link).pjax() function accepts a container, an options object,
or both. The options are the same as jQuery's $.ajax options with the
following additions:
-container - The selector of the container to load the reponse body into, or
- the container itself.
- element - The clicked element.
- push - Whether to pushState the URL. Defaults to true (of course).
- replace - Whether to replaceState the URL. Defaults to false.
- timeout - pjax sets this low, <1s. Set this higher if using a custom
- error handler. It's in ms, so something like `timeout: 2000`
- error - By default this callback reloads the target page once `timeout`
- ms elapses.
+ container - The selector of the container to load the reponse body into, or
+ the container itself.
+ clickedElement - The element that was clicked to start the pjax call.
+ push - Whether to pushState the URL. Defaults to true (of course).
+ replace - Whether to replaceState the URL. Defaults to false.
+ timeout - pjax sets this low, <1s. Set this higher if using a custom
+ error handler. It's in ms, so something like `timeout: 2000`
+ error - By default this callback reloads the target page once `timeout`
+ ms elapses.
## $.pjax( options )
View
2  jquery.pjax.js
@@ -38,7 +38,7 @@ jQuery.fn.pjax = function( container, options ) {
var defaults = {
url: this.href,
container: $(this).attr('data-pjax'),
- element: $(this)
+ clickedElement: $(this)
}
$.pjax($.extend({}, defaults, options))
Please sign in to comment.
Something went wrong with that request. Please try again.