Skip to content
Permalink
Browse files

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

…ined values.
  • Loading branch information
jeresig committed Jan 14, 2008
1 parent 5974495 commit 709df933049ccce53d0b6bb510ad9c39fd6304fe
Showing with 1 addition and 1 deletion.
  1. +1 −1 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
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;

0 comments on commit 709df93

Please sign in to comment.
You can’t perform that action at this time.