Commit 681f4fd3 authored by Ariel Flesler's avatar Ariel Flesler

jquery event: misc removal

parent a2731202
...@@ -566,9 +566,7 @@ jQuery.each({ ...@@ -566,9 +566,7 @@ jQuery.each({
jQuery.fn.extend({ jQuery.fn.extend({
bind: function( type, data, fn, thisObject ) { bind: function( type, data, fn, thisObject ) {
if ( jQuery.isFunction( data ) ) { if ( jQuery.isFunction( data ) ) {
if ( fn !== undefined ) {
thisObject = fn; thisObject = fn;
}
fn = data; fn = data;
data = undefined; data = undefined;
} }
...@@ -580,9 +578,7 @@ jQuery.fn.extend({ ...@@ -580,9 +578,7 @@ jQuery.fn.extend({
one: function( type, data, fn, thisObject ) { one: function( type, data, fn, thisObject ) {
if ( jQuery.isFunction( data ) ) { if ( jQuery.isFunction( data ) ) {
if ( fn !== undefined ) {
thisObject = fn; thisObject = fn;
}
fn = data; fn = data;
data = undefined; data = undefined;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment