diff --git a/api/js/egw_action/EgwActionObjectInterface.ts b/api/js/egw_action/EgwActionObjectInterface.ts index db83621dcd..ef7433b40d 100644 --- a/api/js/egw_action/EgwActionObjectInterface.ts +++ b/api/js/egw_action/EgwActionObjectInterface.ts @@ -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; diff --git a/api/js/egw_action/egw_action.ts b/api/js/egw_action/egw_action.ts index e5b51b318a..edbde085d7 100755 --- a/api/js/egw_action/egw_action.ts +++ b/api/js/egw_action/egw_action.ts @@ -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; } \ No newline at end of file