Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
74db87eb
authored
2012-07-05 16:16:57 -0700
by
Patrick Gibson
Committed by
Michael Richards
2012-07-05 23:44:06 -0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Firefox doesn't support the .innerText property on DOM elements; instead it uses .textContent. o_O
This addresses #6.
1 parent
d7ff4ea0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
74db87e
...
...
@@ -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
)
->
...
...
Please
register
or
sign in
to post a comment