We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12a167b + 1f9d644 commit 0210180Copy full SHA for 0210180
jquery.pjax.js
@@ -779,7 +779,7 @@ function enable() {
779
maxCacheLength: 20,
780
version: findVersion
781
}
782
- $(window).bind('popstate.pjax', onPjaxPopstate)
+ $(window).on('popstate.pjax', onPjaxPopstate)
783
784
785
// Disable pushState behavior.
@@ -802,7 +802,7 @@ function disable() {
802
$.pjax.submit = $.noop
803
$.pjax.reload = function() { window.location.reload() }
804
805
- $(window).unbind('popstate.pjax', onPjaxPopstate)
+ $(window).off('popstate.pjax', onPjaxPopstate)
806
807
808
0 commit comments