DataTables / VisualEvent

Visually show Javascript events on a page
http://sprymedia.co.uk
1.04k stars 161 forks source link

Update jQuery.js #69

Closed idnovate closed 2 years ago

idnovate commented 2 years ago

Fix error events.hasOwnProperty is not a function

AllanJard commented 2 years ago

Thanks for the PR! It has been a while since this repo has seen much activity :).

I'm not entirely clear why this is needed since events should be an object? Have you got an example page that shows the error?

idnovate commented 2 years ago

I thought it happens in all pages but actually I could only find this error in our page :confused:

https://www.idnovate.com/en/

AllanJard commented 2 years ago

Looks like it is something to do with how jQuery are now storing their events. I'm not sure why but it is not inherited from Object. Here is a little test with jQuery 3.5.1 showing the same thing: http://live.datatables.net/mopetiqi/1/edit .

AllanJard commented 2 years ago

Looks like it was this commit that when in for jQuery 3.5.0 that caused this.

Thanks for the patch here! I'll get it deployed on my server shortly.