{"action":"closed","issue":{"url":"https://api.github.com/repos/simeydotme/jQuery-ui-Slider-Pips/issues/100","repository_url":"https://api.github.com/repos/simeydotme/jQuery-ui-Slider-Pips","labels_url":"https://api.github.com/repos/simeydotme/jQuery-ui-Slider-Pips/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/simeydotme/jQuery-ui-Slider-Pips/issues/100/comments","events_url":"https://api.github.com/repos/simeydotme/jQuery-ui-Slider-Pips/issues/100/events","html_url":"https://github.com/simeydotme/jQuery-ui-Slider-Pips/issues/100","id":171805319,"number":100,"title":"Custom labels has problem when min is negative.","user":{"login":"enuggetry","id":10053377,"avatar_url":"https://avatars.githubusercontent.com/u/10053377?v=3","gravatar_id":"","url":"https://api.github.com/users/enuggetry","html_url":"https://github.com/enuggetry","followers_url":"https://api.github.com/users/enuggetry/followers","following_url":"https://api.github.com/users/enuggetry/following{/other_user}","gists_url":"https://api.github.com/users/enuggetry/gists{/gist_id}","starred_url":"https://api.github.com/users/enuggetry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enuggetry/subscriptions","organizations_url":"https://api.github.com/users/enuggetry/orgs","repos_url":"https://api.github.com/users/enuggetry/repos","events_url":"https://api.github.com/users/enuggetry/events{/privacy}","received_events_url":"https://api.github.com/users/enuggetry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simeydotme/jQuery-ui-Slider-Pips/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/simeydotme/jQuery-ui-Slider-Pips/labels/investigating","name":"investigating","color":"fef2c0"},{"url":"https://api.github.com/repos/simeydotme/jQuery-ui-Slider-Pips/labels/js","name":"js","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"simeydotme","id":2817396,"avatar_url":"https://avatars.githubusercontent.com/u/2817396?v=3","gravatar_id":"","url":"https://api.github.com/users/simeydotme","html_url":"https://github.com/simeydotme","followers_url":"https://api.github.com/users/simeydotme/followers","following_url":"https://api.github.com/users/simeydotme/following{/other_user}","gists_url":"https://api.github.com/users/simeydotme/gists{/gist_id}","starred_url":"https://api.github.com/users/simeydotme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simeydotme/subscriptions","organizations_url":"https://api.github.com/users/simeydotme/orgs","repos_url":"https://api.github.com/users/simeydotme/repos","events_url":"https://api.github.com/users/simeydotme/events{/privacy}","received_events_url":"https://api.github.com/users/simeydotme/received_events","type":"User","site_admin":false},"assignees":[{"login":"simeydotme","id":2817396,"avatar_url":"https://avatars.githubusercontent.com/u/2817396?v=3","gravatar_id":"","url":"https://api.github.com/users/simeydotme","html_url":"https://github.com/simeydotme","followers_url":"https://api.github.com/users/simeydotme/followers","following_url":"https://api.github.com/users/simeydotme/following{/other_user}","gists_url":"https://api.github.com/users/simeydotme/gists{/gist_id}","starred_url":"https://api.github.com/users/simeydotme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simeydotme/subscriptions","organizations_url":"https://api.github.com/users/simeydotme/orgs","repos_url":"https://api.github.com/users/simeydotme/repos","events_url":"https://api.github.com/users/simeydotme/events{/privacy}","received_events_url":"https://api.github.com/users/simeydotme/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/simeydotme/jQuery-ui-Slider-Pips/milestones/4","html_url":"https://github.com/simeydotme/jQuery-ui-Slider-Pips/milestones/1.11.4","labels_url":"https://api.github.com/repos/simeydotme/jQuery-ui-Slider-Pips/milestones/4/labels","id":1982320,"number":4,"title":"1.11.4","description":null,"creator":{"login":"simeydotme","id":2817396,"avatar_url":"https://avatars.githubusercontent.com/u/2817396?v=3","gravatar_id":"","url":"https://api.github.com/users/simeydotme","html_url":"https://github.com/simeydotme","followers_url":"https://api.github.com/users/simeydotme/followers","following_url":"https://api.github.com/users/simeydotme/following{/other_user}","gists_url":"https://api.github.com/users/simeydotme/gists{/gist_id}","starred_url":"https://api.github.com/users/simeydotme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simeydotme/subscriptions","organizations_url":"https://api.github.com/users/simeydotme/orgs","repos_url":"https://api.github.com/users/simeydotme/repos","events_url":"https://api.github.com/users/simeydotme/events{/privacy}","received_events_url":"https://api.github.com/users/simeydotme/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2016-09-04T13:53:09Z","updated_at":"2016-09-04T15:12:43Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-08-18T02:38:57Z","updated_at":"2016-09-04T15:12:43Z","closed_at":"2016-09-04T15:12:43Z","body":"When using custom labels, the labels didn't show up properly if the min begins with negative numbers\r\nhttps://jsfiddle.net/enuggetry/zm2aLfhk/\r\n\r\n```\r\n$(function() {\r\n    \r\n    // when lo = 0, all labels appear\r\n    // when lo = -20, no labels appear\r\n    var lo = -10; // 3 labels appear\r\n    var hi = 50;\r\n    var step = (hi-lo)/20;\r\n    var labels2 = ['abby','baker', 'cathy','dicky','eddy'];\r\n\t  console.log(lo,hi,step,labels2);\r\n\r\n    $(\"#pips-slider2\")\r\n        .slider({\r\n            min: lo,\r\n            max: hi,\r\n            step: step,\r\n            slide: function(event,ui) {\r\n                $('#slider-num2').html(ui.value);\r\n            }\r\n        })\r\n        .slider(\"pips\", {\r\n        \tfirst: \"label\",\r\n        \tlast: \"label\",\r\n            rest: \"label\",\r\n        \tstep: 5,\r\n        \tlabels:labels2,\r\n        });\r\n\r\n});\r\n\r\n```"}}
{"actor":{"display_login":"simeydotme"}}