Permalink
Browse files

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

  • Loading branch information...
1 parent ce94196 commit 3026153739d86e76dff5832c2bdc34265741fe50 @freman freman committed with defunkt Aug 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.pjax.js
View
@@ -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])
}
}

0 comments on commit 3026153

Please sign in to comment.