refreshComponentsInSubtree function

void refreshComponentsInSubtree (HtmlElement element)

Implementation

void refreshComponentsInSubtree(final dom.HtmlElement element) {
    if(element != null && element is dom.HtmlElement) {
        element.children.forEach((final dom.Element element) => refreshComponentsInSubtree(element));
        if(isMdlComponent(element)) {
            mdlComponents(element).forEach((final MdlComponent component) {
                if(component is RefreshableComponent) {
                    (component as RefreshableComponent).refresh();
                }
            });
        }
    }
}