[Laszlo-checkins] r13216 - openlaszlo/trunk/lps/components/base

bargull@openlaszlo.org bargull at openlaszlo.org
Sun Mar 8 10:02:46 PDT 2009


Author: bargull
Date: 2009-03-08 10:02:44 -0700 (Sun, 08 Mar 2009)
New Revision: 13216

Modified:
   openlaszlo/trunk/lps/components/base/basetree.lzx
Log:
Change 20090307-bargull-FuZ by bargull at dell--p4--2-53 on 2009-03-07 23:40:10
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix debug-info message for tree-control

New Features:

Bugs Fixed: LPP-7873 (tree: debug-info "getNodeText: p is null in Datapath for tree ")

Technical Reviewer: hminsky
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Rearrange code so that getNodeText() will only be called if getNodeCount() == 1.
    

Tests:
testcase at bugreport



Modified: openlaszlo/trunk/lps/components/base/basetree.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basetree.lzx	2009-03-08 16:59:35 UTC (rev 13215)
+++ openlaszlo/trunk/lps/components/base/basetree.lzx	2009-03-08 17:02:44 UTC (rev 13216)
@@ -178,7 +178,7 @@
             var count = this.datapath.getNodeCount();
 
             // Since text nodes 'count', skip if has text and only one
-            if (this.datapath.getNodeText() != "" && count == 1 || count == 0) {
+            if (count == 0 || count == 1 && this.datapath.getNodeText() != "") {
                 return;
             }
 



More information about the Laszlo-checkins mailing list