Improve doc for xml functions
This commit is contained in:
+5
-2
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user