Browse Source

Fixed previous commit

Nicolas Petton 13 years ago
parent
commit
47fc67fc32
3 changed files with 2 additions and 5 deletions
  1. 0 0
      js/Compiler.deploy.js
  2. 0 0
      js/Compiler.js
  3. 2 5
      st/Compiler.st

File diff suppressed because it is too large
+ 0 - 0
js/Compiler.deploy.js


File diff suppressed because it is too large
+ 0 - 0
js/Compiler.js


+ 2 - 5
st/Compiler.st

@@ -961,11 +961,8 @@ visitVariableNode: aNode
 		ifTrue: [stream nextPutAll: 'self[''@', aNode value, ''']']
 		ifTrue: [stream nextPutAll: 'self[''@', aNode value, ''']']
 		ifFalse: [
 		ifFalse: [
 			(self knownVariables includes: aNode value) 
 			(self knownVariables includes: aNode value) 
-                  		ifFalse: [
-					unknownVariables add: aNode value.
-					stream nextPutAll: '(typeof ', aNode value, ' == ''undefined'' ? nil : ', aNode value, ')']
-                		ifTrue: [
-                                	stream nextPutAll: aNode value]]
+                  		ifFalse: [unknownVariables add: aNode value].
+                	stream nextPutAll: '(', aNode value, ' || nil)']
 !
 !
 
 
 visitJSStatementNode: aNode
 visitJSStatementNode: aNode

Some files were not shown because too many files changed in this diff