Added a fix for bug #2140. Opera doesn't like concating null or undefined values.
This commit is contained in:
parent
5974495e6b
commit
709df93304
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue