Open GoogleCodeExporter opened 9 years ago
[deleted comment]
I fixed it by adding the following function to the gui prototype:
removeFolder: function(name) {
this.__folders[name].close();
this.__ul.removeChild(this.__folders[name].li);
dom.removeClass(this.__folders[name].li, 'folder');
this.__folders[name] = undefined;
this.onResize();
},
This should work in every case since folders can be identified by name alone.
Original comment by stevende...@gmail.com
on 16 Jul 2012 at 4:07
I forgot to mention that the gui prototype has a li object which is asigned in
addFolder. The removeFolder function would be neater if it checks first if the
gui actually is a foldler.
Original comment by stevende...@gmail.com
on 17 Jul 2012 at 10:17
[deleted comment]
[deleted comment]
this chain is a couple years old. I had to use the following to get it to
remove (in case anyone else stumbles on this page)
function(name) {
this.__folders[name].close();
this.__folders[name].domElement.parentNode.parentNode.removeChild(this.__folders[name].domElement.parentNode);
this.__folders[name] = undefined;
this.onResize();
}
Works in chrome Version 39.0.2171.71 ...didn't test in other browsers
Original comment by noah.mar...@gmail.com
on 1 Dec 2014 at 9:03
Original issue reported on code.google.com by
stevende...@gmail.com
on 10 Jul 2012 at 11:17