]> source.dussan.org Git - jquery.git/commit
Event: Restore the `constructor` property on jQuery.Event prototype
authorDaniel Herman <daniel.c.herman@gmail.com>
Thu, 15 May 2014 16:26:20 +0000 (12:26 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Thu, 4 Sep 2014 07:29:16 +0000 (03:29 -0400)
commitd4a998f62fde4b9347b99571a7d000b53731909a
treec8f2bebfff5c51aef93309bed6f4df77cb042281
parent787ffbf5fa9a1afb5883edc576e954337b069bb6
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

(cherry picked from commit b807aedb7fee321fb3aa5d156a5a256ab0634e2d)
src/event.js
test/unit/event.js