Skip to content

Commit

Permalink
make jquery.tocify.js compatible with jQuery > 3
Browse files Browse the repository at this point in the history
Solves the same issue reported here gfranko/jquery.tocify.js#103
  • Loading branch information
cpsievert committed Nov 19, 2019
1 parent 3954fb0 commit 222eb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/rmd/h/tocify/jquery.tocify.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
self._setEventHandlers();

// Binding to the Window load event to make sure the correct scrollTop is calculated
$(window).load(function() {
$(window).on("load", function() {

// Sets the active TOC item
self._setActiveElement(true);
Expand Down

0 comments on commit 222eb15

Please sign in to comment.