im receiving this error
Uncaught TypeError: m[dat[i].parent.toString(...)].children.push is not a function
my code is this.
$("#encodable-tree").jstree({
"core": {
"data": [
{
id: "108",
text: "108",
parent: "#",
children: true
},
{
id: "108/include",
text: "include",
parent: "108",
children: true
}
]
},
"progressive_unload": false,
"progressive_render": true,
"contextmenu": {"select_node": "true"}
});
The line of JS that is getting the error is a generated file i guess? it's blob:http://...........
the area of the error occurs in this block
// 2) populate children (foreach)
for(i = 0, j = dat.length; i < j; i++) {
m[dat[i].parent.toString()].children.push(dat[i].id.toString()); //this is the offending line
// populate parent.children_d
p.children_d.push(dat[i].id.toString());
}
if i remove the second object the 108 directory shows but when i add it in it breaks with that error. i've been staring at it for almost 2 days and im sure it's something stupid.
Thanks