zurb / responsive-tables

Tables that work responsively on small devices.
429 stars 132 forks source link

Fix jQuery noconflict #28

Open Kekke88 opened 10 years ago

Kekke88 commented 10 years ago

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

nikolov-tmw commented 10 years ago

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.

pronebird commented 10 years ago

I cannot even try it because of that.

joelpittet commented 9 years ago

Wrap in closure?

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