bootstrap-markdown icon indicating copy to clipboard operation
bootstrap-markdown copied to clipboard

No way to dispose, causes DOM leaks

Open iEchoic opened this issue 9 years ago • 1 comments
trafficstars

image

(from Chrome timeline tool, illustrating the increase in nodes after repeatedly creating and removing bootstrap-markdown elements from the dom. Note that GC is cleaning up my JS heap periodically, but nodes continues to climb. Over a longer time period, this becomes more evident)

After much digging, I've isolated my increase in nodes in my app over time to markdown. It appears that, upon removing a DOM element, markdown keeps references to those DOM elements in memory, preventing them from ever being freed.

I've looked through the documentation but can't find any way to actually dispose/destroy a markdown-enhanced element. Is there a way to do so, or is this a bug?

iEchoic avatar Jan 18 '16 19:01 iEchoic

👍 Definitely need a way to destroy

webdevbrian avatar Oct 26 '17 20:10 webdevbrian