瀏覽代碼

Fixed previous commit

Nicolas Petton 13 年之前
父節點
當前提交
47fc67fc32
共有 3 個文件被更改,包括 2 次插入5 次删除
  1. 0 0
      js/Compiler.deploy.js
  2. 0 0
      js/Compiler.js
  3. 2 5
      st/Compiler.st

文件差異過大導致無法顯示
+ 0 - 0
js/Compiler.deploy.js


文件差異過大導致無法顯示
+ 0 - 0
js/Compiler.js


+ 2 - 5
st/Compiler.st

@@ -961,11 +961,8 @@ visitVariableNode: aNode
 		ifTrue: [stream nextPutAll: 'self[''@', aNode value, ''']']
 		ifFalse: [
 			(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

部分文件因文件數量過多而無法顯示