Nicolas Cannasse 13 年之前
父节点
当前提交
00edfdd39e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/haxe/JSON.hx

+ 1 - 1
std/haxe/JSON.hx

@@ -165,7 +165,7 @@ class JSON {
 	#if !haxeJSON
 		#if js
 		static function __init__() untyped {
-			if( 'typeof(JSON)') != __js__('undefined') )
+			if( __js__('typeof(JSON)') != 'undefined' )
 				JSON = __js__('JSON');
 		}
 		#end