From f6a5c903e044f37c2aaae16ba8d4209e7b7ff30d Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Mon, 2 Apr 2012 20:02:08 -0700 Subject: [PATCH] some docs changes from Geoff --- docs/client/api.html | 121 +++++++++++++++++++------------------------ 1 file changed, 54 insertions(+), 67 deletions(-) diff --git a/docs/client/api.html b/docs/client/api.html index 95e0274a87..46505301c3 100644 --- a/docs/client/api.html +++ b/docs/client/api.html @@ -841,54 +841,65 @@ These two expressions do the same thing: Example: - // Show a dynamically updating list of items. Let the user click on an - // item to select it. The selected item is given a CSS class so it - // can be rendered differently. - var frag = Meteor.ui.render(function() { - return Meteor.ui.listChunk(Posts.find(), - function(post) { - var cls = Session.equals("selected_post", post._id) ? - "selected" : ""; - return "
" + post.title + "
"; - }, { events: { - 'click': function() { - Session.set("selected_post", this._id); - } - } - }); - }); +