830f1423 by Michael Richards

Favor the use of textContent over innerText for the text binder.

1 parent b6deb70c
......@@ -57,10 +57,10 @@ Rivets.binders.value =
el.value = if value? then value else ''
Rivets.binders.text = (el, value) ->
if el.innerText?
el.innerText = if value? then value else ''
else
if el.textContent?
el.textContent = if value? then value else ''
else
el.innerText = if value? then value else ''
Rivets.binders.if =
block: true
......