f35223d4 by Michael Richards

Build 0.6.3.

1 parent 830f1423
......@@ -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",
......
// 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 : '';
}
};
......
{
"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",
......