| 
														
															@@ -48,7 +48,7 @@ if(typeof console === "undefined") { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 /* Array extensions */ 
														 | 
														
														 | 
														
															 /* Array extensions */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 Array.prototype.addElement = function(el) { 
														 | 
														
														 | 
														
															 Array.prototype.addElement = function(el) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	if(typeof el === 'undefined') { return false; } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	if(typeof el === 'undefined') { return; } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	if(this.indexOf(el) == -1) { 
														 | 
														
														 | 
														
															 	if(this.indexOf(el) == -1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.push(el); 
														 | 
														
														 | 
														
															         this.push(el); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -185,12 +185,12 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		spec = spec || {}; 
														 | 
														
														 | 
														
															 		spec = spec || {}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		var meta = metaclass(spec); 
														 | 
														
														 | 
														
															 		var meta = metaclass(spec); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		var that = meta.instanceClass; 
														 | 
														
														 | 
														
															 		var that = meta.instanceClass; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        setupClass(that, spec); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		that.fn = spec.fn || function() {}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		setupClass(that, spec); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         that.className = spec.className; 
														 | 
														
														 | 
														
															         that.className = spec.className; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         that.wrapped   = spec.wrapped || false; 
														 | 
														
														 | 
														
															         that.wrapped   = spec.wrapped || false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		meta.className = spec.className + ' class'; 
														 | 
														
														 | 
														
															 		meta.className = spec.className + ' class'; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        that.organization = new SmalltalkOrganizer(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if(spec.superclass) { 
														 | 
														
														 | 
														
															 		if(spec.superclass) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			that.superclass = spec.superclass; 
														 | 
														
														 | 
														
															 			that.superclass = spec.superclass; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			meta.superclass = spec.superclass.klass; 
														 | 
														
														 | 
														
															 			meta.superclass = spec.superclass.klass; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -199,31 +199,19 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} 
														 | 
														
														 | 
														
															 	} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	function metaclass(spec) { 
														 | 
														
														 | 
														
															 	function metaclass(spec) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        var superConstructor; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        spec = spec || {}; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        if(spec.superclass) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            superConstructor = spec.superclass.klass.fn; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        } else { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            superConstructor = SmalltalkClass; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		spec = spec || {}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		var that = new SmalltalkMetaclass(); 
														 | 
														
														 | 
														
															 		var that = new SmalltalkMetaclass(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        that.fn            = function() {}; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        that.organization  = new SmalltalkOrganizer(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        inherits(that.fn, superConstructor); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        setupClass(that); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		inherits( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			that.fn = function() {}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			spec.superclass ? spec.superclass.klass.fn : SmalltalkClass 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		setupClass(that); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		that.instanceClass = new that.fn(); 
														 | 
														
														 | 
														
															 		that.instanceClass = new that.fn(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		return that; 
														 | 
														
														 | 
														
															 		return that; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} 
														 | 
														
														 | 
														
															 	} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	function setupClass(klass, spec) { 
														 | 
														
														 | 
														
															 	function setupClass(klass, spec) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         spec = spec || {}; 
														 | 
														
														 | 
														
															         spec = spec || {}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        if(!klass.fn) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		    klass.fn = spec.fn || function() {}; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		klass.iVarNames = spec.iVarNames || []; 
														 | 
														
														 | 
														
															 		klass.iVarNames = spec.iVarNames || []; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		klass.pkg = spec.pkg; 
														 | 
														
														 | 
														
															 		klass.pkg = spec.pkg; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -232,12 +220,13 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             configurable: true 
														 | 
														
														 | 
														
															             configurable: true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}); 
														 | 
														
														 | 
														
															 		}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		klass.organization = new SmalltalkOrganizer(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		Object.defineProperties(klass, { 
														 | 
														
														 | 
														
															 		Object.defineProperties(klass, { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			methods: {  
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                value: {},  
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                enumerable: false,  
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                configurable: true,  
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                writable: true  
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			methods: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                value: {}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                enumerable: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                configurable: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                writable: true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}); 
														 | 
														
														 | 
														
															 		}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -285,14 +274,14 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             installSuperclass(klass); 
														 | 
														
														 | 
														
															             installSuperclass(klass); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        if(klass === smalltalk.Object || klass.wrapped) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if(klass === st.Object || klass.wrapped) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             installDnuHandlers(klass); 
														 | 
														
														 | 
														
															             installDnuHandlers(klass); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }; 
														 | 
														
														 | 
														
															     }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     function installSuperclass(klass) { 
														 | 
														
														 | 
														
															     function installSuperclass(klass) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // only if the klass has not been initialized yet. 
														 | 
														
														 | 
														
															         // only if the klass has not been initialized yet. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		if(klass.fn.prototype._yourself) { return false; } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		if(klass.fn.prototype._yourself) { return; } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if(klass.superclass && klass.superclass !== nil) { 
														 | 
														
														 | 
														
															 		if(klass.superclass && klass.superclass !== nil) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             inherits(klass.fn, klass.superclass.fn); 
														 | 
														
														 | 
														
															             inherits(klass.fn, klass.superclass.fn); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -348,7 +337,7 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	function installNewDnuHandler(string) { 
														 | 
														
														 | 
														
															 	function installNewDnuHandler(string) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if(dnuHandlers.indexOf(string) === -1) { 
														 | 
														
														 | 
														
															         if(dnuHandlers.indexOf(string) === -1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             addDnuHandler(string); 
														 | 
														
														 | 
														
															             addDnuHandler(string); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            installDnuHandler(string, smalltalk.Object); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            installDnuHandler(string, st.Object); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             for(var i=0; i<wrappedClasses.length; i++) { 
														 | 
														
														 | 
														
															             for(var i=0; i<wrappedClasses.length; i++) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 installDnuHandler(string, wrappedClasses[i]); 
														 | 
														
														 | 
														
															                 installDnuHandler(string, wrappedClasses[i]); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			} 
														 | 
														
														 | 
														
															 			} 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -528,6 +517,7 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				st.thisContext = undefined; 
														 | 
														
														 | 
														
															 				st.thisContext = undefined; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				if(error.smalltalkError) { 
														 | 
														
														 | 
														
															 				if(error.smalltalkError) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					handleError(error); 
														 | 
														
														 | 
														
															 					handleError(error); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					return nil; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} else { 
														 | 
														
														 | 
														
															 				} else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					throw(error); 
														 | 
														
														 | 
														
															 					throw(error); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} 
														 | 
														
														 | 
														
															 				} 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -542,7 +532,7 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		method = klass ? klass.fn.prototype[selector] : receiver.klass && receiver[selector]; 
														 | 
														
														 | 
														
															 		method = klass ? klass.fn.prototype[selector] : receiver.klass && receiver[selector]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if(method) { 
														 | 
														
														 | 
														
															 		if(method) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			var context = pushContext(receiver, selector, method, args); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			var context = pushContext(receiver, selector, args); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			call = method.apply(receiver, args); 
														 | 
														
														 | 
														
															 			call = method.apply(receiver, args); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			popContext(context); 
														 | 
														
														 | 
														
															 			popContext(context); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			return call; 
														 | 
														
														 | 
														
															 			return call; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -561,6 +551,7 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				st.thisContext = undefined; 
														 | 
														
														 | 
														
															 				st.thisContext = undefined; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				if(error.smalltalkError) { 
														 | 
														
														 | 
														
															 				if(error.smalltalkError) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					handleError(error); 
														 | 
														
														 | 
														
															 					handleError(error); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					return nil; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} else { 
														 | 
														
														 | 
														
															 				} else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					throw(error); 
														 | 
														
														 | 
														
															 					throw(error); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				} 
														 | 
														
														 | 
														
															 				} 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -579,7 +570,7 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	   (See the Smalltalk class ErrorHandler and its subclasses */ 
														 | 
														
														 | 
														
															 	   (See the Smalltalk class ErrorHandler and its subclasses */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	function handleError(error) { 
														 | 
														
														 | 
														
															 	function handleError(error) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        smalltalk.ErrorHandler._current()._handleError_(error); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        st.ErrorHandler._current()._handleError_(error); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} 
														 | 
														
														 | 
														
															 	} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	/* Handles #dnu: *and* JavaScript method calls. 
														 | 
														
														 | 
														
															 	/* Handles #dnu: *and* JavaScript method calls. 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -640,9 +631,7 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	/* Handle thisContext pseudo variable */ 
														 | 
														
														 | 
														
															 	/* Handle thisContext pseudo variable */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	st.getThisContext = function() { 
														 | 
														
														 | 
														
															 	st.getThisContext = function() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		if(st.thisContext) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			return st.thisContext.copy(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		return st.thisContext ? st.thisContext.copy() : nil; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}; 
														 | 
														
														 | 
														
															 	}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	function pushContext(receiver, selector, temps) { 
														 | 
														
														 | 
														
															 	function pushContext(receiver, selector, temps) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -719,7 +708,7 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			.replace(/_eq/g, '=') 
														 | 
														
														 | 
														
															 			.replace(/_eq/g, '=') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			.replace(/_comma/g, ',') 
														 | 
														
														 | 
														
															 			.replace(/_comma/g, ',') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			.replace(/_at/g, '@') 
														 | 
														
														 | 
														
															 			.replace(/_at/g, '@') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	}; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	/* Converts a JavaScript object to valid Smalltalk Object */ 
														 | 
														
														 | 
														
															 	/* Converts a JavaScript object to valid Smalltalk Object */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	st.readJSObject = function(js) { 
														 | 
														
														 | 
														
															 	st.readJSObject = function(js) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -728,7 +717,7 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		var readArray = (js.constructor === Array); 
														 | 
														
														 | 
														
															 		var readArray = (js.constructor === Array); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if(readObject) { 
														 | 
														
														 | 
														
															 		if(readObject) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			object = smalltalk.Dictionary._new(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			object = st.Dictionary._new(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		for(var i in js) { 
														 | 
														
														 | 
														
															 		for(var i in js) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			if(readObject) { 
														 | 
														
														 | 
														
															 			if(readObject) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -744,17 +733,18 @@ function Smalltalk() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     /* Boolean assertion */ 
														 | 
														
														 | 
														
															     /* Boolean assertion */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     st.assert = function(boolean) { 
														 | 
														
														 | 
														
															     st.assert = function(boolean) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		if(boolean.klass === smalltalk.Boolean) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		if(boolean.klass === st.Boolean) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			return boolean; 
														 | 
														
														 | 
														
															 			return boolean; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} else { 
														 | 
														
														 | 
														
															 		} else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			smalltalk.NonBooleanReceiver._new()._object_(boolean)._signal(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			st.NonBooleanReceiver._new()._object_(boolean)._signal(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			//TODO return sane value 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}; 
														 | 
														
														 | 
														
															 	}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     /* Smalltalk initialization. Called on page load */ 
														 | 
														
														 | 
														
															     /* Smalltalk initialization. Called on page load */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     st.initialize = function() { 
														 | 
														
														 | 
														
															     st.initialize = function() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		if(initialized) {return false} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		if(initialized) { return; } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		classes.forEach(function(klass) { 
														 | 
														
														 | 
														
															 		classes.forEach(function(klass) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             st.init(klass); 
														 | 
														
														 | 
														
															             st.init(klass); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -781,7 +771,7 @@ function SmalltalkMethodContext(receiver, selector, temps, home) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     //     smalltalk.thisContext = this; 
														 | 
														
														 | 
														
															     //     smalltalk.thisContext = this; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     //     return this.method.apply(receiver, temps); 
														 | 
														
														 | 
														
															     //     return this.method.apply(receiver, temps); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     // }; 
														 | 
														
														 | 
														
															     // }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-}; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 inherits(SmalltalkMethodContext, SmalltalkObject); 
														 | 
														
														 | 
														
															 inherits(SmalltalkMethodContext, SmalltalkObject); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |