{"action":"created","issue":{"url":"https://api.github.com/repos/paper-leaf/alton/issues/12","labels_url":"https://api.github.com/repos/paper-leaf/alton/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/paper-leaf/alton/issues/12/comments","events_url":"https://api.github.com/repos/paper-leaf/alton/issues/12/events","html_url":"https://github.com/paper-leaf/alton/issues/12","id":60528235,"number":12,"title":"Changing useSlideNumbers to false causes error","user":{"login":"con322","id":6308063,"avatar_url":"https://avatars.githubusercontent.com/u/6308063?v=3","gravatar_id":"","url":"https://api.github.com/users/con322","html_url":"https://github.com/con322","followers_url":"https://api.github.com/users/con322/followers","following_url":"https://api.github.com/users/con322/following{/other_user}","gists_url":"https://api.github.com/users/con322/gists{/gist_id}","starred_url":"https://api.github.com/users/con322/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/con322/subscriptions","organizations_url":"https://api.github.com/users/con322/orgs","repos_url":"https://api.github.com/users/con322/repos","events_url":"https://api.github.com/users/con322/events{/privacy}","received_events_url":"https://api.github.com/users/con322/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ntan97","id":1954168,"avatar_url":"https://avatars.githubusercontent.com/u/1954168?v=3","gravatar_id":"","url":"https://api.github.com/users/ntan97","html_url":"https://github.com/ntan97","followers_url":"https://api.github.com/users/ntan97/followers","following_url":"https://api.github.com/users/ntan97/following{/other_user}","gists_url":"https://api.github.com/users/ntan97/gists{/gist_id}","starred_url":"https://api.github.com/users/ntan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntan97/subscriptions","organizations_url":"https://api.github.com/users/ntan97/orgs","repos_url":"https://api.github.com/users/ntan97/repos","events_url":"https://api.github.com/users/ntan97/events{/privacy}","received_events_url":"https://api.github.com/users/ntan97/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-03-10T16:31:42Z","updated_at":"2015-03-11T02:26:21Z","closed_at":null,"body":"I have set the useSlideNumbers to false and get the following error in my console:\r\n\r\n    Uncaught TypeError: Cannot read property '2' of undefined\r\n\r\nWhich relates to the following lines in the script  within the slideindex function within the else brackets (line 250 of the un minified version)\r\n\r\n    $(slideNumbers[$(element).parent().children().index(element)]).toggleClass('active');\r\n\r\nMy options are as follows\r\n\r\n    $(document).alton({\r\n        fullSlideContainer: 'full', // Tell Alton the full height container\r\n        singleSlideClass: 'slide', // Tell Alton the full height slide class\r\n        useSlideNumbers: false, // Set to false if you don't want to use pagination\r\n        slideNumbersBorderColor: '#fff', // Set the outside color of the pagination items\r\n        slideNumbersColor: 'transparent', // Set the inner color of the pagination items\r\n        bodyContainer: 'pageWrapper', // Tell Alton the body class\r\n    });"},"comment":{"url":"https://api.github.com/repos/paper-leaf/alton/issues/comments/78188868","html_url":"https://github.com/paper-leaf/alton/issues/12#issuecomment-78188868","issue_url":"https://api.github.com/repos/paper-leaf/alton/issues/12","id":78188868,"user":{"login":"ntan97","id":1954168,"avatar_url":"https://avatars.githubusercontent.com/u/1954168?v=3","gravatar_id":"","url":"https://api.github.com/users/ntan97","html_url":"https://github.com/ntan97","followers_url":"https://api.github.com/users/ntan97/followers","following_url":"https://api.github.com/users/ntan97/following{/other_user}","gists_url":"https://api.github.com/users/ntan97/gists{/gist_id}","starred_url":"https://api.github.com/users/ntan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntan97/subscriptions","organizations_url":"https://api.github.com/users/ntan97/orgs","repos_url":"https://api.github.com/users/ntan97/repos","events_url":"https://api.github.com/users/ntan97/events{/privacy}","received_events_url":"https://api.github.com/users/ntan97/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T02:26:21Z","updated_at":"2015-03-11T02:26:21Z","body":"Hey Con322, \r\n\r\nThanks for the detailed report, I'll be looking closely into this, and will update this thread as soon as I have a bug fix for you, or if I need any further information.\r\n"}}