import/export test - problem with loading order of backend.js (window.jsOMS not available)

This commit is contained in:
Dennis Eichhorn 2019-04-01 21:52:16 +02:00
parent b6a95d55eb
commit 8d244712f1
2 changed files with 4 additions and 18 deletions

View File

@ -1,3 +1,5 @@
import { Navigation } from './Models/Navigation.js';
/** /**
* Navigation controller. * Navigation controller.
* *
@ -64,7 +66,7 @@
const extend = e.querySelectorAll('li label'), const extend = e.querySelectorAll('li label'),
self = this; self = this;
this.navigation[e.id] = new jsOMS.Modules.Navigation.Models.Navigation(this.rawNavData[e.id]); this.navigation[e.id] = new Navigation(this.rawNavData[e.id]);
// On load // On load
const open = this.navigation[e.id].getOpen(); const open = this.navigation[e.id].getOpen();

View File

@ -1,19 +1,4 @@
/** export class Navigation {
* Navigation class.
*
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @since 1.0.0
*/
(function (jsOMS)
{
"use strict";
/** @namespace jsOMS.Modules.Navigation.Models */
jsOMS.Autoloader.defineNamespace('jsOMS.Modules.Navigation.Models');
jsOMS.Modules.Navigation.Models.Navigation = class {
/** /**
* Construct * Construct
* *
@ -144,4 +129,3 @@
return this.visible; return this.visible;
}; };
}; };
}(window.jsOMS = window.jsOMS || {}));