Skip to content

Commit

Permalink
Merge pull request #161 from ba-st/improve_temporary_disable_command
Browse files Browse the repository at this point in the history
Remove some direct references to Willow pool dictionary.
  • Loading branch information
gcotelli committed Apr 30, 2020
2 parents c84134b + 97edbfc commit 6f4a1f0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/Willow-Core/TemporarilyDisablingCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,17 @@ TemporarilyDisablingCommand >> stepsAfterServerCallOn: aCanvas [
^ ( self componentToDisableVariableOn: aCanvas )
removeAttribute: self eventsDisabledAttributeName;
attributeAt: self disabledAttributeName put: false;
removeClass: Willow classification >> #disabledComponent;
removeClass: Classification >> #disabledComponent;
call: 'html'
with:
( ( self componentToDisableVariableOn: aCanvas ) attributeAt: self originalContentAttributeName )
with: ( ( self componentToDisableVariableOn: aCanvas ) attributeAt: self originalContentAttributeName )
]

{ #category : #private }
TemporarilyDisablingCommand >> stepsBeforeServelCallOn: aCanvas [

^ ( self componentToDisableVariableOn: aCanvas )
attributeAt: self eventsDisabledAttributeName put: 'disabled';
addClass: Willow classification >> #disabledComponent;
addClass: Classification >> #disabledComponent;
attributeAt: self originalContentAttributeName
put: ( self componentToDisableVariableOn: aCanvas ) html;
attributeAt: self disabledAttributeName put: true;
Expand Down

0 comments on commit 6f4a1f0

Please sign in to comment.