Fixed closed param (fixes #202)

This commit is contained in:
Teoxoy 2019-01-05 03:08:59 +01:00 committed by Don McCurdy
parent a3085880ce
commit e67269a3f7

View File

@ -336,7 +336,9 @@ const GUI = function(pars) {
// Are we a root level GUI?
if (common.isUndefined(params.parent)) {
params.closed = false;
if (!params.closed) {
this.closed = params.closed;
}
dom.addClass(this.domElement, GUI.CLASS_MAIN);
dom.makeSelectable(this.domElement, false);