Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(*): improvements to UMD code
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Oct 6, 2016
1 parent 919882e commit 517f42f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion angular-moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@

if (typeof define === 'function' && define.amd) {
define(['angular', 'moment'], angularMoment);
} else if (typeof module !== 'undefined' && module && module.exports) {
} else if (typeof module !== 'undefined' && module && module.exports && (typeof require === 'function')) {
module.exports = angularMoment(require('angular'), require('moment'));
} else {
angularMoment(angular, (typeof global !== 'undefined' ? global : window).moment);
Expand Down
2 changes: 1 addition & 1 deletion angular-moment.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 517f42f

Please sign in to comment.