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
365e32e9
authored
2013-04-12 17:53:57 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Remove references to the exported module. Use the properties available on Rivets…
… instead. [Closes #146]
1 parent
9a391f34
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
src/rivets.coffee
src/rivets.coffee
View file @
365e32e
...
...
@@ -339,7 +339,7 @@ Rivets.binders =
"each-*"
:
block
:
true
bind
:
(
el
,
collection
)
->
el
.
removeAttribute
[
'data'
,
r
ivets
.
config
.
prefix
,
@
type
].
join
(
'-'
).
replace
'--'
,
'-'
el
.
removeAttribute
[
'data'
,
R
ivets
.
config
.
prefix
,
@
type
].
join
(
'-'
).
replace
'--'
,
'-'
routine
:
(
el
,
collection
)
->
if
@
iterated
?
for
view
in
@
iterated
...
...
@@ -358,12 +358,16 @@ Rivets.binders =
data
[
n
]
=
m
for
n
,
m
of
@
view
.
models
data
[
@
args
[
0
]]
=
item
itemEl
=
el
.
cloneNode
true
if
@
iterated
.
length
>
0
previous
=
@
iterated
[
@
iterated
.
length
-
1
].
els
[
0
]
previous
=
if
@
iterated
.
length
@
iterated
[
@
iterated
.
length
-
1
].
els
[
0
]
else
previous
=
@
marker
@
marker
@
marker
.
parentNode
.
insertBefore
itemEl
,
previous
.
nextSibling
?
null
@
iterated
.
push
rivets
.
bind
itemEl
,
data
view
=
new
Rivets
.
View
(
itemEl
,
data
)
view
.
bind
()
@
iterated
.
push
view
"class-*"
:
(
el
,
value
)
->
elClass
=
"
#{
el
.
className
}
"
...
...
Please
register
or
sign in
to post a comment