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 = ...@@ -104,7 +104,10 @@ Rivets.routines =
104 enabled: 104 enabled:
105 stateBinding 'disabled', true 105 stateBinding 'disabled', true
106 text: (el, value) -> 106 text: (el, value) ->
107 el.innerText = value or '' 107 if el.innerText?
108 el.innerText = value or ''
109 else
110 el.textContent = value or ''
108 html: (el, value) -> 111 html: (el, value) ->
109 el.innerHTML = value or '' 112 el.innerHTML = value or ''
110 value: (el, value) -> 113 value: (el, value) ->
......