Added in jQuery.isFunction().
This commit is contained in:
parent
2bd21fe3b3
commit
ed5bda3020
5 changed files with 29 additions and 25 deletions
|
@ -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 ]();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue