(e)
| 5005 | } |
| 5006 | |
| 5007 | function removeChildren(e) { |
| 5008 | // IE will break all parent-child relations in subnodes when setting innerHTML |
| 5009 | if (!ie) e.innerHTML = ""; |
| 5010 | else while (e.firstChild) e.removeChild(e.firstChild); |
| 5011 | return e; |
| 5012 | } |
| 5013 | |
| 5014 | function removeChildrenAndAdd(parent, e) { |
| 5015 | return removeChildren(parent).appendChild(e); |
no outgoing calls
no test coverage detected