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
7938f1ee
authored
2012-10-06 13:12:56 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Build 0.3.11.
1 parent
cea33de8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
lib/rivets.js
lib/rivets.min.js
package.json
src/rivets.coffee
lib/rivets.js
View file @
7938f1e
// rivets.js
// version: 0.3.1
0
// version: 0.3.1
1
// author: Michael Richards
// license: MIT
(
function
()
{
...
...
@@ -422,7 +422,7 @@
iterationBinding
=
function
(
name
)
{
return
function
(
el
,
collection
,
binding
)
{
var
data
,
item
,
itemEl
,
iteration
,
m
,
n
,
previous
,
_i
,
_j
,
_len
,
_len1
,
_ref
,
_ref1
,
_results
;
var
data
,
item
,
itemEl
,
iteration
,
m
,
n
,
previous
,
_i
,
_j
,
_len
,
_len1
,
_ref
,
_ref1
,
_re
f2
,
_re
sults
;
if
(
binding
.
iterated
!=
null
)
{
_ref
=
binding
.
iterated
;
for
(
_i
=
0
,
_len
=
_ref
.
length
;
_i
<
_len
;
_i
++
)
{
...
...
@@ -448,7 +448,7 @@
data
[
name
]
=
item
;
itemEl
=
el
.
cloneNode
(
true
);
previous
=
binding
.
iterated
[
binding
.
iterated
.
length
-
1
]
||
binding
.
marker
;
binding
.
marker
.
parentNode
.
insertBefore
(
itemEl
,
previous
.
nextSibling
);
binding
.
marker
.
parentNode
.
insertBefore
(
itemEl
,
(
_ref2
=
previous
.
nextSibling
)
!=
null
?
_ref2
:
null
);
_results
.
push
(
binding
.
iterated
.
push
({
el
:
itemEl
,
view
:
rivets
.
bind
(
itemEl
,
data
)
...
...
lib/rivets.min.js
View file @
7938f1e
This diff is collapsed.
Click to expand it.
package.json
View file @
7938f1e
{
"name"
:
"rivets"
,
"description"
:
"Declarative data binding facility."
,
"version"
:
"0.3.1
0
"
,
"version"
:
"0.3.1
1
"
,
"author"
:
"Michael Richards"
,
"url"
:
"http://rivetsjs.com"
,
"main"
:
"./lib/rivets.js"
,
...
...
src/rivets.coffee
View file @
7938f1e
# rivets.js
# version : 0.3.1
0
# version : 0.3.1
1
# author : Michael Richards
# license : MIT
...
...
Please
register
or
sign in
to post a comment