Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Jan 26, 2024
1 parent 24a63d5 commit eabc3b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions src/Spec2-Adapters-Morphic/SpMorphicBoxAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,15 @@ SpMorphicBoxAdapter >> newWrapMorph [

{ #category : 'accessing' }
SpMorphicBoxAdapter >> remove: aPresenter [
| morph adapter |

aPresenter adapter ifNotNil: [ :adapter |
| morph |
adapter unsubscribe.
morph := adapter widget.
startPanel removeMorph: morph.
endPanel removeMorph: morph.
self verifyBoxExtent ]
(adapter := aPresenter adapter) ifNil: [ ^ self ].

adapter unsubscribe.
morph := adapter widget.
startPanel removeMorph: morph.
endPanel removeMorph: morph.
self verifyBoxExtent
]

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

self announcer weak
self announcer
when: SpChildrenAdded
do: aBlock
for: aBlock receiver
Expand All @@ -349,7 +349,7 @@ SpExecutableLayout >> whenChildrenAddedDo: aBlock [
{ #category : 'events' }
SpExecutableLayout >> whenChildrenRemovedDo: aBlock [

self announcer weak
self announcer
when: SpChildrenRemoved
do: aBlock
for: aBlock receiver
Expand Down

0 comments on commit eabc3b1

Please sign in to comment.