]> source.dussan.org Git - jquery.git/commit
Event: Remove fixHooks, propHooks; switch to ES5 getter with addProp
authorJason Bedard <github@jbedard.ca>
Fri, 1 Nov 2013 05:36:38 +0000 (22:36 -0700)
committerDave Methvin <dave.methvin@gmail.com>
Wed, 4 May 2016 19:57:25 +0000 (15:57 -0400)
commite61fccb9d736235b4b011f89cba6866bc0b8997d
tree96027a74b64d0199a6ea95634c867ea5877c9b99
parent7f2ebd2c4dea186d7d981b939e6e2983a9d7f9c1
Event: Remove fixHooks, propHooks; switch to ES5 getter with addProp

Fixes gh-3103
Fixes gh-1746
Closes gh-2860

- Removes the copy loop in jQuery.event.fix
- Avoids accessing properties such as client/offset/page/screen X/Y
  which may cause style recalc or layouts
- Simplifies adding property hooks to event object
src/event.js
test/unit/event.js