{"action":"opened","issue":{"url":"https://api.github.com/repos/esbullington/react-d3/issues/58","labels_url":"https://api.github.com/repos/esbullington/react-d3/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/esbullington/react-d3/issues/58/comments","events_url":"https://api.github.com/repos/esbullington/react-d3/issues/58/events","html_url":"https://github.com/esbullington/react-d3/issues/58","id":56190257,"number":58,"title":"Reusable method","user":{"login":"yang-wei","id":5494874,"avatar_url":"https://avatars.githubusercontent.com/u/5494874?v=3","gravatar_id":"","url":"https://api.github.com/users/yang-wei","html_url":"https://github.com/yang-wei","followers_url":"https://api.github.com/users/yang-wei/followers","following_url":"https://api.github.com/users/yang-wei/following{/other_user}","gists_url":"https://api.github.com/users/yang-wei/gists{/gist_id}","starred_url":"https://api.github.com/users/yang-wei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yang-wei/subscriptions","organizations_url":"https://api.github.com/users/yang-wei/orgs","repos_url":"https://api.github.com/users/yang-wei/repos","events_url":"https://api.github.com/users/yang-wei/events{/privacy}","received_events_url":"https://api.github.com/users/yang-wei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-02T02:42:50Z","updated_at":"2015-02-02T02:42:50Z","closed_at":null,"body":"Hey, as I'm writing test for voronoid, I realised that there are a few methods I need to reuse. Those methods are\r\n\r\n * concat all data into `allValues`\r\n * `_calculateScale`\r\n \r\nI do think that it's good to factor out this method in `util.js` or as a (mixins)[http://facebook.github.io/react/docs/reusable-components.html#mixins]. I suggest to add another `/src/mixins/` folder so that we can add resuable code here.\r\n\r\nHowever we can do this in the next publish if you think that there are too much to do. No worries :smile: "}}