Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Initialize Marionette Application. #1

Merged
merged 2 commits into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
3  app/assets/javascripts/application.js
@@ -14,11 +14,10 @@
//= require jquery_ujs
//= require underscore
//= require backbone
-//= require poker
+//= require backbone.marionette
//= require_tree ../templates
//= require_tree ./models
//= require_tree ./collections
//= require_tree ./views
//= require_tree ./routers
//= require_tree .
-//= require backbone.marionette
View
17 app/assets/javascripts/poker.js.coffee
@@ -1,9 +1,12 @@
-window.Poker =
- Models: {}
- Collections: {}
- Views: {}
- Routers: {}
- initialize: ->
+window.Poker = new Backbone.Marionette.Application
+
+Poker.Models = {}
+Poker.Collections = {}
+Poker.Views = {}
+Poker.Routers = {}
+
+Poker.addInitializer ->
+ alert 'It works'
$(document).ready ->
- Poker.initialize()
+ Poker.start()
Something went wrong with that request. Please try again.