I want to add
foundNodes = $( this.treeIDMap.igTree( "findNodesByText", "test1") )
+
foundNodes = $( this.treeIDMap.igTree( "findNodesByText", "test2") )
Seems that the return is an object not a list, so there is some proprietary magic in here. Maybe the objects are listed under one main object by id? So what is the best way to add the two results.
Hello seang,
The igTree returns an array of individual item objects, for instance if one item is returned the result would look similar to:
sure that makes sense and I agree but the browser does not.
TypeError: foundNodes.concat is not a function
Since this is not really an array and more like an object the concat is not recognized.
alert( typeof foundNodes ); // gives me object.
concat is for arrays not objectshttp://www.w3schools.com/jsref/jsref_concat_array.asp