{"action":"created","issue":{"url":"https://api.github.com/repos/canjs/can-component/issues/89","repository_url":"https://api.github.com/repos/canjs/can-component","labels_url":"https://api.github.com/repos/canjs/can-component/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/canjs/can-component/issues/89/comments","events_url":"https://api.github.com/repos/canjs/can-component/issues/89/events","html_url":"https://github.com/canjs/can-component/issues/89","id":215114787,"node_id":"MDU6SXNzdWUyMTUxMTQ3ODc=","number":89,"title":"simpleHelpers on components","user":{"login":"justinbmeyer","id":78602,"node_id":"MDQ6VXNlcjc4NjAy","avatar_url":"https://avatars0.githubusercontent.com/u/78602?v=4","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"labels":[{"id":358857595,"node_id":"MDU6TGFiZWwzNTg4NTc1OTU=","url":"https://api.github.com/repos/canjs/can-component/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-17T20:32:36Z","updated_at":"2018-12-12T03:45:47Z","closed_at":"2018-12-12T03:45:47Z","author_association":"CONTRIBUTOR","body":"I think `helpers` on components is currently mostly pointless.  It's hard to test, and helpers always get called with computes.\r\n\r\nI propose a `simpleHelpers` object on Components like:\r\n\r\n```\r\nMyComponent = Component.extend({\r\n  simpleHelpers: {\r\n    toYear: function(date){\r\n      return date.getYear()\r\n    }\r\n  }\r\n})\r\n```\r\n\r\nTo test, these should be available a property on the Component\r\n\r\n```js\r\nMyComponent.simpleHelpers.toYear( new Date() ) //-> 2017\r\n```"},"comment":{"url":"https://api.github.com/repos/canjs/can-component/issues/comments/446451750","html_url":"https://github.com/canjs/can-component/issues/89#issuecomment-446451750","issue_url":"https://api.github.com/repos/canjs/can-component/issues/89","id":446451750,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjQ1MTc1MA==","user":{"login":"justinbmeyer","id":78602,"node_id":"MDQ6VXNlcjc4NjAy","avatar_url":"https://avatars0.githubusercontent.com/u/78602?v=4","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T03:45:47Z","updated_at":"2018-12-12T03:45:47Z","author_association":"CONTRIBUTOR","body":"Closing.  We suggest using `ViewModel` methods for this now."}}
{"actor":{"display_login":"justinbmeyer"}}