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

Fix/tao 5505/tts cannot click to speak choice content #1109

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

uncleempty
Copy link
Contributor

Fix for bug with click-to-speak and associate interactions (drag&drop was enabled but not released on clicking at answer when click-to-speak was activated)

… was enabled but not released on clicking at answer when click-to-speak was activated)
Copy link
Contributor

@ssipasseuth ssipasseuth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it works but can you try to make the code simpler and more readable ? this piece of code is getting bigger and bigger.

} else {
if (self.getOption && self.getOption("enableDragAndDrop") && self.getOption("enableDragAndDrop").associate) {
isDragAndDropEnabled = self.getOption("enableDragAndDrop").associate;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to avoid repeating the same piece of code multiple time whenever possible by wrapping this into a function like self.isDragAndDropEnabled(). Could you add it into a function that will make the code easier to read. Also you can save one code block level by directly assignation like else { isDragAndDropEnabled = self.isDragAndDropEnabled()}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants