From 9cee74b290bbc925c0ab834eb4be2151908696cd Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 31 May 2016 10:40:17 -0400 Subject: [PATCH] Named actors --- js/examples/table/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/examples/table/index.js b/js/examples/table/index.js index ef3e3fb..12215c1 100644 --- a/js/examples/table/index.js +++ b/js/examples/table/index.js @@ -2,7 +2,7 @@ assertion type person(id, firstName, lastName, address, age); message type setSortColumn(number); function newRow(id, firstName, lastName, address, age) { - actor { + actor named ('model' + id) { react { assert person(id, firstName, lastName, address, age); } @@ -18,7 +18,7 @@ function spawnModel() { } function spawnView() { - actor { + actor named 'view' { var ui = new Syndicate.UI.Anchor(); var orderColumn = 2; @@ -41,7 +41,7 @@ function spawnView() { } function spawnController() { - actor { + actor named 'controller' { react { on message Syndicate.UI.globalEvent('table#the-table th', 'click', $e) { :: setSortColumn(JSON.parse(e.target.dataset.column));