Explorar el Código

Fix the error in case of no-cb `require(["deps"])`

Herbert Vojčík hace 9 años
padre
commit
47324bb572
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      amdefine.js

+ 1 - 1
amdefine.js

@@ -121,7 +121,7 @@ function amdefine(module, requireFn) {
 
                 //Wait for next tick to call back the require call.
                 process.nextTick(function () {
-                    callback.apply(null, deps);
+                    if (callback) callback.apply(null, deps);
                 });
             }
         }