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
d3f10ab6
authored
2012-07-30 18:12:31 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Set an empty object for default formatters configuration.
1 parent
751de7b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/rivets.coffee
src/rivets.coffee
View file @
d3f10ab
...
...
@@ -32,7 +32,7 @@ class Rivets.Binding
for
formatter
in
@
formatters
args
=
formatter
.
split
/\s+/
id
=
args
.
shift
()
value
=
if
Rivets
.
config
.
formatters
&&
Rivets
.
config
.
formatters
[
id
]
value
=
if
Rivets
.
config
.
formatters
[
id
]
Rivets
.
config
.
formatters
[
id
]
value
,
args
...
else
@
model
[
id
]
value
,
args
...
...
...
@@ -194,6 +194,7 @@ Rivets.routines =
# Default configuration.
Rivets
.
config
=
preloadData
:
true
formatters
:
{}
# The rivets module. This is the public interface that gets exported.
rivets
=
...
...
Please
register
or
sign in
to post a comment