MCPcopy
hub / github.com/dropzone/dropzone / paste

Method paste

src/dropzone.js:645–658  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

643 }
644
645 paste(e) {
646 if (
647 __guard__(e != null ? e.clipboardData : undefined, (x) => x.items) == null
648 ) {
649 return;
650 }
651
652 this.emit("paste", e);
653 let { items } = e.clipboardData;
654
655 if (items.length) {
656 return this._addFilesFromItems(items);
657 }
658 }
659
660 handleFiles(files) {
661 for (let file of files) {

Callers

nothing calls this directly

Calls 3

_addFilesFromItemsMethod · 0.95
__guard__Function · 0.85
emitMethod · 0.80

Tested by

no test coverage detected