Skip to content

Commit

Permalink
Added support for AMD (RequireJS, ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
František Hába committed Nov 7, 2011
1 parent ac4fe95 commit d422f03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/arnold.js
Expand Up @@ -622,6 +622,10 @@
// Export
if ( typeof module !== 'undefined' && module.exports ) {
module.exports = new Arnold();
} else if ( typeof define !== 'undefined' ) {
define(function() {
return new Arnold();
});
} else {
this.Arnold = new Arnold();
}
Expand Down

0 comments on commit d422f03

Please sign in to comment.