Loop over a frozen array of childNodes (we may mutate node.childNodes in the nex…
…t loop which would cause issues).
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -87,7 +87,7 @@ class Rivets.View | ... | @@ -87,7 +87,7 @@ class Rivets.View |
87 | type = attribute.name.replace bindingRegExp, '' | 87 | type = attribute.name.replace bindingRegExp, '' |
88 | buildBinding 'Binding', node, type, attribute.value | 88 | buildBinding 'Binding', node, type, attribute.value |
89 | 89 | ||
90 | parse childNode for childNode in node.childNodes | 90 | parse childNode for childNode in (n for n in node.childNodes) |
91 | 91 | ||
92 | parse el for el in @els | 92 | parse el for el in @els |
93 | 93 | ... | ... |
-
Please register or sign in to post a comment