Load js fragments in order, so that Subview is loaded before the classes that use it

This commit is contained in:
Calen Pennington
2012-07-18 09:00:44 -04:00
parent 5026d6e9fb
commit 987fe17358
3 changed files with 10 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
class @Subview
constructor: (options) ->
$.each options, (key, value) =>
@[key] = value
@initialize()
@render()
@bind()
$: (selector) ->
$(selector, @el)
initialize: ->
render: ->
bind: ->