Add code comments for Rivets.View::build.
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -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 = [] | ... | ... |
-
Please register or sign in to post a comment