dist/ZeroClipboard.js
function(clipData) {
    var newClipData = {}, formatMap = {};
    if (!(typeof clipData === "object" && clipData)) {
      return;
    }
    for (var dataFormat in clipData) {
      if (dataFormat && _hasOwn.call(clipData, dataFormat) && typeof clipData[dataFormat] === "string" && clipData[dataFormat]) {
        switch (dataFormat.toLowerCase()) {
         case "text/plain":
         case "text":
         case "air:text":
         case "flash:text":
          newClipData.text = clipData[dataFormat];
          formatMap.text = dataFormat;
          break;

         case "text/html":
         case "html":
         case "air:html":
         case "flash:html":
          newClipData.html = clipData[dataFormat];
          formatMap.html = dataFormat;
          break;

         case "application/rtf":
         case "text/rtf":
         case "rtf":
         case "richtext":
         case "air:rtf":
         case "flash:rtf":
          newClipData.rtf = clipData[dataFormat];
          formatMap.rtf = dataFormat;
          break;

         default:
          break;
        }
      }
    }
    return {
      data: newClipData,
      formatMap: formatMap
    };
  }
function(clipData) {
    var newClipData = {}, formatMap = {};
    if (!(typeof clipData === "object" && clipData)) {
      return;
    }
    for (var dataFormat in clipData) {
      if (dataFormat && _hasOwn.call(clipData, dataFormat) && typeof clipData[dataFormat] === "string" && clipData[dataFormat]) {
        switch (dataFormat.toLowerCase()) {
         case "text/plain":
         case "text":
         case "air:text":
         case "flash:text":
          newClipData.text = clipData[dataFormat];
          formatMap.text = dataFormat;
          break;

         case "text/html":
         case "html":
         case "air:html":
         case "flash:html":
          newClipData.html = clipData[dataFormat];
          formatMap.html = dataFormat;
          break;

         case "application/rtf":
         case "text/rtf":
         case "rtf":
         case "richtext":
         case "air:rtf":
         case "flash:rtf":
          newClipData.rtf = clipData[dataFormat];
          formatMap.rtf = dataFormat;
          break;

         default:
          break;
        }
      }
    }
    return {
      data: newClipData,
      formatMap: formatMap
    };
  }
function ( clipData ) { var newClipData = { } , formatMap = { } ; if ( ! ( typeof clipData === "object" && clipData ) ) { return ; } for ( var dataFormat in clipData ) { if ( dataFormat && _hasOwn . call ( clipData , dataFormat ) && typeof clipData [ dataFormat ] === "string" && clipData [ dataFormat ] ) { switch ( dataFormat . toLowerCase ( ) ) { case "text/plain" : case "text" : case "air:text" : case "flash:text" : newClipData . text = clipData [ dataFormat ] ; formatMap . text = dataFormat ; break ; case "text/html" : case "html" : case "air:html" : case "flash:html" : newClipData . html = clipData [ dataFormat ] ; formatMap . html = dataFormat ; break ; case "application/rtf" : case "text/rtf" : case "rtf" : case "richtext" : case "air:rtf" : case "flash:rtf" : newClipData . rtf = clipData [ dataFormat ] ; formatMap . rtf = dataFormat ; break ; default : break ; } } } return { data : newClipData , formatMap : formatMap } ; }
Map the data format names of the "clipData" to Flash-friendly names.

@returns A new transformed object.
@private
Map the data format names of the clipData to Flash - friendly names .