diff --git a/.jshintrc b/.jshintrc index cb0d384..780db7f 100644 --- a/.jshintrc +++ b/.jshintrc @@ -35,7 +35,7 @@ "deepEqual": false, "equal": false, "expect": false, - "module": false, + "module": true, "notDeepEqual": false, "notEqual": false, "notStrictEqual": false, diff --git a/src/countdown.js b/src/countdown.js index c5d491a..62deff7 100644 --- a/src/countdown.js +++ b/src/countdown.js @@ -4,6 +4,8 @@ if (typeof define === 'function' && define.amd) { define(['jquery'], factory); + } else if (typeof module === 'object' && module.exports) { + factory(require('jquery')); } else { factory(jQuery); }