From 0790040aacbf73cf3292e09999f0d35a76a2aa2a Mon Sep 17 00:00:00 2001 From: Jason Bonta Date: Thu, 20 Feb 2014 16:00:19 -0800 Subject: [PATCH] update docblock ...for typechecking. --- src/browser/dom/DOMChildrenOperations.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/browser/dom/DOMChildrenOperations.js b/src/browser/dom/DOMChildrenOperations.js index ad1939cb43..8326e3c121 100644 --- a/src/browser/dom/DOMChildrenOperations.js +++ b/src/browser/dom/DOMChildrenOperations.js @@ -57,18 +57,24 @@ function insertChildAt(parentNode, childNode, index) { } } -/** - * Sets the text content of `node` to `text`. - * - * @param {DOMElement} node Node to change - * @param {string} text New text content - */ var updateTextContent; if (textContentAccessor === 'textContent') { + /** + * Sets the text content of `node` to `text`. + * + * @param {DOMElement} node Node to change + * @param {string} text New text content + */ updateTextContent = function(node, text) { node.textContent = text; }; } else { + /** + * Sets the text content of `node` to `text`. + * + * @param {DOMElement} node Node to change + * @param {string} text New text content + */ updateTextContent = function(node, text) { // In order to preserve newlines correctly, we can't use .innerText to set // the contents (see #1080), so we empty the element then append a text node