diff --git a/src/jstree.js b/src/jstree.js index 740888bf..10fdaf65 100644 --- a/src/jstree.js +++ b/src/jstree.js @@ -1315,7 +1315,7 @@ } obj.state.failed = false; obj.state.loading = true; - if (obj.id !== '#') { + if (obj.id !== $.jstree.root) { dom.children(".jstree-anchor").attr('aria-busy', true); } else { dom.attr('aria-busy', true); @@ -1344,7 +1344,7 @@ } } } - if (obj.id !== '#') { + if (obj.id !== $.jstree.root) { dom.children(".jstree-anchor").attr('aria-busy', false); } else { dom.attr('aria-busy', false);