- ### Subviews
+ ### Subviews {{{
setParent: (parent) ->
[old_parent, @parent] = [@parent, parent]
- ### UI Utilities
+ ### }}}
+ ### DOM Utilities {{{
attach: (el) ->
# @undelegateEvents()
return bp.eq 0 if bp.length
-
- ### Rendering Chain
+ ### }}}
+ ### Rendering Chain {{{
toTemplateLocals: ->
@model.toJSON()
@trigger 'init', this
+
+ ### Loading {{{
+
load: (opts={}) ->
return this if (@loading or @ready) and not opts.force
console.log "#this.load()..."
@trigger 'change', this, @dataset, 'data'
- ### Accessors
+ ### }}}
+ ### Accessors {{{
get: (key) ->
if _.startsWith key, 'options.'
dates : [ dates[last_year], dates[latest] ]
value : [ data[last_year], data[latest], data[latest] - data[last_year] ]
-
+ ### }}}
### Chart Option Accessors {{{
hasOption: (key) ->