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
f35223d4
authored
2013-10-23 22:27:42 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Build 0.6.3.
1 parent
830f1423
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
component.json
dist/rivets.js
dist/rivets.min.js
package.json
component.json
View file @
f35223d
...
...
@@ -2,7 +2,7 @@
"name"
:
"rivets"
,
"repo"
:
"mikeric/rivets"
,
"description"
:
"Declarative data binding + templating solution."
,
"version"
:
"0.6.
2
"
,
"version"
:
"0.6.
3
"
,
"keywords"
:
[
"data binding"
,
"templating"
],
"scripts"
:
[
"dist/rivets.js"
],
"main"
:
"dist/rivets.js"
,
...
...
dist/rivets.js
View file @
f35223d
// Rivets.js
// version: 0.6.
2
// version: 0.6.
3
// author: Michael Richards
// license: MIT
(
function
()
{
...
...
@@ -176,7 +176,7 @@
parse
=
function
(
node
)
{
var
attribute
,
attributes
,
binder
,
childNode
,
delimiters
,
identifier
,
n
,
parser
,
regexp
,
text
,
token
,
tokens
,
type
,
value
,
_i
,
_j
,
_k
,
_l
,
_len
,
_len1
,
_len2
,
_len3
,
_len4
,
_m
,
_ref
,
_ref1
,
_ref2
,
_ref3
,
_ref4
,
_results
;
if
(
__indexOf
.
call
(
skipNodes
,
node
)
<
0
)
{
if
(
node
.
nodeType
===
Node
.
TEXT_NODE
)
{
if
(
node
.
nodeType
===
3
)
{
parser
=
Rivets
.
TextTemplateParser
;
if
(
delimiters
=
_this
.
config
.
templateDelimiters
)
{
if
((
tokens
=
parser
.
parse
(
node
.
data
,
delimiters
)).
length
)
{
...
...
@@ -881,10 +881,10 @@
};
Rivets
.
binders
.
text
=
function
(
el
,
value
)
{
if
(
el
.
innerText
!=
null
)
{
return
el
.
innerText
=
value
!=
null
?
value
:
''
;
}
else
{
if
(
el
.
textContent
!=
null
)
{
return
el
.
textContent
=
value
!=
null
?
value
:
''
;
}
else
{
return
el
.
innerText
=
value
!=
null
?
value
:
''
;
}
};
...
...
dist/rivets.min.js
View file @
f35223d
This diff is collapsed.
Click to expand it.
package.json
View file @
f35223d
{
"name"
:
"rivets"
,
"description"
:
"Declarative data binding + templating solution."
,
"version"
:
"0.6.
2
"
,
"version"
:
"0.6.
3
"
,
"author"
:
"Michael Richards"
,
"url"
:
"http://rivetsjs.com"
,
"main"
:
"./dist/rivets.js"
,
...
...
Please
register
or
sign in
to post a comment