Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix search of element in SpCollectionListModel. #1681

Open
wants to merge 1 commit into
base: Pharo12
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading