BorisMoore/jsrender — pull request #236 by FallSe7en (2014-04-24 23:02:51+00:00)
Title: Fix memory leak when a template is removed from the DOM

Hi,

If a template is used and then removed from the DOM, the template stays in the heap.

This pastebin has a simple demo of the leak: http://pastebin.com/yC6JxfEY

Basically, click the ON button, grab a heap snapshot, and then press the LEAK button and grab another snapshot. The template script will end up in a detached DOM tree in the heap.

Hope this helps!

Thanks,
Justin