{"action":"created","issue":{"url":"https://api.github.com/repos/fancyapps/fancybox/issues/1462","repository_url":"https://api.github.com/repos/fancyapps/fancybox","labels_url":"https://api.github.com/repos/fancyapps/fancybox/issues/1462/labels{/name}","comments_url":"https://api.github.com/repos/fancyapps/fancybox/issues/1462/comments","events_url":"https://api.github.com/repos/fancyapps/fancybox/issues/1462/events","html_url":"https://github.com/fancyapps/fancybox/issues/1462","id":233260076,"number":1462,"title":"fancybox v3 opens and then closes almost simultaniously","user":{"login":"raynbow2411","id":29150621,"avatar_url":"https://avatars1.githubusercontent.com/u/29150621?v=3","gravatar_id":"","url":"https://api.github.com/users/raynbow2411","html_url":"https://github.com/raynbow2411","followers_url":"https://api.github.com/users/raynbow2411/followers","following_url":"https://api.github.com/users/raynbow2411/following{/other_user}","gists_url":"https://api.github.com/users/raynbow2411/gists{/gist_id}","starred_url":"https://api.github.com/users/raynbow2411/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raynbow2411/subscriptions","organizations_url":"https://api.github.com/users/raynbow2411/orgs","repos_url":"https://api.github.com/users/raynbow2411/repos","events_url":"https://api.github.com/users/raynbow2411/events{/privacy}","received_events_url":"https://api.github.com/users/raynbow2411/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-02T18:14:52Z","updated_at":"2017-06-03T11:10:54Z","closed_at":"2017-06-03T07:38:17Z","body":"Hi,\r\n\r\nLove fancybox v3 but have 2 questions that you may be able to help me with:\r\n\r\n1) I am using fancybox v3 to popup a group images ([data-fancybox=\"images\"] ) which are sitting in the jquery slick gallery plugin. This works well when clicking on an image in the slick gallery but I also use  a button to popup the same gallery by calling : $('[data-fancybox=\"images\"]').trigger('click'); This also works on the first few images but if I click on next a few times on the slick gallery and then click the button I see the popup open and then close almost simultaneously.\r\n\r\nThis is the setup for the fancybox:\r\n\r\n$('[data-fancybox=\"images\"]').fancybox({\r\n\t\t  loop : true,\r\n\t\t  thumbs : {\r\n\t\t\tshowOnStart : true\r\n\t\t  },\r\n\t\t\tmargin : [ 44, 0, 90, 0 ]\r\n\t\t});\r\n\r\n2) When I try to create an instance of my fancybox using:  \r\nvar $instance = $(\"[data-fancybox]\").fancybox();\r\n\r\nand then try to active it using:\r\n$instance.activate();\r\n\r\nI receive the error message:\r\nUncaught TypeError: $instance.activate is not a function\r\n\r\nI took this piece of code out of your documentation and am perplexed as to why it doesn't work.\r\n\r\n\r\nAny guidance would be great!\r\n\r\nBest Regards!\r\n\r\n \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fancyapps/fancybox/issues/comments/305968361","html_url":"https://github.com/fancyapps/fancybox/issues/1462#issuecomment-305968361","issue_url":"https://api.github.com/repos/fancyapps/fancybox/issues/1462","id":305968361,"user":{"login":"raynbow2411","id":29150621,"avatar_url":"https://avatars1.githubusercontent.com/u/29150621?v=3","gravatar_id":"","url":"https://api.github.com/users/raynbow2411","html_url":"https://github.com/raynbow2411","followers_url":"https://api.github.com/users/raynbow2411/followers","following_url":"https://api.github.com/users/raynbow2411/following{/other_user}","gists_url":"https://api.github.com/users/raynbow2411/gists{/gist_id}","starred_url":"https://api.github.com/users/raynbow2411/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raynbow2411/subscriptions","organizations_url":"https://api.github.com/users/raynbow2411/orgs","repos_url":"https://api.github.com/users/raynbow2411/repos","events_url":"https://api.github.com/users/raynbow2411/events{/privacy}","received_events_url":"https://api.github.com/users/raynbow2411/received_events","type":"User","site_admin":false},"created_at":"2017-06-03T11:10:53Z","updated_at":"2017-06-03T11:10:53Z","body":"Hi and thanks again for taking the time to look at this issue. You can see the issue I am describing in my fork of your fancybox demo:  https://codepen.io/raynbow/pen/vZYJPE \n\n\nOn 2017-06-03 3:38:23 AM, Jānis Skarnelis <notifications@github.com> wrote:\nClosed #1462 [https://github.com/fancyapps/fancybox/issues/1462].\n—\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub [https://github.com/fancyapps/fancybox/issues/1462#event-1108768661], or mute the thread [https://github.com/notifications/unsubscribe-auth/AbzNnSOrnpmQlf3XzCPbMnXVjIudub3vks5sAQ1tgaJpZM4NunST]."}}
{"actor":{"display_login":"raynbow2411"}}