Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Trigger start.pjax and end.pjax with xhr and options as arguments

  • Loading branch information...
commit 3026153739d86e76dff5832c2bdc34265741fe50 1 parent ce94196
@freman freman authored defunkt committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.pjax.js
View
4 jquery.pjax.js
@@ -183,14 +183,14 @@ pjax.defaults = {
type: 'GET',
dataType: 'html',
beforeSend: function(xhr){
- this.trigger('start.pjax')
+ this.trigger('start.pjax', [xhr, options])
xhr.setRequestHeader('X-PJAX', 'true')
},
error: function(){
window.location = options.url
},
complete: function(){
- this.trigger('end.pjax')
+ this.trigger('end.pjax', [xhr, options])
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.