src/js/orb.utils.js
function(identifier, parent) {
        var parts = identifier.split('.');
        var i = 0;
        parent = parent || window;
        while (i < parts.length) {
            parent[parts[i]] = parent[parts[i]] || {};
            parent = parent[parts[i]];
            i++;
        }
        return parent;
    }
function(identifier, parent) {
        var parts = identifier.split('.');
        var i = 0;
        parent = parent || window;
        while (i < parts.length) {
            parent[parts[i]] = parent[parts[i]] || {};
            parent = parent[parts[i]];
            i++;
        }
        return parent;
    }
function ( identifier , parent ) { var parts = identifier . split ( '.' ) ; var i = 0 ; parent = parent || window ; while ( i < parts . length ) { parent [ parts [ i ] ] = parent [ parts [ i ] ] || { } ; parent = parent [ parts [ i ] ] ; i ++ ; } return parent ; }
Creates a namespcae hierarchy if not exists
@param  {string} identifier - namespace identifier
@return {object}
Creates a namespcae hierarchy if not exists