8d1c2701 by Michael Richards

Implement update functions for both if and unless binders. [#183]

1 parent 63c60ac6
......@@ -408,6 +408,9 @@ Rivets.binders =
@nested.unbind()
delete @nested
update: (models) ->
@nested.update models
unless:
block: true
......@@ -420,6 +423,9 @@ Rivets.binders =
routine: (el, value) ->
Rivets.binders.if.routine.call @, el, not value
update: (models) ->
Rivets.binders.if.update.call @, models
"on-*":
function: true
......