avm2: Implement XML.toJSON()
This commit is contained in:
parent
1f21f120d6
commit
c199316ad3
|
@ -81,6 +81,10 @@ package {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AS3 function toJSON(k:String) : * {
|
||||||
|
return this.toJSON(k);
|
||||||
|
}
|
||||||
|
|
||||||
public static var ignoreComments:Boolean = true;
|
public static var ignoreComments:Boolean = true;
|
||||||
public static var ignoreProcessingInstructions:Boolean = true;
|
public static var ignoreProcessingInstructions:Boolean = true;
|
||||||
public static var ignoreWhitespace:Boolean = true;
|
public static var ignoreWhitespace:Boolean = true;
|
||||||
|
@ -199,6 +203,10 @@ package {
|
||||||
return self.AS3::length();
|
return self.AS3::length();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prototype.toJSON = function(k:String):* {
|
||||||
|
return "XML";
|
||||||
|
};
|
||||||
|
|
||||||
public static const length:int = 1;
|
public static const length:int = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue