git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avoid creating a new data cache if we don't need one. Also, short-circuit the case...
[jquery.git]
/
src
/
event.js
diff --git
a/src/event.js
b/src/event.js
index
380d3d4
..
c3c978b
100644
(file)
--- 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 ) ) {
jQuery.fn.extend({
bind: function( type, data, fn, thisObject ) {
if ( jQuery.isFunction( data ) ) {
- if ( fn !== undefined ) {
- thisObject = fn;
- }
+ thisObject = fn;
fn = data;
data = undefined;
}
fn = data;
data = undefined;
}
@@
-580,9
+578,7
@@
jQuery.fn.extend({
one: function( type, data, fn, thisObject ) {
if ( jQuery.isFunction( data ) ) {
one: function( type, data, fn, thisObject ) {
if ( jQuery.isFunction( data ) ) {
- if ( fn !== undefined ) {
- thisObject = fn;
- }
+ thisObject = fn;
fn = data;
data = undefined;
}
fn = data;
data = undefined;
}