flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [8/9] git commit: [flex-asjs] [refs/heads/develop] - Added a check for a superclass that's not in the FlexJS framework or the project files (i.e. it's in the goog library) and added metadata
Date Fri, 15 Nov 2013 14:56:22 GMT
Added a check for a superclass that's not in the FlexJS framework or the project files (i.e.
it's in the goog library) and added metadata

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: a7771436248ec3a621009e76663e3ed1685a18f7
Parents: edccbec
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Fri Nov 15 15:30:40 2013 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Fri Nov 15 15:30:40 2013 +0100

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


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a7771436/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 6c55658..e2317f3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -24,6 +24,16 @@ org.apache.flex.utils.Language = function() {
 
 
 /**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org.apache.flex.utils.Language.prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'Language',
+                qName: 'org.apache.flex.utils.Language'}] };
+
+
+/**
  * as()
  *
  * @expose
@@ -120,7 +130,7 @@ org.apache.flex.utils.Language.is = function(leftOperand, rightOperand)
{
 
   superClass = leftOperand.constructor.superClass_;
   if (superClass) {
-    while (superClass) {
+    while (superClass && superClass.FLEXJS_CLASS_INFO) {
       if (superClass.FLEXJS_CLASS_INFO.interfaces) {
         if (checkInterfaces(superClass)) {
           return true;


Mime
View raw message