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); - } - } - }); - }); +