(node, text)
| 14843 | * @internal |
| 14844 | */ |
| 14845 | var setTextContent = function (node, text) { |
| 14846 | if (text) { |
| 14847 | var firstChild = node.firstChild; |
| 14848 | |
| 14849 | if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) { |
| 14850 | firstChild.nodeValue = text; |
| 14851 | return; |
| 14852 | } |
| 14853 | } |
| 14854 | node.textContent = text; |
| 14855 | }; |
| 14856 | |
| 14857 | /** |
| 14858 | * CSS properties which accept numbers but are not in units of "px". |
no outgoing calls
no test coverage detected