WordPress Visual Composer, EventsPlus plugin and a.poplight[href^=#] syntax err

Today I came across a weird bug on a client’s wordpress site that broke Visual Composer. The Javascript console was reporting a a.poplight[href^=#] syntax err which seemed to indicate that popups were not working. Indeed, there was a section of the page with tabs that showed no content under the tabs.

After a bit of googling, I found this: https://wordpress.org/support/topic/since-wp-upgrade-with-event-reg-60202-apoplighthref-syntax-err

I found the offending code in wp-content/plugins/eventsplus/evrplus_public_script.js and replaced a.poplight[href^=#] with a.poplight[href*=\\#]

I did not check yet to see if EventsPlus has been updated as I was in a bit of a hurry, but everything is now working.

My guess is that jQuery got updated and it no longer recognizes the href^=# syntax.