code: function(oData, index) {
          if (!lang.isNumber(index) || index < 0) {
              index = this._records.length;
          }
          return (this._records[index] = new widget.Record(oData));
          /*
          if(lang.isNumber(index) && (index > -1)) {
              this._records[index] = oRecord;
              if((index+1) > this.getLength()) {
                  this._length = index+1;
              }
          }
          else {
              this._records[this.getLength()] = oRecord;
              this._length++;
          }
          return oRecord;
          */
      }
docs: Sets/replaces one Record to the RecordSet at the given index.  Existing
  Records with higher indexes are not shifted.  If no index specified, the
  Record is added to the end of the RecordSet.
  
  @method _setRecord
  @param oData {Object} An object literal of data.
  @param index {Number} (optional) Position index.
  @return {YAHOO.widget.Record} A Record instance.
  @private