Skip to content

Commit

Permalink
Merge pull request #580 from TomiS/master
Browse files Browse the repository at this point in the history
Improve module definition
  • Loading branch information
rovolution committed May 26, 2016
2 parents a81402d + 7aa084b commit 649128f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/bootstrap-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@

(function(factory) {
if(typeof define === "function" && define.amd) {
define(["jquery"], factory);
try {
define(["jquery"], factory);
} catch (err) {
define([], factory);
}
}
else if(typeof module === "object" && module.exports) {
var jQuery;
Expand Down

0 comments on commit 649128f

Please sign in to comment.