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
8af3c617
authored
2013-06-23 18:23:57 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Implement a custom update callback for the each-* binder. [Closes #183]
1 parent
966fa1ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
8af3c61
...
...
@@ -487,6 +487,14 @@ Rivets.binders =
else
if
@
iterated
[
index
].
models
[
modelName
]
isnt
model
@
iterated
[
index
].
update
data
update
:
(
models
)
->
data
=
{}
for
key
,
model
of
models
data
[
key
]
=
model
unless
key
is
@
args
[
0
]
view
.
update
data
for
view
in
@
iterated
"class-*"
:
(
el
,
value
)
->
elClass
=
"
#{
el
.
className
}
"
...
...
Please
register
or
sign in
to post a comment