Skip to content

Commit

Permalink
avm2: XML contains args name renamed to value
Browse files Browse the repository at this point in the history
  • Loading branch information
cy-polo authored and sleepycatcoding committed May 6, 2024
1 parent 36ab8b5 commit 219354a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/avm2/globals/XML.as
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ package {
AS3 native function child(name:*):XMLList;
AS3 native function childIndex():int;
AS3 native function children():XMLList;
AS3 native function contains(name:*):Boolean;
AS3 native function contains(value:*):Boolean;
AS3 native function copy():XML;
AS3 native function parent():*;
AS3 native function elements(name:* = "*"):XMLList;
Expand Down Expand Up @@ -172,9 +172,9 @@ package {
return self.AS3::children();
};

prototype.contains = function(name:*):Boolean {
prototype.contains = function(value:*):Boolean {
var self:XML = this;
return self.AS3::contains(name);
return self.AS3::contains(value);
};

prototype.copy = function():XML {
Expand Down

0 comments on commit 219354a

Please sign in to comment.