RasterTreeItem.isAncestorOf( item )
Test if this item instance is a direct or indirect parent of the given item. This method is useful when moving items around and ensure any give parent item is not moved down into its own children, thus avoiding a cyclic recursive error.Parameters
| Name | Type | Description | |
|---|---|---|---|
| item | object | Tree item to be tested |
Returns
| Type | Description |
|---|---|
| boolean |
if this instance is a direct or indirect parent of the
given item, otherwise. |