You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with a loaded.jstree event handler that I use to call the open_all function in jstree. Sometimes it gets called and sometimes not. When I debug I can see that jstree triggers the loaded.jstree event but it seems to me that, since manageEvents is being wrapped in a timeout function, the event is triggered before manageEvents gets called. Hence the event is triggered before the event handler is registered.
I've only experienced this in IE11.
The text was updated successfully, but these errors were encountered:
It's not easy to debug this problem because it behaves differently when I put breakpoints in the code. But by using console.logs in the right places I could confirm that sometimes the loaded.jstree event was triggered before the event handler was registered and sometimes the other way around. Basically you've got two pieces of code that run asynchronously and you can't be sure which one will run first.
Edminsson
added a commit
to Riksarkivet/ngJsTree
that referenced
this issue
Sep 14, 2017
I have a problem with a loaded.jstree event handler that I use to call the open_all function in jstree. Sometimes it gets called and sometimes not. When I debug I can see that jstree triggers the loaded.jstree event but it seems to me that, since manageEvents is being wrapped in a timeout function, the event is triggered before manageEvents gets called. Hence the event is triggered before the event handler is registered.
I've only experienced this in IE11.
The text was updated successfully, but these errors were encountered: