6905577b by Michael Richards

Add code comments for Rivets.View::build.

1 parent abeca6f2
...@@ -128,6 +128,9 @@ class Rivets.View ...@@ -128,6 +128,9 @@ class Rivets.View
128 prefix = Rivets.config.prefix 128 prefix = Rivets.config.prefix
129 if prefix then new RegExp("^data-#{prefix}-") else /^data-/ 129 if prefix then new RegExp("^data-#{prefix}-") else /^data-/
130 130
131 # Parses the DOM tree and builds Rivets.Binding instances for every matched
132 # binding declaration. Subsequent calls to build will replace the previous
133 # Rivets.Binding instances with new ones, so be sure to unbind them first.
131 build: => 134 build: =>
132 @bindings = [] 135 @bindings = []
133 skipNodes = [] 136 skipNodes = []
......