{"action":"created","issue":{"url":"https://api.github.com/repos/astoilkov/jsblocks/issues/19","labels_url":"https://api.github.com/repos/astoilkov/jsblocks/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/astoilkov/jsblocks/issues/19/comments","events_url":"https://api.github.com/repos/astoilkov/jsblocks/issues/19/events","html_url":"https://github.com/astoilkov/jsblocks/issues/19","id":72182148,"number":19,"title":"Can an observable respond to external script events?","user":{"login":"walterdavis","id":27033,"avatar_url":"https://avatars.githubusercontent.com/u/27033?v=3","gravatar_id":"","url":"https://api.github.com/users/walterdavis","html_url":"https://github.com/walterdavis","followers_url":"https://api.github.com/users/walterdavis/followers","following_url":"https://api.github.com/users/walterdavis/following{/other_user}","gists_url":"https://api.github.com/users/walterdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/walterdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walterdavis/subscriptions","organizations_url":"https://api.github.com/users/walterdavis/orgs","repos_url":"https://api.github.com/users/walterdavis/repos","events_url":"https://api.github.com/users/walterdavis/events{/privacy}","received_events_url":"https://api.github.com/users/walterdavis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-30T14:37:30Z","updated_at":"2015-04-30T14:43:53Z","closed_at":null,"body":"I want to create a clear button for a text field that is being observed. It works, from the standpoint that the button clears the content of the field. But the two-way binding is not updated when this happens. Is there either an internal way to change the bound value, or an event I can fire that will wake up the binding to the new value?"},"comment":{"url":"https://api.github.com/repos/astoilkov/jsblocks/issues/comments/97825080","html_url":"https://github.com/astoilkov/jsblocks/issues/19#issuecomment-97825080","issue_url":"https://api.github.com/repos/astoilkov/jsblocks/issues/19","id":97825080,"user":{"login":"astoilkov","id":884810,"avatar_url":"https://avatars.githubusercontent.com/u/884810?v=3","gravatar_id":"","url":"https://api.github.com/users/astoilkov","html_url":"https://github.com/astoilkov","followers_url":"https://api.github.com/users/astoilkov/followers","following_url":"https://api.github.com/users/astoilkov/following{/other_user}","gists_url":"https://api.github.com/users/astoilkov/gists{/gist_id}","starred_url":"https://api.github.com/users/astoilkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astoilkov/subscriptions","organizations_url":"https://api.github.com/users/astoilkov/orgs","repos_url":"https://api.github.com/users/astoilkov/repos","events_url":"https://api.github.com/users/astoilkov/events{/privacy}","received_events_url":"https://api.github.com/users/astoilkov/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T14:43:53Z","updated_at":"2015-04-30T14:43:53Z","body":"I have implemented the behavior based on your code from the previous issue. Take a look [here](https://jsfiddle.net/27ovr82e/1/).\r\n\r\n```html\r\n<button data-query=\"click(clearValue)\" class=\"clear\">&times;</button>\r\n```\r\n\r\n```javascript\r\nthis.clearValue = function () {\r\n  userInput('');\r\n};\r\n```"}}