src/basis/tracker.js
function stringifyRole(role){
  if (typeof role == 'string')
    return role;

  if (!role)
    return '';

  return [
    role.role || '',
    role.roleId ? '(' + role.roleId + ')' : '',
    role.subrole ? '/' + role.subrole : ''
  ].join('');
}
function stringifyRole(role){
  if (typeof role == 'string')
    return role;

  if (!role)
    return '';

  return [
    role.role || '',
    role.roleId ? '(' + role.roleId + ')' : '',
    role.subrole ? '/' + role.subrole : ''
  ].join('');
}
function stringifyRole ( role ) { if ( typeof role == 'string' ) return role ; if ( ! role ) return '' ; return [ role . role || '' , role . roleId ? '(' + role . roleId + ')' : '' , role . subrole ? '/' + role . subrole : '' ] . join ( '' ) ; }
Inverse to parseRole function.
Is used in devpanel.
@param {string|RoleObject} role
@return {string}
Inverse to parseRole function . Is used in devpanel .