rem: this.clearWidgets = function() { jmaki.loaded = false; widgets = []; 
add: this.clearWidgets = function(_root) { if (typeof _root == "undefined") { var _k = jmaki.attributes.keys();  for (var l=0; l < _k.length; l++) { if (typeof jmaki.attributes.get(_k[l]).destroy != 'undefined' && typeof jmaki.attributes.get(_k[l]).destroy == 'function') { jmaki.attributes.get(_k[l]).destroy(); jmaki.attributes.remove(_k[l]); } } jmaki.loaded = false; widgets = []; } else { var _ws = jmaki.getAllChildren(_root,[]); for (var l=0; l < _ws.length; l++) { if (_ws[l].id && jmaki.attributes.get(_ws[l].id) && typeof jmaki.attributes.get(_ws[l].id).destroy == 'function') { jmaki.attributes.get(_ws[l].id).destroy(); var _p = document.getElementById(_ws[l].id); _p.parentNode.removeChild(_p); jmaki.attributes.remove(_ws[l].id); } } } 
context:     this.clearWidgets = function() {	jmaki.loaded = false;        widgets = [];    }
meta: 8755	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8755/6e162b8d8fc20add94375f60aa541ff3ec9927ae/jmaki.js/buggy/code/run-time/samples/jmaki/src/main/webapp/resources/jmaki.js