Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Commit

Permalink
Bootsy now supports Turbolinks 5 and up
Browse files Browse the repository at this point in the history
  • Loading branch information
volmer committed Oct 10, 2016
1 parent f694a5a commit 5dffd7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Bootsy Changelog

## master

* Bootsy now supports Turbolinks 5 and up.

## 2.3.0

* Bootsy no longer depends on Remotipart.
Expand Down
4 changes: 1 addition & 3 deletions app/assets/javascripts/bootsy/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ $(function() {
Bootsy.init();

/* Reload Bootsy on page load when using Turbolinks. */
if (window.Turbolinks) {
$(document).on('page:load', Bootsy.init);
}
document.addEventListener('turbolinks:load', Bootsy.init);
});
});

0 comments on commit 5dffd7a

Please sign in to comment.