You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/11/07 01:54:52 UTC

[2/3] git commit: [flex-asjs] [refs/heads/develop] - Looks like 'somestring' is String requires special casing because string literals are not Strings

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 <ah...@apache.org>
Authored: Wed Nov 6 08:05:21 2013 -0800
Committer: Alex Harui <ah...@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;
 };