Skip to content

Commit

Permalink
Merge pull request #275 from d10/exports-issue
Browse files Browse the repository at this point in the history
Fix issue when an element with ID of `exports` is defined in the browser.
  • Loading branch information
timrwood committed Dec 10, 2015
2 parents c3983ea + fcd7360 commit dde5b92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion moment-timezone-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/*global define*/
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('./')); // Node
} else {
factory(root.moment); // Browser
Expand Down
2 changes: 1 addition & 1 deletion moment-timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/*global define*/
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('moment')); // Node
} else {
factory(root.moment); // Browser
Expand Down

0 comments on commit dde5b92

Please sign in to comment.