mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
add removeFolder. From dataarts/dat.gui#143
This commit is contained in:
parent
2659494a80
commit
3aaa59d225
@ -583,6 +583,20 @@ common.extend(
|
||||
return gui;
|
||||
},
|
||||
|
||||
/**
|
||||
* @param name
|
||||
*/
|
||||
removeFolder: function(name) {
|
||||
var folder = this.__folders[name];
|
||||
if (!folder) {
|
||||
return;
|
||||
}
|
||||
folder.close();
|
||||
this.__ul.removeChild(folder.domElement.parentNode);
|
||||
delete this.__folders[name];
|
||||
this.onResize();
|
||||
},
|
||||
|
||||
open: function() {
|
||||
this.closed = false;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user