How to remove JQuery from the Window/make the GC take it
I have a page, when loaded it does some stuff with JQ.
In the next phase I want to load mootools and remove all JQ stuff, to avoid collisions and to avoid memory leaking. I am not giving you the all 开发者_运维知识库picture (to simplify the question), but assume I am not doing something stupid here, and it needs to be done how I am asking it.jQuery has a noConflict option to avoid collisions.. but I guess you could delete it...
delete window.jQuery;
delete window.$;//alias to jQuery
精彩评论