Skip to content
Browse files

fix problem when using it as AMD and having the qunit's module global

  • Loading branch information...
1 parent 3ded4e9 commit 2407fe205110e99f2a14e3000a03b585270c9a78 @jfromaniello jfromaniello committed Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/bean.js
View
2 src/bean.js
@@ -1,5 +1,5 @@
!function (name, context, definition) {
- if (typeof module !== 'undefined') module.exports = definition(name, context);
+ if (typeof module !== 'undefined' && module.exports) module.exports = definition(name, context);
else if (typeof define === 'function' && typeof define.amd === 'object') define(definition);
else context[name] = definition(name, context);
}('bean', this, function (name, context) {

0 comments on commit 2407fe2

Please sign in to comment.
Something went wrong with that request. Please try again.