{"action":"created","comment":{"url":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/comments/28209689","id":28209689,"diff_hunk":"@@ -0,0 +1,81 @@\n+import Ember from 'ember';\n+import layout from '../templates/components/materialize-selectable-item-group';\n+\n+var get = Ember.get,\n+  map = Ember.EnumerableUtils.map,\n+  indexOf = Ember.EnumerableUtils.indexOf;\n+\n+export default Ember.Component.extend({\n+  content: null,\n+  selection: null,\n+  layout: layout,\n+  optionValuePath: 'content',\n+  optionLabelPath: 'content',\n+  multiple: false,\n+  __materializeSelectableItemGroup: true,\n+\n+  init() {\n+    this._super(...arguments);\n+    if (this.get('selection') === null && !!this.get('multiple')) {\n+      this.set('selection', Ember.A());\n+    }\n+  },\n+\n+  isValueSelected: function (value) {\n+    if (this.get('multiple')) {\n+      return indexOf(this.get('selection'), value) >= 0;\n+    }\n+    else {\n+      return this.get('selection') === value;\n+    }\n+  },\n+\n+  setValueSelection: function (value, select) {","path":"addon/components/materialize-selectable-item-group.js","position":33,"original_position":33,"commit_id":"1b9c7fa5aff51703d54004ad019229a5b4610678","original_commit_id":"1b9c7fa5aff51703d54004ad019229a5b4610678","user":{"login":"truenorth","id":558005,"avatar_url":"https://avatars.githubusercontent.com/u/558005?v=3","gravatar_id":"","url":"https://api.github.com/users/truenorth","html_url":"https://github.com/truenorth","followers_url":"https://api.github.com/users/truenorth/followers","following_url":"https://api.github.com/users/truenorth/following{/other_user}","gists_url":"https://api.github.com/users/truenorth/gists{/gist_id}","starred_url":"https://api.github.com/users/truenorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truenorth/subscriptions","organizations_url":"https://api.github.com/users/truenorth/orgs","repos_url":"https://api.github.com/users/truenorth/repos","events_url":"https://api.github.com/users/truenorth/events{/privacy}","received_events_url":"https://api.github.com/users/truenorth/received_events","type":"User","site_admin":false},"body":"es6 function declaration","created_at":"2015-04-13T00:48:33Z","updated_at":"2015-04-13T00:48:33Z","html_url":"https://github.com/sgasser/ember-cli-materialize/pull/46#discussion_r28209689","pull_request_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/comments/28209689"},"html":{"href":"https://github.com/sgasser/ember-cli-materialize/pull/46#discussion_r28209689"},"pull_request":{"href":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/46","id":32571605,"html_url":"https://github.com/sgasser/ember-cli-materialize/pull/46","diff_url":"https://github.com/sgasser/ember-cli-materialize/pull/46.diff","patch_url":"https://github.com/sgasser/ember-cli-materialize/pull/46.patch","issue_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/issues/46","number":46,"state":"open","locked":false,"title":"WIP - Form (switch, check box, range, radio buttons)","user":{"login":"truenorth","id":558005,"avatar_url":"https://avatars.githubusercontent.com/u/558005?v=3","gravatar_id":"","url":"https://api.github.com/users/truenorth","html_url":"https://github.com/truenorth","followers_url":"https://api.github.com/users/truenorth/followers","following_url":"https://api.github.com/users/truenorth/following{/other_user}","gists_url":"https://api.github.com/users/truenorth/gists{/gist_id}","starred_url":"https://api.github.com/users/truenorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truenorth/subscriptions","organizations_url":"https://api.github.com/users/truenorth/orgs","repos_url":"https://api.github.com/users/truenorth/repos","events_url":"https://api.github.com/users/truenorth/events{/privacy}","received_events_url":"https://api.github.com/users/truenorth/received_events","type":"User","site_admin":false},"body":"Not yet ready for merge, but any feedback would be appreciated\r\n\r\n### Switch\r\n````handlebars\r\n{{materialize-switch value=switchValue disabled=false}}\r\n````\r\n\r\n### Checkbox\r\n````handlebars\r\n{{!-- Standard variant --}}\r\n{{materialize-checkbox value=checkValueOne}}\r\n{{!-- Filled variant --}}\r\n{{materialize-checkbox filledIn=true value=checkValueTwo}}\r\n{{!-- Disabled --}}\r\n{{materialize-checkbox disabled=true filledIn=true value=checkValueTwo}}\r\n````\r\n### Range\r\n````handlebars\r\n{{materialize-range value=rangeValue}}\r\n````\r\n\r\n### Radios\r\nTwo syntaxes to choose from \r\n````handlebars\r\n{{!-- Generate radios from a set of data --}}\r\n{{materialize-radios content=choices value=selectedChoice}}\r\n\r\n{{!-- Explicitly define each radio --}}\r\n{{#materialize-radios value=selectedChoice}}\r\n  {{materialize-radio label=\"First\" value=1}}\r\n  {{#materialize-radio value=2}}\r\n    Second\r\n    {{materialize-icon value=\"content-add\"}}\r\n  {{/materialize-radio}}\r\n{{/materialize-radios}}\r\n````\r\n","created_at":"2015-04-03T05:59:13Z","updated_at":"2015-04-13T00:48:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6cdbc720891414ca5bd370b03ce4a063b22acb87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/46/commits","review_comments_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/46/comments","review_comment_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/issues/46/comments","statuses_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/statuses/1b9c7fa5aff51703d54004ad019229a5b4610678","head":{"label":"truenorth:materialize-form","ref":"materialize-form","sha":"1b9c7fa5aff51703d54004ad019229a5b4610678","user":{"login":"truenorth","id":558005,"avatar_url":"https://avatars.githubusercontent.com/u/558005?v=3","gravatar_id":"","url":"https://api.github.com/users/truenorth","html_url":"https://github.com/truenorth","followers_url":"https://api.github.com/users/truenorth/followers","following_url":"https://api.github.com/users/truenorth/following{/other_user}","gists_url":"https://api.github.com/users/truenorth/gists{/gist_id}","starred_url":"https://api.github.com/users/truenorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truenorth/subscriptions","organizations_url":"https://api.github.com/users/truenorth/orgs","repos_url":"https://api.github.com/users/truenorth/repos","events_url":"https://api.github.com/users/truenorth/events{/privacy}","received_events_url":"https://api.github.com/users/truenorth/received_events","type":"User","site_admin":false},"repo":{"id":33087165,"name":"ember-cli-materialize","full_name":"truenorth/ember-cli-materialize","owner":{"login":"truenorth","id":558005,"avatar_url":"https://avatars.githubusercontent.com/u/558005?v=3","gravatar_id":"","url":"https://api.github.com/users/truenorth","html_url":"https://github.com/truenorth","followers_url":"https://api.github.com/users/truenorth/followers","following_url":"https://api.github.com/users/truenorth/following{/other_user}","gists_url":"https://api.github.com/users/truenorth/gists{/gist_id}","starred_url":"https://api.github.com/users/truenorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truenorth/subscriptions","organizations_url":"https://api.github.com/users/truenorth/orgs","repos_url":"https://api.github.com/users/truenorth/repos","events_url":"https://api.github.com/users/truenorth/events{/privacy}","received_events_url":"https://api.github.com/users/truenorth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/truenorth/ember-cli-materialize","description":"An ember-cli addon for using Materialize (CSS Framework based on Material Design) in Ember applications.","fork":true,"url":"https://api.github.com/repos/truenorth/ember-cli-materialize","forks_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/forks","keys_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/teams","hooks_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/hooks","issue_events_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/issues/events{/number}","events_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/events","assignees_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/assignees{/user}","branches_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/branches{/branch}","tags_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/tags","blobs_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/git/refs{/sha}","trees_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/statuses/{sha}","languages_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/languages","stargazers_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/stargazers","contributors_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/contributors","subscribers_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/subscribers","subscription_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/subscription","commits_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/commits{/sha}","git_commits_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/git/commits{/sha}","comments_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/comments{/number}","issue_comment_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/issues/comments{/number}","contents_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/contents/{+path}","compare_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/merges","archive_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/downloads","issues_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/issues{/number}","pulls_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/pulls{/number}","milestones_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/milestones{/number}","notifications_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/labels{/name}","releases_url":"https://api.github.com/repos/truenorth/ember-cli-materialize/releases{/id}","created_at":"2015-03-29T20:02:17Z","updated_at":"2015-04-06T08:37:50Z","pushed_at":"2015-04-13T00:47:14Z","git_url":"git://github.com/truenorth/ember-cli-materialize.git","ssh_url":"git@github.com:truenorth/ember-cli-materialize.git","clone_url":"https://github.com/truenorth/ember-cli-materialize.git","svn_url":"https://github.com/truenorth/ember-cli-materialize","homepage":"http://sgasser.github.io/ember-cli-materialize","size":1179,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sgasser:master","ref":"master","sha":"9630298918c53df67e4475adbf0c84609bf4a899","user":{"login":"sgasser","id":850416,"avatar_url":"https://avatars.githubusercontent.com/u/850416?v=3","gravatar_id":"","url":"https://api.github.com/users/sgasser","html_url":"https://github.com/sgasser","followers_url":"https://api.github.com/users/sgasser/followers","following_url":"https://api.github.com/users/sgasser/following{/other_user}","gists_url":"https://api.github.com/users/sgasser/gists{/gist_id}","starred_url":"https://api.github.com/users/sgasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgasser/subscriptions","organizations_url":"https://api.github.com/users/sgasser/orgs","repos_url":"https://api.github.com/users/sgasser/repos","events_url":"https://api.github.com/users/sgasser/events{/privacy}","received_events_url":"https://api.github.com/users/sgasser/received_events","type":"User","site_admin":false},"repo":{"id":28353284,"name":"ember-cli-materialize","full_name":"sgasser/ember-cli-materialize","owner":{"login":"sgasser","id":850416,"avatar_url":"https://avatars.githubusercontent.com/u/850416?v=3","gravatar_id":"","url":"https://api.github.com/users/sgasser","html_url":"https://github.com/sgasser","followers_url":"https://api.github.com/users/sgasser/followers","following_url":"https://api.github.com/users/sgasser/following{/other_user}","gists_url":"https://api.github.com/users/sgasser/gists{/gist_id}","starred_url":"https://api.github.com/users/sgasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgasser/subscriptions","organizations_url":"https://api.github.com/users/sgasser/orgs","repos_url":"https://api.github.com/users/sgasser/repos","events_url":"https://api.github.com/users/sgasser/events{/privacy}","received_events_url":"https://api.github.com/users/sgasser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sgasser/ember-cli-materialize","description":"An ember-cli addon for using Materialize (CSS Framework based on Material Design) in Ember applications.","fork":false,"url":"https://api.github.com/repos/sgasser/ember-cli-materialize","forks_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/forks","keys_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/teams","hooks_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/hooks","issue_events_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/issues/events{/number}","events_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/events","assignees_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/assignees{/user}","branches_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/branches{/branch}","tags_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/tags","blobs_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/statuses/{sha}","languages_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/languages","stargazers_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/stargazers","contributors_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/contributors","subscribers_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/subscribers","subscription_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/subscription","commits_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/contents/{+path}","compare_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/merges","archive_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/downloads","issues_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/issues{/number}","pulls_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls{/number}","milestones_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/milestones{/number}","notifications_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/labels{/name}","releases_url":"https://api.github.com/repos/sgasser/ember-cli-materialize/releases{/id}","created_at":"2014-12-22T18:44:35Z","updated_at":"2015-04-11T06:09:10Z","pushed_at":"2015-04-13T00:47:14Z","git_url":"git://github.com/sgasser/ember-cli-materialize.git","ssh_url":"git@github.com:sgasser/ember-cli-materialize.git","clone_url":"https://github.com/sgasser/ember-cli-materialize.git","svn_url":"https://github.com/sgasser/ember-cli-materialize","homepage":"http://sgasser.github.io/ember-cli-materialize","size":1195,"stargazers_count":52,"watchers_count":52,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":9,"forks":16,"open_issues":9,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/46"},"html":{"href":"https://github.com/sgasser/ember-cli-materialize/pull/46"},"issue":{"href":"https://api.github.com/repos/sgasser/ember-cli-materialize/issues/46"},"comments":{"href":"https://api.github.com/repos/sgasser/ember-cli-materialize/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sgasser/ember-cli-materialize/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/sgasser/ember-cli-materialize/statuses/1b9c7fa5aff51703d54004ad019229a5b4610678"}}}}