[Laszlo-checkins] r10126 - openlaszlo/trunk/examples/components

max@openlaszlo.org max at openlaszlo.org
Sat Jun 28 16:51:16 PDT 2008


Author: max
Date: 2008-06-28 16:51:10 -0700 (Sat, 28 Jun 2008)
New Revision: 10126

Modified:
   openlaszlo/trunk/examples/components/list_example.lzx
Log:
Change 20080628-maxcarlson-c by maxcarlson at Roboto on 2008-06-28 16:45:01 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix braino in list example for DHTML.

Bugs Fixed: LPP-6542 - swf and dhtml: Components: Form Components: List: Get value text clipped when all items are selected in multi-select list

Technical Reviewer: promanik
QA Reviewer: mkratt

Details: Test if the return value is null before using it.

Tests: See LPP-6542



Modified: openlaszlo/trunk/examples/components/list_example.lzx
===================================================================
--- openlaszlo/trunk/examples/components/list_example.lzx	2008-06-28 23:46:42 UTC (rev 10125)
+++ openlaszlo/trunk/examples/components/list_example.lzx	2008-06-28 23:51:10 UTC (rev 10126)
@@ -53,7 +53,12 @@
                 </button>
                 <button height="20">Get Value
                     <handler name="onclick">
-                        var val = a3.getValue().join(', ');
+                        var val = a3.getValue()
+                        if (val == null) {
+                            val = '';
+                        } else {
+                            val = val.join(', ');
+                        }
                         a1val.setText(val);
                     </handler>
                 </button>



More information about the Laszlo-checkins mailing list