Revision: 2604 http://vexi.svn.sourceforge.net/vexi/?rev=2604&view=rev Author: clrg Date: 2007-11-21 11:52:28 -0800 (Wed, 21 Nov 2007)
Log Message: ----------- Allow 0,false for list values (nulls still not valid) Modified Paths: -------------- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/list.t Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/list.t =================================================================== --- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/list.t 2007-11-21 00:30:04 UTC (rev 2603) +++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/list.t 2007-11-21 19:52:28 UTC (rev 2604) @@ -44,7 +44,7 @@ if (c) { if (listgroup) c.group = listgroup; else listgroup = c.group; - if (!c.value) throw "items in list need a value"; + if (c.value == null) throw "items in list need a value"; // lookup for c by value if (values[c.value]) throw "can not have duplicate values in a list"; values[c.value] = c; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn