(node, text)
| 14987 | * @internal |
| 14988 | */ |
| 14989 | var setTextContent = function (node, text) { |
| 14990 | if (text) { |
| 14991 | var firstChild = node.firstChild; |
| 14992 | |
| 14993 | if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) { |
| 14994 | firstChild.nodeValue = text; |
| 14995 | return; |
| 14996 | } |
| 14997 | } |
| 14998 | node.textContent = text; |
| 14999 | }; |
| 15000 | |
| 15001 | /** |
| 15002 | * CSS properties which accept numbers but are not in units of "px". |
no outgoing calls
no test coverage detected