mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Small fix to gui.js
This commit is contained in:
parent
ba1ff6f492
commit
bf6d8cb0ac
3
gui.js
3
gui.js
@ -36,7 +36,7 @@ var GUI = new function() {
|
||||
|
||||
// Do we know how to deal with this data type?
|
||||
if (handler == undefined) {
|
||||
error("Cannot create controller for data type \"" + object + "\"");
|
||||
error("Cannot create controller for data type \""+type+"\"");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -128,6 +128,7 @@ var GUI = new function() {
|
||||
this.toggle = function() {
|
||||
|
||||
if (open) {
|
||||
|
||||
domElement.style.marginTop = -domElementMarginTop+"px";
|
||||
toggleButton.innerHTML = "Show Controls";
|
||||
open = false;
|
||||
|
Loading…
Reference in New Issue
Block a user