lib/assets/javascript/init.js.coffee in initjs-1.0.0 vs lib/assets/javascript/init.js.coffee in initjs-1.0.1

- old
+ new

@@ -11,11 +11,11 @@ appName: -> appName = $("#init-js").data('app-name') || "App" window.App = window[appName] if window.App is undefined - console.log "Initjs: #{appName} is not defined. Run `rails generate initjs` for generates the app file." + console.log "Initjs: #{appName} is not defined. Run `rails generate initjs` to generate the app file." exec: (controllerClass, controllerName, action) -> namespace = App if controllerClass railsNamespace = controllerClass.split("::").slice(0, -1) @@ -34,10 +34,10 @@ this.appName() 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.execFilter('initPage') # If you are using the Turbolinks and you need to run a code only once. window.Initjs.initialize() unless window.Turbolinks is undefined $(document).bind "page:change", -> window.Initjs.initialize()