{"action":"created","issue":{"url":"https://api.github.com/repos/leongersen/noUiSlider/issues/313","labels_url":"https://api.github.com/repos/leongersen/noUiSlider/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/leongersen/noUiSlider/issues/313/comments","events_url":"https://api.github.com/repos/leongersen/noUiSlider/issues/313/events","html_url":"https://github.com/leongersen/noUiSlider/issues/313","id":39782126,"number":313,"title":"Uncaught TypeError: undefined is not a function","user":{"login":"lifzgreat","id":5751658,"avatar_url":"https://avatars.githubusercontent.com/u/5751658?v=3","gravatar_id":"","url":"https://api.github.com/users/lifzgreat","html_url":"https://github.com/lifzgreat","followers_url":"https://api.github.com/users/lifzgreat/followers","following_url":"https://api.github.com/users/lifzgreat/following{/other_user}","gists_url":"https://api.github.com/users/lifzgreat/gists{/gist_id}","starred_url":"https://api.github.com/users/lifzgreat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lifzgreat/subscriptions","organizations_url":"https://api.github.com/users/lifzgreat/orgs","repos_url":"https://api.github.com/users/lifzgreat/repos","events_url":"https://api.github.com/users/lifzgreat/events{/privacy}","received_events_url":"https://api.github.com/users/lifzgreat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-08-08T00:36:26Z","updated_at":"2015-11-16T10:54:47Z","closed_at":"2014-08-10T16:51:36Z","body":"I'm getting `Uncaught TypeError: undefined is not a function` when I use the following code (notice the rebuild flag). If I don't set the rebuild flag to true, the error goes away. However, then on subsequent calls, I get the error that says it was already initialized. I'd like to use the rebuild flag so I can keep calling the code below each time the user clicks a link.\r\n\r\n```javascript\r\n$(\"#dateSlider\").noUiSlider({\r\n\tstart: [0, 100],\r\n\trange: {\r\n\t\tmin: [0],\r\n\t\tmax: [100]\r\n\t},\r\n\tstep: 1,\r\n\tbehaviour: \"extend-tap\"\r\n}, true);\r\n```\r\n\r\nThe error appears to be `d = this.destroy()` in the following function:\r\n```javascript\r\nfunction X(a) {\r\n\treturn this.each(function() {\r\n\t\tvar b = c(this).val(),\r\n\t\t\td = this.destroy(),\r\n\t\t\tf = c.extend({}, d, a);\r\n\t\tc(this).noUiSlider(f);\r\n\t\td.start === f.start && c(this).val(b)\r\n\t})\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/leongersen/noUiSlider/issues/comments/156991037","html_url":"https://github.com/leongersen/noUiSlider/issues/313#issuecomment-156991037","issue_url":"https://api.github.com/repos/leongersen/noUiSlider/issues/313","id":156991037,"user":{"login":"leongersen","id":1206361,"avatar_url":"https://avatars.githubusercontent.com/u/1206361?v=3","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":"2015-11-16T10:54:47Z","updated_at":"2015-11-16T10:54:47Z","body":"I'm simply not hosting the files in that fiddle anymore"}}