     else
       el.checked = !value
 
+# Sets the element's value. Also sets the model property when the input changes
+# (two-way binder).
 Rivets.binders.value =
   publishes: true
   bind: (el) ->

    else
      elClass.replace(" #{@args[0]} ", ' ').trim()

Rivets.binders['*'] = (el, value) ->
  if value
    el.setAttribute @type, value

      else if value?.toString() isnt el.value?.toString()
        el.value = if value? then value else ''

# Inserts and binds the element and it's child nodes into the DOM when true.
Rivets.binders.if =
  block: true

