Commit 709df933 authored by John Resig's avatar John Resig

Added a fix for bug #2140. Opera doesn't like concating null or undefined values.

parent 5974495e
...@@ -207,7 +207,7 @@ jQuery.event = { ...@@ -207,7 +207,7 @@ jQuery.event = {
// Handle triggering of extra function // Handle triggering of extra function
if ( extra && jQuery.isFunction( extra ) ) { if ( extra && jQuery.isFunction( extra ) ) {
// call the extra function and tack the current return value on the end for possible inspection // 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 anything is returned, give it precedence and have it overwrite the previous value
if (ret !== undefined) if (ret !== undefined)
val = ret; val = ret;
......
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