You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/10/10 19:34:27 UTC
[royale-asjs] 15/16: get rid of binding warning. If an object's
fields never change at runtime and just represent an object retrieved from
the network, you still need setters,
but you can indicate that there is no change event
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 144269996620acb3a5fac71ce11fc90c1fff9df8
Author: Alex Harui <ah...@apache.org>
AuthorDate: Wed Oct 10 12:15:41 2018 -0700
get rid of binding warning. If an object's fields never change at runtime and just represent an object retrieved from the network, you still need setters, but you can indicate that there is no change event
---
.../RemoteObjectAMFTest/src/main/royale/valueObjects/Product.as | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/examples/mxroyale/RemoteObjectAMFTest/src/main/royale/valueObjects/Product.as b/examples/mxroyale/RemoteObjectAMFTest/src/main/royale/valueObjects/Product.as
index ce296c2..f12ab2f 100644
--- a/examples/mxroyale/RemoteObjectAMFTest/src/main/royale/valueObjects/Product.as
+++ b/examples/mxroyale/RemoteObjectAMFTest/src/main/royale/valueObjects/Product.as
@@ -27,6 +27,7 @@ package valueObjects
private var _name:String;
+ [Bindable("__NoChangeEvent__")]
public function get name():String
{
return _name;
@@ -39,6 +40,7 @@ package valueObjects
private var _description:String;
+ [Bindable("__NoChangeEvent__")]
public function get description():String
{
return _description;
@@ -51,6 +53,7 @@ package valueObjects
private var _taxonomy:Taxonomy;
+ [Bindable("__NoChangeEvent__")]
public function get taxonomy():Taxonomy
{
return _taxonomy;
@@ -64,6 +67,7 @@ package valueObjects
// collection of zones (Zone), we can use Array and ArrayList
private var _zones:Array;
+ [Bindable("__NoChangeEvent__")]
public function get zones():Array
{
return _zones;
@@ -76,6 +80,7 @@ package valueObjects
private var _flavors:Array = null;
+ [Bindable("__NoChangeEvent__")]
public function get flavors():Array
{
return _flavors;