mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Some return types
This commit is contained in:
parent
f412b71225
commit
a90946a05d
@ -100,7 +100,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
|
||||
default:'',
|
||||
description: "Sets background image, left, right and scale on DOM",
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
parentNode : HTMLElement = null;
|
||||
disabled : boolean = false;
|
||||
@ -259,7 +259,8 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
|
||||
|
||||
private _surroundingsMgr : et2_surroundingsMgr;
|
||||
|
||||
getSurroundings() {
|
||||
getSurroundings() : et2_surroundingsMgr
|
||||
{
|
||||
if (!this._surroundingsMgr)
|
||||
{
|
||||
this._surroundingsMgr = new et2_surroundingsMgr(this);
|
||||
@ -382,14 +383,16 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
|
||||
/**
|
||||
* Returns the parent node.
|
||||
*/
|
||||
getParentDOMNode() {
|
||||
getParentDOMNode() : HTMLElement
|
||||
{
|
||||
return this.parentNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the index of this element in the DOM tree
|
||||
*/
|
||||
getDOMIndex() {
|
||||
getDOMIndex() : number
|
||||
{
|
||||
if (this.getParent())
|
||||
{
|
||||
var idx = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user