Skip to content

Commit

Permalink
Small bugfix and Mousewheel version update
Browse files Browse the repository at this point in the history
I've tried to load this plugin dynamically and what i've got is only blank page, because document.write replaces everything..
  • Loading branch information
norkunas committed Apr 2, 2014
1 parent 179ced3 commit aca890c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/uncompressed/jquery.mCustomScrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ along with this program. If not, see http://www.gnu.org/licenses/lgpl.html.
$.support.msPointer=window.navigator.msPointerEnabled; /*MSPointer support*/
/*plugin dependencies*/
var _dlp=("https:"==document.location.protocol) ? "https:" : "http:";
$.event.special.mousewheel || document.write('<script src="'+_dlp+'//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.0.6/jquery.mousewheel.min.js"><\/script>');
$.event.special.mousewheel || $('<script>', { src: _dlp+'//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.6/jquery.mousewheel.min.js' }).appendTo('body');
/*plugin fn*/
$.fn.mCustomScrollbar=function(method){
if(methods[method]){
Expand All @@ -966,4 +966,4 @@ along with this program. If not, see http://www.gnu.org/licenses/lgpl.html.
$.error("Method "+method+" does not exist");
}
};
})(jQuery);
})(jQuery);

0 comments on commit aca890c

Please sign in to comment.