update docblock
...for typechecking.
Jason Bonta committed
Feb 20, 2014 at 16:00 UTC
0790040aacbf73cf3292e09999f0d35a76a2aa2a
1 file changed
+12
-6
src/browser/dom/DOMChildrenOperations.js
+12
-6
@@ -57,18 +57,24 @@ function insertChildAt(parentNode, childNode, index) {
57
}
58
}
59
60
-/**
61
- * Sets the text content of `node` to `text`.
62
- *
63
- * @param {DOMElement} node Node to change
64
- * @param {string} text New text content
65
- */
60
var updateTextContent;
61
if (textContentAccessor === 'textContent') {
62
+ /**
63
+ * Sets the text content of `node` to `text`.
64
+ *
65
+ * @param {DOMElement} node Node to change
66
+ * @param {string} text New text content
67
+ */
68
updateTextContent = function(node, text) {
69
node.textContent = text;
70
};
71
} else {
72
+ /**
73
+ * Sets the text content of `node` to `text`.
74
+ *
75
+ * @param {DOMElement} node Node to change
76
+ * @param {string} text New text content
77
+ */
78
updateTextContent = function(node, text) {
79
// In order to preserve newlines correctly, we can't use .innerText to set
80
// the contents (see #1080), so we empty the element then append a text node