flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/3] git commit: [flex-asjs] [refs/heads/develop] - quiet warnings
Date Sat, 01 Aug 2015 07:11:05 GMT
quiet warnings


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

Branch: refs/heads/develop
Commit: 4b2f457dc8bc629aa497d5998c8b16712a97e58d
Parents: 4f08902
Author: Alex Harui <aharui@apache.org>
Authored: Fri Jul 31 16:49:20 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Sat Aug 1 00:10:55 2015 -0700

----------------------------------------------------------------------
 examples/DataBindingTest/src/models/MyModel.as      |  1 +
 examples/DataBindingTest_Flat/src/models/MyModel.as |  1 +
 examples/DataBindingTest_as/src/models/MyModel.as   |  1 +
 examples/FlexJSStore/src/SupportView.mxml           | 16 +++++++++++++---
 4 files changed, 16 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b2f457d/examples/DataBindingTest/src/models/MyModel.as
----------------------------------------------------------------------
diff --git a/examples/DataBindingTest/src/models/MyModel.as b/examples/DataBindingTest/src/models/MyModel.as
index 7fc01ec..5a16d02 100644
--- a/examples/DataBindingTest/src/models/MyModel.as
+++ b/examples/DataBindingTest/src/models/MyModel.as
@@ -115,6 +115,7 @@ package models
 		}
 
         private var _strings:Array = ["AAPL", "ADBE", "GOOG", "MSFT", "YHOO"];
+        [Bindable("__NoChangeEvent__")]
         public function get strings():Array
         {
             return _strings;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b2f457d/examples/DataBindingTest_Flat/src/models/MyModel.as
----------------------------------------------------------------------
diff --git a/examples/DataBindingTest_Flat/src/models/MyModel.as b/examples/DataBindingTest_Flat/src/models/MyModel.as
index 7fc01ec..5a16d02 100644
--- a/examples/DataBindingTest_Flat/src/models/MyModel.as
+++ b/examples/DataBindingTest_Flat/src/models/MyModel.as
@@ -115,6 +115,7 @@ package models
 		}
 
         private var _strings:Array = ["AAPL", "ADBE", "GOOG", "MSFT", "YHOO"];
+        [Bindable("__NoChangeEvent__")]
         public function get strings():Array
         {
             return _strings;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b2f457d/examples/DataBindingTest_as/src/models/MyModel.as
----------------------------------------------------------------------
diff --git a/examples/DataBindingTest_as/src/models/MyModel.as b/examples/DataBindingTest_as/src/models/MyModel.as
index c724f4b..4a17f22 100644
--- a/examples/DataBindingTest_as/src/models/MyModel.as
+++ b/examples/DataBindingTest_as/src/models/MyModel.as
@@ -117,6 +117,7 @@ package models
 		}
 
         private var _strings:Array = ["AAPL", "ADBE", "GOOG", "MSFT", "YHOO"];
+        [Bindable("__NoChangeEvent__")]
         public function get strings():Array
         {
             return _strings;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4b2f457d/examples/FlexJSStore/src/SupportView.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSStore/src/SupportView.mxml b/examples/FlexJSStore/src/SupportView.mxml
index fb68a6c..3ce29a5 100755
--- a/examples/FlexJSStore/src/SupportView.mxml
+++ b/examples/FlexJSStore/src/SupportView.mxml
@@ -36,7 +36,7 @@ The width and height are hard-coded in the root tag to help the Design view.
 	
 	<fx:Script>
 	    <![CDATA[
-	       import org.apache.flex.html.SimpleAlert; 
+	       import org.apache.flex.html.SimpleAlert;
 	    ]]>
 	</fx:Script>
 	
@@ -115,8 +115,18 @@ The width and height are hard-coded in the root tag to help the Design
view.
                         <js:itemRenderer>
                             <fx:Component>
                                 <js:DataItemRenderer className="listItem" width="100%">
-                                    <js:Image width="21" height="25" source="{data.image}"
/>
-                                    <js:Label width="100%" text="{data.name}" />
+                                    <fx:Script>
+                                        <![CDATA[
+                                            import samples.flexstore.Product;
+                                            [Bindable("__NoChangeEvent__")]
+                                            private function get product():Product
+                                            {
+                                                return data as Product;
+                                            }
+                                        ]]>
+                                    </fx:Script>
+                                    <js:Image width="21" height="25" source="{product.image}"
/>
+                                    <js:Label width="100%" text="{product.name}" />
                                 </js:DataItemRenderer>                            
                               
                             </fx:Component>
                         </js:itemRenderer>


Mime
View raw message