mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	The new file is an easier place to point developers for the most typical questions about zjquery's capabilities.
		
			
				
	
	
		
			16 lines
		
	
	
		
			313 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			313 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
"use strict";
 | 
						|
 | 
						|
class FakeEvent {
 | 
						|
    constructor(type, props) {
 | 
						|
        if (!(this instanceof FakeEvent)) {
 | 
						|
            return new FakeEvent(type, props);
 | 
						|
        }
 | 
						|
        this.type = type;
 | 
						|
        Object.assign(this, props);
 | 
						|
    }
 | 
						|
    preventDefault() {}
 | 
						|
    stopPropagation() {}
 | 
						|
}
 | 
						|
 | 
						|
module.exports = FakeEvent;
 |