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

Commit

Permalink
Merge 98cdeff into 943238d
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronroberson committed Nov 20, 2015
2 parents 943238d + 98cdeff commit efe2db4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
22 changes: 14 additions & 8 deletions angular-moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,12 +715,18 @@
}]);
}

if (typeof define === 'function' && define.amd) {
define(['angular', 'moment'], angularMoment);
} else if (typeof module !== 'undefined' && module && module.exports) {
angularMoment(require('angular'), require('moment'));
module.exports = 'angularMoment';
} else {
angularMoment(angular, (typeof global !== 'undefined' ? global : window).moment);
}
if (typeof module !== 'undefined' && module && module.exports) {
var moment = moment;
if (typeof moment === 'undefined' && typeof require === 'function') {
moment = requireMoment();
} else {
throw new Error('Moment cannot be found by angular-moment! Please reference to: https://github.com/urish/angular-moment'); // Add wiki/troubleshooting section?
}
angularMoment(angular, moment);
module.exports = 'angularMoment';
} else if (typeof define === 'function' && define.amd) {
define(['angular', 'moment'], angularMoment);
} else {
angularMoment(angular, (typeof global !== 'undefined' ? global : window).moment);
}
})();
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 efe2db4

Please sign in to comment.