Commit 76c1889e authored by Richard Worth's avatar Richard Worth

Fixed #1887 - trigger fails if extra is not a function

parent 24e036c7
...@@ -196,7 +196,7 @@ jQuery.event = { ...@@ -196,7 +196,7 @@ jQuery.event = {
data.shift(); data.shift();
// Handle triggering of extra function // Handle triggering of extra function
if ( 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
var ret = extra.apply( elem, data.concat( val ) ); var ret = extra.apply( elem, 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
......
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