Skip to content

Root level [role=leaf] cause a bug #4

@zeroasterisk

Description

@zeroasterisk

If you load any leaf elements onto the tree which are not contained in a branch it gives an error that the method doesn't exist on undefined... which makes sense

$("body").on("click.tree.data-api", "[role=leaf]", function (e) {
  .........
  e = $.Event("nodeselect", {
    node: $(branch).data("tree").node($this)
  });

I tried hacking in basic support for this, but I couldn't get it right... ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions