X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fevent.js;h=02ed088c2e5431f892935e5ed0ca8b0d07af0b4a;hb=1d7b7b94ef1c0c10cd5b2a976be40ccacbc49581;hp=b27b418430cab1a8e96d2b7e0cd0700a13d3c115;hpb=d1b9ad3cdb3fd226d4208ae6eaed98baf7026222;p=jquery.git diff --git a/src/event.js b/src/event.js index b27b418..02ed088 100644 --- a/src/event.js +++ b/src/event.js @@ -196,7 +196,7 @@ jQuery.event = { data.shift(); // 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 var ret = extra.apply( elem, data.concat( val ) ); // if anything is returned, give it precedence and have it overwrite the previous value