{"action":"created","issue":{"url":"https://api.github.com/repos/cbopp-art/lightcase/issues/32","labels_url":"https://api.github.com/repos/cbopp-art/lightcase/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/cbopp-art/lightcase/issues/32/comments","events_url":"https://api.github.com/repos/cbopp-art/lightcase/issues/32/events","html_url":"https://github.com/cbopp-art/lightcase/issues/32","id":109373220,"number":32,"title":"Where to find \"opener\" object ant its attributes?","user":{"login":"sashabeep","id":5689796,"avatar_url":"https://avatars.githubusercontent.com/u/5689796?v=3","gravatar_id":"","url":"https://api.github.com/users/sashabeep","html_url":"https://github.com/sashabeep","followers_url":"https://api.github.com/users/sashabeep/followers","following_url":"https://api.github.com/users/sashabeep/following{/other_user}","gists_url":"https://api.github.com/users/sashabeep/gists{/gist_id}","starred_url":"https://api.github.com/users/sashabeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashabeep/subscriptions","organizations_url":"https://api.github.com/users/sashabeep/orgs","repos_url":"https://api.github.com/users/sashabeep/repos","events_url":"https://api.github.com/users/sashabeep/events{/privacy}","received_events_url":"https://api.github.com/users/sashabeep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":41,"created_at":"2015-10-01T20:06:40Z","updated_at":"2015-11-17T21:15:04Z","closed_at":null,"body":"```html\r\n<a class=\"myopener\" data-mydata=\"mydata\">open lightcase modal</a>\r\n<a class=\"myopener\" data-mydata=\"myotherdata\">open other lightcase modal</a>\r\n```\r\n.....\r\n```javascript\r\n$('.myopener').lightcase({\r\n      //.....how to get a.myopener here?\r\n\t\t\r\n\t\tonInit : {\r\n\t\t\tfoo: function() {\r\n\t\t\t\tconsole.log($(this).data(\"mydata\")); //fails, of course\r\n\t\t\t}\r\n\t\t},\r\n\t\t\r\n});\r\n```\r\nI can't store, for example, data-attributes to array using onclick event, because lightcase unbind this\r\n```javascript\r\n$('.myopener').on(\"click\",function(){\r\n\t\tvar arr={\r\n\t\t\tmydata:$(this).data(\"mydata\")\r\n                        .....\r\n\t\t}\t\t\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/cbopp-art/lightcase/issues/comments/157509283","html_url":"https://github.com/cbopp-art/lightcase/issues/32#issuecomment-157509283","issue_url":"https://api.github.com/repos/cbopp-art/lightcase/issues/32","id":157509283,"user":{"login":"cbopp-art","id":2764787,"avatar_url":"https://avatars.githubusercontent.com/u/2764787?v=3","gravatar_id":"","url":"https://api.github.com/users/cbopp-art","html_url":"https://github.com/cbopp-art","followers_url":"https://api.github.com/users/cbopp-art/followers","following_url":"https://api.github.com/users/cbopp-art/following{/other_user}","gists_url":"https://api.github.com/users/cbopp-art/gists{/gist_id}","starred_url":"https://api.github.com/users/cbopp-art/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbopp-art/subscriptions","organizations_url":"https://api.github.com/users/cbopp-art/orgs","repos_url":"https://api.github.com/users/cbopp-art/repos","events_url":"https://api.github.com/users/cbopp-art/events{/privacy}","received_events_url":"https://api.github.com/users/cbopp-art/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T21:15:04Z","updated_at":"2015-11-17T21:15:04Z","body":"Opening a blank window:\r\n```javascript\r\n<a href=\"#\" data-rel=\"lightcase\">Blank popup</a>\r\n```\r\nAfter fill in with content, you would need to reset lightcase dimensions like this:\r\n```javascript\r\nlightcase.resize();\r\n```"}}