responsive-tables icon indicating copy to clipboard operation
responsive-tables copied to clipboard

Fix jQuery noconflict

Open Kekke88 opened this issue 10 years ago • 3 comments

I had a problem with my Joomla site that throw a conflict error.

Kekke88 avatar Mar 19 '14 11:03 Kekke88

I can confirm that the same issue exists with WordPress sites.

In my case I didn't have to change lines 19 to 21 - I only changed the first line to jQuery(document).ready(function($) {

Unless I'm wrong, I don't see a reason to change $ to jQuery for lines 19 to 21 - it's all wrapped in the jQuery(document).ready() call which gets jQuery as it's argument.

nikolov-tmw avatar Mar 19 '14 22:03 nikolov-tmw

I cannot even try it because of that.

pronebird avatar Jul 12 '14 09:07 pronebird

Wrap in closure?

(function($, window, document) {
 // $ stuff here
})(jQuery, window, document);

joelpittet avatar Jun 24 '15 19:06 joelpittet