site/public/semantic/javascript/semantic.js
function(members) {
              users = {};
              members.each(function(member) {
                if(member.id !== 'anonymous' && member.id !== 'undefined') {
                  if(settings.randomColor && member.info.color === undefined) {
                    member.info.color = settings.templates.color(member.id);
                  }
                  // sort list with admin first
                  html = (member.info.isAdmin)
                    ? settings.templates.userList(member.info) + html
                    : html + settings.templates.userList(member.info)
                  ;
                  users[ member.id ] = member.info;
                }
              });
              $module
                .data('users', users)
                .data('user', users[members.me.id] )
                .removeClass(className.loading)
              ;
              $userList
                .html(html)
              ;
              module.user.updateCount();
              $.proxy(settings.onJoin, $userList.children())();
            }
function(members) {
              users = {};
              members.each(function(member) {
                if(member.id !== 'anonymous' && member.id !== 'undefined') {
                  if(settings.randomColor && member.info.color === undefined) {
                    member.info.color = settings.templates.color(member.id);
                  }
                  // sort list with admin first
                  html = (member.info.isAdmin)
                    ? settings.templates.userList(member.info) + html
                    : html + settings.templates.userList(member.info)
                  ;
                  users[ member.id ] = member.info;
                }
              });
              $module
                .data('users', users)
                .data('user', users[members.me.id] )
                .removeClass(className.loading)
              ;
              $userList
                .html(html)
              ;
              module.user.updateCount();
              $.proxy(settings.onJoin, $userList.children())();
            }
function ( members ) { users = { } ; members . each ( function ( member ) { if ( member . id !== 'anonymous' && member . id !== 'undefined' ) { if ( settings . randomColor && member . info . color === undefined ) { member . info . color = settings . templates . color ( member . id ) ; } // sort list with admin first html = ( member . info . isAdmin ) ? settings . templates . userList ( member . info ) + html : html + settings . templates . userList ( member . info ) ; users [ member . id ] = member . info ; } } ) ; $module . data ( 'users' , users ) . data ( 'user' , users [ members . me . id ] ) . removeClass ( className . loading ) ; $userList . html ( html ) ; module . user . updateCount ( ) ; $ . proxy ( settings . onJoin , $userList . children ( ) ) ( ) ; }
receives list of members and generates user list
receives list of members and generates user list