code: function(index) {
          if(lang.isNumber(index) && (index > -1) && (index < this.getLength())) {
              // Copy data from the Record for the event that gets fired later
              var oData = widget.DataTable._cloneObject(this.getRecord(index).getData());
              
              this._deleteRecord(index);
              this.fireEvent("recordDeleteEvent",{data:oData,index:index});
              YAHOO.log("Record deleted at index " + index +
                      " and containing data " + lang.dump(oData), "info", this.toString());
              return oData;
          }
          else {
              YAHOO.log("Could not delete Record at index " + index, "error", this.toString());
              return null;
          }
      }
docs: Removes the Record at the given position index from the RecordSet. If a range
  is also provided, removes that many Records, starting from the index. Length
  of RecordSet is correspondingly shortened.
  
  @method deleteRecord
  @param index {Number} Record's RecordSet position index.
  @param range {Number} (optional) How many Records to delete.
  @return {Object} A copy of the data held by the deleted Record.