diff --git a/js/jquery.knob.js b/js/jquery.knob.js old mode 100755 new mode 100644 index 163847b..5294ffa --- a/js/jquery.knob.js +++ b/js/jquery.knob.js @@ -11,7 +11,10 @@ * Thanks to vor, eskimoblood, spiffistan, FabrizioC */ (function (factory) { - if (typeof define === 'function' && define.amd) { + if (typeof exports === 'object') { + // CommonJS + module.exports = factory(require('jquery')); + } else if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else {