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
b23347ae
authored
2012-11-20 18:13:19 -0800
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Build 0.4.4.
1 parent
22fbb3cd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
7 deletions
component.json
lib/rivets.js
lib/rivets.min.js
package.json
src/rivets.coffee
component.json
View file @
b23347a
...
...
@@ -2,7 +2,7 @@
"name"
:
"rivets"
,
"repo"
:
"mikeric/rivets"
,
"description"
:
"Declarative data binding facility."
,
"version"
:
"0.4.
3
"
,
"version"
:
"0.4.
4
"
,
"keywords"
:
[
"data binding"
,
"template"
],
"scripts"
:
[
"lib/rivets.js"
],
"main"
:
"lib/rivets.js"
,
...
...
lib/rivets.js
View file @
b23347a
// rivets.js
// version: 0.4.
3
// version: 0.4.
4
// author: Michael Richards
// license: MIT
(
function
()
{
...
...
@@ -135,7 +135,7 @@
};
Binding
.
prototype
.
unbind
=
function
()
{
var
keypath
,
_i
,
_len
,
_ref
,
_ref1
,
_ref2
,
_results
;
var
dependency
,
keypath
,
model
,
_i
,
_len
,
_ref
,
_ref1
,
_ref2
,
_results
;
if
((
_ref
=
this
.
binder
.
unbind
)
!=
null
)
{
_ref
.
call
(
this
,
this
.
el
);
}
...
...
@@ -146,8 +146,16 @@
_ref2
=
this
.
options
.
dependencies
;
_results
=
[];
for
(
_i
=
0
,
_len
=
_ref2
.
length
;
_i
<
_len
;
_i
++
)
{
keypath
=
_ref2
[
_i
];
_results
.
push
(
Rivets
.
config
.
adapter
.
unsubscribe
(
this
.
model
,
keypath
,
this
.
sync
));
dependency
=
_ref2
[
_i
];
if
(
/^
\.
/
.
test
(
dependency
))
{
model
=
this
.
model
;
keypath
=
dependency
.
substr
(
1
);
}
else
{
dependency
=
dependency
.
split
(
'.'
);
model
=
this
.
view
.
models
[
dependency
.
shift
()];
keypath
=
dependency
.
join
(
'.'
);
}
_results
.
push
(
Rivets
.
config
.
adapter
.
unsubscribe
(
model
,
keypath
,
this
.
sync
));
}
return
_results
;
}
...
...
lib/rivets.min.js
View file @
b23347a
This diff is collapsed.
Click to expand it.
package.json
View file @
b23347a
{
"name"
:
"rivets"
,
"description"
:
"Declarative data binding facility."
,
"version"
:
"0.4.
3
"
,
"version"
:
"0.4.
4
"
,
"author"
:
"Michael Richards"
,
"url"
:
"http://rivetsjs.com"
,
"main"
:
"./lib/rivets.js"
,
...
...
src/rivets.coffee
View file @
b23347a
# rivets.js
# version : 0.4.
3
# version : 0.4.
4
# author : Michael Richards
# license : MIT
...
...
Please
register
or
sign in
to post a comment