{"action":"created","issue":{"url":"https://api.github.com/repos/stevenwanderski/bxslider-3/issues/144","labels_url":"https://api.github.com/repos/stevenwanderski/bxslider-3/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/stevenwanderski/bxslider-3/issues/144/comments","events_url":"https://api.github.com/repos/stevenwanderski/bxslider-3/issues/144/events","html_url":"https://github.com/stevenwanderski/bxslider-3/issues/144","id":5198729,"number":144,"title":"Number of images not working correctly when using bxSlider with Lightbox","user":{"login":"xfilterx","id":1877717,"avatar_url":"https://avatars.githubusercontent.com/u/1877717?v=3","gravatar_id":"","url":"https://api.github.com/users/xfilterx","html_url":"https://github.com/xfilterx","followers_url":"https://api.github.com/users/xfilterx/followers","following_url":"https://api.github.com/users/xfilterx/following{/other_user}","gists_url":"https://api.github.com/users/xfilterx/gists{/gist_id}","starred_url":"https://api.github.com/users/xfilterx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfilterx/subscriptions","organizations_url":"https://api.github.com/users/xfilterx/orgs","repos_url":"https://api.github.com/users/xfilterx/repos","events_url":"https://api.github.com/users/xfilterx/events{/privacy}","received_events_url":"https://api.github.com/users/xfilterx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2012-06-21T17:06:45Z","updated_at":"2015-08-04T15:03:58Z","closed_at":null,"body":"I've found that when using Lightbox in conjunction with bxSlider, the number of images that Lightbox displays is completely off. For instance, I have 6 images in a bxSlider carousel but when I pop open one of those images through Lightbox, it says that there are 10. Worse, when I click on the 1st image, it says 8 out of 10. I click next three time and on the third image I can not click next again because Lightbox think I've reached the 10th image when in fact I'm only on the 3rd of 6 images. Is this a Lightbox issue or a bxSlider issue? Here's a link to the bxSlider/Lightbox implementation: \n\nhttp://www.newtonforkranch.com/cabins-and-rates.html"},"comment":{"url":"https://api.github.com/repos/stevenwanderski/bxslider-3/issues/comments/127643018","html_url":"https://github.com/stevenwanderski/bxslider-3/issues/144#issuecomment-127643018","issue_url":"https://api.github.com/repos/stevenwanderski/bxslider-3/issues/144","id":127643018,"user":{"login":"Roemer","id":393641,"avatar_url":"https://avatars.githubusercontent.com/u/393641?v=3","gravatar_id":"","url":"https://api.github.com/users/Roemer","html_url":"https://github.com/Roemer","followers_url":"https://api.github.com/users/Roemer/followers","following_url":"https://api.github.com/users/Roemer/following{/other_user}","gists_url":"https://api.github.com/users/Roemer/gists{/gist_id}","starred_url":"https://api.github.com/users/Roemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roemer/subscriptions","organizations_url":"https://api.github.com/users/Roemer/orgs","repos_url":"https://api.github.com/users/Roemer/repos","events_url":"https://api.github.com/users/Roemer/events{/privacy}","received_events_url":"https://api.github.com/users/Roemer/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T15:03:58Z","updated_at":"2015-08-04T15:03:58Z","body":"My solution for this problem is to remove the data-lightbox attribtue of all clones. I do this after the slide has loaded with this code:\r\n```javascript\r\nonSliderLoad: function(){\r\n    $(\".bx-clone\").children().removeAttr(\"data-lightbox\");\r\n}\r\n```\r\nMaybe you could add this to bxslider immediately when it clones an element?"}}