*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Mon, 06 Mar 2006 09:46:21 +0100
changeset 2930 6c5b7065dd15
parent 2929 089f66aac2b7
child 2931 74fc63bea835
*** empty log message ***
TreeItem.st
--- a/TreeItem.st	Mon Mar 06 09:46:03 2006 +0100
+++ b/TreeItem.st	Mon Mar 06 09:46:21 2006 +0100
@@ -715,13 +715,9 @@
 !
 
 hasChildrenWithSubChildren
-    "returns true if any child exists and has children too
-    "
-    self children do:[:aChild|
-        aChild hasChildren ifTrue:[^ true].
-    ].
-    ^ false
+    "returns true if any child exists and has children too"
 
+    self children contains:[:aChild| aChild hasChildren]
 !
 
 hasExpandedChildren
@@ -1035,7 +1031,7 @@
 !TreeItem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/TreeItem.st,v 1.45 2003-05-19 09:10:44 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/TreeItem.st,v 1.46 2006-03-06 08:46:21 cg Exp $'
 ! !
 
 TreeItem initialize!