Added in jQuery.isFunction().

This commit is contained in:
John Resig 2007-01-14 06:22:20 +00:00
parent 2bd21fe3b3
commit ed5bda3020
5 changed files with 29 additions and 25 deletions

View file

@ -88,7 +88,7 @@ jQuery.event = {
// Trigger the event
var val = element["on" + type].apply( element, data );
if ( val !== false && element[ type ] && element[ type ].constructor == Function )
if ( val !== false && jQuery.isFunction( element[ type ] ) )
element[ type ]();
}
},