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
e98e03ef
authored
2013-10-18 18:16:46 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Build 0.6.2.
1 parent
b80c66f5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
component.json
dist/rivets.js
dist/rivets.min.js
package.json
component.json
View file @
e98e03e
...
...
@@ -2,7 +2,7 @@
"name"
:
"rivets"
,
"repo"
:
"mikeric/rivets"
,
"description"
:
"Declarative data binding + templating solution."
,
"version"
:
"0.6.
1
"
,
"version"
:
"0.6.
2
"
,
"keywords"
:
[
"data binding"
,
"templating"
],
"scripts"
:
[
"dist/rivets.js"
],
"main"
:
"dist/rivets.js"
,
...
...
dist/rivets.js
View file @
e98e03e
// Rivets.js
// version: 0.6.
1
// version: 0.6.
2
// author: Michael Richards
// license: MIT
(
function
()
{
...
...
@@ -671,10 +671,9 @@
};
TextTemplateParser
.
parse
=
function
(
template
,
delimiters
)
{
var
delimiterOffset
,
index
,
lastIndex
,
lastToken
,
length
,
substring
,
tokens
,
value
;
var
index
,
lastIndex
,
lastToken
,
length
,
substring
,
tokens
,
value
;
tokens
=
[];
length
=
template
.
length
;
delimiterOffset
=
delimiters
[
1
].
length
;
index
=
0
;
lastIndex
=
0
;
while
(
lastIndex
<
length
)
{
...
...
@@ -692,10 +691,10 @@
value
:
template
.
slice
(
lastIndex
,
index
)
});
}
lastIndex
=
index
+
2
;
lastIndex
=
index
+
delimiters
[
0
].
length
;
index
=
template
.
indexOf
(
delimiters
[
1
],
lastIndex
);
if
(
index
<
0
)
{
substring
=
template
.
slice
(
lastIndex
-
2
);
substring
=
template
.
slice
(
lastIndex
-
delimiters
[
1
].
length
);
lastToken
=
tokens
[
tokens
.
length
-
1
];
if
((
lastToken
!=
null
?
lastToken
.
type
:
void
0
)
===
this
.
types
.
text
)
{
lastToken
.
value
+=
substring
;
...
...
@@ -712,7 +711,7 @@
type
:
this
.
types
.
binding
,
value
:
value
});
lastIndex
=
index
+
delimiter
Offset
;
lastIndex
=
index
+
delimiter
s
[
1
].
length
;
}
}
return
tokens
;
...
...
dist/rivets.min.js
View file @
e98e03e
This diff is collapsed.
Click to expand it.
package.json
View file @
e98e03e
{
"name"
:
"rivets"
,
"description"
:
"Declarative data binding + templating solution."
,
"version"
:
"0.6.
1
"
,
"version"
:
"0.6.
2
"
,
"author"
:
"Michael Richards"
,
"url"
:
"http://rivetsjs.com"
,
"main"
:
"./dist/rivets.js"
,
...
...
Please
register
or
sign in
to post a comment