Test.EventTarget Class
Simple custom event implementation.
Item Index
Methods
- attach
 - detach
 - fire
 - subscribe deprecated
 - unsubscribe deprecated
 
Properties
- _handlers static
 
Methods
attach
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        
type - 
                    
                        
listener 
Adds a listener for a given event type.
detach
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        
type - 
                    
                        
listener 
Removes a listener for a given event type.
fire
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        
event 
Fires an event based on the passed-in object.
subscribe
    
        
            (
    
    
    
        deprecated
    
    
    
    
    
    
    
    - 
                    
                        
type - 
                    
                        
listener 
Adds a listener for a given event type.
