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

Updated code following deprecation #1401

Merged
merged 2 commits into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 3 additions & 2 deletions src/Spec2-Core/SpPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -987,9 +987,10 @@ SpPresenter >> whenWindowChanged: aBlock [

self flag: #TODO. "This is here for backwards compatibility (you can have same
functionality in #initializeWindow:"
self announcer
when: SpWindowBuilt
self announcer
when: SpWindowBuilt
do: [ :ann | aBlock cull: ann model ]
for: self
]

{ #category : #TOREMOVE }
Expand Down
5 changes: 2 additions & 3 deletions src/Spec2-Layout/SpExecutableLayout.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,7 @@ SpExecutableLayout >> unsubscribe [
{ #category : #events }
SpExecutableLayout >> whenChildrenAddedDo: aBlock [

self announcer
when: SpChildrenAdded
do: aBlock
self announcer when: SpChildrenAdded do: aBlock for: aBlock receiver
]

{ #category : #events }
Expand All @@ -343,6 +341,7 @@ SpExecutableLayout >> whenChildrenRemovedDo: aBlock [
self announcer
when: SpChildrenRemoved
do: aBlock
for: aBlock receiver
estebanlm marked this conversation as resolved.
Show resolved Hide resolved
]

{ #category : #private }
Expand Down