X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fbuilder%2Fjson-parser-state.cpp;h=3691838345bd18ed8e69424342531acaff1f488d;hb=6e208aaad38b77bce2b7c5955196d5770d8b75a9;hp=afa9e59306330325a7c72c26d7bb27fd340da10c;hpb=1c3cb32385174b852b8d57b531625f733238f664;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/builder/json-parser-state.cpp b/dali-toolkit/internal/builder/json-parser-state.cpp index afa9e59..3691838 100644 --- a/dali-toolkit/internal/builder/json-parser-state.cpp +++ b/dali-toolkit/internal/builder/json-parser-state.cpp @@ -318,8 +318,13 @@ TreeNode* JsonParserState::NewNode(const char* name, TreeNode::NodeType type) TreeNodeManipulator modify(node); modify.SetName(name); - // Set the type of the existing node, this may remove children where necessary - // (changing from container type to value type) + + // Set the type of the existing node. + // Where the new type is different, then any children of this node will + // be deleted. + // When the type is an array of numbers, then this will also remove any children + // When the type is an object or other array, then the children will not be removed, + // but will instead follow these replace rules. modify.SetType(type); mCurrent = modify;