{"action":"created","issue":{"url":"https://api.github.com/repos/leongersen/noUiSlider/issues/864","repository_url":"https://api.github.com/repos/leongersen/noUiSlider","labels_url":"https://api.github.com/repos/leongersen/noUiSlider/issues/864/labels{/name}","comments_url":"https://api.github.com/repos/leongersen/noUiSlider/issues/864/comments","events_url":"https://api.github.com/repos/leongersen/noUiSlider/issues/864/events","html_url":"https://github.com/leongersen/noUiSlider/issues/864","id":299767517,"number":864,"title":"Feature Request: Encoder (for Pip display) should accept any function, not just wNumb objects","user":{"login":"hillct","id":161479,"avatar_url":"https://avatars3.githubusercontent.com/u/161479?v=4","gravatar_id":"","url":"https://api.github.com/users/hillct","html_url":"https://github.com/hillct","followers_url":"https://api.github.com/users/hillct/followers","following_url":"https://api.github.com/users/hillct/following{/other_user}","gists_url":"https://api.github.com/users/hillct/gists{/gist_id}","starred_url":"https://api.github.com/users/hillct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hillct/subscriptions","organizations_url":"https://api.github.com/users/hillct/orgs","repos_url":"https://api.github.com/users/hillct/repos","events_url":"https://api.github.com/users/hillct/events{/privacy}","received_events_url":"https://api.github.com/users/hillct/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-23T16:22:07Z","updated_at":"2018-02-23T17:31:05Z","closed_at":null,"author_association":"NONE","body":"wNumb is quite limited, for example, when rendering time data in the form of hh:mm:ss which always fails, yielding 'false' rather than whatever string value is output. There are ham handed approaches of assembling a time string represented as a decimal hh.mm then passing mark: ':' to get the colon into the right place is silly, and yields unmaintainable code.\r\n\r\nAlternately, proper time handling could be introduced into wNumb() but this seems redundant and still unnecessarily limiting.\r\n\r\nThat is to say, this is a ridiculous way to format time into mm:ss:\r\n```\r\n        format: wNumb({\r\n          mark: ':',\r\n          encoder: function(inputSeconds){\r\n            var minutes=Math.floor(inputSeconds/60);\r\n            var seconds=inputSeconds%60;\r\n            var output=minutes+\".\"+seconds;\r\n            console.log(\"Calculated Pip Value: \"+output)\r\n            return(parseFloat(output));\r\n          }\r\n        })\r\n```"},"comment":{"url":"https://api.github.com/repos/leongersen/noUiSlider/issues/comments/368080328","html_url":"https://github.com/leongersen/noUiSlider/issues/864#issuecomment-368080328","issue_url":"https://api.github.com/repos/leongersen/noUiSlider/issues/864","id":368080328,"user":{"login":"leongersen","id":1206361,"avatar_url":"https://avatars1.githubusercontent.com/u/1206361?v=4","gravatar_id":"","url":"https://api.github.com/users/leongersen","html_url":"https://github.com/leongersen","followers_url":"https://api.github.com/users/leongersen/followers","following_url":"https://api.github.com/users/leongersen/following{/other_user}","gists_url":"https://api.github.com/users/leongersen/gists{/gist_id}","starred_url":"https://api.github.com/users/leongersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leongersen/subscriptions","organizations_url":"https://api.github.com/users/leongersen/orgs","repos_url":"https://api.github.com/users/leongersen/repos","events_url":"https://api.github.com/users/leongersen/events{/privacy}","received_events_url":"https://api.github.com/users/leongersen/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T17:31:05Z","updated_at":"2018-02-23T17:31:05Z","author_association":"OWNER","body":"noUiSlider does accept any object that has a `to` (numerical->formatted) and `from` (formatted->numerical) function."}}
{"actor":{"display_login":"leongersen"}}