diff --git a/README.md b/README.md index 2c44472..c729597 100644 --- a/README.md +++ b/README.md @@ -54,11 +54,10 @@ know the name of the 'children' attribute). ] }; - var tree = Arborel.parse(wikipediaJsCategory, 'subcategories'); + var tree = Arboreal.parse(wikipediaJsCategory, 'subcategories'); + +Also several children (or even the whole tree) can be added, after parse, at the same time (syntax is similar as parse) -Also several children (or even the whole tree) can be added at the same time (syntax is similar as parse) - - var tree = new Arboreal(); tree.children[1].appendChildren({category:'C#', subitems:[{category:'WPF'}]}, "subitems" ); ### Traversal