diff --git a/js/ion.rangeSlider.js b/js/ion.rangeSlider.js index 1d6bd03..e7d1ad5 100644 --- a/js/ion.rangeSlider.js +++ b/js/ion.rangeSlider.js @@ -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); @@ -806,7 +806,7 @@ if ($.contains(this.$cache.cont[0], e.target) || this.dragging) { this.callOnFinish(); } - + this.dragging = false; },