mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	minor: Fix accidental global variable leak in jquery filedrop.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							e2c563d14d
						
					
				
				
					commit
					42726a07b3
				
			@@ -95,7 +95,7 @@
 | 
				
			|||||||
        global_progress = []
 | 
					        global_progress = []
 | 
				
			||||||
        // Zulip modification: keep a pointer to the object that the function
 | 
					        // Zulip modification: keep a pointer to the object that the function
 | 
				
			||||||
        // was invoked on.
 | 
					        // 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('drop', drop).on('dragstart', opts.dragStart).on('dragenter', dragEnter).on('dragover', dragOver).on('dragleave', dragLeave);
 | 
				
			||||||
    this.on('paste', paste);
 | 
					    this.on('paste', paste);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user