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
2a5c9d9d
authored
2013-09-29 13:46:51 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Only look for formatters on the view's formatters object, not the target object. [Regresses #38]
1 parent
fbedeaab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
src/bindings.coffee
src/bindings.coffee
View file @
2a5c9d9
...
...
@@ -63,11 +63,7 @@ class Rivets.Binding
for
formatter
in
@
formatters
args
=
formatter
.
split
/\s+/
id
=
args
.
shift
()
formatter
=
if
@
model
?
[
id
]
instanceof
Function
@
model
[
id
]
else
@
view
.
formatters
[
id
]
formatter
=
@
view
.
formatters
[
id
]
if
formatter
?
.
read
instanceof
Function
value
=
formatter
.
read
value
,
args
...
...
...
Please
register
or
sign in
to post a comment