BF: enable mouse clickable from variable online#6668
Merged
Conversation
needed to add eval() so that a value from a spreadsheet (which is read in as a string) is instead converted to an object/variable name that can be clicked.
Member
|
@RebeccaHirst might this ever have the reverse problem? i.e. are there times when we don't want to evaluate (e.g. if it's not a variable?) |
Contributor
Author
|
@peircej the clickable field of a mouse is always an object (e.g. polygon or image) I can't think of a situation where it makes sense for a string to be clickable, it would always throw an error. |
Contributor
|
It would fail an eval if it were already an object handle though, so essentially whenever it isn't set via a spreadsheet. This could work though if you put it inside an |
Contributor
|
Okay so, something I didn't know about JS, you can |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
needed to add eval() so that a value from a spreadsheet (which is read in as a string) is instead converted to an object/variable name that can be clicked.