{"action":"created","comment":{"url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/comments/60933774","id":60933774,"diff_hunk":"@@ -449,6 +450,14 @@\n         // }\n       }\n     },\n+    _candidatesUpdated:function(candidates){\n+      if(this.inputValue != undefined){\n+        var val = this.inputValue.trim();\n+        if(candidates.length > 0 && candidates[0].trim() !== val){","path":"paper-typeahead-input.html","position":17,"original_position":17,"commit_id":"b72cbcff4f5b843690da6afd9d75f3faa09e8543","original_commit_id":"b72cbcff4f5b843690da6afd9d75f3faa09e8543","user":{"login":"cheonhyangzhang","id":4094803,"avatar_url":"https://avatars.githubusercontent.com/u/4094803?v=3","gravatar_id":"","url":"https://api.github.com/users/cheonhyangzhang","html_url":"https://github.com/cheonhyangzhang","followers_url":"https://api.github.com/users/cheonhyangzhang/followers","following_url":"https://api.github.com/users/cheonhyangzhang/following{/other_user}","gists_url":"https://api.github.com/users/cheonhyangzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/cheonhyangzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheonhyangzhang/subscriptions","organizations_url":"https://api.github.com/users/cheonhyangzhang/orgs","repos_url":"https://api.github.com/users/cheonhyangzhang/repos","events_url":"https://api.github.com/users/cheonhyangzhang/events{/privacy}","received_events_url":"https://api.github.com/users/cheonhyangzhang/received_events","type":"User","site_admin":false},"body":"What if the original list is [\"red\",\"blue\",\"yellow\"] then the list is replaced with [\"white\",\"black\"]?  I haven't tested this case, but I think the _candidatesUpdated is called because localCandidates changed, but in this case we need to do the search because of updated localCandidates. ","created_at":"2016-04-25T15:30:33Z","updated_at":"2016-04-25T15:30:33Z","html_url":"https://github.com/cheonhyangzhang/paper-typeahead-input/pull/19#discussion_r60933774","pull_request_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/comments/60933774"},"html":{"href":"https://github.com/cheonhyangzhang/paper-typeahead-input/pull/19#discussion_r60933774"},"pull_request":{"href":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/19","id":67281381,"html_url":"https://github.com/cheonhyangzhang/paper-typeahead-input/pull/19","diff_url":"https://github.com/cheonhyangzhang/paper-typeahead-input/pull/19.diff","patch_url":"https://github.com/cheonhyangzhang/paper-typeahead-input/pull/19.patch","issue_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues/19","number":19,"state":"open","locked":false,"title":"feat: realtime local candidates suggestions","user":{"login":"jdbence","id":389775,"avatar_url":"https://avatars.githubusercontent.com/u/389775?v=3","gravatar_id":"","url":"https://api.github.com/users/jdbence","html_url":"https://github.com/jdbence","followers_url":"https://api.github.com/users/jdbence/followers","following_url":"https://api.github.com/users/jdbence/following{/other_user}","gists_url":"https://api.github.com/users/jdbence/gists{/gist_id}","starred_url":"https://api.github.com/users/jdbence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdbence/subscriptions","organizations_url":"https://api.github.com/users/jdbence/orgs","repos_url":"https://api.github.com/users/jdbence/repos","events_url":"https://api.github.com/users/jdbence/events{/privacy}","received_events_url":"https://api.github.com/users/jdbence/received_events","type":"User","site_admin":false},"body":"- observe localCandidates for changes to auto update suggestions\r\n\r\nThis is required when the inputValue is used with an external source to update the localCandidates.","created_at":"2016-04-21T00:52:30Z","updated_at":"2016-04-25T15:30:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fc7bd5ffa7d2459051b4052309ffacc4816716e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/19/commits","review_comments_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/19/comments","review_comment_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues/19/comments","statuses_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/statuses/b72cbcff4f5b843690da6afd9d75f3faa09e8543","head":{"label":"jdbence:patch-1","ref":"patch-1","sha":"b72cbcff4f5b843690da6afd9d75f3faa09e8543","user":{"login":"jdbence","id":389775,"avatar_url":"https://avatars.githubusercontent.com/u/389775?v=3","gravatar_id":"","url":"https://api.github.com/users/jdbence","html_url":"https://github.com/jdbence","followers_url":"https://api.github.com/users/jdbence/followers","following_url":"https://api.github.com/users/jdbence/following{/other_user}","gists_url":"https://api.github.com/users/jdbence/gists{/gist_id}","starred_url":"https://api.github.com/users/jdbence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdbence/subscriptions","organizations_url":"https://api.github.com/users/jdbence/orgs","repos_url":"https://api.github.com/users/jdbence/repos","events_url":"https://api.github.com/users/jdbence/events{/privacy}","received_events_url":"https://api.github.com/users/jdbence/received_events","type":"User","site_admin":false},"repo":{"id":56729620,"name":"paper-typeahead-input","full_name":"jdbence/paper-typeahead-input","owner":{"login":"jdbence","id":389775,"avatar_url":"https://avatars.githubusercontent.com/u/389775?v=3","gravatar_id":"","url":"https://api.github.com/users/jdbence","html_url":"https://github.com/jdbence","followers_url":"https://api.github.com/users/jdbence/followers","following_url":"https://api.github.com/users/jdbence/following{/other_user}","gists_url":"https://api.github.com/users/jdbence/gists{/gist_id}","starred_url":"https://api.github.com/users/jdbence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdbence/subscriptions","organizations_url":"https://api.github.com/users/jdbence/orgs","repos_url":"https://api.github.com/users/jdbence/repos","events_url":"https://api.github.com/users/jdbence/events{/privacy}","received_events_url":"https://api.github.com/users/jdbence/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jdbence/paper-typeahead-input","description":"Polymer element for typeahead input. ","fork":true,"url":"https://api.github.com/repos/jdbence/paper-typeahead-input","forks_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/forks","keys_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/teams","hooks_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/hooks","issue_events_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/issues/events{/number}","events_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/events","assignees_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/assignees{/user}","branches_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/branches{/branch}","tags_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/tags","blobs_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/statuses/{sha}","languages_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/languages","stargazers_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/stargazers","contributors_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/contributors","subscribers_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/subscribers","subscription_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/subscription","commits_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/issues/comments{/number}","contents_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/contents/{+path}","compare_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/merges","archive_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/downloads","issues_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/issues{/number}","pulls_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/pulls{/number}","milestones_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/milestones{/number}","notifications_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/labels{/name}","releases_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/releases{/id}","deployments_url":"https://api.github.com/repos/jdbence/paper-typeahead-input/deployments","created_at":"2016-04-21T00:23:09Z","updated_at":"2016-04-21T00:23:09Z","pushed_at":"2016-04-21T00:51:30Z","git_url":"git://github.com/jdbence/paper-typeahead-input.git","ssh_url":"git@github.com:jdbence/paper-typeahead-input.git","clone_url":"https://github.com/jdbence/paper-typeahead-input.git","svn_url":"https://github.com/jdbence/paper-typeahead-input","homepage":null,"size":2219,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"cheonhyangzhang:master","ref":"master","sha":"1ec88ed5bf1bb2fce56607a527eab7c72ab94530","user":{"login":"cheonhyangzhang","id":4094803,"avatar_url":"https://avatars.githubusercontent.com/u/4094803?v=3","gravatar_id":"","url":"https://api.github.com/users/cheonhyangzhang","html_url":"https://github.com/cheonhyangzhang","followers_url":"https://api.github.com/users/cheonhyangzhang/followers","following_url":"https://api.github.com/users/cheonhyangzhang/following{/other_user}","gists_url":"https://api.github.com/users/cheonhyangzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/cheonhyangzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheonhyangzhang/subscriptions","organizations_url":"https://api.github.com/users/cheonhyangzhang/orgs","repos_url":"https://api.github.com/users/cheonhyangzhang/repos","events_url":"https://api.github.com/users/cheonhyangzhang/events{/privacy}","received_events_url":"https://api.github.com/users/cheonhyangzhang/received_events","type":"User","site_admin":false},"repo":{"id":38641407,"name":"paper-typeahead-input","full_name":"cheonhyangzhang/paper-typeahead-input","owner":{"login":"cheonhyangzhang","id":4094803,"avatar_url":"https://avatars.githubusercontent.com/u/4094803?v=3","gravatar_id":"","url":"https://api.github.com/users/cheonhyangzhang","html_url":"https://github.com/cheonhyangzhang","followers_url":"https://api.github.com/users/cheonhyangzhang/followers","following_url":"https://api.github.com/users/cheonhyangzhang/following{/other_user}","gists_url":"https://api.github.com/users/cheonhyangzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/cheonhyangzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheonhyangzhang/subscriptions","organizations_url":"https://api.github.com/users/cheonhyangzhang/orgs","repos_url":"https://api.github.com/users/cheonhyangzhang/repos","events_url":"https://api.github.com/users/cheonhyangzhang/events{/privacy}","received_events_url":"https://api.github.com/users/cheonhyangzhang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cheonhyangzhang/paper-typeahead-input","description":"Polymer element for typeahead input. ","fork":false,"url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input","forks_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/forks","keys_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/teams","hooks_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/hooks","issue_events_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues/events{/number}","events_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/events","assignees_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/assignees{/user}","branches_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/branches{/branch}","tags_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/tags","blobs_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/git/refs{/sha}","trees_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/statuses/{sha}","languages_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/languages","stargazers_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/stargazers","contributors_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/contributors","subscribers_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/subscribers","subscription_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/subscription","commits_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/commits{/sha}","git_commits_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/git/commits{/sha}","comments_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/comments{/number}","issue_comment_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues/comments{/number}","contents_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/contents/{+path}","compare_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/merges","archive_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/downloads","issues_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues{/number}","pulls_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls{/number}","milestones_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/milestones{/number}","notifications_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/labels{/name}","releases_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/releases{/id}","deployments_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/deployments","created_at":"2015-07-06T19:33:51Z","updated_at":"2016-03-27T05:01:35Z","pushed_at":"2016-04-21T00:52:31Z","git_url":"git://github.com/cheonhyangzhang/paper-typeahead-input.git","ssh_url":"git@github.com:cheonhyangzhang/paper-typeahead-input.git","clone_url":"https://github.com/cheonhyangzhang/paper-typeahead-input.git","svn_url":"https://github.com/cheonhyangzhang/paper-typeahead-input","homepage":null,"size":2235,"stargazers_count":12,"watchers_count":12,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":11,"forks":14,"open_issues":11,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/19"},"html":{"href":"https://github.com/cheonhyangzhang/paper-typeahead-input/pull/19"},"issue":{"href":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues/19"},"comments":{"href":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/statuses/b72cbcff4f5b843690da6afd9d75f3faa09e8543"}}}}