rem: return clipboard.hasDataMatchingFlavors(flavourArray, kClipboardIID.kGlobalClipboard); 
add: return clipboard.hasDataMatchingFlavors(flavourArray, kClipboardIID.kGlobalClipboard); 
context: function canPaste(){   const kClipboardIID = Components.interfaces.nsIClipboard;   var clipboard = getClipboard();  var flavourArray = new SupportsArray;   var flavours = ["text/calendar", "text/unicode"];      for (var i = 0; i < flavours.length; ++i)   {    var kSuppString = new SupportsCString;      kSuppString.data = flavours[i];      flavourArray.AppendElement(kSuppString);   }      return clipboard.hasDataMatchingFlavors(flavourArray, kClipboardIID.kGlobalClipboard);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/36244b556ea688a6fb15f55940dfb4f0364417f9/clipboard.js/buggy/calendar/resources/content/clipboard.js