Explorar o código

kernel: st.initialize to _always_ return a promise

Herbert Vojčík %!s(int64=8) %!d(string=hai) anos
pai
achega
168159a9bc
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      support/boot.js

+ 4 - 4
support/boot.js

@@ -559,11 +559,11 @@ define(['require', './brikz.umd', './compatibility'], function (require, Brikz)
         /* Smalltalk initialization. Called on page load */
 
         st.initialize = function () {
-            if (initialized) {
-                return;
-            }
-
             return runtimeLoadedPromise.then(function (configureWithRuntime) {
+                if (initialized) {
+                    return;
+                }
+
                 configureWithRuntime(brikz);
 
                 /* Alias definitions */