You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2016/05/16 07:53:08 UTC

git commit: [flex-asjs] [refs/heads/develop] - Fixed XMLList plus()

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 387206bb4 -> 35b543ef0


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/35b543ef
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/35b543ef
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/35b543ef

Branch: refs/heads/develop
Commit: 35b543ef0ca6c5aa583b57a2a5a950f7fd4ce9fb
Parents: 387206b
Author: Harbs <ha...@in-tools.com>
Authored: Mon May 16 10:53:01 2016 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Mon May 16 10:53:01 2016 +0300

----------------------------------------------------------------------
 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/35b543ef/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();