Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfixes related to setting of cursor on parent nodes #4

Merged
merged 2 commits into from Feb 6, 2012

Conversation

neilb
Copy link
Contributor

@neilb neilb commented Jan 23, 2012

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

  • …ursor on parent nodes.
    
    Also stopped the click handler being installed on nodes which don't have any children.
    And cursor set correctly if you start a sub-tree collapsed, with <li class=collapsed>
    @wesnolte
    Copy link
    Owner

    wesnolte commented Feb 6, 2012

    Thanks again Neil.

    @wesnolte wesnolte closed this Feb 6, 2012
    wesnolte added a commit that referenced this pull request Feb 6, 2012
    Bugfixes related to setting of cursor on parent nodes
    @wesnolte wesnolte merged commit 2ba68bd into wesnolte:master Feb 6, 2012
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    None yet

    2 participants