This is an automated email from the ASF dual-hosted git repository.
andreww pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-docs.git
The following commit(s) were added to refs/heads/develop by this push:
new b07aa76 Update controller.md
b07aa76 is described below
commit b07aa7681c88bf94603491e3ef5795595a6f14af
Author: Andrew Wetmore <[email protected]>
AuthorDate: Thu Feb 1 18:55:08 2018 -0400
Update controller.md
A couple of small edits.
---
create-an-application/application-tutorial/controller.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/create-an-application/application-tutorial/controller.md
b/create-an-application/application-tutorial/controller.md
index 1855a61..7a4ae48 100644
--- a/create-an-application/application-tutorial/controller.md
+++ b/create-an-application/application-tutorial/controller.md
@@ -20,13 +20,13 @@ title: The controller
# The controller
-The controller is the code that watches for events from the View and updates
the Model. Why separate that out? Because that way a View can be reused in
other applications. Our View right now is pretty generic. It could be used to
display comments on a wiki page, or a text messaging conversation, or even some
social media discussion.
+The controller is the code that watches for events from the View and updates
the Model. Why separate that out? Because that way a View can be reused in
other applications. Our View right now is pretty generic and could be used to
display comments on a wiki page, or a text messaging conversation, or even some
social media discussion.
-Right now, the View's only interaction (other than scrolling through the list
of commits) is selecting a commit so you can see any longer commit message in
the MultilineView. That doesn't really update the model, so this application's
controller currently has nothing to do. But when we add localization and
filters later, the controller will have something to do. Also, the most of the
individual components like DataGrid are themselves implemented in the MVC
pattern and the DataGrid has [...]
+Right now, the View's only interaction (other than scrolling through the list
of commits) is selecting a commit so you can see any longer commit message in
the MultilineView. That doesn't really update the model, so this application's
controller currently has nothing to do. Also, the most of the individual
components like DataGrid are themselves implemented in the MVC pattern and the
DataGrid has a controller that handles selection and updating the selectdItem
property. But when we add l [...]
-Now if there was a reason to share the currently selected commit with other
Views then the Model could be extended to have a "currentCommit" field and then
the controller would watch for DataGrid selection changes and update the model.
+If there were a reason to share the currently selected commit with other
Views, the Model could be extended to have a "currentCommit" field and then the
controller would watch for DataGrid selection changes and update the model.
-So, nothing to do here. Let's try to compile it and run it.
+So, nothing to do here for now. Let's try to compile and run our application.
{:align="center"}
[Previous Page](create-an-application/application-tutorial/view.html) \| [Next
Page](create-an-application/application-tutorial/build.html)
--
To stop receiving notification emails like this one, please contact
[email protected].