File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ Class {
1010
1111{ #category : #' instance creation' }
1212DataSeries class >> newFrom: aCollection [
13+
1314 aCollection ifEmpty: [ ^ self new ].
1415
15- (aCollection species == self )
16- ifTrue: [ ^ super newFrom: aCollection associations ].
16+ aCollection species == self ifTrue: [ ^ super newFrom: aCollection associations ].
1717
1818 " If it's a collection of associations use the superclass implementation"
19- ^ super newFrom: (( aCollection anyOne respondsTo: #key )
20- ifTrue: [ aCollection ]
21- ifFalse: [ aCollection withIndexCollect: [ :each :i | i - > each ] ])
19+ ^ super newFrom: (aCollection anyOne isAssociation
20+ ifTrue: [ aCollection ]
21+ ifFalse: [ aCollection withIndexCollect: [ :each :i | i - > each ] ])
2222]
2323
2424{ #category : #' instance creation' }
You can’t perform that action at this time.
0 commit comments