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
c4816f9a
authored
2013-03-25 21:04:39 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Pass the @options.bindContext into functions that are evaluated during
Binding::set.
1 parent
724b6640
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/rivets.coffee
src/rivets.coffee
View file @
c4816f9
...
...
@@ -55,7 +55,7 @@ class Rivets.Binding
# with the suplied value formatted.
set
:
(
value
)
=>
value
=
if
value
instanceof
Function
and
!
@
binder
.
function
@
formattedValue
value
.
call
@
model
@
formattedValue
value
.
call
@
model
,
@
options
.
bindContext
else
@
formattedValue
value
...
...
Please
register
or
sign in
to post a comment