{"action":"created","issue":{"url":"https://api.github.com/repos/seiyria/bootstrap-slider/issues/425","labels_url":"https://api.github.com/repos/seiyria/bootstrap-slider/issues/425/labels{/name}","comments_url":"https://api.github.com/repos/seiyria/bootstrap-slider/issues/425/comments","events_url":"https://api.github.com/repos/seiyria/bootstrap-slider/issues/425/events","html_url":"https://github.com/seiyria/bootstrap-slider/issues/425","id":101364293,"number":425,"title":"Ticks: Cannot read property 'style' of undefined","user":{"login":"ksnyde","id":980757,"avatar_url":"https://avatars.githubusercontent.com/u/980757?v=3","gravatar_id":"","url":"https://api.github.com/users/ksnyde","html_url":"https://github.com/ksnyde","followers_url":"https://api.github.com/users/ksnyde/followers","following_url":"https://api.github.com/users/ksnyde/following{/other_user}","gists_url":"https://api.github.com/users/ksnyde/gists{/gist_id}","starred_url":"https://api.github.com/users/ksnyde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksnyde/subscriptions","organizations_url":"https://api.github.com/users/ksnyde/orgs","repos_url":"https://api.github.com/users/ksnyde/repos","events_url":"https://api.github.com/users/ksnyde/events{/privacy}","received_events_url":"https://api.github.com/users/ksnyde/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-17T08:02:48Z","updated_at":"2015-08-18T16:28:37Z","closed_at":"2015-08-18T13:18:38Z","body":"When I add ticks to my slider I get the following error:\r\n\r\n>Uncaught TypeError: Cannot read property 'style' of undefinedSlider._layout @ bootstrap-slider.js:1012\r\nSlider.setValue @ bootstrap-slider.js:783\r\ncreateNewSlider @ bootstrap-slider.js:633\r\nSlider.refresh @ bootstrap-slider.js:884\r\n$.fn.(anonymous function) @ bootstrap-slider.js:134\r\n(anonymous function) @ ui-slider.js:88\r\n\r\nThe line of code it is complaining about is:\r\n\r\n> this.ticks[i].style[this.stylePos] = percentage + '%';\r\n\r\nAnd specifically the configuration for ticks that is passed in is:\r\n\r\n    $(target).slider({\r\n        ticks: [30,40,60],\r\n        min: 10,\r\n        max: 100,\r\n        step: 1\r\n    });\r\n\r\nYou can see an online demonstration of this issue here: [demo](http://v1.development.ui-slider.divshot.io/). In stepping over the debug it does appear that somehow the ticks configuration was not initialised and therefore trying to address the style property for the tick fails because no DOM element exists yet."},"comment":{"url":"https://api.github.com/repos/seiyria/bootstrap-slider/issues/comments/132266826","html_url":"https://github.com/seiyria/bootstrap-slider/issues/425#issuecomment-132266826","issue_url":"https://api.github.com/repos/seiyria/bootstrap-slider/issues/425","id":132266826,"user":{"login":"ksnyde","id":980757,"avatar_url":"https://avatars.githubusercontent.com/u/980757?v=3","gravatar_id":"","url":"https://api.github.com/users/ksnyde","html_url":"https://github.com/ksnyde","followers_url":"https://api.github.com/users/ksnyde/followers","following_url":"https://api.github.com/users/ksnyde/following{/other_user}","gists_url":"https://api.github.com/users/ksnyde/gists{/gist_id}","starred_url":"https://api.github.com/users/ksnyde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksnyde/subscriptions","organizations_url":"https://api.github.com/users/ksnyde/orgs","repos_url":"https://api.github.com/users/ksnyde/repos","events_url":"https://api.github.com/users/ksnyde/events{/privacy}","received_events_url":"https://api.github.com/users/ksnyde/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T16:28:37Z","updated_at":"2015-08-18T16:28:37Z","body":"@rovolution ha, sorry about that. will get that corrected in a sec."}}