Skip to content

Commit

Permalink
fix: Uncaught TypeError: $ is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
camsong committed Jul 25, 2016
1 parent 2871055 commit 173f9e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions page.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
$(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');

return document.dispatchEvent(e);
});

0 comments on commit 173f9e5

Please sign in to comment.