jcchavezs / cmb2-conditionals

Plugin to relate fields in a CMB2 metabox
GNU General Public License v2.0
85 stars 61 forks source link

Namespace custom events #69

Closed jtsternberg closed 5 years ago

jtsternberg commented 5 years ago

The 'show' and 'hide' JQuery event detection is a neat trick, but turns out there are others doing similar things, so this can cause conflicts. By namespacing the custom event, we narrow the scope of functionality to just this plugin, and avoid conflicts w/ other scripts/plugins (namely, Visual Composer).

You can see some background here: https://wordpress.org/support/topic/wordpress-5-0-2-4/#topic-11069144-replies