jQuery.fn.extend({
bind: function( type, data, fn, thisObject ) {
if ( jQuery.isFunction( data ) ) {
- if ( fn !== undefined ) {
- thisObject = fn;
- }
+ thisObject = fn;
fn = data;
data = undefined;
}
one: function( type, data, fn, thisObject ) {
if ( jQuery.isFunction( data ) ) {
- if ( fn !== undefined ) {
- thisObject = fn;
- }
+ thisObject = fn;
fn = data;
data = undefined;
}