mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 20:13:46 +00:00 
			
		
		
		
	zjquery: Remove bogus remove().
This commit is contained in:
		
				
					committed by
					
						 Steve Howell
						Steve Howell
					
				
			
			
				
	
			
			
			
						parent
						
							bd034f5767
						
					
				
				
					commit
					5437a16602
				
			| @@ -342,7 +342,14 @@ function make_new_elem(selector, opts) { | ||||
|             return self; | ||||
|         }, | ||||
|         remove() { | ||||
|             return self; | ||||
|             throw new Error(` | ||||
|                 We don't support remove in zjuery. | ||||
|  | ||||
|                 You can do $(...).remove = ... if necessary. | ||||
|  | ||||
|                 But you are probably writing too deep a test | ||||
|                 for node testing. | ||||
|             `); | ||||
|         }, | ||||
|         removeData: noop, | ||||
|         replaceWith() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user