Build 0.3.11.
Showing
4 changed files
with
5 additions
and
5 deletions
1 | // rivets.js | 1 | // rivets.js |
2 | // version: 0.3.10 | 2 | // version: 0.3.11 |
3 | // author: Michael Richards | 3 | // author: Michael Richards |
4 | // license: MIT | 4 | // license: MIT |
5 | (function() { | 5 | (function() { |
... | @@ -422,7 +422,7 @@ | ... | @@ -422,7 +422,7 @@ |
422 | 422 | ||
423 | iterationBinding = function(name) { | 423 | iterationBinding = function(name) { |
424 | return function(el, collection, binding) { | 424 | return function(el, collection, binding) { |
425 | var data, item, itemEl, iteration, m, n, previous, _i, _j, _len, _len1, _ref, _ref1, _results; | 425 | var data, item, itemEl, iteration, m, n, previous, _i, _j, _len, _len1, _ref, _ref1, _ref2, _results; |
426 | if (binding.iterated != null) { | 426 | if (binding.iterated != null) { |
427 | _ref = binding.iterated; | 427 | _ref = binding.iterated; |
428 | for (_i = 0, _len = _ref.length; _i < _len; _i++) { | 428 | for (_i = 0, _len = _ref.length; _i < _len; _i++) { |
... | @@ -448,7 +448,7 @@ | ... | @@ -448,7 +448,7 @@ |
448 | data[name] = item; | 448 | data[name] = item; |
449 | itemEl = el.cloneNode(true); | 449 | itemEl = el.cloneNode(true); |
450 | previous = binding.iterated[binding.iterated.length - 1] || binding.marker; | 450 | previous = binding.iterated[binding.iterated.length - 1] || binding.marker; |
451 | binding.marker.parentNode.insertBefore(itemEl, previous.nextSibling); | 451 | binding.marker.parentNode.insertBefore(itemEl, (_ref2 = previous.nextSibling) != null ? _ref2 : null); |
452 | _results.push(binding.iterated.push({ | 452 | _results.push(binding.iterated.push({ |
453 | el: itemEl, | 453 | el: itemEl, |
454 | view: rivets.bind(itemEl, data) | 454 | view: rivets.bind(itemEl, data) | ... | ... |
This diff is collapsed.
Click to expand it.
1 | { | 1 | { |
2 | "name" : "rivets", | 2 | "name" : "rivets", |
3 | "description" : "Declarative data binding facility.", | 3 | "description" : "Declarative data binding facility.", |
4 | "version" : "0.3.10", | 4 | "version" : "0.3.11", |
5 | "author" : "Michael Richards", | 5 | "author" : "Michael Richards", |
6 | "url" : "http://rivetsjs.com", | 6 | "url" : "http://rivetsjs.com", |
7 | "main" : "./lib/rivets.js", | 7 | "main" : "./lib/rivets.js", | ... | ... |
-
Please register or sign in to post a comment