jackbone.js
function (separator, page, args) {

        // By default, we return page name without arguments.
        var ret = page;
        if (typeof args !== 'undefined') {
            if (args && args.length) {
                // Some arguments have been provided, add them.
                if (args.length !== 0) {
                    ret = page + separator + args.join(separator);
                }
            } else {
                // Argument isn't an array, add it.
                ret = page + separator + args;
            }
        }
        return ret;
    }
function (separator, page, args) {

        // By default, we return page name without arguments.
        var ret = page;
        if (typeof args !== 'undefined') {
            if (args && args.length) {
                // Some arguments have been provided, add them.
                if (args.length !== 0) {
                    ret = page + separator + args.join(separator);
                }
            } else {
                // Argument isn't an array, add it.
                ret = page + separator + args;
            }
        }
        return ret;
    }
function ( separator , page , args ) { // By default, we return page name without arguments. var ret = page ; if ( typeof args !== 'undefined' ) { if ( args && args . length ) { // Some arguments have been provided, add them. if ( args . length !== 0 ) { ret = page + separator + args . join ( separator ) ; } } else { // Argument isn't an array, add it. ret = page + separator + args ; } } return ret ; }
Used to generate page hash tag or HTML attribute. by getPageName and getPageHash. Does it by joining page and arguments using the given separator.
Used to generate page hash tag or HTML attribute . by getPageName and getPageHash . Does it by joining page and arguments using the given separator .