jquery event: misc removal
authorAriel Flesler <aflesler@gmail.com>
Mon, 14 Sep 2009 22:58:20 +0000 (22:58 +0000)
committerAriel Flesler <aflesler@gmail.com>
Mon, 14 Sep 2009 22:58:20 +0000 (22:58 +0000)
src/event.js

index 380d3d4..c3c978b 100644 (file)
@@ -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;
                }