From 6525af3819349bc9f58f85c0dc7d158f5bee6aa6 Mon Sep 17 00:00:00 2001 From: Jory Hogeveen Date: Sun, 7 Aug 2016 20:08:41 +0200 Subject: [PATCH] Make sure $ is available and keep the slidebars variable global --- dev/slidebars.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev/slidebars.js b/dev/slidebars.js index bad76ef..2ac578d 100755 --- a/dev/slidebars.js +++ b/dev/slidebars.js @@ -8,7 +8,11 @@ * License url: http://www.adchsm.com/slidebars/license/ */ -var slidebars = function () { +var slidebars; + +(function($) { + +slidebars = function () { /** * Setup @@ -467,4 +471,6 @@ var slidebars = function () { */ $( window ).on( 'resize', this.css.bind( this ) ); -}; \ No newline at end of file +}; + +}(jQuery));