Don't hog global $ in case module is to be used with other JS lib.
[mkdru-moved-to-drupal.org.git] / mkdru.client.js
index 216ad20..7f83e3c 100644 (file)
@@ -39,6 +39,9 @@ var mkdru = {
 
 
 
+// Wrapper for jQuery
+(function ($) {
+
 // So we can use jQuery BBQ with Drupal 6 and its 1.2.6 jQuery
 if (!$.isArray) $.isArray = function(obj) {
   return Object.prototype.toString.call(obj) === "[object Array]";
@@ -362,3 +365,4 @@ $(document).ready(function () {
     );
   }
 });
+})(jQuery);
\ No newline at end of file