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
233c0024
authored
2012-07-08 23:23:09 +0200
by
Nicklas Ansman Giertz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Allow binding to the root element
1 parent
96223e87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/rivets.coffee
src/rivets.coffee
View file @
233c002
...
...
@@ -61,8 +61,10 @@ class Rivets.View
build
:
=>
@
bindings
=
[]
bindingRegExp
=
@
bindingRegExp
()
elements
=
[
@
el
]
elements
.
concat
Array
::
slice
.
call
@
el
.
getElementsByTagName
'*'
for
node
in
@
el
.
getElementsByTagName
'*'
for
node
in
elements
for
attribute
in
node
.
attributes
if
bindingRegExp
.
test
attribute
.
name
type
=
attribute
.
name
.
replace
bindingRegExp
,
''
...
...
Please
register
or
sign in
to post a comment