scorm-again 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ __webpack_require__.r(__webpack_exports__);
10
10
 
11
11
  // EXPORTS
12
12
  __webpack_require__.d(__webpack_exports__, {
13
- AICCImpl: function() { return /* binding */ AICCImpl; }
13
+ AICC: function() { return /* binding */ AICCImpl; }
14
14
  });
15
15
 
16
16
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.mjs
@@ -991,7 +991,7 @@ var AICCImpl = (function (_super) {
991
991
  this.nav = newAPI.nav;
992
992
  };
993
993
  return AICCImpl;
994
- }(Scorm12API.Scorm12Impl));
994
+ }(Scorm12API.Scorm12API));
995
995
 
996
996
 
997
997
 
@@ -1724,6 +1724,11 @@ var BaseAPI = (function () {
1724
1724
  };
1725
1725
  BaseAPI.prototype.loadFromJSON = function (json, CMIElement) {
1726
1726
  if (CMIElement === void 0) { CMIElement = ""; }
1727
+ if ((!CMIElement || CMIElement === "") &&
1728
+ !Object.hasOwnProperty.call(json, "cmi") &&
1729
+ !Object.hasOwnProperty.call(json, "adl")) {
1730
+ CMIElement = "cmi";
1731
+ }
1727
1732
  if (!this.isNotInitialized()) {
1728
1733
  console.error("loadFromJSON can only be called before the call to lmsInitialize.");
1729
1734
  return;
@@ -1914,7 +1919,7 @@ var BaseAPI = (function () {
1914
1919
 
1915
1920
  __webpack_require__.r(__webpack_exports__);
1916
1921
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1917
- /* harmony export */ Scorm12Impl: function() { return /* binding */ Scorm12Impl; }
1922
+ /* harmony export */ Scorm12API: function() { return /* binding */ Scorm12Impl; }
1918
1923
  /* harmony export */ });
1919
1924
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(635);
1920
1925
  /* harmony import */ var _cmi_scorm12_cmi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(989);
@@ -2223,7 +2228,7 @@ __webpack_require__.r(__webpack_exports__);
2223
2228
 
2224
2229
  // EXPORTS
2225
2230
  __webpack_require__.d(__webpack_exports__, {
2226
- Scorm2004Impl: function() { return /* binding */ Scorm2004Impl; }
2231
+ Scorm2004API: function() { return /* binding */ Scorm2004Impl; }
2227
2232
  });
2228
2233
 
2229
2234
  // EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.mjs
@@ -7346,9 +7351,9 @@ function __disposeResources(env) {
7346
7351
  var __webpack_exports__ = {};
7347
7352
  __webpack_require__.r(__webpack_exports__);
7348
7353
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7349
- /* harmony export */ AICC: function() { return /* binding */ AICC; },
7350
- /* harmony export */ Scorm12API: function() { return /* binding */ Scorm12API; },
7351
- /* harmony export */ Scorm2004API: function() { return /* binding */ Scorm2004API; }
7354
+ /* harmony export */ AICC: function() { return /* reexport safe */ _AICC__WEBPACK_IMPORTED_MODULE_0__.AICC; },
7355
+ /* harmony export */ Scorm12API: function() { return /* reexport safe */ _Scorm12API__WEBPACK_IMPORTED_MODULE_1__.Scorm12API; },
7356
+ /* harmony export */ Scorm2004API: function() { return /* reexport safe */ _Scorm2004API__WEBPACK_IMPORTED_MODULE_2__.Scorm2004API; }
7352
7357
  /* harmony export */ });
7353
7358
  /* harmony import */ var _AICC__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(916);
7354
7359
  /* harmony import */ var _Scorm12API__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(941);
@@ -7356,12 +7361,9 @@ __webpack_require__.r(__webpack_exports__);
7356
7361
 
7357
7362
 
7358
7363
 
7359
- var Scorm12API = _Scorm12API__WEBPACK_IMPORTED_MODULE_1__.Scorm12Impl;
7360
- var Scorm2004API = _Scorm2004API__WEBPACK_IMPORTED_MODULE_2__.Scorm2004Impl;
7361
- var AICC = _AICC__WEBPACK_IMPORTED_MODULE_0__.AICCImpl;
7362
7364
 
7363
7365
 
7364
- var __webpack_export_target__ = this;
7366
+ var __webpack_export_target__ = window;
7365
7367
  for(var __webpack_i__ in __webpack_exports__) __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
7366
7368
  if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
7367
7369
  /******/ })()