mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
change getRoot() to return et2_container to get (g|s)etValueById() and friends working without a cast
This commit is contained in:
parent
58d57b99f3
commit
c9a478c3d2
@ -18,6 +18,7 @@
|
||||
|
||||
import {ClassWithAttributes} from './et2_core_inheritance';
|
||||
import {et2_arrayMgr, et2_readonlysArrayMgr} from "./et2_core_arrayMgr";
|
||||
import {et2_baseWidget, et2_container} from "./et2_core_baseWidget";
|
||||
|
||||
/**
|
||||
* The registry contains all XML tag names and the corresponding widget
|
||||
@ -349,12 +350,12 @@ export class et2_widget extends ClassWithAttributes
|
||||
/**
|
||||
* Returns the base widget
|
||||
*/
|
||||
getRoot() : et2_widget
|
||||
getRoot() : et2_container
|
||||
{
|
||||
if (this._parent != null) {
|
||||
return this._parent.getRoot();
|
||||
} else {
|
||||
return this;
|
||||
return <et2_container><unknown>this;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user