Skip to content

Commit

Permalink
rename makeItem
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreensp committed Apr 26, 2012
1 parent d4e2bd6 commit 3a09e65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/liveui/liveui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}),
Expand All @@ -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));
Expand Down Expand Up @@ -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;
});
}
Expand Down

0 comments on commit 3a09e65

Please sign in to comment.