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 True if this instance is a direct or indirect parent of the given item, false otherwise.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López