{"action":"closed","issue":{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/256","repository_url":"https://api.github.com/repos/running-coder/jquery-typeahead","labels_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/256/comments","events_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/256/events","html_url":"https://github.com/running-coder/jquery-typeahead/issues/256","id":188712142,"number":256,"title":"Add function clear","user":{"login":"JordyMiljaar","id":23397575,"avatar_url":"https://avatars.githubusercontent.com/u/23397575?v=3","gravatar_id":"","url":"https://api.github.com/users/JordyMiljaar","html_url":"https://github.com/JordyMiljaar","followers_url":"https://api.github.com/users/JordyMiljaar/followers","following_url":"https://api.github.com/users/JordyMiljaar/following{/other_user}","gists_url":"https://api.github.com/users/JordyMiljaar/gists{/gist_id}","starred_url":"https://api.github.com/users/JordyMiljaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordyMiljaar/subscriptions","organizations_url":"https://api.github.com/users/JordyMiljaar/orgs","repos_url":"https://api.github.com/users/JordyMiljaar/repos","events_url":"https://api.github.com/users/JordyMiljaar/events{/privacy}","received_events_url":"https://api.github.com/users/JordyMiljaar/received_events","type":"User","site_admin":false},"labels":[{"id":123897285,"url":"https://api.github.com/repos/running-coder/jquery-typeahead/labels/Feature%20Enhancement","name":"Feature Enhancement","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/milestones/18","html_url":"https://github.com/running-coder/jquery-typeahead/milestones/2.7.3","labels_url":"https://api.github.com/repos/running-coder/jquery-typeahead/milestones/18/labels","id":2100343,"number":18,"title":"2.7.3","description":null,"creator":{"login":"running-coder","id":7377382,"avatar_url":"https://avatars.githubusercontent.com/u/7377382?v=3","gravatar_id":"","url":"https://api.github.com/users/running-coder","html_url":"https://github.com/running-coder","followers_url":"https://api.github.com/users/running-coder/followers","following_url":"https://api.github.com/users/running-coder/following{/other_user}","gists_url":"https://api.github.com/users/running-coder/gists{/gist_id}","starred_url":"https://api.github.com/users/running-coder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/running-coder/subscriptions","organizations_url":"https://api.github.com/users/running-coder/orgs","repos_url":"https://api.github.com/users/running-coder/repos","events_url":"https://api.github.com/users/running-coder/events{/privacy}","received_events_url":"https://api.github.com/users/running-coder/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2016-10-28T18:16:01Z","updated_at":"2016-11-18T18:19:08Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-11-11T08:49:36Z","updated_at":"2016-11-18T18:19:08Z","closed_at":"2016-11-18T18:19:08Z","body":"First of all, you have build the best typeahead! ;)\r\n\r\nI think that it should be a good idea to add a clear function. Sorry if this already exists but I couldn't find it.\r\n\r\nTypeahead.prototype.clear = function() {\r\n\tthis.node.val('');\r\n    this.item = null;\r\n    this.query = '';\r\n    this.rawQuery = '';\r\n}"}}
{"actor":{"display_login":"running-coder"}}