Closed criz closed 9 years ago
Das selbe Probleme besteht mit Joomla, da dort Query schon im "no conflict mode" arbeitet, hat es geholfen, alle $ mit jQuery zu ersetzen.
@criz: I have the same problems with joomla, I haved to replaced all $ with jQuery.
Modify the shariff.min.js like this:
(function ($) {
// code from shariff.min.js
})(jQuery);
Das gleiche problem wird es auch mit WordPress geben!
When implementing the library in Drupal I get the following error:
See http://stackoverflow.com/a/23739123.
"Drupal 7 provides jQuery in the no-conflict mode, which means that $ is not the jQuery object/namespace. This should not be an issue with properly written jQuery plugins that follow jQuery's plugins authoring documentation."
Please note that just wrapping the code in a anonymous function didn't fix it for me. Adding
var $=jQuery;
does the job, but is not a valid solution of course.