-
Notifications
You must be signed in to change notification settings - Fork 38
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
Little refactorings for tutorial.js #139
Little refactorings for tutorial.js #139
Conversation
This fix increments the step number of the nextStepButton to the next step number, so the loadTutorialStep() function just has to call this step number without incrementation.
…torialStep() function
This change moves the changeListener for the ACE editor from the handle EditorChanges() function to the loadTutorialStep() function. Thus it avoids the necessity to stop change propagation and recursive call. It also removes some unnecessary parameters from handleEditorChanges() as well as it simplifies the mechanism to disallow/allow download and/or continuation with next step.
…ered As mentioned by @KristinaRichts and @krHERO , the current error message when an encoding cannot be rendered in the tutorials was misleading ("Please adjust your encoding …").
This change adds a console log for any NaN values to improve debugging of music-encoding#136.
…ng of loadTutorialStep
@KristinaRichts @krHERO |
@KristinaRichts and @krHERO any chance you have a look at this? |
I also think, that the error message you suggested is better than the previous one, but in the long run, the reactions should be so clear that the user can understand why the coding cannot be rendered. |
thx @krHERO and @KristinaRichts merged for now and noted for future improvement in #150 |
Little refactorings for tutorial.js
This PR proposes some light refactorings for tutorials.js, including
It also adds another log if a stepNumber is thrown with a value of NaN to improve debugging of #136 .