From 7e8718e6762ff015a78e1e9ec93c03b7c67c6abb Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Fri, 11 Feb 2011 22:30:03 +0100 Subject: [PATCH] Don't hog global $ in case module is to be used with other JS lib. --- mkdru.client.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkdru.client.js b/mkdru.client.js index 216ad20..7f83e3c 100644 --- a/mkdru.client.js +++ b/mkdru.client.js @@ -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 -- 1.7.10.4