Skip to content

Commit

Permalink
Merge pull request #101 from akoeplinger/fix-pjax
Browse files Browse the repository at this point in the history
Don't use jQuery for registering pjax event in injectedcode.js
  • Loading branch information
dpoeschl authored Aug 4, 2016
2 parents 9af8bdb + d9ccf67 commit 8504abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/injectedcode.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$(document).on('pjax:end', function () {
document.addEventListener('pjax:end', function () {
// Duplicate the event with a slightly different name
var e = document.createEvent('Events');
e.initEvent('_pjax:end', !'bubbles', !'cancelable');
Expand Down

0 comments on commit 8504abd

Please sign in to comment.