| 
														
															@@ -1,10 +1,6 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 define("amber/helpers", ["amber_vm/smalltalk", "amber_vm/globals", "require"], function (vm, globals, require) { 
														 | 
														
														 | 
														
															 define("amber/helpers", ["amber_vm/smalltalk", "amber_vm/globals", "require"], function (vm, globals, require) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     var exports = Object.create(globals); 
														 | 
														
														 | 
														
															     var exports = Object.create(globals); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    var storage = (function (global) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        return 'localStorage' in global && global.localStorage; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    })(new Function('return this')()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     // API 
														 | 
														
														 | 
														
															     // API 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     exports.popupHelios = function () { 
														 | 
														
														 | 
														
															     exports.popupHelios = function () { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -18,14 +14,18 @@ define("amber/helpers", ["amber_vm/smalltalk", "amber_vm/globals", "require"], f 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         value: globals, 
														 | 
														
														 | 
														
															         value: globals, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         enumerable: true, configurable: true, writable: false 
														 | 
														
														 | 
														
															         enumerable: true, configurable: true, writable: false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }); 
														 | 
														
														 | 
														
															     }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    exports.initialize = function (options) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    function mixinToSettings(source) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         var settings = globals.SmalltalkSettings; 
														 | 
														
														 | 
														
															         var settings = globals.SmalltalkSettings; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        function mixinToSettings(source) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            Object.keys(source).forEach(function (key) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                settings[key] = source[key]; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            }); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        settings['transport.defaultAmdNamespace'] = vm.defaultAmdNamespace; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        Object.keys(source).forEach(function (key) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            settings[key] = source[key]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    function settingsInLocalStorage() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        var global = new Function('return this')(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            storage = 'localStorage' in global && global.localStorage; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (storage) { 
														 | 
														
														 | 
														
															         if (storage) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             var fromStorage; 
														 | 
														
														 | 
														
															             var fromStorage; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             try { 
														 | 
														
														 | 
														
															             try { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -37,18 +37,22 @@ define("amber/helpers", ["amber_vm/smalltalk", "amber_vm/globals", "require"], f 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (typeof window !== "undefined") { 
														 | 
														
														 | 
														
															             if (typeof window !== "undefined") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 requirejs(['jquery'], function ($) { 
														 | 
														
														 | 
														
															                 requirejs(['jquery'], function ($) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     $(window).on('beforeunload', function () { 
														 | 
														
														 | 
														
															                     $(window).on('beforeunload', function () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                       storage.setItem('amber.SmalltalkSettings', JSON.stringify(globals.SmalltalkSettings)); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        storage.setItem('amber.SmalltalkSettings', JSON.stringify(globals.SmalltalkSettings)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     }); 
														 | 
														
														 | 
														
															                     }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 }); 
														 | 
														
														 | 
														
															                 }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    exports.initialize = function (options) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        globals.SmalltalkSettings['transport.defaultAmdNamespace'] = vm.defaultAmdNamespace; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        settingsInLocalStorage(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (exports.defaultAmdNamespace) { 
														 | 
														
														 | 
														
															         if (exports.defaultAmdNamespace) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             console.warn("`smalltalk.defaultAmdNamespace = 'namespace';` is deprecated. Please use `smalltalk.initialize({'transport.defaultAmdNamespace': 'namespace'});` instead."); 
														 | 
														
														 | 
														
															             console.warn("`smalltalk.defaultAmdNamespace = 'namespace';` is deprecated. Please use `smalltalk.initialize({'transport.defaultAmdNamespace': 'namespace'});` instead."); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            settings['transport.defaultAmdNamespace'] = settings['transport.defaultAmdNamespace'] || exports.defaultAmdNamespace; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            globals.SmalltalkSettings['transport.defaultAmdNamespace'] = globals.SmalltalkSettings['transport.defaultAmdNamespace'] || exports.defaultAmdNamespace; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         mixinToSettings(options || {}); 
														 | 
														
														 | 
														
															         mixinToSettings(options || {}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         console.warn("smalltalk.ClassName is deprecated. Please use smalltalk.globals.ClassName instead."); 
														 | 
														
														 | 
														
															         console.warn("smalltalk.ClassName is deprecated. Please use smalltalk.globals.ClassName instead."); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        globals.SmalltalkSettings = settings; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return vm.initialize(); 
														 | 
														
														 | 
														
															         return vm.initialize(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }; 
														 | 
														
														 | 
														
															     }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |