90341ef8 by Michael Richards

Perform iterator clearing after the build. Remove the iterator binding declarati…

…on from the node to prevent stack overflow.
1 parent e4d21fdb
......@@ -132,8 +132,6 @@ class Rivets.View
iterator = [attribute]
for attribute in iterator or node.attributes
iterator = null
if bindingRegExp.test attribute.name
options = {}
......@@ -164,6 +162,10 @@ class Rivets.View
@bindings.push binding
if iterator
node.removeAttribute(a.name) for a in iterator
iterator = null
for el in @els
parseNode el
parseNode node for node in el.getElementsByTagName '*'
......