]> source.dussan.org Git - jquery.git/commit
Data:Event:Manipulation: Prevent collisions with Object.prototype
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 2 Mar 2020 22:02:42 +0000 (23:02 +0100)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 2 Mar 2020 22:05:58 +0000 (23:05 +0100)
commit413ff796ae16611777581e7657cb5ca76c3cfb1d
treebb0c33a5732a10bc2d62b69f32a150306d025af0
parent524bcf39da9d9aba67d9ec92433462cd936fcc89
Data:Event:Manipulation: Prevent collisions with Object.prototype

Make sure events & data keys matching Object.prototype properties work.
A separate fix for such events on cloned elements was added as well.

Fixes gh-3256
Closes gh-4603

(cherry picked from commit 9d76c0b163675505d1a901e5fe5249a2c55609bc)
src/data/Data.js
src/event.js
src/event/trigger.js
src/manipulation.js
test/unit/data.js
test/unit/event.js