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
66b0b378
authored
2012-11-17 12:36:01 -0800
by
Mariano Benedettini
Committed by
Michael Richards
2012-11-17 12:42:43 -0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add condition that only parses nodes which have an attributes property (not comment nodes).
1 parent
19d6db6b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/rivets.coffee
src/rivets.coffee
View file @
66b0b37
...
...
@@ -133,7 +133,7 @@ class Rivets.View
skipNodes
=
[]
bindingRegExp
=
@
bindingRegExp
()
parse
Node
=
(
node
)
=>
parse
=
(
node
)
=>
unless
node
in
skipNodes
for
attribute
in
node
.
attributes
if
bindingRegExp
.
test
attribute
.
name
...
...
@@ -183,8 +183,8 @@ class Rivets.View
return
for
el
in
@
els
parse
Node
el
parse
Node
node
for
node
in
el
.
getElementsByTagName
'*'
parse
el
parse
node
for
node
in
el
.
getElementsByTagName
'*'
when
node
.
attributes
?
return
...
...
Please
register
or
sign in
to post a comment