B2G/gecko/browser/components/tabview/iq.js
//   a: string, b: string/number - sets property specified by a to b
string, b: string/number - sets property specified by a to b
string b : string / number - sets property specified by a to b
function iQClass_css(a, b) {
    let properties = null;
    if (typeof a === 'string') {
      let key = a;
      if (b === undefined) {
        Utils.assert(this.length == 1, 'retrieval does not support multi-objects (or null objects)');
        return window.getComputedStyle(this[0], null).getPropertyValue(key);
      }
      properties = {};
      properties[key] = b;
    } else if (a instanceof Rect) {
      properties = {
        left: a.left,
        top: a.top,
        width: a.width,
        height: a.height
      };
    } else {
      properties = a;
    }
    let pixels = {
      'left': true,
      'top': true,
      'right': true,
      'bottom': true,
      'width': true,
      'height': true
    };
    for (let i = 0; this[i] != null; i++) {
      let elem = this[i];
      for (let key in properties) {
        let value = properties[key];
        if (pixels[key] && typeof value != 'string')
          value += 'px';
        if (value == null) {
          elem.style.removeProperty(key);
        } else if (key.indexOf('-') != -1)
          elem.style.setProperty(key, value, '');
        else
          elem.style[key] = value;
      }
    }
    return this;
  }
function iQClass_css ( a , b ) { let properties = null ; if ( typeof a === 'string' ) { let key = a ; if ( b === undefined ) { Utils . assert ( this . length == 1 , 'retrieval does not support multi-objects (or null objects)' ) ; return window . getComputedStyle ( this [ 0 ] , null ) . getPropertyValue ( key ) ; } properties = { } ; properties [ key ] = b ; } else if ( a instanceof Rect ) { properties = { left : a . left , top : a . top , width : a . width , height : a . height } ; } else { properties = a ; } let pixels = { 'left' : true , 'top' : true , 'right' : true , 'bottom' : true , 'width' : true , 'height' : true } ; for ( let i = 0 ; this [ i ] != null ; i ++ ) { let elem = this [ i ] ; for ( let key in properties ) { let value = properties [ key ] ; if ( pixels [ key ] && typeof value != 'string' ) value += 'px' ; if ( value == null ) { elem . style . removeProperty ( key ) ; } else if ( key . indexOf ( '-' ) != - 1 ) elem . style . setProperty ( key , value , '' ) ; else elem . style [ key ] = value ; } } return this ; }
a: string, b: string/number - sets property specified by a to b
a : string b : string / number - sets property specified by a to b