flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/3] git commit: [flex-asjs] [refs/heads/develop] - Looks like 'somestring' is String requires special casing because string literals are not Strings
Date Thu, 07 Nov 2013 00:54:52 GMT
Looks like 'somestring' is String requires special casing because string literals are not Strings


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

Branch: refs/heads/develop
Commit: 8d222fa19f0247dd4671d82d0fabb24014124d91
Parents: c5bec26
Author: Alex Harui <aharui@apache.org>
Authored: Wed Nov 6 08:05:21 2013 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Nov 6 08:13:21 2013 -0800

----------------------------------------------------------------------
 frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8d222fa1/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
index a4d7792..a0f0ee8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -88,7 +88,8 @@ org.apache.flex.utils.Language.is = function(leftOperand, rightOperand)
{
 	} else if (leftOperand.FLEXJS_CLASS_INFO &&
 	    leftOperand.FLEXJS_CLASS_INFO.interfaces) {
 		return checkInterfaces(leftOperand);
-	}
+	} else if (rightOperand === String && typeof leftOperand === "string")
+        return true;
 
 	return false;
 };


Mime
View raw message