dist/ZeroClipboard.js
function(aftercopyEvent) {
    if (aftercopyEvent.errors && aftercopyEvent.errors.length > 0) {
      var errorEvent = _deepCopy(aftercopyEvent);
      _extend(errorEvent, {
        type: "error",
        name: "clipboard-error"
      });
      delete errorEvent.success;
      _setTimeout(function() {
        ZeroClipboard.emit(errorEvent);
      }, 0);
    }
  }
function(aftercopyEvent) {
    if (aftercopyEvent.errors && aftercopyEvent.errors.length > 0) {
      var errorEvent = _deepCopy(aftercopyEvent);
      _extend(errorEvent, {
        type: "error",
        name: "clipboard-error"
      });
      delete errorEvent.success;
      _setTimeout(function() {
        ZeroClipboard.emit(errorEvent);
      }, 0);
    }
  }
function ( aftercopyEvent ) { if ( aftercopyEvent . errors && aftercopyEvent . errors . length > 0 ) { var errorEvent = _deepCopy ( aftercopyEvent ) ; _extend ( errorEvent , { type : "error" , name : "clipboard-error" } ) ; delete errorEvent . success ; _setTimeout ( function ( ) { ZeroClipboard . emit ( errorEvent ) ; } , 0 ) ; } }
Check an "aftercopy" event for clipboard errors and emit a corresponding "error" event.
@private
Check an aftercopy event for clipboard errors and emit a corresponding error event .