| @@ 5821-5856 (lines=36) @@ | ||
| 5818 | one: function( types, selector, data, fn ) { |
|
| 5819 | return on( this, types, selector, data, fn, 1 ); |
|
| 5820 | }, |
|
| 5821 | off: function( types, selector, fn ) { |
|
| 5822 | var handleObj, type; |
|
| 5823 | if ( types && types.preventDefault && types.handleObj ) { |
|
| 5824 | ||
| 5825 | // ( event ) dispatched jQuery.Event |
|
| 5826 | handleObj = types.handleObj; |
|
| 5827 | jQuery( types.delegateTarget ).off( |
|
| 5828 | handleObj.namespace ? |
|
| 5829 | handleObj.origType + "." + handleObj.namespace : |
|
| 5830 | handleObj.origType, |
|
| 5831 | handleObj.selector, |
|
| 5832 | handleObj.handler |
|
| 5833 | ); |
|
| 5834 | return this; |
|
| 5835 | } |
|
| 5836 | if ( typeof types === "object" ) { |
|
| 5837 | ||
| 5838 | // ( types-object [, selector] ) |
|
| 5839 | for ( type in types ) { |
|
| 5840 | this.off( type, selector, types[ type ] ); |
|
| 5841 | } |
|
| 5842 | return this; |
|
| 5843 | } |
|
| 5844 | if ( selector === false || typeof selector === "function" ) { |
|
| 5845 | ||
| 5846 | // ( types [, fn] ) |
|
| 5847 | fn = selector; |
|
| 5848 | selector = undefined; |
|
| 5849 | } |
|
| 5850 | if ( fn === false ) { |
|
| 5851 | fn = returnFalse; |
|
| 5852 | } |
|
| 5853 | return this.each( function() { |
|
| 5854 | jQuery.event.remove( this, types, fn, selector ); |
|
| 5855 | } ); |
|
| 5856 | }, |
|
| 5857 | ||
| 5858 | trigger: function( type, data ) { |
|
| 5859 | return this.each( function() { |
|
| @@ 5079-5114 (lines=36) @@ | ||
| 5076 | one: function( types, selector, data, fn ) { |
|
| 5077 | return on( this, types, selector, data, fn, 1 ); |
|
| 5078 | }, |
|
| 5079 | off: function( types, selector, fn ) { |
|
| 5080 | var handleObj, type; |
|
| 5081 | if ( types && types.preventDefault && types.handleObj ) { |
|
| 5082 | ||
| 5083 | // ( event ) dispatched jQuery.Event |
|
| 5084 | handleObj = types.handleObj; |
|
| 5085 | jQuery( types.delegateTarget ).off( |
|
| 5086 | handleObj.namespace ? |
|
| 5087 | handleObj.origType + "." + handleObj.namespace : |
|
| 5088 | handleObj.origType, |
|
| 5089 | handleObj.selector, |
|
| 5090 | handleObj.handler |
|
| 5091 | ); |
|
| 5092 | return this; |
|
| 5093 | } |
|
| 5094 | if ( typeof types === "object" ) { |
|
| 5095 | ||
| 5096 | // ( types-object [, selector] ) |
|
| 5097 | for ( type in types ) { |
|
| 5098 | this.off( type, selector, types[ type ] ); |
|
| 5099 | } |
|
| 5100 | return this; |
|
| 5101 | } |
|
| 5102 | if ( selector === false || typeof selector === "function" ) { |
|
| 5103 | ||
| 5104 | // ( types [, fn] ) |
|
| 5105 | fn = selector; |
|
| 5106 | selector = undefined; |
|
| 5107 | } |
|
| 5108 | if ( fn === false ) { |
|
| 5109 | fn = returnFalse; |
|
| 5110 | } |
|
| 5111 | return this.each( function() { |
|
| 5112 | jQuery.event.remove( this, types, fn, selector ); |
|
| 5113 | } ); |
|
| 5114 | } |
|
| 5115 | } ); |
|
| 5116 | ||
| 5117 | ||
| @@ 4841-4871 (lines=31) @@ | ||
| 4838 | one: function( types, selector, data, fn ) { |
|
| 4839 | return this.on( types, selector, data, fn, 1 ); |
|
| 4840 | }, |
|
| 4841 | off: function( types, selector, fn ) { |
|
| 4842 | var handleObj, type; |
|
| 4843 | if ( types && types.preventDefault && types.handleObj ) { |
|
| 4844 | // ( event ) dispatched jQuery.Event |
|
| 4845 | handleObj = types.handleObj; |
|
| 4846 | jQuery( types.delegateTarget ).off( |
|
| 4847 | handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, |
|
| 4848 | handleObj.selector, |
|
| 4849 | handleObj.handler |
|
| 4850 | ); |
|
| 4851 | return this; |
|
| 4852 | } |
|
| 4853 | if ( typeof types === "object" ) { |
|
| 4854 | // ( types-object [, selector] ) |
|
| 4855 | for ( type in types ) { |
|
| 4856 | this.off( type, selector, types[ type ] ); |
|
| 4857 | } |
|
| 4858 | return this; |
|
| 4859 | } |
|
| 4860 | if ( selector === false || typeof selector === "function" ) { |
|
| 4861 | // ( types [, fn] ) |
|
| 4862 | fn = selector; |
|
| 4863 | selector = undefined; |
|
| 4864 | } |
|
| 4865 | if ( fn === false ) { |
|
| 4866 | fn = returnFalse; |
|
| 4867 | } |
|
| 4868 | return this.each(function() { |
|
| 4869 | jQuery.event.remove( this, types, fn, selector ); |
|
| 4870 | }); |
|
| 4871 | }, |
|
| 4872 | ||
| 4873 | trigger: function( type, data ) { |
|
| 4874 | return this.each(function() { |
|