Explorar o código

Merge pull request #17 from herby/master

In define with id specified, module.exports is always used as this instead of m.exports
James Burke %!s(int64=10) %!d(string=hai) anos
pai
achega
86ded18315
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      amdefine.js

+ 1 - 1
amdefine.js

@@ -178,7 +178,7 @@ function amdefine(module, require) {
 
         //Call the factory with the right dependencies.
         if (typeof factory === 'function') {
-            result = factory.apply(module.exports, deps);
+            result = factory.apply(m.exports, deps);
         } else {
             result = factory;
         }