#REFACTORING by stefan draft
authorStefan Vogel <sv@exept.de>
Fri, 17 May 2019 16:59:23 +0200
changeset 3664 0d01da886d5a
parent 3663 9d49ecf8661a
child 3665 86d311ea68fd
#REFACTORING by stefan Sanitize BlockValues class: MenuEditor changed: #hasNonLinkedMenuSelectedHolder
MenuEditor.st
--- a/MenuEditor.st	Tue May 14 09:46:21 2019 +0200
+++ b/MenuEditor.st	Fri May 17 16:59:23 2019 +0200
@@ -1763,18 +1763,17 @@
 !
 
 hasNonLinkedMenuSelectedHolder
-    "boolean holder, true if a single non linked menu item is selected
-    "
+    "boolean holder, true if a single non linked menu item is selected"
+
     ^ BlockValue
-        with:[:m | 
-                |items| 
-
-                items := self selectionHolder value.
-                (items size == 1) 
-                and:[items first isKindOfNonLinkedMenu
-                and:[items first isRootItem not]]
+        with:[:selection | 
+                (selection size == 1) 
+                 and:[selection first isKindOfNonLinkedMenu
+                 and:[selection first isRootItem not]]
              ]
         argument:(self selectionHolder)
+
+    "Modified: / 17-05-2019 / 16:18:19 / Stefan Vogel"
 !
 
 hasSelectionChannel