Skip to content

Commit

Permalink
CommonJS/Browserify environment #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Stryzhevskyi committed Feb 13, 2016
1 parent d299534 commit b33966d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/rangeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// AMD. Register as an anonymous module.
define([], factory);
}
else if (typeof exports === 'object') {
else if (typeof module === 'object' && module !== null && module.exports) {
// CommonJS
factory();
module.exports = factory();
} else {
// Browser globals
/* jshint ignore:start */
Expand Down
Loading

0 comments on commit b33966d

Please sign in to comment.