fix: 清除所有监听方法
This commit is contained in:
		
							parent
							
								
									94d7ba9194
								
							
						
					
					
						commit
						6584d8e2cb
					
				| @ -50,6 +50,11 @@ class differentialAndSignal { | |||||||
|     this.events = this.events.filter((cb) => cb !== callback); |     this.events = this.events.filter((cb) => cb !== callback); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |   // 清除监听 | ||||||
|  |   clearMsg() { | ||||||
|  |     this.events = [] | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|   // 关闭 |   // 关闭 | ||||||
|   close() { |   close() { | ||||||
|     this.events = []; |     this.events = []; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user