dist/claygl.es.js
function (path, basePath) {
        if (!basePath || path.match(/^\//)) {
            return path;
        }
        var pathParts = path.split('/');
        var basePathParts = basePath.split('/');

        var item = pathParts[0];
        while(item === '.' || item === '..') {
            if (item === '..') {
                basePathParts.pop();
            }
            pathParts.shift();
            item = pathParts[0];
        }
        return basePathParts.join('/') + '/' + pathParts.join('/');
    }
function (path, basePath) {
        if (!basePath || path.match(/^\//)) {
            return path;
        }
        var pathParts = path.split('/');
        var basePathParts = basePath.split('/');

        var item = pathParts[0];
        while(item === '.' || item === '..') {
            if (item === '..') {
                basePathParts.pop();
            }
            pathParts.shift();
            item = pathParts[0];
        }
        return basePathParts.join('/') + '/' + pathParts.join('/');
    }
function ( path , basePath ) { if ( ! basePath || path . match ( / ^\/ / ) ) { return path ; } var pathParts = path . split ( '/' ) ; var basePathParts = basePath . split ( '/' ) ; var item = pathParts [ 0 ] ; while ( item === '.' || item === '..' ) { if ( item === '..' ) { basePathParts . pop ( ) ; } pathParts . shift ( ) ; item = pathParts [ 0 ] ; } return basePathParts . join ( '/' ) + '/' + pathParts . join ( '/' ) ; }
Relative path to absolute path
@param  {string} path
@param  {string} basePath
@return {string}
@memberOf clay.core.util
Relative path to absolute path