B2G/gecko/browser/components/tabview/iq.js
// pass in just key to retrieve it.
pass in just key to retrieve it.
pass in just key to retrieve it .
function iQClass_data(key, value) {
    let data = null;
    if (value === undefined) {
      Utils.assert(this.length == 1, 'does not yet support multi-objects (or null objects)');
      data = this[0].iQData;
      if (data)
        return data[key];
      else
        return null;
    }
    for (let i = 0; this[i] != null; i++) {
      let elem = this[i];
      data = elem.iQData;
      if (!data)
        data = elem.iQData = {};
      data[key] = value;
    }
    return this;
  }
function iQClass_data ( key , value ) { let data = null ; if ( value === undefined ) { Utils . assert ( this . length == 1 , 'does not yet support multi-objects (or null objects)' ) ; data = this [ 0 ] . iQData ; if ( data ) return data [ key ] ; else return null ; } for ( let i = 0 ; this [ i ] != null ; i ++ ) { let elem = this [ i ] ; data = elem . iQData ; if ( ! data ) data = elem . iQData = { } ; data [ key ] = value ; } return this ; }
pass in just key to retrieve it.
pass in just key to retrieve it .