Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #71 from shakhal/patch-1
Browse files Browse the repository at this point in the history
Support for AMD
  • Loading branch information
jsoma committed Jan 9, 2015
2 parents 0e032eb + a874662 commit 7b2024a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tabletop.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@

if(inNodeJS) {
module.exports = Tabletop;
} else if (typeof define === 'function' && define.amd) {
define(function () {
return Tabletop;
});
} else {
global.Tabletop = Tabletop;
}
Expand Down

0 comments on commit 7b2024a

Please sign in to comment.