lib/jsdoc/transform-apijson-for-sdk.js
function (aParameters) {
			// New array to hold modified parameters
			var aNodes = [],
				processNode = function (oNode, sPhoneName, iDepth, aNodes) {
					// Handle phone name
					oNode.phoneName = sPhoneName ? [sPhoneName, oNode.name].join(".") : oNode.name;

					// Depth
					oNode.depth = iDepth;

					// Add to array
					aNodes.push(oNode);

					// Handle nesting
					if (oNode.parameterProperties) {
						Object.keys(oNode.parameterProperties).forEach(function (sNode) {
							processNode(oNode.parameterProperties[sNode], oNode.phoneName, (iDepth + 1), aNodes);
						});
					}

					delete oNode.parameterProperties;
				};

			aParameters.forEach(function (oParameter) {
				// Handle Parameter Properties
				// Note: We flatten the structure
				processNode(oParameter, undefined, 0, aNodes);
			});

			return aNodes;
		}
function (aParameters) {
			// New array to hold modified parameters
			var aNodes = [],
				processNode = function (oNode, sPhoneName, iDepth, aNodes) {
					// Handle phone name
					oNode.phoneName = sPhoneName ? [sPhoneName, oNode.name].join(".") : oNode.name;

					// Depth
					oNode.depth = iDepth;

					// Add to array
					aNodes.push(oNode);

					// Handle nesting
					if (oNode.parameterProperties) {
						Object.keys(oNode.parameterProperties).forEach(function (sNode) {
							processNode(oNode.parameterProperties[sNode], oNode.phoneName, (iDepth + 1), aNodes);
						});
					}

					delete oNode.parameterProperties;
				};

			aParameters.forEach(function (oParameter) {
				// Handle Parameter Properties
				// Note: We flatten the structure
				processNode(oParameter, undefined, 0, aNodes);
			});

			return aNodes;
		}
function ( aParameters ) { // New array to hold modified parameters var aNodes = [ ] , processNode = function ( oNode , sPhoneName , iDepth , aNodes ) { // Handle phone name oNode . phoneName = sPhoneName ? [ sPhoneName , oNode . name ] . join ( "." ) : oNode . name ; // Depth oNode . depth = iDepth ; // Add to array aNodes . push ( oNode ) ; // Handle nesting if ( oNode . parameterProperties ) { Object . keys ( oNode . parameterProperties ) . forEach ( function ( sNode ) { processNode ( oNode . parameterProperties [ sNode ] , oNode . phoneName , ( iDepth + 1 ) , aNodes ) ; } ) ; } delete oNode . parameterProperties ; } ; aParameters . forEach ( function ( oParameter ) { // Handle Parameter Properties // Note: We flatten the structure processNode ( oParameter , undefined , 0 , aNodes ) ; } ) ; return aNodes ; }
Adjusts constructor parameters info so that it can be easily displayed in a table
@param {Array} aParameters - the events array initially coming from the server
Adjusts constructor parameters info so that it can be easily displayed in a table