Improve doc for xml functions

This commit is contained in:
Antoine Abt
2014-10-27 11:01:18 +01:00
parent 88d1258e83
commit ef435d9deb
+5 -2
View File
@@ -77,8 +77,10 @@ ol.xml.createElementNS =
/** /**
* Recursively grab all text content of child nodes into a single string.
* @param {Node} node Node. * @param {Node} node Node.
* @param {boolean} normalizeWhitespace Normalize whitespace. * @param {boolean} normalizeWhitespace Normalize whitespace: remove all line
* breaks.
* @return {string} All text content. * @return {string} All text content.
* @api * @api
*/ */
@@ -89,7 +91,8 @@ ol.xml.getAllTextContent = function(node, normalizeWhitespace) {
/** /**
* @param {Node} node Node. * @param {Node} node Node.
* @param {boolean} normalizeWhitespace Normalize whitespace. * @param {boolean} normalizeWhitespace Normalize whitespace: remove all line
* breaks.
* @param {Array.<String|string>} accumulator Accumulator. * @param {Array.<String|string>} accumulator Accumulator.
* @private * @private
* @return {Array.<String|string>} Accumulator. * @return {Array.<String|string>} Accumulator.