Skip to content

Commit

Permalink
Merge pull request #12 from whiteinge/fix-amd-detection
Browse files Browse the repository at this point in the history
Fixed AMD detection
  • Loading branch information
mkuklis committed Apr 1, 2013
2 parents 9dfe3c1 + eb4ef38 commit 6ae040a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asevented.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(function (name, global, definition) {
if (typeof module !== 'undefined') {
module.exports = definition();
} else if (typeof require !== 'undefined' && typeof require.amd === 'object') {
} else if (typeof require !== 'undefined' && typeof define.amd === 'object') {
define(definition);
} else {
global[name] = definition();
Expand Down

0 comments on commit 6ae040a

Please sign in to comment.