flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [31/50] [abbrv] git commit: [flex-asjs] [refs/heads/core_js_to_as] - Found a couple of errors in ContainerBase's getElementIndex code on both AS and JS side.
Date Thu, 08 Oct 2015 18:51:33 GMT
Found a couple of errors in ContainerBase's getElementIndex code on both AS and JS side.


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

Branch: refs/heads/core_js_to_as
Commit: f760bb42f1274ff5a9e94c5b272bac8ab3039918
Parents: e28d38e
Author: Peter Ent <pent@apache.org>
Authored: Mon Sep 21 11:06:59 2015 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Mon Sep 21 11:06:59 2015 -0400

----------------------------------------------------------------------
 .../projects/Core/as/src/org/apache/flex/core/ContainerBase.as     | 2 +-
 .../projects/Core/js/src/org/apache/flex/core/ContainerBase.js     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f760bb42/frameworks/projects/Core/as/src/org/apache/flex/core/ContainerBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/ContainerBase.as b/frameworks/projects/Core/as/src/org/apache/flex/core/ContainerBase.as
index 0d8005a..050f018 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/core/ContainerBase.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/ContainerBase.as
@@ -106,7 +106,7 @@ package org.apache.flex.core
          */
         override public function getElementIndex(c:Object):int
         {
-			var contentView:IContentViewHost = view as IContentViewHost;
+			var contentView:IParent = view as IParent;
 			if (contentView != null) {
 				return contentView.getElementIndex(c);
 			} else {

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f760bb42/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
index 4de63f6..593a11c 100644
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/projects/Core/js/src/org/apache/flex/core/ContainerBase.js
@@ -228,7 +228,7 @@ org.apache.flex.core.ContainerBase.prototype.removeElement = function(c,
opt_dis
 org.apache.flex.core.ContainerBase.prototype.getElementIndex = function(c) {
   var contentView = this.view;
   if (contentView != null) {
-    return contentView(c);
+    return contentView.getElementIndex(c);
   } else {
     return this.$getElementIndex(c);
   }


Mime
View raw message