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
26f5b88f
authored
2012-07-15 16:46:41 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Apply some small tweaks to Rivets.Binding::unbind.
1 parent
82156981
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/rivets.coffee
src/rivets.coffee
View file @
26f5b88
...
...
@@ -49,11 +49,11 @@ class Rivets.Binding
el
=
e
.
target
or
e
.
srcElement
Rivets
.
config
.
adapter
.
publish
@
model
,
@
keypath
,
getInputValue
el
# Unsubscribes from the model and the element
# Unsubscribes from the model and the element
.
unbind
:
=>
Rivets
.
config
.
adapter
.
unsubscribe
@
model
,
@
keypath
,
@
set
if
@
type
in
bidirectionals
if
@
bindType
is
"bidirectional"
@
el
.
removeEventListener
'change'
,
@
publish
# A collection of bindings for a parent element.
...
...
Please
register
or
sign in
to post a comment