diff options
author | Ariel Flesler <aflesler@gmail.com> | 2009-09-14 22:58:20 +0000 |
---|---|---|
committer | Ariel Flesler <aflesler@gmail.com> | 2009-09-14 22:58:20 +0000 |
commit | 681f4fd3cdd4bdd23edbba05ed1389fabed86b41 (patch) | |
tree | aa5b028b300aceb69773ed79e6aba59fc30a0291 | |
parent | a2731202917f8e90cad94ee574241d1626dc7fb6 (diff) | |
download | jquery-681f4fd3cdd4bdd23edbba05ed1389fabed86b41.tar.gz jquery-681f4fd3cdd4bdd23edbba05ed1389fabed86b41.zip |
jquery event: misc removal
-rw-r--r-- | src/event.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/event.js b/src/event.js index 380d3d49e..c3c978b7f 100644 --- a/src/event.js +++ b/src/event.js @@ -566,9 +566,7 @@ jQuery.each({ jQuery.fn.extend({ bind: function( type, data, fn, thisObject ) { if ( jQuery.isFunction( data ) ) { - if ( fn !== undefined ) { - thisObject = fn; - } + thisObject = fn; fn = data; data = undefined; } @@ -580,9 +578,7 @@ jQuery.fn.extend({ one: function( type, data, fn, thisObject ) { if ( jQuery.isFunction( data ) ) { - if ( fn !== undefined ) { - thisObject = fn; - } + thisObject = fn; fn = data; data = undefined; } |