aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Herman <daniel.c.herman@gmail.com>2014-05-15 12:26:20 -0400
committerRichard Gibson <richard.gibson@gmail.com>2014-09-04 03:28:40 -0400
commitb807aedb7fee321fb3aa5d156a5a256ab0634e2d (patch)
tree91268d79b8e4c868c4de20acfbf7408939486ccd /src
parent1ae025e24f9920d18cec8a8498bfc4eed7e3f1dc (diff)
downloadjquery-b807aedb7fee321fb3aa5d156a5a256ab0634e2d.tar.gz
jquery-b807aedb7fee321fb3aa5d156a5a256ab0634e2d.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/event.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js
index 6183f703d..7cf14c5c9 100644
--- a/src/event.js
+++ b/src/event.js
@@ -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,