mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 19:15:02 -05:00
Event: Restore the constructor property on jQuery.Event prototype
The original definition of the jQuery.Event prototype was paving over the `constructor` property which was causing jQuery.isPlainObject to improperly report that an instance of jQuery.Event was a plain object. Fixes #15090 Closes gh-1580
This commit is contained in:
committed by
Richard Gibson
parent
1ae025e24f
commit
b807aedb7f
@@ -672,6 +672,7 @@ jQuery.Event = function( src, props ) {
|
||||
// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
|
||||
// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
|
||||
jQuery.Event.prototype = {
|
||||
constructor: jQuery.Event,
|
||||
isDefaultPrevented: returnFalse,
|
||||
isPropagationStopped: returnFalse,
|
||||
isImmediatePropagationStopped: returnFalse,
|
||||
|
||||
Reference in New Issue
Block a user