6b45002c by Michael Richards

Merge branch 'master' into event-handler-configuration

2 parents a2234cde c22a01d8
...@@ -368,13 +368,14 @@ Rivets.binders = ...@@ -368,13 +368,14 @@ Rivets.binders =
368 block: true 368 block: true
369 369
370 bind: (el) -> 370 bind: (el) ->
371 attr = ['data', @view.config.prefix, @type].join('-').replace '--', '-' 371 unless @marker?
372 @marker = document.createComment " rivets: #{@type} " 372 attr = ['data', @view.config.prefix, @type].join('-').replace '--', '-'
373 @iterated = [] 373 @marker = document.createComment " rivets: #{@type} "
374 374 @iterated = []
375 el.removeAttribute attr 375
376 el.parentNode.insertBefore @marker, el 376 el.removeAttribute attr
377 el.parentNode.removeChild el 377 el.parentNode.insertBefore @marker, el
378 el.parentNode.removeChild el
378 379
379 unbind: (el) -> 380 unbind: (el) ->
380 view.unbind() for view in @iterated if @iterated? 381 view.unbind() for view in @iterated if @iterated?
......