mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	js: Convert static/js/lightbox_canvas.js to ES6 module.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							8bbb0d9193
						
					
				
				
					commit
					1d64e7a8eb
				
			| @@ -1,5 +1,3 @@ | ||||
| "use strict"; | ||||
|  | ||||
| const funcs = { | ||||
|     setZoom(meta, zoom) { | ||||
|         // condition to handle zooming event by zoom hotkeys | ||||
| @@ -206,7 +204,7 @@ const funcs = { | ||||
|     }, | ||||
| }; | ||||
|  | ||||
| class LightboxCanvas { | ||||
| export class LightboxCanvas { | ||||
|     meta = { | ||||
|         direction: -1, | ||||
|         zoom: 1, | ||||
| @@ -270,6 +268,3 @@ class LightboxCanvas { | ||||
|         this.meta.resize_handler = callback; | ||||
|     } | ||||
| } | ||||
|  | ||||
| module.exports = LightboxCanvas; | ||||
| window.LightboxCanvas = LightboxCanvas; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user