flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [01/16] git commit: [flex-asjs] [refs/heads/develop] - type cast so getters and setters are used
Date Mon, 05 Jan 2015 23:21:20 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop c7099238d -> c375ffd25


type cast so getters and setters are used


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

Branch: refs/heads/develop
Commit: 4b9f33c4ea1467f2ceeaf3e38477cf81bab5b3ad
Parents: faed8de
Author: Alex Harui <aharui@apache.org>
Authored: Mon Jan 5 10:08:47 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Jan 5 15:20:59 2015 -0800

----------------------------------------------------------------------
 examples/FlexJSStore/src/productsView/ProductList.mxml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b9f33c4/examples/FlexJSStore/src/productsView/ProductList.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSStore/src/productsView/ProductList.mxml b/examples/FlexJSStore/src/productsView/ProductList.mxml
index 2d54ed7..b15c22f 100755
--- a/examples/FlexJSStore/src/productsView/ProductList.mxml
+++ b/examples/FlexJSStore/src/productsView/ProductList.mxml
@@ -115,7 +115,7 @@ limitations under the License.
             var ret:Array = [];
             for (var i:int = 0; i < items.length; i++)
             {
-                ret[i] = items[i].product;
+                ret[i] = ProductListItem(items[i]).product;
             }
             return ret;
         }
@@ -182,7 +182,7 @@ limitations under the License.
             var n:int = items.length;
 			for (var i:int = 0; i < items.length; i++)
 			{
-                if (items[i].product.productId == productId)
+                if (ProductListItem(items[i]).product.productId == productId)
 				{
                     index = i;
                     break;


Mime
View raw message