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
a85a0881
authored
2013-05-31 12:51:00 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Build 0.5.5.
1 parent
548a4ea6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
8 deletions
component.json
dist/rivets.js
dist/rivets.min.js
package.json
src/rivets.coffee
component.json
View file @
a85a088
...
...
@@ -2,7 +2,7 @@
"name"
:
"rivets"
,
"repo"
:
"mikeric/rivets"
,
"description"
:
"Declarative data binding facility."
,
"version"
:
"0.5.
4
"
,
"version"
:
"0.5.
5
"
,
"keywords"
:
[
"data binding"
,
"templating"
],
"scripts"
:
[
"dist/rivets.js"
],
"main"
:
"dist/rivets.js"
,
...
...
dist/rivets.js
View file @
a85a088
// Rivets.js
// version: 0.5.
4
// version: 0.5.
5
// author: Michael Richards
// license: MIT
(
function
()
{
...
...
@@ -630,7 +630,7 @@
}
},
routine
:
function
(
el
,
collection
)
{
var
data
,
i
,
index
,
k
,
key
,
model
,
modelName
,
options
,
previous
,
template
,
v
,
view
,
_i
,
_j
,
_len
,
_len1
,
_ref
,
_ref1
,
_ref2
,
_results
;
var
data
,
i
,
index
,
k
,
key
,
model
,
modelName
,
options
,
previous
,
template
,
v
,
view
,
_i
,
_j
,
_len
,
_len1
,
_ref
,
_ref1
,
_ref2
,
_re
f3
,
_re
sults
;
modelName
=
this
.
args
[
0
];
collection
=
collection
||
[];
...
...
@@ -652,17 +652,19 @@
_ref1
=
this
.
view
.
models
;
for
(
key
in
_ref1
)
{
model
=
_ref1
[
key
];
if
((
_ref2
=
data
[
key
])
==
null
)
{
data
[
key
]
=
model
;
}
}
previous
=
this
.
iterated
.
length
?
this
.
iterated
[
this
.
iterated
.
length
-
1
].
els
[
0
]
:
this
.
marker
;
options
=
{
binders
:
this
.
view
.
options
.
binders
,
formatters
:
this
.
view
.
options
.
formatters
,
config
:
{}
};
_ref
2
=
this
.
view
.
options
.
config
;
for
(
k
in
_ref
2
)
{
v
=
_ref
2
[
k
];
_ref
3
=
this
.
view
.
options
.
config
;
for
(
k
in
_ref
3
)
{
v
=
_ref
3
[
k
];
options
.
config
[
k
]
=
v
;
}
options
.
config
.
preloadData
=
true
;
...
...
dist/rivets.min.js
View file @
a85a088
This diff is collapsed.
Click to expand it.
package.json
View file @
a85a088
{
"name"
:
"rivets"
,
"description"
:
"Declarative data binding facility."
,
"version"
:
"0.5.
4
"
,
"version"
:
"0.5.
5
"
,
"author"
:
"Michael Richards"
,
"url"
:
"http://rivetsjs.com"
,
"main"
:
"./dist/rivets.js"
,
...
...
src/rivets.coffee
View file @
a85a088
# Rivets.js
# =========
# > version: 0.5.
4
# > version: 0.5.
5
# > author: Michael Richards
# > license: MIT
# >
...
...
Please
register
or
sign in
to post a comment