Is there any way to get a hook that fires before the template is removed from the DOM?
I have a memory leak due to not being able to destroy my mCustomScrollbars before the DOM elements are destroyed.
Right now no.
But this is being introduced in 0.8.2 which should be released any day. Look under the release notes for it > here < and there are hooks for insertElement
, removeElement
and moveElement
under the 'Blaze' section.
Also looks like the terminology may be in flux until 1.0.