Which line are you referring to?
This is the issue I'm solving: "With Turbolinks pages will change without a full reload, so you can't rely on DOMContentLoaded or jQuery.ready() to trigger your code. Instead Turbolinks fires events on document to provide hooks into the lifecycle of the page." - From the Turbolinks README