2015-10-18 15:02:16 +00:00
|
|
|
define( [
|
|
|
|
"./core"
|
|
|
|
], function( jQuery ) {
|
2015-10-01 20:03:10 +00:00
|
|
|
|
|
|
|
jQuery.fn.extend( {
|
|
|
|
|
|
|
|
bind: function( types, data, fn ) {
|
|
|
|
return this.on( types, null, data, fn );
|
|
|
|
},
|
|
|
|
unbind: function( types, fn ) {
|
|
|
|
return this.off( types, null, fn );
|
|
|
|
},
|
|
|
|
|
|
|
|
delegate: function( selector, types, data, fn ) {
|
|
|
|
return this.on( types, selector, data, fn );
|
|
|
|
},
|
|
|
|
undelegate: function( selector, types, fn ) {
|
|
|
|
|
|
|
|
// ( namespace ) or ( selector, types [, fn] )
|
|
|
|
return arguments.length === 1 ?
|
|
|
|
this.off( selector, "**" ) :
|
|
|
|
this.off( types, selector || "**", fn );
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
2015-08-16 06:59:58 +00:00
|
|
|
} );
|