-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PSContentContainer (fix): Make sure that scripts are not executed wit…
…hout a slide
- Loading branch information
Vincent Opitz
committed
Jul 26, 2019
1 parent
502a803
commit daa7a57
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...resenter-Core.package/PSContentContainer.class/instance/tryEvaluatingScript.withValue..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
scripting API | ||
tryEvaluatingScript: aSymbol withValue: anObject | ||
|
||
(self content hasProperty: aSymbol) | ||
ifTrue: [self evaluateScript: aSymbol withValue: anObject] | ||
((self content hasProperty: aSymbol) and: [anObject isNil not]) | ||
ifTrue: [self evaluateScript: aSymbol withValue: anObject] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters