Changed CRLF end of lines to just LF. Other than that there were no changes in this...
[jquery.git] / src / event.js
index b27b418..02ed088 100644 (file)
@@ -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