Skip to content

Commit 693ddba

Browse files
committed
Merge branch 'master' of https://github.com/defunkt/jquery-pjax
2 parents c487e17 + 0210180 commit 693ddba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.pjax.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ function enable() {
779779
maxCacheLength: 20,
780780
version: findVersion
781781
}
782-
$(window).bind('popstate.pjax', onPjaxPopstate)
782+
$(window).on('popstate.pjax', onPjaxPopstate)
783783
}
784784

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

805-
$(window).unbind('popstate.pjax', onPjaxPopstate)
805+
$(window).off('popstate.pjax', onPjaxPopstate)
806806
}
807807

808808

0 commit comments

Comments
 (0)