{"action":"created","comment":{"url":"https://api.github.com/repos/tastejs/todomvc/pulls/comments/43165584","id":43165584,"diff_hunk":"@@ -33,25 +33,13 @@\n \t\t\tvisibility: 'all'\n \t\t},\n \n-\t\t// ready hook, watch todos change for data persistence\n-\t\tready: function () {\n-\t\t\tthis.$watch('todos', function (todos) {\n-\t\t\t\ttodoStorage.save(todos);\n-\t\t\t}, { deep: true });\n-\t\t},\n-\n-\t\t// a custom directive to wait for the DOM to be updated\n-\t\t// before focusing on the input field.\n-\t\t// http://vuejs.org/guide/directives.html#Writing_a_Custom_Directive\n-\t\tdirectives: {\n-\t\t\t'todo-focus': function (value) {\n-\t\t\t\tif (!value) {\n-\t\t\t\t\treturn;\n+\t\t// watch todos change for localStorage persistence\n+\t\twatch: {\n+\t\t\ttodos: {\n+\t\t\t\tdeep: true,\n+\t\t\t\thandler: function (todos) {","path":"examples/vue/js/app.js","position":31,"original_position":31,"commit_id":"2ee75f42146562bc8c6325b362a5402bc3e0c678","original_commit_id":"2ee75f42146562bc8c6325b362a5402bc3e0c678","user":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"body":"could this be \r\n\r\n```js\r\nhandler: todoStorage.save\r\n```\r\n\r\n?","created_at":"2015-10-27T18:29:57Z","updated_at":"2015-10-27T18:29:57Z","html_url":"https://github.com/tastejs/todomvc/pull/1494#discussion_r43165584","pull_request_url":"https://api.github.com/repos/tastejs/todomvc/pulls/1494","_links":{"self":{"href":"https://api.github.com/repos/tastejs/todomvc/pulls/comments/43165584"},"html":{"href":"https://github.com/tastejs/todomvc/pull/1494#discussion_r43165584"},"pull_request":{"href":"https://api.github.com/repos/tastejs/todomvc/pulls/1494"}}},"pull_request":{"url":"https://api.github.com/repos/tastejs/todomvc/pulls/1494","id":48878967,"html_url":"https://github.com/tastejs/todomvc/pull/1494","diff_url":"https://github.com/tastejs/todomvc/pull/1494.diff","patch_url":"https://github.com/tastejs/todomvc/pull/1494.patch","issue_url":"https://api.github.com/repos/tastejs/todomvc/issues/1494","number":1494,"state":"open","locked":false,"title":"update Vue.js to 1.0.0","user":{"login":"yyx990803","id":499550,"avatar_url":"https://avatars.githubusercontent.com/u/499550?v=3","gravatar_id":"","url":"https://api.github.com/users/yyx990803","html_url":"https://github.com/yyx990803","followers_url":"https://api.github.com/users/yyx990803/followers","following_url":"https://api.github.com/users/yyx990803/following{/other_user}","gists_url":"https://api.github.com/users/yyx990803/gists{/gist_id}","starred_url":"https://api.github.com/users/yyx990803/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyx990803/subscriptions","organizations_url":"https://api.github.com/users/yyx990803/orgs","repos_url":"https://api.github.com/users/yyx990803/repos","events_url":"https://api.github.com/users/yyx990803/events{/privacy}","received_events_url":"https://api.github.com/users/yyx990803/received_events","type":"User","site_admin":false},"body":"Ran the tests and all passed.","created_at":"2015-10-27T14:37:34Z","updated_at":"2015-10-27T18:29:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a67464498e5e65784af625d0b379b0a239a653c5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tastejs/todomvc/pulls/1494/commits","review_comments_url":"https://api.github.com/repos/tastejs/todomvc/pulls/1494/comments","review_comment_url":"https://api.github.com/repos/tastejs/todomvc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tastejs/todomvc/issues/1494/comments","statuses_url":"https://api.github.com/repos/tastejs/todomvc/statuses/2ee75f42146562bc8c6325b362a5402bc3e0c678","head":{"label":"vuejs:master","ref":"master","sha":"2ee75f42146562bc8c6325b362a5402bc3e0c678","user":{"login":"vuejs","id":6128107,"avatar_url":"https://avatars.githubusercontent.com/u/6128107?v=3","gravatar_id":"","url":"https://api.github.com/users/vuejs","html_url":"https://github.com/vuejs","followers_url":"https://api.github.com/users/vuejs/followers","following_url":"https://api.github.com/users/vuejs/following{/other_user}","gists_url":"https://api.github.com/users/vuejs/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs/subscriptions","organizations_url":"https://api.github.com/users/vuejs/orgs","repos_url":"https://api.github.com/users/vuejs/repos","events_url":"https://api.github.com/users/vuejs/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs/received_events","type":"Organization","site_admin":false},"repo":{"id":27467328,"name":"todomvc","full_name":"vuejs/todomvc","owner":{"login":"vuejs","id":6128107,"avatar_url":"https://avatars.githubusercontent.com/u/6128107?v=3","gravatar_id":"","url":"https://api.github.com/users/vuejs","html_url":"https://github.com/vuejs","followers_url":"https://api.github.com/users/vuejs/followers","following_url":"https://api.github.com/users/vuejs/following{/other_user}","gists_url":"https://api.github.com/users/vuejs/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs/subscriptions","organizations_url":"https://api.github.com/users/vuejs/orgs","repos_url":"https://api.github.com/users/vuejs/repos","events_url":"https://api.github.com/users/vuejs/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vuejs/todomvc","description":"Helping you select an MV* framework - Todo apps for Backbone.js, Ember.js, AngularJS, and many more","fork":true,"url":"https://api.github.com/repos/vuejs/todomvc","forks_url":"https://api.github.com/repos/vuejs/todomvc/forks","keys_url":"https://api.github.com/repos/vuejs/todomvc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuejs/todomvc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuejs/todomvc/teams","hooks_url":"https://api.github.com/repos/vuejs/todomvc/hooks","issue_events_url":"https://api.github.com/repos/vuejs/todomvc/issues/events{/number}","events_url":"https://api.github.com/repos/vuejs/todomvc/events","assignees_url":"https://api.github.com/repos/vuejs/todomvc/assignees{/user}","branches_url":"https://api.github.com/repos/vuejs/todomvc/branches{/branch}","tags_url":"https://api.github.com/repos/vuejs/todomvc/tags","blobs_url":"https://api.github.com/repos/vuejs/todomvc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuejs/todomvc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuejs/todomvc/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuejs/todomvc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuejs/todomvc/statuses/{sha}","languages_url":"https://api.github.com/repos/vuejs/todomvc/languages","stargazers_url":"https://api.github.com/repos/vuejs/todomvc/stargazers","contributors_url":"https://api.github.com/repos/vuejs/todomvc/contributors","subscribers_url":"https://api.github.com/repos/vuejs/todomvc/subscribers","subscription_url":"https://api.github.com/repos/vuejs/todomvc/subscription","commits_url":"https://api.github.com/repos/vuejs/todomvc/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuejs/todomvc/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuejs/todomvc/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuejs/todomvc/issues/comments{/number}","contents_url":"https://api.github.com/repos/vuejs/todomvc/contents/{+path}","compare_url":"https://api.github.com/repos/vuejs/todomvc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuejs/todomvc/merges","archive_url":"https://api.github.com/repos/vuejs/todomvc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuejs/todomvc/downloads","issues_url":"https://api.github.com/repos/vuejs/todomvc/issues{/number}","pulls_url":"https://api.github.com/repos/vuejs/todomvc/pulls{/number}","milestones_url":"https://api.github.com/repos/vuejs/todomvc/milestones{/number}","notifications_url":"https://api.github.com/repos/vuejs/todomvc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuejs/todomvc/labels{/name}","releases_url":"https://api.github.com/repos/vuejs/todomvc/releases{/id}","created_at":"2014-12-03T03:27:52Z","updated_at":"2015-09-02T06:51:14Z","pushed_at":"2015-10-27T18:19:43Z","git_url":"git://github.com/vuejs/todomvc.git","ssh_url":"git@github.com:vuejs/todomvc.git","clone_url":"https://github.com/vuejs/todomvc.git","svn_url":"https://github.com/vuejs/todomvc","homepage":"http://todomvc.com","size":48832,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":5,"default_branch":"master"}},"base":{"label":"tastejs:master","ref":"master","sha":"3a93144f5a682dd62e0dbdf776a749e1e7b43d2c","user":{"login":"tastejs","id":1733746,"avatar_url":"https://avatars.githubusercontent.com/u/1733746?v=3","gravatar_id":"","url":"https://api.github.com/users/tastejs","html_url":"https://github.com/tastejs","followers_url":"https://api.github.com/users/tastejs/followers","following_url":"https://api.github.com/users/tastejs/following{/other_user}","gists_url":"https://api.github.com/users/tastejs/gists{/gist_id}","starred_url":"https://api.github.com/users/tastejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tastejs/subscriptions","organizations_url":"https://api.github.com/users/tastejs/orgs","repos_url":"https://api.github.com/users/tastejs/repos","events_url":"https://api.github.com/users/tastejs/events{/privacy}","received_events_url":"https://api.github.com/users/tastejs/received_events","type":"Organization","site_admin":false},"repo":{"id":1844251,"name":"todomvc","full_name":"tastejs/todomvc","owner":{"login":"tastejs","id":1733746,"avatar_url":"https://avatars.githubusercontent.com/u/1733746?v=3","gravatar_id":"","url":"https://api.github.com/users/tastejs","html_url":"https://github.com/tastejs","followers_url":"https://api.github.com/users/tastejs/followers","following_url":"https://api.github.com/users/tastejs/following{/other_user}","gists_url":"https://api.github.com/users/tastejs/gists{/gist_id}","starred_url":"https://api.github.com/users/tastejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tastejs/subscriptions","organizations_url":"https://api.github.com/users/tastejs/orgs","repos_url":"https://api.github.com/users/tastejs/repos","events_url":"https://api.github.com/users/tastejs/events{/privacy}","received_events_url":"https://api.github.com/users/tastejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tastejs/todomvc","description":"Helping you select an MV* framework - Todo apps for Backbone.js, Ember.js, AngularJS, and many more","fork":false,"url":"https://api.github.com/repos/tastejs/todomvc","forks_url":"https://api.github.com/repos/tastejs/todomvc/forks","keys_url":"https://api.github.com/repos/tastejs/todomvc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tastejs/todomvc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tastejs/todomvc/teams","hooks_url":"https://api.github.com/repos/tastejs/todomvc/hooks","issue_events_url":"https://api.github.com/repos/tastejs/todomvc/issues/events{/number}","events_url":"https://api.github.com/repos/tastejs/todomvc/events","assignees_url":"https://api.github.com/repos/tastejs/todomvc/assignees{/user}","branches_url":"https://api.github.com/repos/tastejs/todomvc/branches{/branch}","tags_url":"https://api.github.com/repos/tastejs/todomvc/tags","blobs_url":"https://api.github.com/repos/tastejs/todomvc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tastejs/todomvc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tastejs/todomvc/git/refs{/sha}","trees_url":"https://api.github.com/repos/tastejs/todomvc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tastejs/todomvc/statuses/{sha}","languages_url":"https://api.github.com/repos/tastejs/todomvc/languages","stargazers_url":"https://api.github.com/repos/tastejs/todomvc/stargazers","contributors_url":"https://api.github.com/repos/tastejs/todomvc/contributors","subscribers_url":"https://api.github.com/repos/tastejs/todomvc/subscribers","subscription_url":"https://api.github.com/repos/tastejs/todomvc/subscription","commits_url":"https://api.github.com/repos/tastejs/todomvc/commits{/sha}","git_commits_url":"https://api.github.com/repos/tastejs/todomvc/git/commits{/sha}","comments_url":"https://api.github.com/repos/tastejs/todomvc/comments{/number}","issue_comment_url":"https://api.github.com/repos/tastejs/todomvc/issues/comments{/number}","contents_url":"https://api.github.com/repos/tastejs/todomvc/contents/{+path}","compare_url":"https://api.github.com/repos/tastejs/todomvc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tastejs/todomvc/merges","archive_url":"https://api.github.com/repos/tastejs/todomvc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tastejs/todomvc/downloads","issues_url":"https://api.github.com/repos/tastejs/todomvc/issues{/number}","pulls_url":"https://api.github.com/repos/tastejs/todomvc/pulls{/number}","milestones_url":"https://api.github.com/repos/tastejs/todomvc/milestones{/number}","notifications_url":"https://api.github.com/repos/tastejs/todomvc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tastejs/todomvc/labels{/name}","releases_url":"https://api.github.com/repos/tastejs/todomvc/releases{/id}","created_at":"2011-06-03T19:56:33Z","updated_at":"2015-10-27T16:36:58Z","pushed_at":"2015-10-27T18:19:57Z","git_url":"git://github.com/tastejs/todomvc.git","ssh_url":"git@github.com:tastejs/todomvc.git","clone_url":"https://github.com/tastejs/todomvc.git","svn_url":"https://github.com/tastejs/todomvc","homepage":"http://todomvc.com","size":103998,"stargazers_count":14474,"watchers_count":14474,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8114,"mirror_url":null,"open_issues_count":71,"forks":8114,"open_issues":71,"watchers":14474,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tastejs/todomvc/pulls/1494"},"html":{"href":"https://github.com/tastejs/todomvc/pull/1494"},"issue":{"href":"https://api.github.com/repos/tastejs/todomvc/issues/1494"},"comments":{"href":"https://api.github.com/repos/tastejs/todomvc/issues/1494/comments"},"review_comments":{"href":"https://api.github.com/repos/tastejs/todomvc/pulls/1494/comments"},"review_comment":{"href":"https://api.github.com/repos/tastejs/todomvc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tastejs/todomvc/pulls/1494/commits"},"statuses":{"href":"https://api.github.com/repos/tastejs/todomvc/statuses/2ee75f42146562bc8c6325b362a5402bc3e0c678"}}}}