src/js/components/QualitySelector.js
function(source) {
         var src = (source ? source.src : undefined);

         if (this.selectedSrc !== src) {
            this.selectedSrc = src;
            this.update();
         }
      }
function(source) {
         var src = (source ? source.src : undefined);

         if (this.selectedSrc !== src) {
            this.selectedSrc = src;
            this.update();
         }
      }
function ( source ) { var src = ( source ? source . src : undefined ) ; if ( this . selectedSrc !== src ) { this . selectedSrc = src ; this . update ( ) ; } }
Updates the source that is selected in the menu

@param source {object} player source to display as selected
Updates the source that is selected in the menu