소스 검색

SmalltalkSettings created in `boot.js`.

Herbert Vojčík 10 년 전
부모
커밋
30a59efcc4
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      support/boot.js
  2. 1 1
      support/helpers.js

+ 1 - 0
support/boot.js

@@ -93,6 +93,7 @@ define("amber_vm/boot", [ 'require', './browser-compatibility' ], function (requ
 	}
 
 	var globals = {};
+    globals.SmalltalkSettings = {};
 	var api = Object.create(globals);
 	var brikz = new Brikz(api);
 

+ 1 - 1
support/helpers.js

@@ -15,7 +15,7 @@ define("amber/helpers", ["amber_vm/smalltalk", "amber_vm/globals", "require"], f
         enumerable: true, configurable: true, writable: false
     });
     exports.initialize = function (options) {
-        var settings = globals.SmalltalkSettings || {};
+        var settings = globals.SmalltalkSettings;
         settings['vm.defaultAmdNamespace'] = vm.defaultAmdNamespace;
         // TODO load saved contents from localStorage
         if (exports.defaultAmdNamespace) {