code: function(index, range) {
          if(!lang.isNumber(index)) {
              return this._records;
          }
          if(!lang.isNumber(range)) {
              return this._records.slice(index);
          }
          return this._records.slice(index, index+range);
      }
docs: Returns an array of Records from the RecordSet.
  
  @method getRecords
  @param index {Number} (optional) Recordset position index of which Record to
  start at.
  @param range {Number} (optional) Number of Records to get.
  @return {YAHOO.widget.Record[]} Array of Records starting at given index and
  length equal to given range. If index is not given, all Records are returned.