B2G/gecko/browser/components/tabview/iq.js
// Adds the given class(es) to the receiver.
Adds the given class(es) to the receiver.
Adds the given class ( es ) to the receiver .
function iQClass_addClass(value) {
    Utils.assertThrow(typeof value == "string" && value,
                      'requires a valid string argument');
    let length = this.length;
    for (let i = 0; i < length; i++) {
      let elem = this[i];
      if (elem.nodeType === 1) {
        value.split(/\s+/).forEach(function(className) {
          elem.classList.add(className);
        });
      }
    }
    return this;
  }
function iQClass_addClass ( value ) { Utils . assertThrow ( typeof value == "string" && value , 'requires a valid string argument' ) ; let length = this . length ; for ( let i = 0 ; i < length ; i ++ ) { let elem = this [ i ] ; if ( elem . nodeType === 1 ) { value . split ( / \s+ / ) . forEach ( function ( className ) { elem . classList . add ( className ) ; } ) ; } } return this ; }
Adds the given class(es) to the receiver.
Adds the given class ( es ) to the receiver .