Skip to content

Commit

Permalink
add check for jQuery if it is not defined (#586)
Browse files Browse the repository at this point in the history
Bugfix
  • Loading branch information
Nazar32 authored and IonDen committed Dec 19, 2019
1 parent 556a5f2 commit 31f2ed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/ion.rangeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
// =====================================================================================================================

;(function(factory) {
if (!jQuery && typeof define === "function" && define.amd) {
if ((typeof jQuery === 'undefined' || !jQuery) && typeof define === "function" && define.amd) {
define(["jquery"], function (jQuery) {
return factory(jQuery, document, window, navigator);
});
} else if (!jQuery && typeof exports === "object") {
} else if ((typeof jQuery === 'undefined' || !jQuery) && typeof exports === "object") {
factory(require("jquery"), document, window, navigator);
} else {
factory(jQuery, document, window, navigator);
Expand Down Expand Up @@ -806,7 +806,7 @@
if ($.contains(this.$cache.cont[0], e.target) || this.dragging) {
this.callOnFinish();
}

this.dragging = false;
},

Expand Down

0 comments on commit 31f2ed6

Please sign in to comment.