{"action":"closed","issue":{"url":"https://api.github.com/repos/phetsims/tandem/issues/6","labels_url":"https://api.github.com/repos/phetsims/tandem/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/phetsims/tandem/issues/6/comments","events_url":"https://api.github.com/repos/phetsims/tandem/issues/6/events","html_url":"https://github.com/phetsims/tandem/issues/6","id":124136905,"number":6,"title":"Pool tandems assign the wrong index","user":{"login":"samreid","id":679486,"avatar_url":"https://avatars.githubusercontent.com/u/679486?v=3","gravatar_id":"","url":"https://api.github.com/users/samreid","html_url":"https://github.com/samreid","followers_url":"https://api.github.com/users/samreid/followers","following_url":"https://api.github.com/users/samreid/following{/other_user}","gists_url":"https://api.github.com/users/samreid/gists{/gist_id}","starred_url":"https://api.github.com/users/samreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samreid/subscriptions","organizations_url":"https://api.github.com/users/samreid/orgs","repos_url":"https://api.github.com/users/samreid/repos","events_url":"https://api.github.com/users/samreid/events{/privacy}","received_events_url":"https://api.github.com/users/samreid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"samreid","id":679486,"avatar_url":"https://avatars.githubusercontent.com/u/679486?v=3","gravatar_id":"","url":"https://api.github.com/users/samreid","html_url":"https://github.com/samreid","followers_url":"https://api.github.com/users/samreid/followers","following_url":"https://api.github.com/users/samreid/following{/other_user}","gists_url":"https://api.github.com/users/samreid/gists{/gist_id}","starred_url":"https://api.github.com/users/samreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samreid/subscriptions","organizations_url":"https://api.github.com/users/samreid/orgs","repos_url":"https://api.github.com/users/samreid/repos","events_url":"https://api.github.com/users/samreid/events{/privacy}","received_events_url":"https://api.github.com/users/samreid/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-12-28T22:43:26Z","updated_at":"2015-12-30T19:55:05Z","closed_at":"2015-12-30T19:55:05Z","body":"Currently, if you do \r\n\r\n```js\r\ntandem.createPoolElementTandem('electron');\r\n//then\r\ntandem.createPoolElementTandem('neutron');\r\n```\r\n\r\nyou will receive:\r\nelectron_0\r\nneutron_1\r\n\r\nIt should be neutron_0, so we need to change this implementation. The use case will be something like:\r\n\r\n```js\r\nvar electronPoolTandem = tandem.createPoolTandem('electron');\r\nvar electron0Tandem = electronPoolTandem.createPoolElementTandem();\r\n```\r\n\r\nPoolTandem would be a subclass that adds the index."}}