Skip to content

Commit

Permalink
fix illegal AMD definition
Browse files Browse the repository at this point in the history
variable jQuery was undefined
  • Loading branch information
Nommyde committed Apr 26, 2016
1 parent 2ac7412 commit cefa818
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/ion.rangeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory(jQuery, document, window, navigator));
define(['jquery'], function ($) {
factory($, document, window, navigator);
});
} else {
factory(jQuery, document, window, navigator);
}
Expand Down

0 comments on commit cefa818

Please sign in to comment.