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
8dabc199
authored
2012-07-25 14:21:02 +1000
by
Paul Jones
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Don't fail if Rivets.config.formatters isn't set
1 parent
5b6f9ed2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/rivets.coffee
src/rivets.coffee
View file @
8dabc19
...
...
@@ -26,7 +26,10 @@ class Rivets.Binding
for
formatter
in
@
formatters
args
=
formatter
.
split
/\s+/
id
=
args
.
shift
()
value
=
(
Rivets
.
config
.
formatters
[
id
]
||
@
model
[
id
])
value
,
args
...
value
=
if
Rivets
.
config
.
formatters
&&
Rivets
.
config
.
formatters
[
id
]
Rivets
.
config
.
formatters
[
id
]
value
,
args
...
else
@
model
[
id
]
value
,
args
...
value
...
...
Please
register
or
sign in
to post a comment