f35223d4 by Michael Richards

Build 0.6.3.

1 parent 830f1423
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 "name": "rivets", 2 "name": "rivets",
3 "repo": "mikeric/rivets", 3 "repo": "mikeric/rivets",
4 "description": "Declarative data binding + templating solution.", 4 "description": "Declarative data binding + templating solution.",
5 "version": "0.6.2", 5 "version": "0.6.3",
6 "keywords": ["data binding", "templating"], 6 "keywords": ["data binding", "templating"],
7 "scripts": ["dist/rivets.js"], 7 "scripts": ["dist/rivets.js"],
8 "main": "dist/rivets.js", 8 "main": "dist/rivets.js",
......
1 // Rivets.js 1 // Rivets.js
2 // version: 0.6.2 2 // version: 0.6.3
3 // author: Michael Richards 3 // author: Michael Richards
4 // license: MIT 4 // license: MIT
5 (function() { 5 (function() {
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
176 parse = function(node) { 176 parse = function(node) {
177 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; 177 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;
178 if (__indexOf.call(skipNodes, node) < 0) { 178 if (__indexOf.call(skipNodes, node) < 0) {
179 if (node.nodeType === Node.TEXT_NODE) { 179 if (node.nodeType === 3) {
180 parser = Rivets.TextTemplateParser; 180 parser = Rivets.TextTemplateParser;
181 if (delimiters = _this.config.templateDelimiters) { 181 if (delimiters = _this.config.templateDelimiters) {
182 if ((tokens = parser.parse(node.data, delimiters)).length) { 182 if ((tokens = parser.parse(node.data, delimiters)).length) {
...@@ -881,10 +881,10 @@ ...@@ -881,10 +881,10 @@
881 }; 881 };
882 882
883 Rivets.binders.text = function(el, value) { 883 Rivets.binders.text = function(el, value) {
884 if (el.innerText != null) { 884 if (el.textContent != null) {
885 return el.innerText = value != null ? value : '';
886 } else {
887 return el.textContent = value != null ? value : ''; 885 return el.textContent = value != null ? value : '';
886 } else {
887 return el.innerText = value != null ? value : '';
888 } 888 }
889 }; 889 };
890 890
......
1 { 1 {
2 "name": "rivets", 2 "name": "rivets",
3 "description": "Declarative data binding + templating solution.", 3 "description": "Declarative data binding + templating solution.",
4 "version": "0.6.2", 4 "version": "0.6.3",
5 "author": "Michael Richards", 5 "author": "Michael Richards",
6 "url": "http://rivetsjs.com", 6 "url": "http://rivetsjs.com",
7 "main": "./dist/rivets.js", 7 "main": "./dist/rivets.js",
......