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

Pushing multiple nodes in succession at root level hangs the browser #54

Open
arshabh opened this issue Dec 4, 2015 · 6 comments
Open

Comments

@arshabh
Copy link

arshabh commented Dec 4, 2015

I have discovered that pushing multiple nodes at root level in succession hangs the browser.
My findings reveal that a while loop is set infinitely in the nodesWatcher.onAdded method.

nodesWatcher.onAdded = function (node) {
                    while(blocked) {}
                    blocked = true;
                    var parent = scope.tree.jstree(true).get_node(node.parent);
                    var res = scope.tree.jstree(true).create_node(parent, node, 'inside',function() {
                        blocked = false;
                    });
                    if (!res) {
                        blocked = false;
                    }
                };
@gglazer
Copy link

gglazer commented Dec 4, 2015

+1

@ezraroi
Copy link
Owner

ezraroi commented Dec 4, 2015

Can you please reproduce this on plunker?

@arshabh
Copy link
Author

arshabh commented Feb 1, 2016

I am sorry - could not find time to reproduce this on plunkr. There were some issues in creating the plunkr initially and then i got busy. I will post a plunkr as soon as i get time. Also, i discovered that if i disable web-worker in the config options - i dont face this issue.

@ezraroi
Copy link
Owner

ezraroi commented Feb 2, 2016

thanks

@noob9527
Copy link

+1

1 similar comment
@yriiarutiunian
Copy link

+1

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

5 participants