Explorar o código

No need to create new promise each rebuild().

Herby Vojčík %!s(int64=6) %!d(string=hai) anos
pai
achega
fff1213f8b
Modificáronse 1 ficheiros con 3 adicións e 5 borrados
  1. 3 5
      lang/base/boot.js

+ 3 - 5
lang/base/boot.js

@@ -44,14 +44,12 @@ define([
 ], function (require, _, Brikz, configureWithFundamentals, configureWithHierarchy) {
     "use strict";
 
-    require(['./kernel-runtime']); // preload
+    var runtimeLoadedPromise = new Promise(function (resolve, reject) {
+        require(['./kernel-runtime'], resolve, reject);
+    });
 
     function SmalltalkInitBrik (brikz, st) {
         var initialized = false;
-        var runtimeLoadedPromise = new Promise(function (resolve, reject) {
-            require(['./kernel-runtime'], resolve, reject);
-        });
-
         /* Smalltalk initialization. Called on page load */
 
         st.initialize = function () {