From 72bd7d59384da174d0f4d98ac575c306967a6b23 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 21 Aug 2014 18:53:33 -0700 Subject: [PATCH] Added emit function to Dropzone See the docs for some [examples using emit](https://github.com/enyo/dropzone/wiki/FAQ#how-to-show-files-already-stored-on-server) I can't find any other usage so this covers the two events that I am aware of: `addedfile` and `thumbnail` --- dropzone/dropzone.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dropzone/dropzone.d.ts b/dropzone/dropzone.d.ts index 81596d88a..0c754fbd5 100644 --- a/dropzone/dropzone.d.ts +++ b/dropzone/dropzone.d.ts @@ -72,6 +72,8 @@ declare class Dropzone { getRejectedFiles(): DropzoneFile[]; getQueuedFiles(): DropzoneFile[]; getUploadingFiles(): DropzoneFile[]; + + emit(eventName: string, file: DropzoneFile, data?: string); } interface JQuery {