Fixing a write-only issue with SCORM 1.2 nav.event until I figure out what to do with it

Not sure if it's even necessary outside of Moodle, or if it is custom for their player.
This commit is contained in:
Jonathan Putney
2020-05-25 19:55:30 -04:00
parent 1d40d54ce4
commit c311b4dbc7
3 changed files with 4 additions and 4 deletions

4
dist/scorm-again.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "scorm-again",
"version": "1.1.0",
"version": "1.1.1",
"description": "A modern SCORM JavaScript run-time library for AICC, SCORM 1.2, and SCORM 2004",
"main": "dist/scorm-again.min.js",
"directories": {

View File

@@ -1249,7 +1249,7 @@ export class NAV extends BaseCMI {
* @return {string}
*/
get event() {
return (!this.jsonString) ? throwWriteOnlyError() : this.#event;
return this.#event;
}
/**