Skip to content

Commit

Permalink
Replace the bind() and unbind() aliases for the on() and off() functi…
Browse files Browse the repository at this point in the history
…ons.

This is done in order to leverage jquery custom builds without the
event-alias module
  • Loading branch information
acasademont committed Apr 16, 2013
1 parent 12a167b commit 1f9d644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.pjax.js
Expand Up @@ -779,7 +779,7 @@ function enable() {
maxCacheLength: 20,
version: findVersion
}
$(window).bind('popstate.pjax', onPjaxPopstate)
$(window).on('popstate.pjax', onPjaxPopstate)
}

// Disable pushState behavior.
Expand All @@ -802,7 +802,7 @@ function disable() {
$.pjax.submit = $.noop
$.pjax.reload = function() { window.location.reload() }

$(window).unbind('popstate.pjax', onPjaxPopstate)
$(window).off('popstate.pjax', onPjaxPopstate)
}


Expand Down

0 comments on commit 1f9d644

Please sign in to comment.