flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [20/50] git commit: [flex-asjs] [refs/heads/develop] - handle null in 'is' or 'as'
Date Thu, 25 Sep 2014 16:04:02 GMT
handle null in 'is' or 'as'


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

Branch: refs/heads/develop
Commit: 3bb202d7cf4810938e4a3133c78a5ac6df5bfe01
Parents: 0729034
Author: Alex Harui <aharui@apache.org>
Authored: Tue Sep 23 09:39:38 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Sep 23 15:01:15 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3bb202d7/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 619edb1..16e85a7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -92,9 +92,8 @@ org.apache.flex.utils.Language._int = function(value) {
 org.apache.flex.utils.Language.is = function(leftOperand, rightOperand) {
   var checkInterfaces, superClass;
 
-  // (erikdebruin) we intentionally DON'T do null checks on the
-  //               [class].FLEXJS_CLASS_INFO property, as it MUST be
-  //               declared for every FLEXJS JS (framework) class
+  if (!leftOperand)
+    return false;
 
   if (leftOperand && !rightOperand) {
     return false;


Mime
View raw message