git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a273120
)
jquery event: misc removal
author
Ariel Flesler
<aflesler@gmail.com>
Mon, 14 Sep 2009 22:58:20 +0000
(22:58 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Mon, 14 Sep 2009 22:58:20 +0000
(22:58 +0000)
src/event.js
patch
|
blob
|
history
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 ) ) {
- 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;
}