code: function(record, oData) {
          var oRecord = this.getRecord(record);
          if(oRecord && lang.isObject(oData)) {
              // Copy data from the Record for the event that gets fired later
              var oldData = {};
              for(var key in oRecord._oData) {
                  if(lang.hasOwnProperty(oRecord._oData, key)) {
                      oldData[key] = oRecord._oData[key];
                  }
              }
              oRecord._oData = oData;
              this.fireEvent("recordUpdateEvent",{record:oRecord,newData:oData,oldData:oldData});
              return oRecord;
          }
          else {
              return null;
          }
      }
docs: Updates given Record with given data.
  
  @method updateRecord
  @param record {YAHOO.widget.Record | Number | String} A Record instance,
  a RecordSet position index, or a Record ID.
  @param oData {Object} Object literal of new data.
  @return {YAHOO.widget.Record} Updated Record, or null.