Reformat file

This commit is contained in:
Martin Karkowski 2020-08-24 13:34:48 +02:00
parent 34c4f774f7
commit 3743aeacf6
2 changed files with 5 additions and 9 deletions

View File

@ -274,14 +274,14 @@ declare const window;
* @param uuid The Unique Id of the Dispatcher * @param uuid The Unique Id of the Dispatcher
* @param communicator The provided communicator * @param communicator The provided communicator
*/ */
export function getDispatcher(uuid: string, communicator: ICommunicationInterface){ export function getDispatcher(uuid: string, communicator: ICommunicationInterface) {
// Get the global variable // Get the global variable
const _global = typeof global !== "undefined" ? global : window; const _global = typeof global !== "undefined" ? global : window;
const _accessor = '__singletons__'+uuid; const _accessor = '__singletons__' + uuid;
const _hasDispatcher = _global[_accessor] !== undefined; const _hasDispatcher = _global[_accessor] !== undefined;
if (!_hasDispatcher){ if (!_hasDispatcher) {
_global[_accessor] = new nopeDispatcher(communicator); _global[_accessor] = new nopeDispatcher(communicator);
} }

View File

@ -15,10 +15,6 @@ export interface IExportPropertyToDispatcherParameters {
readonly?: boolean readonly?: boolean
} }
export const unicorn = {
test: []
}
/** /**
* Decorator used to export a Class API over openAPI * Decorator used to export a Class API over openAPI
* @param options * @param options