mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
Fix access before initialization issue breaking JS tests
This commit is contained in:
parent
73a606f6ba
commit
2dc9c4ec57
@ -23,7 +23,7 @@ export interface EgwActionObjectInterface {
|
||||
//properties
|
||||
id?:string
|
||||
_state: number;
|
||||
handlers : { [type : string]? : [{ type : string, listener : Function }] };
|
||||
handlers : { [type : string] : [{ type : string, listener : Function }] };
|
||||
stateChangeCallback: Function;
|
||||
stateChangeContext: any;
|
||||
reconnectActionsCallback: Function;
|
||||
|
@ -388,21 +388,26 @@ export class egwDragAction extends EgwDragAction {
|
||||
};
|
||||
})()
|
||||
|
||||
let _dragActionImpl = null;
|
||||
|
||||
export function getDragImplementation() {
|
||||
if (!_dragActionImpl) {
|
||||
_dragActionImpl = new EgwDragActionImplementation();
|
||||
if(typeof window["_egwActionImpls"] != "object")
|
||||
{
|
||||
window["_egwActionImpls"] = {};
|
||||
}
|
||||
if(!window["_egwActionImpls"]._dragActionImpl)
|
||||
{
|
||||
window["_egwActionImpls"]._dragActionImpl = new EgwDragActionImplementation();
|
||||
}
|
||||
return _dragActionImpl;
|
||||
return window["_egwActionImpls"]._dragActionImpl;
|
||||
}
|
||||
|
||||
|
||||
let _dropActionImpl = null;
|
||||
|
||||
export function getDropImplementation() {
|
||||
if (!_dropActionImpl) {
|
||||
_dropActionImpl = new egwDropActionImplementation();
|
||||
if(typeof window["_egwActionImpls"] != "object")
|
||||
{
|
||||
window["_egwActionImpls"] = {};
|
||||
}
|
||||
if(!window["_egwActionImpls"]._dropActionImpl)
|
||||
{
|
||||
window["_egwActionImpls"]._dropActionImpl = new egwDropActionImplementation();
|
||||
}
|
||||
return _dropActionImpl;
|
||||
return window["_egwActionImpls"]._dropActionImpl;
|
||||
}
|
Loading…
Reference in New Issue
Block a user