| @@ 5516-5553 (lines=38) @@ | ||
| 5513 | } |
|
| 5514 | }; |
|
| 5515 | ||
| 5516 | jQuery.Event = function( src, props ) { |
|
| 5517 | ||
| 5518 | // Allow instantiation without the 'new' keyword |
|
| 5519 | if ( !( this instanceof jQuery.Event ) ) { |
|
| 5520 | return new jQuery.Event( src, props ); |
|
| 5521 | } |
|
| 5522 | ||
| 5523 | // Event object |
|
| 5524 | if ( src && src.type ) { |
|
| 5525 | this.originalEvent = src; |
|
| 5526 | this.type = src.type; |
|
| 5527 | ||
| 5528 | // Events bubbling up the document may have been marked as prevented |
|
| 5529 | // by a handler lower down the tree; reflect the correct value. |
|
| 5530 | this.isDefaultPrevented = src.defaultPrevented || |
|
| 5531 | src.defaultPrevented === undefined && |
|
| 5532 | ||
| 5533 | // Support: IE < 9, Android < 4.0 |
|
| 5534 | src.returnValue === false ? |
|
| 5535 | returnTrue : |
|
| 5536 | returnFalse; |
|
| 5537 | ||
| 5538 | // Event type |
|
| 5539 | } else { |
|
| 5540 | this.type = src; |
|
| 5541 | } |
|
| 5542 | ||
| 5543 | // Put explicitly provided properties onto the event object |
|
| 5544 | if ( props ) { |
|
| 5545 | jQuery.extend( this, props ); |
|
| 5546 | } |
|
| 5547 | ||
| 5548 | // Create a timestamp if incoming event doesn't have one |
|
| 5549 | this.timeStamp = src && src.timeStamp || jQuery.now(); |
|
| 5550 | ||
| 5551 | // Mark it as fixed |
|
| 5552 | this[ jQuery.expando ] = true; |
|
| 5553 | }; |
|
| 5554 | ||
| 5555 | // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding |
|
| 5556 | // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html |
|
| @@ 4958-4995 (lines=38) @@ | ||
| 4955 | } |
|
| 4956 | }; |
|
| 4957 | ||
| 4958 | jQuery.Event = function( src, props ) { |
|
| 4959 | ||
| 4960 | // Allow instantiation without the 'new' keyword |
|
| 4961 | if ( !( this instanceof jQuery.Event ) ) { |
|
| 4962 | return new jQuery.Event( src, props ); |
|
| 4963 | } |
|
| 4964 | ||
| 4965 | // Event object |
|
| 4966 | if ( src && src.type ) { |
|
| 4967 | this.originalEvent = src; |
|
| 4968 | this.type = src.type; |
|
| 4969 | ||
| 4970 | // Events bubbling up the document may have been marked as prevented |
|
| 4971 | // by a handler lower down the tree; reflect the correct value. |
|
| 4972 | this.isDefaultPrevented = src.defaultPrevented || |
|
| 4973 | src.defaultPrevented === undefined && |
|
| 4974 | ||
| 4975 | // Support: Android<4.0 |
|
| 4976 | src.returnValue === false ? |
|
| 4977 | returnTrue : |
|
| 4978 | returnFalse; |
|
| 4979 | ||
| 4980 | // Event type |
|
| 4981 | } else { |
|
| 4982 | this.type = src; |
|
| 4983 | } |
|
| 4984 | ||
| 4985 | // Put explicitly provided properties onto the event object |
|
| 4986 | if ( props ) { |
|
| 4987 | jQuery.extend( this, props ); |
|
| 4988 | } |
|
| 4989 | ||
| 4990 | // Create a timestamp if incoming event doesn't have one |
|
| 4991 | this.timeStamp = src && src.timeStamp || jQuery.now(); |
|
| 4992 | ||
| 4993 | // Mark it as fixed |
|
| 4994 | this[ jQuery.expando ] = true; |
|
| 4995 | }; |
|
| 4996 | ||
| 4997 | // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding |
|
| 4998 | // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html |
|
| @@ 4642-4677 (lines=36) @@ | ||
| 4639 | } |
|
| 4640 | }; |
|
| 4641 | ||
| 4642 | jQuery.Event = function( src, props ) { |
|
| 4643 | // Allow instantiation without the 'new' keyword |
|
| 4644 | if ( !(this instanceof jQuery.Event) ) { |
|
| 4645 | return new jQuery.Event( src, props ); |
|
| 4646 | } |
|
| 4647 | ||
| 4648 | // Event object |
|
| 4649 | if ( src && src.type ) { |
|
| 4650 | this.originalEvent = src; |
|
| 4651 | this.type = src.type; |
|
| 4652 | ||
| 4653 | // Events bubbling up the document may have been marked as prevented |
|
| 4654 | // by a handler lower down the tree; reflect the correct value. |
|
| 4655 | this.isDefaultPrevented = src.defaultPrevented || |
|
| 4656 | src.defaultPrevented === undefined && |
|
| 4657 | // Support: Android < 4.0 |
|
| 4658 | src.returnValue === false ? |
|
| 4659 | returnTrue : |
|
| 4660 | returnFalse; |
|
| 4661 | ||
| 4662 | // Event type |
|
| 4663 | } else { |
|
| 4664 | this.type = src; |
|
| 4665 | } |
|
| 4666 | ||
| 4667 | // Put explicitly provided properties onto the event object |
|
| 4668 | if ( props ) { |
|
| 4669 | jQuery.extend( this, props ); |
|
| 4670 | } |
|
| 4671 | ||
| 4672 | // Create a timestamp if incoming event doesn't have one |
|
| 4673 | this.timeStamp = src && src.timeStamp || jQuery.now(); |
|
| 4674 | ||
| 4675 | // Mark it as fixed |
|
| 4676 | this[ jQuery.expando ] = true; |
|
| 4677 | }; |
|
| 4678 | ||
| 4679 | // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding |
|
| 4680 | // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html |
|