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

Problem with jQuery 1.6.2 #42

Closed
gillesdalle opened this issue Jul 1, 2011 · 3 comments
Closed

Problem with jQuery 1.6.2 #42

gillesdalle opened this issue Jul 1, 2011 · 3 comments

Comments

@gillesdalle
Copy link

Hy,

I've found a problem with jQuery 1.6.2.
The refresh function does nothing.

ie : $('#tree').jstree('refresh');

This problem doesn't occur in v1.6.1.

Cheers

@nirfri
Copy link

nirfri commented Jul 5, 2011

due to the jQuery 1.6.2 commit jquery/jquery@0742056

@ByronCobb
Copy link

I've found jstree is also broken in 1.6.2 with:

var instance = instances[$.data(this, "jstree-instance-id")]
where .data cannot handle hyphens now.

Solution: var instance = instances[$.data(this, "jstreeinstanceid")]

I then also find this doesn't work:

$(jQuery.jstree._reference($("#myTree"))._get_parent(data.r));
where data.r is the dragged object in drag_finish
Null is returned instead of the required object

@vakata
Copy link
Owner

vakata commented Jul 11, 2011

I added a few fixes for the underscore bug in jstree to the latest push. As for the _get_parent - do not use $() around ._reference.

Kindest regards,
Ivan

@vakata vakata closed this as completed Jul 11, 2011
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

No branches or pull requests

4 participants