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
43448dbf
authored
2013-09-30 13:48:58 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update Rivets.Binding::setObserver to work with the new KeypathObserver implementation.
1 parent
b85fcd39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/bindings.coffee
src/bindings.coffee
View file @
43448db
...
...
@@ -26,9 +26,9 @@ class Rivets.Binding
@
binder
=
{
routine
:
@
binder
}
if
@
binder
instanceof
Function
setObserver
:
=>
@
observer
=
new
KeypathObserver
@
view
,
@
view
.
models
,
@
keypath
,
(
target
)
=>
@
observer
=
new
KeypathObserver
@
view
,
@
view
.
models
,
@
keypath
,
(
obs
)
=>
@
unbind
true
if
@
key
@
model
=
target
@
model
=
obs
.
target
@
bind
true
if
@
key
@
sync
()
...
...
Please
register
or
sign in
to post a comment