WeakArray.st
changeset 22536 1ed4343923f0
parent 22312 6951d04a8224
child 23571 4aa9bc1a2076
--- a/WeakArray.st	Wed Feb 07 12:31:20 2018 +0100
+++ b/WeakArray.st	Wed Feb 07 12:31:53 2018 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1991 by Claus Gittinger
 	      All Rights Reserved
@@ -437,19 +435,21 @@
     "Modified: / 27.10.1997 / 19:37:16 / cg"
 !
 
-dependents:aCollection
+dependents:aCollectionOrNil
     "set the dependents of the receiver"
 
     |dep|
 
-    aCollection size == 1 ifTrue:[
-	dep := aCollection first.
-	dep isCollection ifFalse:[
-	    dependents := aCollection first.
-	    ^ self
-	]
+    aCollectionOrNil size == 1 ifTrue:[
+        dep := aCollectionOrNil first.
+        dep isCollection ifFalse:[
+            dependents := dep.
+            ^ self
+        ]
     ].
-    dependents := aCollection
+    dependents := aCollectionOrNil
+
+    "Modified: / 07-02-2018 / 12:01:41 / stefan"
 !
 
 dependentsDo:aBlock