Browse Source

Global variables fix.

Herbert Vojčík 12 years ago
parent
commit
bd54269ae0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/boot.js

+ 2 - 2
js/boot.js

@@ -148,7 +148,7 @@ function Smalltalk() {
 
 	/* The symbol table ensures symbol unicity */
 
-	symbolTable = {};
+	var symbolTable = {};
 	st.symbolFor = function(string) {
 		if(symbolTable[string] === undefined) {
 			symbolTable[string] = new SmalltalkSymbol(string);
@@ -159,7 +159,7 @@ function Smalltalk() {
 
 	/* Unique ID number generator */
 
-	oid = 0;
+	var oid = 0;
 	st.nextId = function() {
 		oid += 1;
 		return oid;