{"action":"opened","issue":{"url":"https://api.github.com/repos/poetic/ember-cli-photoswipe/issues/11","labels_url":"https://api.github.com/repos/poetic/ember-cli-photoswipe/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/poetic/ember-cli-photoswipe/issues/11/comments","events_url":"https://api.github.com/repos/poetic/ember-cli-photoswipe/issues/11/events","html_url":"https://github.com/poetic/ember-cli-photoswipe/issues/11","id":71189486,"number":11,"title":"element index is not being passed to photoswipe click method","user":{"login":"n3k","id":8538723,"avatar_url":"https://avatars.githubusercontent.com/u/8538723?v=3","gravatar_id":"","url":"https://api.github.com/users/n3k","html_url":"https://github.com/n3k","followers_url":"https://api.github.com/users/n3k/followers","following_url":"https://api.github.com/users/n3k/following{/other_user}","gists_url":"https://api.github.com/users/n3k/gists{/gist_id}","starred_url":"https://api.github.com/users/n3k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n3k/subscriptions","organizations_url":"https://api.github.com/users/n3k/orgs","repos_url":"https://api.github.com/users/n3k/repos","events_url":"https://api.github.com/users/n3k/events{/privacy}","received_events_url":"https://api.github.com/users/n3k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-27T06:17:48Z","updated_at":"2015-04-27T06:17:48Z","closed_at":null,"body":"When using the photoswipe component in this way, the actual index of the element is not being passed to the click() function, so it always ends up rendering the first element.\r\n\r\n```\r\n{{#photo-swipe}}\r\n  <a href=\"http://placekitten.com/g/600/400\" data-width=\"600\" data-height=\"400\">\r\n    <img src=\"http://placekitten.com/g/300/200\" alt=\"kitty!\">\r\n  </a>\r\n{{/photo-swipe}}\r\n```"}}