소스 검색

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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.