소스 검색

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 11 년 전
부모
커밋
86ded18315
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
         }