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
94ecb4ea
authored
11 years ago
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
No longer need Rivets.Binding::setObserver.
1 parent
e7c2fedb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
src/bindings.coffee
src/bindings.coffee
View file @
94ecb4e
...
...
@@ -25,10 +25,6 @@ class Rivets.Binding
@
binder
or=
@
view
.
binders
[
'*'
]
@
binder
=
{
routine
:
@
binder
}
if
@
binder
instanceof
Function
# Sets a keypath observer that will notify this binding when any intermediary
# keys are changed.
setObserver
:
=>
# Applies all the current formatters to the supplied value and returns the
# formatted value.
formattedValue
:
(
value
)
=>
...
...
@@ -165,7 +161,6 @@ class Rivets.TextBinding extends Rivets.Binding
constructor
:
(
@
view
,
@
el
,
@
type
,
@
keypath
,
@
options
=
{})
->
@
formatters
=
@
options
.
formatters
||
[]
@
dependencies
=
[]
@
setObserver
()
# A standard routine binder used for text node bindings.
binder
:
...
...
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment