arvindr21 / jsTree-directive

An Angular Directive for jsTree. Docs :
http://jstree-directive.herokuapp.com/
51 stars 33 forks source link

jsTree- Directive Uncaught RangeError: Maximum call stack size exceeded #4

Closed szymonzo closed 9 years ago

szymonzo commented 9 years ago

Hi, I would like to make static node, but i have problem , in my database i have maybe 5k records Error is in this line jstree.min.js if ("#" === r.id) return this.redraw(!0); if (i = i || 0 === r.children.length, t = document.querySelector ? this.element[0].querySelector("#" + (-1 !== "0123456789".indexOf(r.id[0]) ? "\3" + r.id[0] + " " + r.id.substr(1).replace(e.jstree.idregex, "\$&") : r.id.replace(e.jstree.idregex, "\$&"))) : document.getElementById(r.id)) t = e(t), s || (n = t.parent().parent()[0], n === this.element[0] && (n = null), a = t.index()), i || !r.children.length || t.children(".jstree-children").length || (i = !0), i || (d = t.children(".jstree-children")[0]), p = t.attr("aria-selected"), f = t.children(".jstree-anchor")[0] === document.activeElement, t.remove();

what can i do ?

arvindr21 commented 9 years ago

HI,

You can use the AJAX version to load one level of tree nodes at a time. Like : http://jstree-directive.herokuapp.com/#/ajax

Thanks.

arvindr21 commented 9 years ago

Closing as no response.