mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Added in jQuery.isFunction().
This commit is contained in:
@@ -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 ]();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user