431ef966 by Michael Richards

Merge branch 'avoid-return-values'

2 parents 8c37555a 0f4e78fa
......@@ -171,10 +171,12 @@ class Rivets.View
if iterator
node.removeAttribute(a.name) for a in iterator
iterator = null
return
for el in @els
parseNode el
parseNode node for node in el.getElementsByTagName '*'
return
# Binds all of the current bindings for this view.
bind: =>
......@@ -235,7 +237,7 @@ iterationBinding = (name) -> (el, collection, binding) ->
binding.marker = document.createComment " rivets: each-#{name} "
el.parentNode.insertBefore binding.marker, el
el.parentNode.removeChild el
binding.iterated = []
for item in collection
......@@ -308,6 +310,7 @@ rivets =
configure: (options={}) ->
for property, value of options
Rivets.config[property] = value
return
# Binds a set of model objects to a parent DOM element. Returns a Rivets.View
# instance.
......