alexandernst/jstree-actions

Removing last node using jstree-actions causes exception

Closed this issue · 3 comments

slbug commented

Here is example. http://jsfiddle.net/1m97d73f/1/

If you remove node using external button everything will be ok. If using jstree-actions button you will receive exception

slbug commented

May be it's because we removing focused node. /cc @vakata

I updated your jsfiddle with the unminified version of my plugin for easier debugging: http://jsfiddle.net/1m97d73f/2/

This looks very weird. Both delete_node calls are receiving exactly the same object (check the console.logs that I placed before each call), but for some reason the call from inside the callback is failing.

I'm closing this as this is clearly not a bug in my plugin: http://jsfiddle.net/1m97d73f/3/

I opened an issue for you: vakata/jstree#1265