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 0bfbcee todotodomvc: latest fixes
0bfbcee is described below
commit 0bfbcee7ae08b4eca5db34de2c85dc23acaafde9
Author: Carlos Rovira <[email protected]>
AuthorDate: Sun Feb 16 23:16:23 2020 +0100
todotodomvc: latest fixes
---
.../src/main/royale/jewel/todomvc/controllers/TodoController.as | 2 --
.../src/main/royale/jewel/todomvc/models/TodoModel.as | 4 +++-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/controllers/TodoController.as
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/controllers/TodoController.as
index 73fb904..33efde6 100644
---
a/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/controllers/TodoController.as
+++
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/controllers/TodoController.as
@@ -46,8 +46,6 @@ package jewel.todomvc.controllers
public function setUp():void {
// retrieve local items and use it if exists
model.allItems = new ArrayList(model.getItemStore());
- // model.allItems = new ArrayList([]);
- // saveDataToLocal();
model.setUpFilteredCollections();
model.listItems = model.allItems;
diff --git
a/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/models/TodoModel.as
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/models/TodoModel.as
index 20b5777..9251d1f 100644
---
a/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/models/TodoModel.as
+++
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/models/TodoModel.as
@@ -38,6 +38,8 @@ package jewel.todomvc.models
public static const ALL_FILTER:String = "All";
public static const ACTIVE_FILTER:String = "Active";
public static const COMPLETED_FILTER:String = "Completed";
+
+ public static const STORAGE_PATH:String = "crux";
/**
* Retrieves the array ot items
@@ -60,7 +62,7 @@ package jewel.todomvc.models
/**
* Local storage for the todo items
*/
- private var storage:AMFStorage = AMFStorage.getLocal("todomvccrux");
+ private var storage:AMFStorage = AMFStorage.getLocal("todomvc",
STORAGE_PATH);
/**
* the list of items binded to the todo list component