Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6905577b
authored
2012-11-17 17:19:37 -0800
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add code comments for Rivets.View::build.
1 parent
abeca6f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
6905577
...
...
@@ -128,6 +128,9 @@ class Rivets.View
prefix
=
Rivets
.
config
.
prefix
if
prefix
then
new
RegExp
(
"^data-
#{
prefix
}
-"
)
else
/^data-/
# Parses the DOM tree and builds Rivets.Binding instances for every matched
# binding declaration. Subsequent calls to build will replace the previous
# Rivets.Binding instances with new ones, so be sure to unbind them first.
build
:
=>
@
bindings
=
[]
skipNodes
=
[]
...
...
Please
register
or
sign in
to post a comment