{"action":"closed","issue":{"url":"https://api.github.com/repos/sachinchoolur/lightslider/issues/290","repository_url":"https://api.github.com/repos/sachinchoolur/lightslider","labels_url":"https://api.github.com/repos/sachinchoolur/lightslider/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/sachinchoolur/lightslider/issues/290/comments","events_url":"https://api.github.com/repos/sachinchoolur/lightslider/issues/290/events","html_url":"https://github.com/sachinchoolur/lightslider/issues/290","id":190948607,"number":290,"title":"Check if slider is already initialized","user":{"login":"VeeK727","id":11595460,"avatar_url":"https://avatars.githubusercontent.com/u/11595460?v=3","gravatar_id":"","url":"https://api.github.com/users/VeeK727","html_url":"https://github.com/VeeK727","followers_url":"https://api.github.com/users/VeeK727/followers","following_url":"https://api.github.com/users/VeeK727/following{/other_user}","gists_url":"https://api.github.com/users/VeeK727/gists{/gist_id}","starred_url":"https://api.github.com/users/VeeK727/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VeeK727/subscriptions","organizations_url":"https://api.github.com/users/VeeK727/orgs","repos_url":"https://api.github.com/users/VeeK727/repos","events_url":"https://api.github.com/users/VeeK727/events{/privacy}","received_events_url":"https://api.github.com/users/VeeK727/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-22T09:35:11Z","updated_at":"2016-12-07T08:49:38Z","closed_at":"2016-12-07T08:49:38Z","body":"I have a function whose callback is the initialization of lightslider. Normally I'm expecting this function to only execute once but in any case the function is executed more than once, lightslider gets re-initialized. This produces multiple pagers at the bottom (all working).\r\n\r\nSo is there a way to check if lightslider is initialized before and if not, initialize it. Here's the code that I have:\r\n\r\n```\r\n$('#split-form-trigger').leanModal({\r\n    ready: function() {\r\n      $('#split-form').lightSlider({\r\n\titem: 1,\r\n\tspeed: 500,\r\n\tcontrols: false\r\n      });\r\n    }\r\n  });\r\n```"}}
{"actor":{"display_login":"VeeK727"}}