DateTimePicker icon indicating copy to clipboard operation
DateTimePicker copied to clipboard

Error with jQuery no conflict mode

Open sebastian-king opened this issue 7 years ago • 0 comments

jQuery in no conflict mode uses jQuery instead of $. A check should be added to determine is no conflict mode is enabled, and set $ = jQuery; accordingly to avoid errors.

In the meantime, the function can be wrapped in:

(function($){ // code })(jQuery);

although this really shouldn't be necessary as the plugin should be able to be deployed as-is on websites that use no conflict--such as all standard WordPress installations--with a proper check.

sebastian-king avatar Feb 10 '18 20:02 sebastian-king