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
234028e6
authored
2013-08-04 17:30:38 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Don't assume that the model always exists on the binding when applying formatters to a value.
1 parent
ceab081c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/bindings.coffee
src/bindings.coffee
View file @
234028e
...
...
@@ -42,7 +42,7 @@ class Rivets.Binding
args
=
formatter
.
split
/\s+/
id
=
args
.
shift
()
formatter
=
if
@
model
[
id
]
instanceof
Function
formatter
=
if
@
model
?
[
id
]
instanceof
Function
@
model
[
id
]
else
@
view
.
formatters
[
id
]
...
...
Please
register
or
sign in
to post a comment