Skip to content

Commit

Permalink
Merge pull request adamschwartz#32 from rodneyrehm/patch-1
Browse files Browse the repository at this point in the history
fixing AMD export
  • Loading branch information
adamschwartz committed Sep 9, 2014
2 parents 4356526 + 4e2cf07 commit 4b09ab5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion log.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@
exportedLog.l = _log;

if (typeof define === 'function' && define.amd) {
define(exportedLog);
define(function defineLog() {
return exportedLog;
});
} else if (typeof exports !== 'undefined') {
module.exports = exportedLog;
} else {
Expand Down

0 comments on commit 4b09ab5

Please sign in to comment.