{"action":"created","issue":{"url":"https://api.github.com/repos/Fuzzyma/svg.resize.js/issues/2","repository_url":"https://api.github.com/repos/Fuzzyma/svg.resize.js","labels_url":"https://api.github.com/repos/Fuzzyma/svg.resize.js/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Fuzzyma/svg.resize.js/issues/2/comments","events_url":"https://api.github.com/repos/Fuzzyma/svg.resize.js/issues/2/events","html_url":"https://github.com/Fuzzyma/svg.resize.js/issues/2","id":84715394,"number":2,"title":"Callbacks","user":{"login":"dhardtke","id":1360135,"avatar_url":"https://avatars.githubusercontent.com/u/1360135?v=3","gravatar_id":"","url":"https://api.github.com/users/dhardtke","html_url":"https://github.com/dhardtke","followers_url":"https://api.github.com/users/dhardtke/followers","following_url":"https://api.github.com/users/dhardtke/following{/other_user}","gists_url":"https://api.github.com/users/dhardtke/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardtke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardtke/subscriptions","organizations_url":"https://api.github.com/users/dhardtke/orgs","repos_url":"https://api.github.com/users/dhardtke/repos","events_url":"https://api.github.com/users/dhardtke/events{/privacy}","received_events_url":"https://api.github.com/users/dhardtke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-03T18:47:40Z","updated_at":"2016-05-18T05:37:08Z","closed_at":"2015-06-08T21:28:01Z","body":"Hey Fuzzyma,\r\n\r\nthanks for your awesome plugin.\r\n\r\nIs there a possibility that you might add event or callback support?\r\n\r\nAn option to specify a callback that fires whenever we a resizing a shape or the resize was done would be amazing."},"comment":{"url":"https://api.github.com/repos/Fuzzyma/svg.resize.js/issues/comments/219929816","html_url":"https://github.com/Fuzzyma/svg.resize.js/issues/2#issuecomment-219929816","issue_url":"https://api.github.com/repos/Fuzzyma/svg.resize.js/issues/2","id":219929816,"user":{"login":"cactis","id":34376,"avatar_url":"https://avatars.githubusercontent.com/u/34376?v=3","gravatar_id":"","url":"https://api.github.com/users/cactis","html_url":"https://github.com/cactis","followers_url":"https://api.github.com/users/cactis/followers","following_url":"https://api.github.com/users/cactis/following{/other_user}","gists_url":"https://api.github.com/users/cactis/gists{/gist_id}","starred_url":"https://api.github.com/users/cactis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cactis/subscriptions","organizations_url":"https://api.github.com/users/cactis/orgs","repos_url":"https://api.github.com/users/cactis/repos","events_url":"https://api.github.com/users/cactis/events{/privacy}","received_events_url":"https://api.github.com/users/cactis/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T05:37:08Z","updated_at":"2016-05-18T05:37:08Z","body":"I try to bind click event to toggle an icon's resizable mode,\r\nbut it dosen't work.\r\n\r\n```\r\nicon.click ->\r\n      if this.selected\r\n        # this.selectize().resize('stop')\r\n        # this.selectize().stop()\r\n        this.resize 'stop'\r\n        # icon.resize('stop')\r\n        # icon.selectize().resize 'stop'\r\n        # this.done()\r\n        this.selected = undefined\r\n      else\r\n        this.selectize().resize()\r\n          # resizedone: ->\r\n        this.selected = true\r\n```\r\nthanks\r\n"}}