Folding markers.
authorDavid Schoonover <dsc@wikimedia.org>
Wed, 20 Jun 2012 05:59:21 +0000 (22:59 -0700)
committerDavid Schoonover <dsc@wikimedia.org>
Wed, 20 Jun 2012 05:59:21 +0000 (22:59 -0700)
lib/base/base-view.co
lib/graph/graph-model.co

index 92fc250..21c1cbc 100644 (file)
@@ -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()
index 133ee90..cd8503d 100644 (file)
@@ -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) ->