lib/generators/initjs/templates/app.js.coffee in initjs-0.1.0 vs lib/generators/initjs/templates/app.js.coffee in initjs-0.1.1

- old
+ new

@@ -1,7 +1,12 @@ App = window.App = Common: + initPage: -> + # If you're using the Turbolinks and you need run a code only one time, put something here. + # if you're not using the turbolinks, there's no difference between init and initPage. + init: -> - # Something here + # Something here. This is called in every page, with or without Turbolinks. + finish: -> - # Something here + # Something here. This is called in every page, with or without Turbolinks.