{"action":"created","issue":{"url":"https://api.github.com/repos/RubaXa/Sortable/issues/479","labels_url":"https://api.github.com/repos/RubaXa/Sortable/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/RubaXa/Sortable/issues/479/comments","events_url":"https://api.github.com/repos/RubaXa/Sortable/issues/479/events","html_url":"https://github.com/RubaXa/Sortable/issues/479","id":95206618,"number":479,"title":"Error on repeated Sortable.create call","user":{"login":"griii2","id":2312983,"avatar_url":"https://avatars.githubusercontent.com/u/2312983?v=3","gravatar_id":"","url":"https://api.github.com/users/griii2","html_url":"https://github.com/griii2","followers_url":"https://api.github.com/users/griii2/followers","following_url":"https://api.github.com/users/griii2/following{/other_user}","gists_url":"https://api.github.com/users/griii2/gists{/gist_id}","starred_url":"https://api.github.com/users/griii2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griii2/subscriptions","organizations_url":"https://api.github.com/users/griii2/orgs","repos_url":"https://api.github.com/users/griii2/repos","events_url":"https://api.github.com/users/griii2/events{/privacy}","received_events_url":"https://api.github.com/users/griii2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-15T14:16:28Z","updated_at":"2015-07-15T14:16:39Z","closed_at":null,"body":"First I fill my ul with li elements and make them sortable by calling createSortable();\r\n```\r\nfunction createSortable() {\r\n        sortableFrom = Sortable.create($('#nav-from-ul')[0], {\r\n            ghostClass: \"ghost\",\r\n            onStart: function () { ...\r\n            },\r\n            onEnd: function (evt:any) { ...\r\n            }\r\n        });\r\n}\r\n```\r\nEverything works as expected.\r\nWhen I don't need the list I get rid of it by calling first\r\n```\r\nsortableFrom.destroy();\r\n```\r\nthen \r\n```\r\n$('#nav-from-ul').empty();\r\n```\r\n\r\nThen when I need another sortable list I fill the ul with another li elements and call createSortable() I get this error: \r\n\r\n```\r\nUncaught TypeError: Cannot set property 'Sortable1436963789329' of null \r\nSortable.js 843 \r\n```\r\nLine 843 is el[expando] = null;\r\n\r\nHelp me, Obi-Wan Kenobi, you are my only hope.\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/RubaXa/Sortable/issues/comments/121630157","html_url":"https://github.com/RubaXa/Sortable/issues/479#issuecomment-121630157","issue_url":"https://api.github.com/repos/RubaXa/Sortable/issues/479","id":121630157,"user":{"login":"griii2","id":2312983,"avatar_url":"https://avatars.githubusercontent.com/u/2312983?v=3","gravatar_id":"","url":"https://api.github.com/users/griii2","html_url":"https://github.com/griii2","followers_url":"https://api.github.com/users/griii2/followers","following_url":"https://api.github.com/users/griii2/following{/other_user}","gists_url":"https://api.github.com/users/griii2/gists{/gist_id}","starred_url":"https://api.github.com/users/griii2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griii2/subscriptions","organizations_url":"https://api.github.com/users/griii2/orgs","repos_url":"https://api.github.com/users/griii2/repos","events_url":"https://api.github.com/users/griii2/events{/privacy}","received_events_url":"https://api.github.com/users/griii2/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T14:16:39Z","updated_at":"2015-07-15T14:16:39Z","body":"PS: version 1.2.0"}}