hmudimi / dat-gui

Automatically exported from code.google.com/p/dat-gui
0 stars 0 forks source link

Saving parameters with dat.gui seems broken #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There seems to be a problem with saving parameters in the latest build of 
dat.gui.

The problem shows when clicking the gear icon which should open a popup with 
the JSON to be saved. Also saving to local storage does not work for me. Here 
are two JSFiddles:

http://jsfiddle.net/navFooh/XZcde/
With the minified library, clicking the gear throws an error in the console: 
Uncaught TypeError: Cannot read property 'forEach' of undefined dat.gui.min.js:3

http://jsfiddle.net/navFooh/8Hek6/
With the normal library, clicking the gear icon does show the popup with JSON, 
but the parameter x does not show

Original issue reported on code.google.com by thijs....@gmail.com on 29 Mar 2014 at 1:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please disregard this issue, it was the order in which I called remember and 
add.
See: 
http://stackoverflow.com/questions/22730039/saving-parameters-with-dat-gui-seems
-broken

Original comment by thijs....@gmail.com on 30 Mar 2014 at 10:12