ではありません。Turbolinks.enableTransitionCache私はturbolinks 5とレール5.1アプリで次の操作を実行しようとしている機能
$(document).on 'turbolinks:load', ->
REFRESH_INTERVAL_IN_MILLIS = 5000
if $('.f-pending-message').length > 0
setTimeout (->
Turbolinks.enableTransitionCache(true)
Turbolinks.visit location.toString()
Turbolinks.enableTransitionCache(false)
return
), REFRESH_INTERVAL_IN_MILLIS
しかし、私は得ることに保つ:
TypeError: Turbolinks.enableTransitionCache is not a function. (In 'Turbolinks.enableTransitionCache()', 'Turbolinks.enableTransitionCache' is undefined)
私は何間違っている?