TypeError: $(…).parents(…).size is not a function

size() was deprecated years ago and removed in version 3 … use length instead

if (e.target.id == "wrapper" || $(e.target).parents("#wrapper").length)

All you had to do was look this up in the size() docs to find this out

Leave a Comment