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
bc1446d8
authored
2012-09-04 14:01:14 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Build 0.3.7.
1 parent
afa5712f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
lib/rivets.js
lib/rivets.min.js
package.json
src/rivets.coffee
lib/rivets.js
View file @
bc1446d
// rivets.js
// version: 0.3.
6
// version: 0.3.
7
// author: Michael Richards
// license: MIT
(
function
()
{
...
...
@@ -91,7 +91,7 @@
};
Binding
.
prototype
.
bind
=
function
()
{
var
keypath
,
_i
,
_len
,
_ref
,
_ref1
;
var
dependency
,
keypath
,
model
,
_i
,
_len
,
_ref
,
_ref1
;
if
(
this
.
options
.
bypass
)
{
this
.
sync
();
}
else
{
...
...
@@ -103,8 +103,16 @@
if
((
_ref
=
this
.
options
.
dependencies
)
!=
null
?
_ref
.
length
:
void
0
)
{
_ref1
=
this
.
options
.
dependencies
;
for
(
_i
=
0
,
_len
=
_ref1
.
length
;
_i
<
_len
;
_i
++
)
{
keypath
=
_ref1
[
_i
];
Rivets
.
config
.
adapter
.
subscribe
(
this
.
model
,
keypath
,
this
.
sync
);
dependency
=
_ref1
[
_i
];
if
(
/^
\.
/
.
test
(
dependency
))
{
model
=
this
.
model
;
keypath
=
dependency
.
substr
(
1
);
}
else
{
dependency
=
dependency
.
split
(
'.'
);
model
=
this
.
view
.
models
[
dependency
.
shift
()];
keypath
=
dependency
.
join
(
'.'
);
}
Rivets
.
config
.
adapter
.
subscribe
(
model
,
keypath
,
this
.
sync
);
}
}
if
(
this
.
isBidirectional
())
{
...
...
lib/rivets.min.js
View file @
bc1446d
This diff is collapsed.
Click to expand it.
package.json
View file @
bc1446d
{
"name"
:
"rivets"
,
"description"
:
"Declarative data binding facility."
,
"version"
:
"0.3.
6
"
,
"version"
:
"0.3.
7
"
,
"author"
:
"Michael Richards"
,
"url"
:
"http://rivetsjs.com"
,
"main"
:
"./lib/rivets.js"
,
...
...
src/rivets.coffee
View file @
bc1446d
# rivets.js
# version : 0.3.
6
# version : 0.3.
7
# author : Michael Richards
# license : MIT
...
...
Please
register
or
sign in
to post a comment