lib/assets/javascript/init.js.coffee in initjs-0.1.0 vs lib/assets/javascript/init.js.coffee in initjs-0.1.1
- old
+ new
@@ -27,9 +27,10 @@
execFilter: (filterName) ->
if App.Common and typeof App.Common[filterName] == 'function'
App.Common[filterName]()
jQuery ->
+ window.Initjs.execFilter('initPage') # If you are using the Turbolinks and you need run a code only one time.
window.Initjs.initialize()
unless window.Turbolinks is undefined
document.addEventListener "page:change", ->
window.Initjs.initialize()