Browse Source

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 10 năm trước cách đây
mục cha
commit
86ded18315
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
         }