Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- discardElement: function(element) {
- var jqGCID = 'jqGarbageCollector';
- var jqGC = document.getElementById(jqGCID);
- if (!jqGC) {
- jqGC = document.createElement('div');
- jqGC.id = jqGCID;
- jqGC.style.display = 'none';
- document.body.appendChild(jqGC);
- }
- // place the element to the Garbage Collector
- // and clear it's HTML contents
- jqGC.appendChild(element);
- jqGC.innerHTML = '';
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement