浏览代码

class rename

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

+ 3 - 3
std/haxe/Json.hx

@@ -27,7 +27,7 @@ package haxe;
 #if (flash_10_3 && !haxeJSON)
 #if (flash_10_3 && !haxeJSON)
 @:native('JSON') extern
 @:native('JSON') extern
 #end
 #end
-class JSON {
+class Json {
 
 
 #if !(flash_10_3 && !haxeJSON)
 #if !(flash_10_3 && !haxeJSON)
 	var buf : StringBuf;
 	var buf : StringBuf;
@@ -159,14 +159,14 @@ class JSON {
 */
 */
 
 
 	public static function stringify( value : Dynamic ) : String {
 	public static function stringify( value : Dynamic ) : String {
-		return new JSON().toString(value);
+		return new Json().toString(value);
 	}
 	}
 
 
 	#if !haxeJSON
 	#if !haxeJSON
 		#if js
 		#if js
 		static function __init__() untyped {
 		static function __init__() untyped {
 			if( __js__('typeof(JSON)') != 'undefined' )
 			if( __js__('typeof(JSON)') != 'undefined' )
-				JSON = __js__('JSON');
+				Json = __js__('JSON');
 		}
 		}
 		#end
 		#end
 	#end
 	#end