2
0
Bläddra i källkod

Fixed loading bug when options not used

Herbert Vojčík 10 år sedan
förälder
incheckning
3c699ed45f
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      support/helpers.js

+ 1 - 1
support/helpers.js

@@ -46,7 +46,7 @@ define("amber/helpers", ["amber_vm/smalltalk", "amber_vm/globals", "require"], f
             console.warn("`smalltalk.defaultAmdNamespace = 'namespace';` is deprecated. Please use `smalltalk.initialize({'transport.defaultAmdNamespace': 'namespace'});` instead.");
             settings['transport.defaultAmdNamespace'] = settings['transport.defaultAmdNamespace'] || exports.defaultAmdNamespace;
         }
-        mixinToSettings(options);
+        mixinToSettings(options || {});
         console.warn("smalltalk.ClassName is deprecated. Please use smalltalk.globals.ClassName instead.");
         globals.SmalltalkSettings = settings;
         return vm.initialize();