Permalink
Browse files

Merge remote-tracking branch 'github/debug' into f-tests

  • Loading branch information...
2 parents 48be7b8 + d1b9ccc commit b5f1495e4110d15473b5d99872307d395298663d @thejohnfreeman thejohnfreeman committed Nov 19, 2012
Showing with 5 additions and 4 deletions.
  1. +4 −3 lib/bindings/binders/dom/foreach.js
  2. +1 −1 lib/model/runtime/runtime.js
@@ -22,16 +22,17 @@
* index.
*/
var mirror = view.data(hdMirrorName);
- var slot = mirror[index];
+ var slot = mirror[index].first();
var copies = [];
var i;
for (i = 0; i < items.length; ++i) {
var copy = render(items[i]);
- copies[i] = copy;
- slot.first().before(copy);
+ copies.push(copy);
}
+ slot.before.apply(slot, copies);
+
copies.unshift(index, 0);
Array.prototype.splice.apply(mirror, copies);
};
@@ -62,7 +62,7 @@
updateTask = null;
/* Skip if we can. */
- if (!touchedSet.length) {
+ if (!touchedSet.length && !newMethods.length) {
return;
}

0 comments on commit b5f1495

Please sign in to comment.