Skip to content

Commit

Permalink
Merge pull request #1681 from demarey/fix/collection-list-model
Browse files Browse the repository at this point in the history
fix search of element in SpCollectionListModel.
  • Loading branch information
demarey authored Dec 20, 2024
2 parents 0cf85eb + af85d94 commit d49fe07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Spec2-Core/SpCollectionListModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ SpCollectionListModel >> hasElementAt: index [
{ #category : 'accessing' }
SpCollectionListModel >> indexOf: anItem ifAbsent: aBlock [

^ collection identityIndexOf: anItem ifAbsent: aBlock
^ collection indexOf: anItem ifAbsent: aBlock
]

{ #category : 'initialization' }
Expand Down
2 changes: 1 addition & 1 deletion src/Spec2-Core/SpDropListItem.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ SpDropListItem >> = anObject [

self == anObject ifTrue: [ ^ true ].
self class = anObject class ifFalse: [ ^ false ].
^ self label = anObject label and: [ action = anObject action ]
^ self model = anObject model
]

{ #category : 'protocol' }
Expand Down

0 comments on commit d49fe07

Please sign in to comment.