aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintignore
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-12-09 19:50:14 +0100
committerGitHub <noreply@github.com>2019-12-09 19:50:14 +0100
commitd5c505e35d8c74ce8e9d99731a1a7eab0e0d911c (patch)
tree0b97c61ed363c80b0ab02ef5dd38818ed15903a1 /.eslintignore
parent5a3e0664d261422f11a78faaf101d70c73b3a5a8 (diff)
downloadjquery-d5c505e35d8c74ce8e9d99731a1a7eab0e0d911c.tar.gz
jquery-d5c505e35d8c74ce8e9d99731a1a7eab0e0d911c.zip
Event: Only attach events to objects that accept data - for real
There was a check in jQuery.event.add that was supposed to make it a noop for objects that don't accept data like text or comment nodes. The problem was the check was incorrect: it assumed `dataPriv.get( elem )` returns a falsy value for an `elem` that doesn't accept data but that's not the case - we get an empty object then. The check was changed to use `acceptData` directly. Fixes gh-4397 Closes gh-4558
Diffstat (limited to '.eslintignore')
0 files changed, 0 insertions, 0 deletions