Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Why Template.myTemplate.rendered created destroyed fire multiple times ? #435
maybe the events bind multiple times too ? is this normal ?
if i have 20 Template['module-following-item'], when every single template destroyed, it will execute function 20 times.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
That's what they're supposed to do. These callbacks are associated with a particular instance of a template on the screen, so if you display a template 400 times they each get called 400 times.
What are you trying to accomplish with these callbacks that would work better if only called once?