Skip to content

@MikeSilvis /gist:2839845
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
index.js.coffee
class App extends Spine.Controller
constructor: ->
super
new Spine.SubStack
Spine.Route.setup()
@append(@rooms = new App.Rooms)
@append(@messages = new App.Messages)
class App.Root extends Spine.Stack
controllers:
messages: App.Messages
rooms: App.Rooms
routes:
'/messages' : 'messages'
'/rooms' : 'rooms'
default: 'messages'
className: 'stack rooms'
class Spine.SubStack extends Spine.Stack
constructor: ->
console.log "HERE"
for key,value of @routes
do (key,value) =>
@routes[key] = =>
@active()
@[value].active(arguments...)
super
window.App = App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.