minor: Fix accidental global variable leak in jquery filedrop.

This commit is contained in:
Rohitt Vashishtha
2019-12-06 14:13:25 +05:30
committed by Tim Abbott
parent e2c563d14d
commit 42726a07b3

View File

@@ -95,7 +95,7 @@
global_progress = []
// Zulip modification: keep a pointer to the object that the function
// was invoked on.
caller = this;
var caller = this;
this.on('drop', drop).on('dragstart', opts.dragStart).on('dragenter', dragEnter).on('dragover', dragOver).on('dragleave', dragLeave);
this.on('paste', paste);