Skip to content

Commit 1f9d644

Browse files
committed
Replace the bind() and unbind() aliases for the on() and off() functions.
This is done in order to leverage jquery custom builds without the event-alias module
1 parent 12a167b commit 1f9d644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.pjax.js

Lines changed: 2 additions & 2 deletions
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)