74db87eb by Patrick Gibson Committed by Michael Richards

Firefox doesn't support the .innerText property on DOM elements; instead it uses .textContent. o_O

This addresses #6.
1 parent d7ff4ea0
......@@ -104,7 +104,10 @@ Rivets.routines =
enabled:
stateBinding 'disabled', true
text: (el, value) ->
if el.innerText?
el.innerText = value or ''
else
el.textContent = value or ''
html: (el, value) ->
el.innerHTML = value or ''
value: (el, value) ->
......