From: David Schoonover Date: Wed, 20 Jun 2012 05:59:21 +0000 (-0700) Subject: Folding markers. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=03d171875d2a302bbc252f7606f1e161a91c0418;p=kraken-ui.git Folding markers. --- diff --git a/lib/base/base-view.co b/lib/base/base-view.co index 92fc250..21c1cbc 100644 --- a/lib/base/base-view.co +++ b/lib/base/base-view.co @@ -78,7 +78,7 @@ BaseView = exports.BaseView = Backbone.View.extend mixinBase do # {{{ - ### Subviews + ### Subviews {{{ setParent: (parent) -> [old_parent, @parent] = [@parent, parent] @@ -117,7 +117,8 @@ BaseView = exports.BaseView = Backbone.View.extend mixinBase do # {{{ - ### UI Utilities + ### }}} + ### DOM Utilities {{{ attach: (el) -> # @undelegateEvents() @@ -189,8 +190,8 @@ BaseView = exports.BaseView = Backbone.View.extend mixinBase do # {{{ return bp.eq 0 if bp.length - - ### Rendering Chain + ### }}} + ### Rendering Chain {{{ toTemplateLocals: -> @model.toJSON() diff --git a/lib/graph/graph-model.co b/lib/graph/graph-model.co index 133ee90..cd8503d 100644 --- a/lib/graph/graph-model.co +++ b/lib/graph/graph-model.co @@ -108,6 +108,9 @@ Graph = exports.Graph = BaseModel.extend do # {{{ @trigger 'init', this + + ### Loading {{{ + load: (opts={}) -> return this if (@loading or @ready) and not opts.force console.log "#this.load()..." @@ -193,7 +196,8 @@ Graph = exports.Graph = BaseModel.extend do # {{{ @trigger 'change', this, @dataset, 'data' - ### Accessors + ### }}} + ### Accessors {{{ get: (key) -> if _.startsWith key, 'options.' @@ -269,7 +273,7 @@ Graph = exports.Graph = BaseModel.extend do # {{{ dates : [ dates[last_year], dates[latest] ] value : [ data[last_year], data[latest], data[latest] - data[last_year] ] - + ### }}} ### Chart Option Accessors {{{ hasOption: (key) ->