diff --git a/gui.js b/gui.js index b14aa5c..326ed84 100644 --- a/gui.js +++ b/gui.js @@ -458,7 +458,6 @@ var GUI = function() { }, 0); if (GUI.scrollTop > -1) { - console.log("hey"); document.body.scrollTop = GUI.scrollTop; } resizeTo = openHeight; @@ -490,11 +489,9 @@ GUI.scrollTop = -1; // TODO: Not working in FF. GUI.load = function(saveString) { - console.log(saveString); //GUI.savedAppearanceVars = []; var vals = saveString.split(","); - console.log(vals); var numGuis = parseInt(vals[0]); GUI.scrollTop = parseInt(vals[1]); for (var i = 0; i < numGuis; i++) { diff --git a/index.html b/index.html index 1a2578b..00632bf 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@
-<script type="text/javascript" src="demo/demo.js"></script> +<script type="text/javascript" src="gui.min.js"></script> <script type="text/javascript"> window.onload = function() { @@ -210,7 +210,7 @@ gui.add(GUI, "showSaveString");
Clicking the "showSaveString" button bring up an alert with a string. Copy and paste that string into the method GUI.load()
before you instantiate any gui objects.
-// Replace COPIED STRING with the value you got from +// Replace COPIED STRING with the value you got from showSaveString() GUI.load("COPIED STRING"); var gui = new GUI(); @@ -219,7 +219,7 @@ var gui = new GUI(); gui.add(someObject, "someProperty"); gui.add(someObject, "someOtherProperty");-
Save strings won't work if you change the order in which you've added properties to your gui objects. If you want to add more parameters to your gui and use an old save string, make sure they're added after the properties whose values you've saved.
+Save strings won't work if you change the order in which you've added properties to your gui objects, or the order of the gui objects themselves.. If you want to add more parameters to your gui and use an old save string, make sure they're added after the properties whose values you've saved.
@@ -290,9 +290,9 @@ document.getElementById("my-gui-container").appendChild( gui.domElement );