{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/Discussion/issues/319","labels_url":"https://api.github.com/repos/vuejs/Discussion/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/Discussion/issues/319/comments","events_url":"https://api.github.com/repos/vuejs/Discussion/issues/319/events","html_url":"https://github.com/vuejs/Discussion/issues/319","id":97795616,"number":319,"title":"Formatting model on event","user":{"login":"lukebro","id":2486195,"avatar_url":"https://avatars.githubusercontent.com/u/2486195?v=3","gravatar_id":"","url":"https://api.github.com/users/lukebro","html_url":"https://github.com/lukebro","followers_url":"https://api.github.com/users/lukebro/followers","following_url":"https://api.github.com/users/lukebro/following{/other_user}","gists_url":"https://api.github.com/users/lukebro/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebro/subscriptions","organizations_url":"https://api.github.com/users/lukebro/orgs","repos_url":"https://api.github.com/users/lukebro/repos","events_url":"https://api.github.com/users/lukebro/events{/privacy}","received_events_url":"https://api.github.com/users/lukebro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-28T20:32:24Z","updated_at":"2015-08-04T09:23:53Z","closed_at":null,"body":"What would be the cleanest way to change the model value when blur fires?  What I essentially need to do is keep this general structure, and when they blur take the input and round it.  All the approaches I've taken so far have been pretty messy and really verbose.\r\n\r\n\r\n```javascript\r\nnew Vue({\r\n     el: '#app',\r\n\r\n     data: {\r\n          measurements: {\r\n               height: '',\r\n               width: '',\r\n               depth: '',\r\n          }\r\n});\r\n```\r\n\r\n```html\r\n<div id=\"app\">\r\n     <input type=\"text\" v-model=\"measurements.height\" v-on=\"blur: someFunction\">\r\n     <input type=\"text\" v-model=\"measurements.width\" v-on=\"blur: someFunction\">\r\n     <input type=\"text\" v-model=\"measurements.depth\" v-on=\"blur: someFunction\">\r\n</div>\r\n```\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/vuejs/Discussion/issues/comments/127539662","html_url":"https://github.com/vuejs/Discussion/issues/319#issuecomment-127539662","issue_url":"https://api.github.com/repos/vuejs/Discussion/issues/319","id":127539662,"user":{"login":"swift1","id":1919950,"avatar_url":"https://avatars.githubusercontent.com/u/1919950?v=3","gravatar_id":"","url":"https://api.github.com/users/swift1","html_url":"https://github.com/swift1","followers_url":"https://api.github.com/users/swift1/followers","following_url":"https://api.github.com/users/swift1/following{/other_user}","gists_url":"https://api.github.com/users/swift1/gists{/gist_id}","starred_url":"https://api.github.com/users/swift1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swift1/subscriptions","organizations_url":"https://api.github.com/users/swift1/orgs","repos_url":"https://api.github.com/users/swift1/repos","events_url":"https://api.github.com/users/swift1/events{/privacy}","received_events_url":"https://api.github.com/users/swift1/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T09:23:53Z","updated_at":"2015-08-04T09:23:53Z","body":"@lukebro One possible solution:\r\nhttps://jsfiddle.net/q7xcbuxd/36/"}}