Pārlūkot izejas kodu

fix to use m.exports instead of forced module.exports

module.exports is no longer incorrectly passed as this into define with id
Herbert Vojčík 11 gadi atpakaļ
vecāks
revīzija
794123f9eb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;
         }