5cd20248 by Michael Richards

Build 0.4.5.

1 parent 14b3c772
......@@ -2,7 +2,7 @@
"name": "rivets",
"repo": "mikeric/rivets",
"description": "Declarative data binding facility.",
"version": "0.4.4",
"version": "0.4.5",
"keywords": ["data binding", "template"],
"scripts": ["lib/rivets.js"],
"main": "lib/rivets.js",
......
// rivets.js
// version: 0.4.4
// version: 0.4.5
// author: Michael Richards
// license: MIT
(function() {
......@@ -535,6 +535,7 @@
el.parentNode.removeChild(el);
}
this.iterated = [];
if (collection) {
_results = [];
for (_k = 0, _len2 = collection.length; _k < _len2; _k++) {
item = collection[_k];
......@@ -546,12 +547,17 @@
}
data[this.args[0]] = item;
itemEl = el.cloneNode(true);
previous = this.iterated[this.iterated.length - 1] || this.marker;
if (this.iterated.length > 0) {
previous = this.iterated[this.iterated.length - 1].els[0];
} else {
previous = this.marker;
}
this.marker.parentNode.insertBefore(itemEl, (_ref3 = previous.nextSibling) != null ? _ref3 : null);
_results.push(this.iterated.push(rivets.bind(itemEl, data)));
}
return _results;
}
}
},
"class-*": function(el, value) {
var elClass;
......
{
"name" : "rivets",
"description" : "Declarative data binding facility.",
"version" : "0.4.4",
"version" : "0.4.5",
"author" : "Michael Richards",
"url" : "http://rivetsjs.com",
"main" : "./lib/rivets.js",
......
# rivets.js
# version : 0.4.4
# version : 0.4.5
# author : Michael Richards
# license : MIT
......