This is an automated email from the ASF dual-hosted git repository. gregdove pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit e1fd55088a59601e19a3cd664d7526553503d176 Author: greg-dove <[email protected]> AuthorDate: Wed Jul 17 13:19:32 2019 +1200 Comments tidyup in a couple of examples --- .../src/main/royale/crux/quickstart/view/UserForm.mxml | 3 ++- .../src/main/royale/crux/quickstart/view/UserForm.mxml | 12 ------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/examples/crux/CruxQuickStart/src/main/royale/crux/quickstart/view/UserForm.mxml b/examples/crux/CruxQuickStart/src/main/royale/crux/quickstart/view/UserForm.mxml index a1f6f9f..b322d21 100644 --- a/examples/crux/CruxQuickStart/src/main/royale/crux/quickstart/view/UserForm.mxml +++ b/examples/crux/CruxQuickStart/src/main/royale/crux/quickstart/view/UserForm.mxml @@ -39,10 +39,11 @@ limitations under the License. * We could inject the whole controller instance, but we only need * one property from the controller, the current user, so we just * inject that property. + * Using setter style binding below instead of direct property binding Injection here (for variety in example) */ public var user : User; - + //example of setter style binding Injection [Inject( source = "userController.currentUser", bind = "true" )] public function setUser(val:User):void{ this.user = val; diff --git a/examples/crux/CruxQuickStartBasic/src/main/royale/crux/quickstart/view/UserForm.mxml b/examples/crux/CruxQuickStartBasic/src/main/royale/crux/quickstart/view/UserForm.mxml index 273079c..9795bd5 100644 --- a/examples/crux/CruxQuickStartBasic/src/main/royale/crux/quickstart/view/UserForm.mxml +++ b/examples/crux/CruxQuickStartBasic/src/main/royale/crux/quickstart/view/UserForm.mxml @@ -41,18 +41,6 @@ limitations under the License. */ public var user : User; - /*public function get user():User{ - return user_; - } - public function set user(value:User):void{ - if (value != this.user_) { - var oldValue:User = this.user_; - this.user_ = value; - this.dispatchEvent(ValueChangeEvent.createUpdateEvent( - this, "user", oldValue, value)); - } - } - private var user_:User;*/ /** * Handle the user hitting the save button. We capture the form data * and dispatch a standard Flex event. No Crux-specific events or
