mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Add some extra info for debug during loading
This commit is contained in:
parent
b34fec2363
commit
6a3a8654fc
@ -1028,8 +1028,11 @@ const Et2WidgetMixin = <T extends Constructor>(superClass : T) =>
|
||||
}
|
||||
};
|
||||
doLoadingFinished();
|
||||
const updateComplete = this.updateComplete;
|
||||
// Record widget for debug
|
||||
updateComplete["widget"] = this;
|
||||
|
||||
promises.push(this.getUpdateComplete());
|
||||
promises.push(updateComplete);
|
||||
}
|
||||
|
||||
getWidgetById(_id)
|
||||
|
@ -22,7 +22,7 @@ import {egw, IegwAppLocal} from "../jsapi/egw_global";
|
||||
import {et2_cloneObject, et2_csvSplit} from "./et2_core_common";
|
||||
import {et2_compileLegacyJS} from "./et2_core_legacyJSFunctions";
|
||||
import {et2_IDOMNode, et2_IInputNode} from "./et2_core_interfaces";
|
||||
import {loadWebComponent,Et2Widget} from "./Et2Widget/Et2Widget";
|
||||
import {Et2Widget, loadWebComponent} from "./Et2Widget/Et2Widget";
|
||||
// fixing circular dependencies by only importing type
|
||||
import type {et2_container} from "./et2_core_baseWidget";
|
||||
import type {et2_inputWidget} from "./et2_core_inputWidget";
|
||||
@ -927,6 +927,9 @@ export class et2_widget extends ClassWithAttributes
|
||||
}
|
||||
else if(typeof result == "object" && result.then)
|
||||
{
|
||||
// Record widget for debug
|
||||
result["widget"] = this;
|
||||
|
||||
// Warn if list was not provided
|
||||
if (warn_if_deferred)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user