Removes all children elements of the given element. Note that it uses e.removeChild() method in a loop, which is much faster than e.innerHTML=''. Also calls cleanElement for all descendant controls.
Element to clean
Optional
Default false, cleans only children of e if set to 'true'.
The same element
cleanElement
Removes all children elements of the given element. Note that it uses e.removeChild() method in a loop, which is much faster than e.innerHTML=''. Also calls cleanElement for all descendant controls.