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
830f1423
authored
2013-10-23 21:24:05 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Favor the use of textContent over innerText for the text binder.
1 parent
b6deb70c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/binders.coffee
src/binders.coffee
View file @
830f142
...
...
@@ -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
...
...
Please
register
or
sign in
to post a comment