src/sap.ui.core/src/sap/ui/model/odata/ODataTreeBindingFlat.js
function (oNode) {
			// if there are subnodes added to the current node -> traverse them first (added nodes are at the top, before any children)
			if (oNode.addedSubtrees.length > 0 && !oNode.nodeState.collapsed) {
				// an added subtree can be either a deep or a flat tree (depending on the addContexts) call
				for (var j = 0; j < oNode.addedSubtrees.length; j++) {
					var oSubtreeHandle = oNode.addedSubtrees[j];
					fnTraverseAddedSubtree(oNode, oSubtreeHandle);
					if (oRecursionBreaker.broken) {
						return;
					}
				}
			}
		}
function (oNode) {
			// if there are subnodes added to the current node -> traverse them first (added nodes are at the top, before any children)
			if (oNode.addedSubtrees.length > 0 && !oNode.nodeState.collapsed) {
				// an added subtree can be either a deep or a flat tree (depending on the addContexts) call
				for (var j = 0; j < oNode.addedSubtrees.length; j++) {
					var oSubtreeHandle = oNode.addedSubtrees[j];
					fnTraverseAddedSubtree(oNode, oSubtreeHandle);
					if (oRecursionBreaker.broken) {
						return;
					}
				}
			}
		}
function ( oNode ) { // if there are subnodes added to the current node -> traverse them first (added nodes are at the top, before any children) if ( oNode . addedSubtrees . length > 0 && ! oNode . nodeState . collapsed ) { // an added subtree can be either a deep or a flat tree (depending on the addContexts) call for ( var j = 0 ; j < oNode . addedSubtrees . length ; j ++ ) { var oSubtreeHandle = oNode . addedSubtrees [ j ] ; fnTraverseAddedSubtree ( oNode , oSubtreeHandle ) ; if ( oRecursionBreaker . broken ) { return ; } } } }
Helper function to iterate all added subtrees of a node.
Helper function to iterate all added subtrees of a node .