From 3a09e65cb0cfbeb5c4ee0c952b1c97382f5243ac Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Tue, 24 Apr 2012 17:09:21 -0700 Subject: [PATCH] rename makeItem --- packages/liveui/liveui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/liveui/liveui.js b/packages/liveui/liveui.js index b413709fafb..33dd574647f 100644 --- a/packages/liveui/liveui.js +++ b/packages/liveui/liveui.js @@ -473,7 +473,7 @@ Meteor.ui = Meteor.ui || {}; react_data); }); - var makeItem = function(doc, in_range) { + var renderItem = function(doc, in_range) { return Meteor.ui.render( _.bind(doc_func, null, doc), _.extend({}, react_data, {event_data: doc}), @@ -482,7 +482,7 @@ Meteor.ui = Meteor.ui || {}; var callbacks = { added: function(doc, before_idx) { - var frag = makeItem(doc); + var frag = renderItem(doc); var range = new LiveRange(Meteor.ui._tag, frag); if (range_list.length === 0) cleanup_frag(outer_range.replace_contents(frag)); @@ -525,7 +525,7 @@ Meteor.ui = Meteor.ui || {}; // replace the render in the immediately nested range range.visit(function(is_start, r) { if (is_start) - makeItem(doc, r); + renderItem(doc, r); return false; }); }