wesnolte/jOrgChart — pull request #4 by neilbowers (2012-01-23 12:39:14+00:00)
Title: Bugfixes related to setting of cursor on parent nodes

Hi Wes,

Three fixes related to setting the cursor on nodes:

[1]

When opening/closing a parent node, it was calling addClass(), but it also needs to removeClass() otherwise you ended up with both contracted and expanded classes on a node.

[2] the click handler now doesn't get installed on nodes that don't have any children.

[3] set the contracted class on nodes which have their initial state set with
and set the cursor correctly too.

Neil