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:
5974495
)
Added a fix for bug #2140. Opera doesn't like concating null or undefined values.
author
John Resig
<jeresig@gmail.com>
Mon, 14 Jan 2008 18:46:44 +0000
(18:46 +0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 14 Jan 2008 18:46:44 +0000
(18:46 +0000)
src/event.js
patch
|
blob
|
history
diff --git
a/src/event.js
b/src/event.js
index
89391d5
..
3e0a885
100644
(file)
--- a/
src/event.js
+++ b/
src/event.js
@@
-207,7
+207,7
@@
jQuery.event = {
// Handle triggering of extra function
if ( extra && jQuery.isFunction( extra ) ) {
// call the extra function and tack the current return value on the end for possible inspection
// Handle triggering of extra function
if ( extra && jQuery.isFunction( extra ) ) {
// call the extra function and tack the current return value on the end for possible inspection
- ret = extra.apply( elem, data.concat( val ) );
+ ret = extra.apply( elem, val == null ? data : data.concat( val ) );
// if anything is returned, give it precedence and have it overwrite the previous value
if (ret !== undefined)
val = ret;
// if anything is returned, give it precedence and have it overwrite the previous value
if (ret !== undefined)
val = ret;