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
b547428b
authored
2013-07-02 13:24:58 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Build 0.5.11.
1 parent
d6b618c2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
component.json
dist/rivets.js
dist/rivets.min.js
package.json
src/rivets.coffee
component.json
View file @
b547428
...
...
@@ -2,7 +2,7 @@
"name"
:
"rivets"
,
"repo"
:
"mikeric/rivets"
,
"description"
:
"Declarative data binding facility."
,
"version"
:
"0.5.1
0
"
,
"version"
:
"0.5.1
1
"
,
"keywords"
:
[
"data binding"
,
"templating"
],
"scripts"
:
[
"dist/rivets.js"
],
"main"
:
"dist/rivets.js"
,
...
...
dist/rivets.js
View file @
b547428
// Rivets.js
// version: 0.5.1
0
// version: 0.5.1
1
// author: Michael Richards
// license: MIT
(
function
()
{
...
...
@@ -236,7 +236,7 @@
ComponentBinding
.
prototype
.
sync
=
function
()
{};
ComponentBinding
.
prototype
.
locals
=
function
(
models
)
{
var
inverse
,
key
,
model
,
result
,
_ref
,
_ref1
;
var
inverse
,
key
,
model
,
path
,
result
,
_i
,
_len
,
_ref
,
_ref1
,
_ref2
;
if
(
models
==
null
)
{
models
=
this
.
view
.
models
;
...
...
@@ -245,11 +245,15 @@
_ref
=
this
.
inflections
;
for
(
key
in
_ref
)
{
inverse
=
_ref
[
key
];
result
[
key
]
=
models
[
inverse
];
_ref1
=
inverse
.
split
(
'.'
);
for
(
_i
=
0
,
_len
=
_ref1
.
length
;
_i
<
_len
;
_i
++
)
{
path
=
_ref1
[
_i
];
result
[
key
]
=
(
result
[
key
]
||
models
)[
path
];
}
}
for
(
key
in
models
)
{
model
=
models
[
key
];
if
((
_ref
1
=
result
[
key
])
==
null
)
{
if
((
_ref
2
=
result
[
key
])
==
null
)
{
result
[
key
]
=
model
;
}
}
...
...
dist/rivets.min.js
View file @
b547428
This diff is collapsed.
Click to expand it.
package.json
View file @
b547428
{
"name"
:
"rivets"
,
"description"
:
"Declarative data binding facility."
,
"version"
:
"0.5.1
0
"
,
"version"
:
"0.5.1
1
"
,
"author"
:
"Michael Richards"
,
"url"
:
"http://rivetsjs.com"
,
"main"
:
"./dist/rivets.js"
,
...
...
src/rivets.coffee
View file @
b547428
# Rivets.js
# =========
# > version: 0.5.1
0
# > version: 0.5.1
1
# > author: Michael Richards
# > license: MIT
# >
...
...
Please
register
or
sign in
to post a comment