This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 592a051  todomvc-crux:  some cleaning
592a051 is described below

commit 592a0517d9e22fda2399d09203e7a468cd98b667
Author: Carlos Rovira <[email protected]>
AuthorDate: Thu Feb 13 08:44:27 2020 +0100

    todomvc-crux:  some cleaning
---
 .../src/main/royale/jewel/todomvc/controllers/TodoController.as        | 3 +--
 .../crux/todomvc/src/main/royale/jewel/todomvc/events/TodoEvent.as     | 1 -
 .../crux/todomvc/src/main/royale/jewel/todomvc/models/TodoModel.as     | 2 +-
 .../crux/todomvc/src/main/royale/jewel/todomvc/views/TodoFooter.mxml   | 2 +-
 .../crux/todomvc/src/main/royale/jewel/todomvc/views/TodoHeader.mxml   | 2 +-
 .../todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml   | 2 +-
 6 files changed, 5 insertions(+), 7 deletions(-)

diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
 
b/examples/crux/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
index 0422640..33efde6 100644
--- 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
+++ 
b/examples/crux/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
@@ -23,7 +23,6 @@ package jewel.todomvc.controllers
        import jewel.todomvc.vos.TodoVO;
 
        import org.apache.royale.collections.ArrayList;
-       import org.apache.royale.core.IStrand;
 
        /**
      * The Todo Controller holds all the global actions. The views dispatch 
events that bubbles and
@@ -44,7 +43,7 @@ package jewel.todomvc.controllers
                 *  In this example, we set up a default user after the bean is 
created.
                 */
                [PostConstruct]
-               public function setUp(value:IStrand):void {
+               public function setUp():void {
                        // retrieve local items and use it if exists
                        model.allItems = new ArrayList(model.getItemStore());
                        
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/events/TodoEvent.as 
b/examples/crux/todomvc/src/main/royale/jewel/todomvc/events/TodoEvent.as
index 42f6b5e..20a9f9e 100644
--- a/examples/crux/todomvc/src/main/royale/jewel/todomvc/events/TodoEvent.as
+++ b/examples/crux/todomvc/src/main/royale/jewel/todomvc/events/TodoEvent.as
@@ -34,7 +34,6 @@ package jewel.todomvc.events
                public static const TOGGLE_ALL_COMPLETE:String = 
"toggle_all_complete";
                public static const REMOVE_COMPLETED:String = 
"remove_completed";
                public static const REFRESH_LIST:String = "refresh_list";
-
                public static const ITEM_STATE_CHANGED:String = 
"item_state_changed";
                public static const ITEM_LABEL_CHANGED:String = 
"item_label_changed";
                public static const ITEM_REMOVED:String = "item_removed";
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/models/TodoModel.as 
b/examples/crux/todomvc/src/main/royale/jewel/todomvc/models/TodoModel.as
index 83e69dc..75a148c 100644
--- a/examples/crux/todomvc/src/main/royale/jewel/todomvc/models/TodoModel.as
+++ b/examples/crux/todomvc/src/main/royale/jewel/todomvc/models/TodoModel.as
@@ -25,11 +25,11 @@ package jewel.todomvc.models
        import org.apache.royale.events.EventDispatcher;
        import org.apache.royale.storage.AMFStorage;
 
-       [Bindable]
     /**
      *  Todo Model stores global model variables that are updated by controller
      *  and used in views to update visuals for the user
      */
+       [Bindable]
        public class TodoModel
        {
         /**
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoFooter.mxml 
b/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoFooter.mxml
index 64c2f56..6503002 100644
--- a/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoFooter.mxml
+++ b/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoFooter.mxml
@@ -26,8 +26,8 @@ limitations under the License.
             import jewel.todomvc.events.TodoEvent;
             import jewel.todomvc.models.TodoModel;
             
-            [Bindable]
             [Inject]
+            [Bindable]
             public var todoModel:TodoModel;
 
             /**
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoHeader.mxml 
b/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoHeader.mxml
index ffbe8a0..dcd1ccd 100644
--- a/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoHeader.mxml
+++ b/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoHeader.mxml
@@ -30,8 +30,8 @@ limitations under the License.
 
                        import org.apache.royale.events.Event;
 
-                       [Bindable]
                        [Inject]
+                       [Bindable]
                        public var todoModel:TodoModel;
 
                        /**
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml
 
b/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml
index 5a8d9e4..7dc2e12 100644
--- 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml
+++ 
b/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml
@@ -27,8 +27,8 @@ limitations under the License.
         <![CDATA[
             import jewel.todomvc.models.TodoModel;
             
-            [Bindable]
             [Inject]
+            [Bindable]
                        public var todoModel:TodoModel;
 
             /**

Reply via email to