{"action":"created","issue":{"url":"https://api.github.com/repos/brianreavis/selectize.js/issues/449","labels_url":"https://api.github.com/repos/brianreavis/selectize.js/issues/449/labels{/name}","comments_url":"https://api.github.com/repos/brianreavis/selectize.js/issues/449/comments","events_url":"https://api.github.com/repos/brianreavis/selectize.js/issues/449/events","html_url":"https://github.com/brianreavis/selectize.js/pull/449","id":34575263,"number":449,"title":"Add clearInput flag to clearOptions()","user":{"login":"ttback","id":607140,"avatar_url":"https://avatars.githubusercontent.com/u/607140?v=3","gravatar_id":"","url":"https://api.github.com/users/ttback","html_url":"https://github.com/ttback","followers_url":"https://api.github.com/users/ttback/followers","following_url":"https://api.github.com/users/ttback/following{/other_user}","gists_url":"https://api.github.com/users/ttback/gists{/gist_id}","starred_url":"https://api.github.com/users/ttback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttback/subscriptions","organizations_url":"https://api.github.com/users/ttback/orgs","repos_url":"https://api.github.com/users/ttback/repos","events_url":"https://api.github.com/users/ttback/events{/privacy}","received_events_url":"https://api.github.com/users/ttback/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-05-29T17:37:16Z","updated_at":"2015-09-09T10:35:05Z","closed_at":"2014-06-01T21:15:30Z","pull_request":{"url":"https://api.github.com/repos/brianreavis/selectize.js/pulls/449","html_url":"https://github.com/brianreavis/selectize.js/pull/449","diff_url":"https://github.com/brianreavis/selectize.js/pull/449.diff","patch_url":"https://github.com/brianreavis/selectize.js/pull/449.patch"},"body":"Only clear user input when clearInput is true or undefined.\r\n\r\nThe undefined check is to make sure this change doesn't break any existing code. "},"comment":{"url":"https://api.github.com/repos/brianreavis/selectize.js/issues/comments/138868236","html_url":"https://github.com/brianreavis/selectize.js/pull/449#issuecomment-138868236","issue_url":"https://api.github.com/repos/brianreavis/selectize.js/issues/449","id":138868236,"user":{"login":"u01jmg3","id":1266205,"avatar_url":"https://avatars.githubusercontent.com/u/1266205?v=3","gravatar_id":"","url":"https://api.github.com/users/u01jmg3","html_url":"https://github.com/u01jmg3","followers_url":"https://api.github.com/users/u01jmg3/followers","following_url":"https://api.github.com/users/u01jmg3/following{/other_user}","gists_url":"https://api.github.com/users/u01jmg3/gists{/gist_id}","starred_url":"https://api.github.com/users/u01jmg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u01jmg3/subscriptions","organizations_url":"https://api.github.com/users/u01jmg3/orgs","repos_url":"https://api.github.com/users/u01jmg3/repos","events_url":"https://api.github.com/users/u01jmg3/events{/privacy}","received_events_url":"https://api.github.com/users/u01jmg3/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T10:35:05Z","updated_at":"2015-09-09T10:35:05Z","body":"@brianreavis: can you give a recommendation on each new search -- after selecting an item -- how to empty the cache of current results? As with those above, each new item added results in the previous results becoming invalid. I therefore want to start from scratch after the item add and rely on what my remote data source returns. Would it be `updateOption()` / `removeOption()` instead?\r\n\r\nI appreciate removing `self.clear()` from `clearOptions()` is not the way to do this.\r\n\r\nThank you"}}