( type, elem, args )
| 3414 | } |
| 3415 | |
| 3416 | function trigger( type, elem, args ) { |
| 3417 | // Piggyback on a donor event to simulate a different one. |
| 3418 | // Fake originalEvent to avoid donor's stopPropagation, but if the |
| 3419 | // simulated event prevents default then we do the same on the donor. |
| 3420 | // Don't pass args or remember liveFired; they apply to the donor event. |
| 3421 | var event = jQuery.extend( {}, args[ 0 ] ); |
| 3422 | event.type = type; |
| 3423 | event.originalEvent = {}; |
| 3424 | event.liveFired = undefined; |
| 3425 | jQuery.event.handle.call( elem, event ); |
| 3426 | if ( event.isDefaultPrevented() ) { |
| 3427 | args[ 0 ].preventDefault(); |
| 3428 | } |
| 3429 | } |
| 3430 | |
| 3431 | // Create "bubbling" focus and blur events |
| 3432 | if ( !jQuery.support.focusinBubbles ) { |
no outgoing calls
no test coverage detected
searching dependent graphs…