I have a list of items on a mobile app (iPhone), and I have a "more" button that adds more list items. I catch the touch event on the "more" button, add more items to the list, and then the item that appears where the "more" button was is immediately triggered!
Template.more.events({
'touchend li[name=more]': function (evt, template) {
var nPerPage = Session.get("nPerPage");
console.log("more");
Session.set("nPerPage", nPerPage+moreIncrement);
}
})
Any ideas? I am open to other solutions -- I tried to figure out how to trigger an event when the "more" button becomes visible...