The easiest way would be to do an if/else statment:
if (tree.selected == "leaf")
{
  doPopulationStuff();
}
else if (tree.selected == "branch")
{
  // ignore selection...
}

That's what I do! :D
-Nate

--- In [email protected], "cardinalflexjeremy" 
<[EMAIL PROTECTED]> wrote:
>
> I have a simple tree component, tied to a XML list. 
> 
> I want to make the branches unclickable, but not the leafs. When 
the
> user clicks the branch I dont want it to do anything or populate 
the
> details panel at the side, only when they click the leaf. 
> 
> Anyway to do this easily?
> 
> JS
>


Reply via email to