Fix some visibility issues, export the et2_action_object_impl

This commit is contained in:
nathangray 2020-01-22 10:16:39 -07:00
parent 504c11b87f
commit 7f4db7949f

View File

@ -109,11 +109,11 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
parentNode : HTMLElement = null; parentNode : HTMLElement = null;
disabled : boolean = false; disabled : boolean = false;
private _attachSet: any = { protected _attachSet : any = {
"node": null, "node": null,
"parent": null "parent": null
}; };
private _actionManager: any; protected _actionManager: any;
width: number; width: number;
height: number; height: number;
dom_id: string; dom_id: string;
@ -194,7 +194,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
*/ */
detachFromDOM() detachFromDOM()
{ {
if (this._attachSet.node && this._attachSet.parent) if (this._attachSet && this._attachSet.node && this._attachSet.parent)
{ {
// Remove the current node from the parent node // Remove the current node from the parent node
try { try {
@ -225,7 +225,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
// Attach the DOM node of this widget (if existing) to the new parent // Attach the DOM node of this widget (if existing) to the new parent
var node = this.getDOMNode(this); var node = this.getDOMNode(this);
if (node && this.parentNode && if (node && this.parentNode &&
(node != this._attachSet.node || (!this._attachSet || this._attachSet && node != this._attachSet.node ||
this.parentNode != this._attachSet.parent)) this.parentNode != this._attachSet.parent))
{ {
// If the surroundings manager exists, surround the DOM-Node of this // If the surroundings manager exists, surround the DOM-Node of this
@ -660,7 +660,6 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
var action_links = this._get_action_links(actions); var action_links = this._get_action_links(actions);
widget_object.updateActionLinks(action_links); widget_object.updateActionLinks(action_links);
} }
} }
/** /**
@ -888,7 +887,7 @@ class et2_surroundingsMgr extends ClassWithAttributes
* @param {Object} node * @param {Object} node
* *
*/ */
class et2_action_object_impl export class et2_action_object_impl
{ {
aoi : egwActionObjectInterface; aoi : egwActionObjectInterface;