I develop a framework for the SPA (Single Page Application).
Pages overloaded simply by innerHTML. I want to ask in advance to be safe, window['Morris'][params['type']](params) keeps some variables in the global scope or not? Can I just remove chart by innerHTML method? Or I need also run some clear method?
example: for AmCharts I need call clear method for properly freed memory.
At this time, there is no proper method for destroying. #569 has some insight into that and possible solutions for you. Extra consideration is needed when using resize: true
Hi!
I develop a framework for the SPA (Single Page Application). Pages overloaded simply by innerHTML. I want to ask in advance to be safe,
window['Morris'][params['type']](params)
keeps some variables in the global scope or not? Can I just remove chart by innerHTML method? Or I need also run some clear method?example: for AmCharts I need call
clear
method for properly freed memory.