Fixed XMLList plus()

Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7b3c0cb4
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7b3c0cb4
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7b3c0cb4

Branch: refs/heads/spark
Commit: 7b3c0cb408d30ea5aaa003245c38fd98936e70cc
Parents: b9c15bb
Author: Harbs <[email protected]>
Authored: Mon May 16 10:53:01 2016 +0300
Committer: Alex Harui <[email protected]>
Committed: Thu May 26 16:04:21 2016 -0700

----------------------------------------------------------------------
 frameworks/projects/XML/src/main/flex/XMLList.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7b3c0cb4/frameworks/projects/XML/src/main/flex/XMLList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/XML/src/main/flex/XMLList.as 
b/frameworks/projects/XML/src/main/flex/XMLList.as
index 7518b95..18e4917 100644
--- a/frameworks/projects/XML/src/main/flex/XMLList.as
+++ b/frameworks/projects/XML/src/main/flex/XMLList.as
@@ -579,7 +579,7 @@ package
                        }
                        if(rightHand is String)
                                return this.toString() + rightHand;
-                       if(rightHand === NaN)
+                       if(rightHand is Number && isNaN(rightHand))
                                return NaN;
                        if(isNaN(Number( this.toString() )) || isNaN(Number( 
rightHand.toString() )))
                                return this.toString() + rightHand.toString();

Reply via email to