| 
					
				 | 
			
			
				@@ -45,12 +45,9 @@ define(["amber/boot", "require"], function (boot, require) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // pass 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             mixinToSettings(fromStorage || {}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            // TODO find less hackish way to store settings back to storage. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (typeof window !== "undefined") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                requirejs(['jquery'], function ($) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    $(window).on('beforeunload', function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        storage.setItem('amber.SmalltalkSettings', JSON.stringify(globals.SmalltalkSettings)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                window.addEventListener('beforeunload', function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    storage.setItem('amber.SmalltalkSettings', JSON.stringify(globals.SmalltalkSettings)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |