mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
comments
This commit is contained in:
@@ -794,8 +794,9 @@ Meteor.ui = Meteor.ui || {};
|
||||
|
||||
visitNodes(srcParent, null, null, function(src) {
|
||||
// XXX inefficient to scan for match for every node!
|
||||
// We could skip non-element nodes, except for "range matches"
|
||||
// We could at least skip non-element nodes, except for "range matches"
|
||||
// used for constant chunks, which may begin on a non-element.
|
||||
// But really this shouldn't be a linear search.
|
||||
var pair = _.find(nodeMatches, function(p) {
|
||||
return p[1] === src;
|
||||
});
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
|
||||
var react_data = { events: (name ? Template[name].events : {}),
|
||||
data: data,
|
||||
// legacy 'id' preservation
|
||||
//preserve: { '*[id]': function(n) { return n.id; } },
|
||||
branch: branch };
|
||||
|
||||
return Meteor.ui.chunk(getHtml, react_data);
|
||||
|
||||
Reference in New Issue
Block a user