sailingsumo / dat-gui

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

Named values are strings instead of integers #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What step will reproduce the problem?
1. GUI_folder.add(object, 'property', {Value1: -1, Value2: 0, Value3: 1 } );
2. GUI_folder.add(object, 'property', [ -1, 0, 1 ] );

What is the expected output? What do you see instead?
The property should be an integer, instead it's a string.

What version of the product are you using? On what operating system?
dat.gui.js 0.5, Win7 Chrome 22

Please provide any additional information below.
I'm not a professional programmer, nor is english my first language - if I 
skipped something in the docs or if I did a mistake somewhere else, please let 
me know. Thanks.

Original issue reported on code.google.com by Jouan.Ma...@gmail.com on 21 Oct 2012 at 1:12