Last active
December 16, 2015 06:58
-
-
Save cpjobling/5394923 to your computer and use it in GitHub Desktop.
Backbone on rails initializer. Extracted from the JavaScript generated from app_name.js.coffee thatw as generated by running the `backbone-on-rails` command bundle exec rails g backbone:install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| window.Pselectr = { | |
| Models: {}, | |
| Collections: {}, | |
| Views: {}, | |
| Routers: {}, | |
| init: function() { | |
| alert('Hello from Backbone') | |
| } | |
| }; | |
| $(document).ready(function() { | |
| return Pselectr.init(); | |
| }); | |
| }).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment