You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/02/02 23:26:40 UTC
[royale-asjs] branch feature/router updated: todomvc-jewel: add
missing "?" to ternary operator
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch feature/router
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/feature/router by this push:
new 118d67c todomvc-jewel: add missing "?" to ternary operator
118d67c is described below
commit 118d67cf853fa54ed83d786c47ed13d6d032b809
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Mon Feb 3 00:26:29 2020 +0100
todomvc-jewel: add missing "?" to ternary operator
---
.../todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/jewel/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as b/examples/jewel/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
index b05640c..0fc7bea 100644
--- a/examples/jewel/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
+++ b/examples/jewel/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
@@ -208,7 +208,7 @@ package jewel.todomvc.controllers
*/
public function updateInterface():void {
setListState();
- var item:String = model.activeItems.length == 1 " item " : " items ";
+ var item:String = model.activeItems.length == 1 ? " item " : " items ";
model.itemsLeftLabel = model.activeItems.length + item + "left";
model.clearCompletedVisibility = model.completedItems.length != 0;
model.footerVisibility = model.allItems.length != 0;