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
8d1c2701
authored
2013-06-23 20:07:37 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Implement update functions for both if and unless binders. [#183]
1 parent
63c60ac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
8d1c270
...
...
@@ -408,6 +408,9 @@ Rivets.binders =
@
nested
.
unbind
()
delete
@
nested
update
:
(
models
)
->
@
nested
.
update
models
unless
:
block
:
true
...
...
@@ -420,6 +423,9 @@ Rivets.binders =
routine
:
(
el
,
value
)
->
Rivets
.
binders
.
if
.
routine
.
call
@
,
el
,
not
value
update
:
(
models
)
->
Rivets
.
binders
.
if
.
update
.
call
@
,
models
"on-*"
:
function
:
true
...
...
Please
register
or
sign in
to post a comment