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

New: added getInteractionObject to align with other questions and for data reporting #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danielghost
Copy link
Contributor

Fixes #214.

New

  • added getInteractionObject to align with other questions and for data reporting. The correctResponsesPattern uses the SCORM 2004 and xAPI pattern as SCORM 1.2 doesn't account for ranges.

@danielghost danielghost self-assigned this Dec 2, 2024
Copy link

Choose a reason for hiding this comment

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

👀

Comment on lines +166 to +168
if (!correctRange) return null;
const bottom = correctRange?._bottom ?? '';
const top = correctRange?._top ?? '';
Copy link
Member

Choose a reason for hiding this comment

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

The ?. isn't necessary as both null and undefined are falsies, which would return on line 166.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Reviewing
Development

Successfully merging this pull request may close these issues.

Add getInteractionObject method for consistency with other questions and data reporting
4 participants