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 2014/09/25 18:04:02 UTC

[20/50] git commit: [flex-asjs] [refs/heads/develop] - handle null in 'is' or 'as'

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 <ah...@apache.org>
Authored: Tue Sep 23 09:39:38 2014 -0700
Committer: Alex Harui <ah...@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;