function fnPopulate(content)
    {
        // 1. dump the content in
        if (typeof content === 'string')
        {
            elContent.innerHTML = content;
        }
        else
        {
            elContent.innerHTML = '';
            elContent.appendChild(content);
        }

        // 2. remove any loading class
        elDom.classList.remove('-loading');
        if (bKillPadding)
        {
            elDom.classList.add('-no-padding');
        }

        // 3. bind behaviours
        require('core/behaviours').bind(elContent);

        // 4. job done!
        fnResolve(elContent);
    }
/**
     * Populates the DOM with some markup/a DOM element.
     *
     * @param {mixed} content - the content to display
     */
Populates the DOM with some markup/a DOM element.
@param {mixed} content - the content to display
Populates the DOM with some markup / a DOM element . @param { mixed } content - the content to display
function fnPopulate(content)
    {
        if (typeof content === 'string')
        {
            elContent.innerHTML = content;
        }
        else
        {
            elContent.innerHTML = '';
            elContent.appendChild(content);
        }
        elDom.classList.remove('-loading');
        if (bKillPadding)
        {
            elDom.classList.add('-no-padding');
        }
        require('core/behaviours').bind(elContent);
        fnResolve(elContent);
    }
function fnPopulate ( content ) { if ( typeof content === 'string' ) { elContent . innerHTML = content ; } else { elContent . innerHTML = '' ; elContent . appendChild ( content ) ; } elDom . classList . remove ( '-loading' ) ; if ( bKillPadding ) { elDom . classList . add ( '-no-padding' ) ; } require ( 'core/behaviours' ) . bind ( elContent ) ; fnResolve ( elContent ) ; }
Populates the DOM with some markup/a DOM element.
Populates the DOM with some markup / a DOM element .
// 1. dump the content in // 2. remove any loading class // 3. bind behaviours // 4. job done!