-# Core binders that are included with Rivets.js.
-
+# Basic set of core binders that are included with Rivets.js.
+
+# Sets the element's text value.
 Rivets.binders.text = (el, value) ->
   if el.textContent?
     el.textContent = if value? then value else ''
   else
     el.innerText = if value? then value else ''
 
+# Sets the element's HTML content.
 Rivets.binders.html = (el, value) ->
   el.innerHTML = if value? then value else ''
 
+# Shows the element when value is true.
 Rivets.binders.show = (el, value) ->
   el.style.display = if value then '' else 'none'
 
+# Hides the element when value is true (negated version of `show` binder).
 Rivets.binders.hide = (el, value) ->
   el.style.display = if value then 'none' else ''
 
+# Enables the element when value is true.
 Rivets.binders.enabled = (el, value) ->
   el.disabled = !value
 
+# Disables the element when value is true (negated version of `enabled` binder).
 Rivets.binders.disabled = (el, value) ->
   el.disabled = !!value
 
+# Checks a checkbox or radio input when the value is true. Also sets the model
+# property when the input is checked or unchecked (two-way binder).
 Rivets.binders.checked =
   publishes: true
   bind: (el) ->

    Rivets.Util.unbindEvent el, @args[0], @handler if @handler
    Rivets.Util.bindEvent el, @args[0], @handler = @eventHandler value

Rivets.binders['each-*'] =
  block: true


      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

