src/formats/collada/ColladaUtils.js
function (filePath) {

            var pos = filePath.lastIndexOf("\\");
            if (pos !== -1) {
                filePath = filePath.substr(pos + 1);
            }

            pos = filePath.lastIndexOf("/");
            if (pos !== -1) {
                filePath = filePath.substr(pos + 1);
            }

            return filePath;
        }
function (filePath) {

            var pos = filePath.lastIndexOf("\\");
            if (pos !== -1) {
                filePath = filePath.substr(pos + 1);
            }

            pos = filePath.lastIndexOf("/");
            if (pos !== -1) {
                filePath = filePath.substr(pos + 1);
            }

            return filePath;
        }
function ( filePath ) { var pos = filePath . lastIndexOf ( "\\" ) ; if ( pos !== - 1 ) { filePath = filePath . substr ( pos + 1 ) ; } pos = filePath . lastIndexOf ( "/" ) ; if ( pos !== - 1 ) { filePath = filePath . substr ( pos + 1 ) ; } return filePath ; }
Returns the filename without slashes.
Internal. Applications should not call this function.
@param {String} filePath
Returns the filename without slashes . Internal . Applications should not call this function .