3 ], function( jQuery ) {
7 bind: function( types, data, fn ) {
8 return this.on( types, null, data, fn );
10 unbind: function( types, fn ) {
11 return this.off( types, null, fn );
14 delegate: function( selector, types, data, fn ) {
15 return this.on( types, selector, data, fn );
17 undelegate: function( selector, types, fn ) {
19 // ( namespace ) or ( selector, types [, fn] )
20 return arguments.length === 1 ?
21 this.off( selector, "**" ) :
22 this.off( types, selector || "**", fn );
29 jQuery.fn.andSelf = jQuery.fn.addBack;