Sfoglia il codice sorgente

Global variables fix.

Herbert Vojčík 12 anni fa
parent
commit
bd54269ae0
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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;