src/snazzy-info-window.js
function setHTML(container, content) {
    if (container) {
        // Clear out everything in the container
        while (container.firstChild) {
            container.removeChild(container.firstChild);
        }
        if (content) {
            if (typeof content === 'string') {
                container.innerHTML = content;
            } else {
                container.appendChild(content);
            }
        }
    }
}
function setHTML(container, content) {
    if (container) {
        // Clear out everything in the container
        while (container.firstChild) {
            container.removeChild(container.firstChild);
        }
        if (content) {
            if (typeof content === 'string') {
                container.innerHTML = content;
            } else {
                container.appendChild(content);
            }
        }
    }
}
function setHTML ( container , content ) { if ( container ) { // Clear out everything in the container while ( container . firstChild ) { container . removeChild ( container . firstChild ) ; } if ( content ) { if ( typeof content === 'string' ) { container . innerHTML = content ; } else { container . appendChild ( content ) ; } } } }
Set the html of a container. Should support both raw text and a single DOM Element.
Set the html of a container . Should support both raw text and a single DOM Element .