*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Wed, 13 Sep 2006 11:36:33 +0200
changeset 3071 55a9742766ed
parent 3070 c08536fb052f
child 3072 910a9b9203f4
*** empty log message ***
HierarchicalItem.st
--- a/HierarchicalItem.st	Tue Sep 12 18:26:43 2006 +0200
+++ b/HierarchicalItem.st	Wed Sep 13 11:36:33 2006 +0200
@@ -1648,12 +1648,16 @@
     ^ self detect:aOneArgBlock ifNone:[self errorNotFound]
 !
 
-detect:anOneArgBlock ifNone:anExceptionBlock
+detect:aOneArgBlock ifNone:exceptionBlock
     "find the first child, for which evaluation of the block returns
      true; if none does so, return the evaluation of anExceptionBlock"
 
-    self do:[:el| (anOneArgBlock value:el) ifTrue:[^ el] ].
-    ^ anExceptionBlock value
+    self do:[:el| 
+        (aOneArgBlock value:el) ifTrue:[^ el] 
+    ].
+    ^ exceptionBlock value
+
+    "Modified: / 13-09-2006 / 11:17:53 / cg"
 !
 
 detectLast:aOneArgBlock
@@ -1905,5 +1909,5 @@
 !HierarchicalItem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/HierarchicalItem.st,v 1.77 2006-07-03 10:31:11 fm Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/HierarchicalItem.st,v 1.78 2006-09-13 09:36:33 cg Exp $'
 ! !