 # unchecked (two-way binder).
 Rivets.public.binders.unchecked =
   publishes: true
+  priority: 2000
+
   bind: (el) ->
     Rivets.Util.bindEvent el, 'change', @publish
+
   unbind: (el) ->
     Rivets.Util.unbindEvent el, 'change', @publish
+
   routine: (el, value) ->
     if el.type is 'radio'
       el.checked = el.value?.toString() isnt value?.toString()

# property when the input is checked or unchecked (two-way binder).
Rivets.public.binders.checked =
  publishes: true
  bind: (el) ->
    Rivets.Util.bindEvent el, 'change', @publish
  unbind: (el) ->
    Rivets.Util.unbindEvent el, 'change', @publish
  routine: (el, value) ->
    if el.type is 'radio'
      el.checked = el.value?.toString() is value?.toString()

# (two-way binder).
Rivets.public.binders.value =
  publishes: true
  priority: 2000

  bind: (el) ->
    @event = if el.tagName is 'SELECT' then 'change' else 'input'
