mirror of
				https://github.com/twbs/bootstrap.git
				synced 2022-11-09 12:25:43 -05:00 
			
		
		
		
	Event handler: merge new Event with new CustomEvent
				
					
				
			This commit is contained in:
		
							parent
							
								
									fa93995123
								
							
						
					
					
						commit
						d092817059
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -283,7 +283,6 @@ const EventHandler = {
 | 
			
		|||
    const $ = getjQuery()
 | 
			
		||||
    const typeEvent = getTypeEvent(event)
 | 
			
		||||
    const inNamespace = event !== typeEvent
 | 
			
		||||
    const isNative = nativeEvents.has(typeEvent)
 | 
			
		||||
 | 
			
		||||
    let jQueryEvent
 | 
			
		||||
    let bubbles = true
 | 
			
		||||
| 
						 | 
				
			
			@ -299,9 +298,7 @@ const EventHandler = {
 | 
			
		|||
      defaultPrevented = jQueryEvent.isDefaultPrevented()
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const evt = isNative ?
 | 
			
		||||
      new Event(event, { bubbles, cancelable: true }) :
 | 
			
		||||
      new CustomEvent(event, { bubbles, cancelable: true })
 | 
			
		||||
    const evt = new Event(event, { bubbles, cancelable: true })
 | 
			
		||||
 | 
			
		||||
    // merge custom information in our event
 | 
			
		||||
    if (typeof args !== 'undefined') {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue