{"action":"created","comment":{"url":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/comments/49263072","id":49263072,"diff_hunk":"@@ -89,107 +92,96 @@ object MoorkaTodoMVC extends Application {\n                       txt = fieldText,\n                       status = Active\n                     ))\n-                    false\n+                    Val(false)\n                   }\n                 }\n               }\n             },\n-            input(`className` := \"edit\", `value` =:= fieldText)\n+            'input ('className := \"edit\", 'value =:= fieldText)\n           )\n         )\n       }\n     }\n     // Tree of component\n-    div(\n-      section(`className` := \"todoapp\",\n-        header(`className` := \"header\",\n-          h1(\"todos\"),\n-            block {\n-              val inputText = Var(\"\")\n-              form(\n-                input(\n-                  `className` := \"new-todo\",\n-                  `placeholder` := \"What needs to be done?\",\n-                  `autofocus` := true,\n-                  `value` =:= inputText\n-                ),\n-                on.submit listen {\n-                  inputText modOnce { inputText ⇒\n-                    val s = inputText.trim()\n-                    if (s != \"\") {\n-                      todos += Todo(s, Active)\n-                    }\n-                    \"\"\n+    'div (\n+      'section ('className := \"todoapp\",\n+        'header ('className := \"header\",\n+          'h1 (\"todos\"),\n+          'block {\n+            val inputText = Var(\"\")\n+            'form (\n+              'input (\n+                'className := \"new-todo\",\n+                'placeholder := \"What needs to be done?\",\n+                'autofocus := true,\n+                'value =:= inputText\n+              ),\n+              'submit listen {\n+                inputText modOnce { inputText ⇒\n+                  val s = inputText.trim()\n+                  if (s != \"\") {\n+                    todos += Todo(s, Active)\n                   }\n+                  Val(\"\")\n                 }\n-              )\n-            }\n-        ),\n-        section(`className` := \"main\",\n-          input(\n-            `className` := \"toggle-all\",\n-            `type` := \"checkbox\",\n-            `style` := \"cursor: pointer\",\n-            `checked` := {\n-              for {\n-                todosLength ← todos.rxLength\n-                numCompleted ← numCompleted\n-              } yield {\n-                todosLength > 0 && numCompleted == todosLength\n               }\n-            },\n-            on.click subscribe { event =>\n-              `checked` from event.target onSuccess {\n-                case true =>\n-                  todos.updateAll(_.copy(status = Completed))\n-                case false =>\n-                  todos.updateAll(_.copy(status = Active))\n+            )\n+          }\n+        ),\n+        'section ('className := \"main\",\n+          'input (\n+            'className := \"toggle-all\",\n+            'type := \"checkbox\",\n+            'style /= \"cursor: pointer\",\n+            'checked := areAllCompleted,\n+            'click listen {\n+              areAllCompleted once {\n+                case true ⇒ todos.updateAll(_.copy(status = Active))\n+                case false ⇒ todos.updateAll(_.copy(status = Completed))\n               }\n             }\n           ),\n-          label(`for`:= \"toggle-all\", \"Mark all as complete\"),\n-          ul(`className` := \"todo-list\",\n+          'label ('htmlFor := \"toggle-all\", \"Mark all as complete\"),\n+          'ul ('className := \"todo-list\",\n             DataRepeat[Todo](\n-              dataProvider = todos,\n+              dataProvider = todos, //.filter(_ == filter.unsafeGet),","path":"moorka-todomvc/src/main/scala/MoorkaTodoMVC.scala","position":229,"original_position":229,"commit_id":"e18fc5a5acee236047756acad0a898b2ad183465","original_commit_id":"e18fc5a5acee236047756acad0a898b2ad183465","user":{"login":"vsuharnikov","id":2654820,"avatar_url":"https://avatars.githubusercontent.com/u/2654820?v=3","gravatar_id":"","url":"https://api.github.com/users/vsuharnikov","html_url":"https://github.com/vsuharnikov","followers_url":"https://api.github.com/users/vsuharnikov/followers","following_url":"https://api.github.com/users/vsuharnikov/following{/other_user}","gists_url":"https://api.github.com/users/vsuharnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/vsuharnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsuharnikov/subscriptions","organizations_url":"https://api.github.com/users/vsuharnikov/orgs","repos_url":"https://api.github.com/users/vsuharnikov/repos","events_url":"https://api.github.com/users/vsuharnikov/events{/privacy}","received_events_url":"https://api.github.com/users/vsuharnikov/received_events","type":"User","site_admin":false},"body":"Have no idea","created_at":"2016-01-09T10:53:10Z","updated_at":"2016-01-09T10:53:10Z","html_url":"https://github.com/tenderowls/moorka-examples/pull/1#discussion_r49263072","pull_request_url":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/comments/49263072"},"html":{"href":"https://github.com/tenderowls/moorka-examples/pull/1#discussion_r49263072"},"pull_request":{"href":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/1","id":55540223,"html_url":"https://github.com/tenderowls/moorka-examples/pull/1","diff_url":"https://github.com/tenderowls/moorka-examples/pull/1.diff","patch_url":"https://github.com/tenderowls/moorka-examples/pull/1.patch","issue_url":"https://api.github.com/repos/tenderowls/moorka-examples/issues/1","number":1,"state":"open","locked":false,"title":"Updated to Felix/Moorka 0.7.1","user":{"login":"vsuharnikov","id":2654820,"avatar_url":"https://avatars.githubusercontent.com/u/2654820?v=3","gravatar_id":"","url":"https://api.github.com/users/vsuharnikov","html_url":"https://github.com/vsuharnikov","followers_url":"https://api.github.com/users/vsuharnikov/followers","following_url":"https://api.github.com/users/vsuharnikov/following{/other_user}","gists_url":"https://api.github.com/users/vsuharnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/vsuharnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsuharnikov/subscriptions","organizations_url":"https://api.github.com/users/vsuharnikov/orgs","repos_url":"https://api.github.com/users/vsuharnikov/repos","events_url":"https://api.github.com/users/vsuharnikov/events{/privacy}","received_events_url":"https://api.github.com/users/vsuharnikov/received_events","type":"User","site_admin":false},"body":"* README.md with Quick Start\r\n* JS-files compiled into js/ directory\r\n* Updated dependencies: Scala 2.11.7, ScalaJS 0.6.5\r\n* Removed dependency from moorka-resources-plugin: now it is unnecessary\r\n\r\nBut haven't idea, how to combine `filter` (Rx[Filter]) with `todos` (Buffer[Todo]): there is no flatMap or zip.","created_at":"2016-01-09T10:52:41Z","updated_at":"2016-01-09T10:53:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"703af8cefa4920cf659beb70f13851e115d982d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/1/commits","review_comments_url":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/1/comments","review_comment_url":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tenderowls/moorka-examples/issues/1/comments","statuses_url":"https://api.github.com/repos/tenderowls/moorka-examples/statuses/e18fc5a5acee236047756acad0a898b2ad183465","head":{"label":"vsuharnikov:0-7-1-version","ref":"0-7-1-version","sha":"e18fc5a5acee236047756acad0a898b2ad183465","user":{"login":"vsuharnikov","id":2654820,"avatar_url":"https://avatars.githubusercontent.com/u/2654820?v=3","gravatar_id":"","url":"https://api.github.com/users/vsuharnikov","html_url":"https://github.com/vsuharnikov","followers_url":"https://api.github.com/users/vsuharnikov/followers","following_url":"https://api.github.com/users/vsuharnikov/following{/other_user}","gists_url":"https://api.github.com/users/vsuharnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/vsuharnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsuharnikov/subscriptions","organizations_url":"https://api.github.com/users/vsuharnikov/orgs","repos_url":"https://api.github.com/users/vsuharnikov/repos","events_url":"https://api.github.com/users/vsuharnikov/events{/privacy}","received_events_url":"https://api.github.com/users/vsuharnikov/received_events","type":"User","site_admin":false},"repo":{"id":49319261,"name":"moorka-examples","full_name":"vsuharnikov/moorka-examples","owner":{"login":"vsuharnikov","id":2654820,"avatar_url":"https://avatars.githubusercontent.com/u/2654820?v=3","gravatar_id":"","url":"https://api.github.com/users/vsuharnikov","html_url":"https://github.com/vsuharnikov","followers_url":"https://api.github.com/users/vsuharnikov/followers","following_url":"https://api.github.com/users/vsuharnikov/following{/other_user}","gists_url":"https://api.github.com/users/vsuharnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/vsuharnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsuharnikov/subscriptions","organizations_url":"https://api.github.com/users/vsuharnikov/orgs","repos_url":"https://api.github.com/users/vsuharnikov/repos","events_url":"https://api.github.com/users/vsuharnikov/events{/privacy}","received_events_url":"https://api.github.com/users/vsuharnikov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vsuharnikov/moorka-examples","description":"","fork":true,"url":"https://api.github.com/repos/vsuharnikov/moorka-examples","forks_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/forks","keys_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/teams","hooks_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/hooks","issue_events_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/issues/events{/number}","events_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/events","assignees_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/assignees{/user}","branches_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/branches{/branch}","tags_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/tags","blobs_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/languages","stargazers_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/stargazers","contributors_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/contributors","subscribers_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/subscribers","subscription_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/subscription","commits_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/contents/{+path}","compare_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/merges","archive_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/downloads","issues_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/issues{/number}","pulls_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/labels{/name}","releases_url":"https://api.github.com/repos/vsuharnikov/moorka-examples/releases{/id}","created_at":"2016-01-09T10:04:13Z","updated_at":"2016-01-09T10:04:14Z","pushed_at":"2016-01-09T10:51:56Z","git_url":"git://github.com/vsuharnikov/moorka-examples.git","ssh_url":"git@github.com:vsuharnikov/moorka-examples.git","clone_url":"https://github.com/vsuharnikov/moorka-examples.git","svn_url":"https://github.com/vsuharnikov/moorka-examples","homepage":null,"size":18,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tenderowls:master","ref":"master","sha":"ee84ed83c13e593db2e4e23597f7ff14a85f773b","user":{"login":"tenderowls","id":3678943,"avatar_url":"https://avatars.githubusercontent.com/u/3678943?v=3","gravatar_id":"","url":"https://api.github.com/users/tenderowls","html_url":"https://github.com/tenderowls","followers_url":"https://api.github.com/users/tenderowls/followers","following_url":"https://api.github.com/users/tenderowls/following{/other_user}","gists_url":"https://api.github.com/users/tenderowls/gists{/gist_id}","starred_url":"https://api.github.com/users/tenderowls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenderowls/subscriptions","organizations_url":"https://api.github.com/users/tenderowls/orgs","repos_url":"https://api.github.com/users/tenderowls/repos","events_url":"https://api.github.com/users/tenderowls/events{/privacy}","received_events_url":"https://api.github.com/users/tenderowls/received_events","type":"Organization","site_admin":false},"repo":{"id":28184856,"name":"moorka-examples","full_name":"tenderowls/moorka-examples","owner":{"login":"tenderowls","id":3678943,"avatar_url":"https://avatars.githubusercontent.com/u/3678943?v=3","gravatar_id":"","url":"https://api.github.com/users/tenderowls","html_url":"https://github.com/tenderowls","followers_url":"https://api.github.com/users/tenderowls/followers","following_url":"https://api.github.com/users/tenderowls/following{/other_user}","gists_url":"https://api.github.com/users/tenderowls/gists{/gist_id}","starred_url":"https://api.github.com/users/tenderowls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenderowls/subscriptions","organizations_url":"https://api.github.com/users/tenderowls/orgs","repos_url":"https://api.github.com/users/tenderowls/repos","events_url":"https://api.github.com/users/tenderowls/events{/privacy}","received_events_url":"https://api.github.com/users/tenderowls/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tenderowls/moorka-examples","description":"","fork":false,"url":"https://api.github.com/repos/tenderowls/moorka-examples","forks_url":"https://api.github.com/repos/tenderowls/moorka-examples/forks","keys_url":"https://api.github.com/repos/tenderowls/moorka-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tenderowls/moorka-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tenderowls/moorka-examples/teams","hooks_url":"https://api.github.com/repos/tenderowls/moorka-examples/hooks","issue_events_url":"https://api.github.com/repos/tenderowls/moorka-examples/issues/events{/number}","events_url":"https://api.github.com/repos/tenderowls/moorka-examples/events","assignees_url":"https://api.github.com/repos/tenderowls/moorka-examples/assignees{/user}","branches_url":"https://api.github.com/repos/tenderowls/moorka-examples/branches{/branch}","tags_url":"https://api.github.com/repos/tenderowls/moorka-examples/tags","blobs_url":"https://api.github.com/repos/tenderowls/moorka-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tenderowls/moorka-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tenderowls/moorka-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/tenderowls/moorka-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tenderowls/moorka-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/tenderowls/moorka-examples/languages","stargazers_url":"https://api.github.com/repos/tenderowls/moorka-examples/stargazers","contributors_url":"https://api.github.com/repos/tenderowls/moorka-examples/contributors","subscribers_url":"https://api.github.com/repos/tenderowls/moorka-examples/subscribers","subscription_url":"https://api.github.com/repos/tenderowls/moorka-examples/subscription","commits_url":"https://api.github.com/repos/tenderowls/moorka-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/tenderowls/moorka-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/tenderowls/moorka-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/tenderowls/moorka-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/tenderowls/moorka-examples/contents/{+path}","compare_url":"https://api.github.com/repos/tenderowls/moorka-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tenderowls/moorka-examples/merges","archive_url":"https://api.github.com/repos/tenderowls/moorka-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tenderowls/moorka-examples/downloads","issues_url":"https://api.github.com/repos/tenderowls/moorka-examples/issues{/number}","pulls_url":"https://api.github.com/repos/tenderowls/moorka-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/tenderowls/moorka-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/tenderowls/moorka-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tenderowls/moorka-examples/labels{/name}","releases_url":"https://api.github.com/repos/tenderowls/moorka-examples/releases{/id}","created_at":"2014-12-18T13:35:46Z","updated_at":"2015-11-04T16:58:38Z","pushed_at":"2016-01-09T10:52:42Z","git_url":"git://github.com/tenderowls/moorka-examples.git","ssh_url":"git@github.com:tenderowls/moorka-examples.git","clone_url":"https://github.com/tenderowls/moorka-examples.git","svn_url":"https://github.com/tenderowls/moorka-examples","homepage":null,"size":152,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/1"},"html":{"href":"https://github.com/tenderowls/moorka-examples/pull/1"},"issue":{"href":"https://api.github.com/repos/tenderowls/moorka-examples/issues/1"},"comments":{"href":"https://api.github.com/repos/tenderowls/moorka-examples/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tenderowls/moorka-examples/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/tenderowls/moorka-examples/statuses/e18fc5a5acee236047756acad0a898b2ad183465"}}}}