{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/fathur/Nestable/pulls/1","id":63218266,"html_url":"https://github.com/fathur/Nestable/pull/1","diff_url":"https://github.com/fathur/Nestable/pull/1.diff","patch_url":"https://github.com/fathur/Nestable/pull/1.patch","issue_url":"https://api.github.com/repos/fathur/Nestable/issues/1","number":1,"state":"closed","locked":false,"title":"Unable to re-init nestable method ","user":{"login":"ajaykr089","id":2228177,"avatar_url":"https://avatars.githubusercontent.com/u/2228177?v=3","gravatar_id":"","url":"https://api.github.com/users/ajaykr089","html_url":"https://github.com/ajaykr089","followers_url":"https://api.github.com/users/ajaykr089/followers","following_url":"https://api.github.com/users/ajaykr089/following{/other_user}","gists_url":"https://api.github.com/users/ajaykr089/gists{/gist_id}","starred_url":"https://api.github.com/users/ajaykr089/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajaykr089/subscriptions","organizations_url":"https://api.github.com/users/ajaykr089/orgs","repos_url":"https://api.github.com/users/ajaykr089/repos","events_url":"https://api.github.com/users/ajaykr089/events{/privacy}","received_events_url":"https://api.github.com/users/ajaykr089/received_events","type":"User","site_admin":false},"body":"Hello Guys,\r\n\r\nI have starting to use nestable and having some issue, to re-init  method, I am deleting element and trying to post again using ajax but \"serialize\" method not updating json, Its returning old json(before delete), but i want it to return new json after deleting the element, Please find the below code and screenshot.\r\n\r\n`\t$(\".save_menu\").click(function(){\r\n        $('#nestable_'+active_menu).nestable({}).on(\"destroy-nestable\");\r\n\t  var menu_data=$('#nestable_'+active_menu).nestable(\"serialize\");\r\n});` \r\n![screenshot_55](https://cloud.githubusercontent.com/assets/2228177/13846534/c9dce028-ec6d-11e5-850d-b0ae30d084a5.png)\r\n","created_at":"2016-03-17T12:56:56Z","updated_at":"2016-03-23T00:44:07Z","closed_at":"2016-03-23T00:44:07Z","merged_at":"2016-03-23T00:44:07Z","merge_commit_sha":"720de96f557f07c8ec213a4eb37f9a0e9a09fd0b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fathur/Nestable/pulls/1/commits","review_comments_url":"https://api.github.com/repos/fathur/Nestable/pulls/1/comments","review_comment_url":"https://api.github.com/repos/fathur/Nestable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fathur/Nestable/issues/1/comments","statuses_url":"https://api.github.com/repos/fathur/Nestable/statuses/1be46cd649bf50222f5d38f8350eb75b40d912fd","head":{"label":"ivanbarlog:master","ref":"master","sha":"1be46cd649bf50222f5d38f8350eb75b40d912fd","user":{"login":"ivanbarlog","id":2583610,"avatar_url":"https://avatars.githubusercontent.com/u/2583610?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanbarlog","html_url":"https://github.com/ivanbarlog","followers_url":"https://api.github.com/users/ivanbarlog/followers","following_url":"https://api.github.com/users/ivanbarlog/following{/other_user}","gists_url":"https://api.github.com/users/ivanbarlog/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanbarlog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanbarlog/subscriptions","organizations_url":"https://api.github.com/users/ivanbarlog/orgs","repos_url":"https://api.github.com/users/ivanbarlog/repos","events_url":"https://api.github.com/users/ivanbarlog/events{/privacy}","received_events_url":"https://api.github.com/users/ivanbarlog/received_events","type":"User","site_admin":false},"repo":{"id":45422683,"name":"Nestable","full_name":"ivanbarlog/Nestable","owner":{"login":"ivanbarlog","id":2583610,"avatar_url":"https://avatars.githubusercontent.com/u/2583610?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanbarlog","html_url":"https://github.com/ivanbarlog","followers_url":"https://api.github.com/users/ivanbarlog/followers","following_url":"https://api.github.com/users/ivanbarlog/following{/other_user}","gists_url":"https://api.github.com/users/ivanbarlog/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanbarlog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanbarlog/subscriptions","organizations_url":"https://api.github.com/users/ivanbarlog/orgs","repos_url":"https://api.github.com/users/ivanbarlog/repos","events_url":"https://api.github.com/users/ivanbarlog/events{/privacy}","received_events_url":"https://api.github.com/users/ivanbarlog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ivanbarlog/Nestable","description":"New pickup of Nestable!","fork":false,"url":"https://api.github.com/repos/ivanbarlog/Nestable","forks_url":"https://api.github.com/repos/ivanbarlog/Nestable/forks","keys_url":"https://api.github.com/repos/ivanbarlog/Nestable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ivanbarlog/Nestable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ivanbarlog/Nestable/teams","hooks_url":"https://api.github.com/repos/ivanbarlog/Nestable/hooks","issue_events_url":"https://api.github.com/repos/ivanbarlog/Nestable/issues/events{/number}","events_url":"https://api.github.com/repos/ivanbarlog/Nestable/events","assignees_url":"https://api.github.com/repos/ivanbarlog/Nestable/assignees{/user}","branches_url":"https://api.github.com/repos/ivanbarlog/Nestable/branches{/branch}","tags_url":"https://api.github.com/repos/ivanbarlog/Nestable/tags","blobs_url":"https://api.github.com/repos/ivanbarlog/Nestable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ivanbarlog/Nestable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ivanbarlog/Nestable/git/refs{/sha}","trees_url":"https://api.github.com/repos/ivanbarlog/Nestable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ivanbarlog/Nestable/statuses/{sha}","languages_url":"https://api.github.com/repos/ivanbarlog/Nestable/languages","stargazers_url":"https://api.github.com/repos/ivanbarlog/Nestable/stargazers","contributors_url":"https://api.github.com/repos/ivanbarlog/Nestable/contributors","subscribers_url":"https://api.github.com/repos/ivanbarlog/Nestable/subscribers","subscription_url":"https://api.github.com/repos/ivanbarlog/Nestable/subscription","commits_url":"https://api.github.com/repos/ivanbarlog/Nestable/commits{/sha}","git_commits_url":"https://api.github.com/repos/ivanbarlog/Nestable/git/commits{/sha}","comments_url":"https://api.github.com/repos/ivanbarlog/Nestable/comments{/number}","issue_comment_url":"https://api.github.com/repos/ivanbarlog/Nestable/issues/comments{/number}","contents_url":"https://api.github.com/repos/ivanbarlog/Nestable/contents/{+path}","compare_url":"https://api.github.com/repos/ivanbarlog/Nestable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ivanbarlog/Nestable/merges","archive_url":"https://api.github.com/repos/ivanbarlog/Nestable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ivanbarlog/Nestable/downloads","issues_url":"https://api.github.com/repos/ivanbarlog/Nestable/issues{/number}","pulls_url":"https://api.github.com/repos/ivanbarlog/Nestable/pulls{/number}","milestones_url":"https://api.github.com/repos/ivanbarlog/Nestable/milestones{/number}","notifications_url":"https://api.github.com/repos/ivanbarlog/Nestable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ivanbarlog/Nestable/labels{/name}","releases_url":"https://api.github.com/repos/ivanbarlog/Nestable/releases{/id}","deployments_url":"https://api.github.com/repos/ivanbarlog/Nestable/deployments","created_at":"2015-11-02T21:18:01Z","updated_at":"2016-03-01T23:27:33Z","pushed_at":"2016-03-10T08:48:29Z","git_url":"git://github.com/ivanbarlog/Nestable.git","ssh_url":"git@github.com:ivanbarlog/Nestable.git","clone_url":"https://github.com/ivanbarlog/Nestable.git","svn_url":"https://github.com/ivanbarlog/Nestable","homepage":null,"size":143,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":0,"forks":4,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fathur:master","ref":"master","sha":"285ed6f3c369b897ae6c4d09cf1176f85a2689b4","user":{"login":"fathur","id":846678,"avatar_url":"https://avatars.githubusercontent.com/u/846678?v=3","gravatar_id":"","url":"https://api.github.com/users/fathur","html_url":"https://github.com/fathur","followers_url":"https://api.github.com/users/fathur/followers","following_url":"https://api.github.com/users/fathur/following{/other_user}","gists_url":"https://api.github.com/users/fathur/gists{/gist_id}","starred_url":"https://api.github.com/users/fathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fathur/subscriptions","organizations_url":"https://api.github.com/users/fathur/orgs","repos_url":"https://api.github.com/users/fathur/repos","events_url":"https://api.github.com/users/fathur/events{/privacy}","received_events_url":"https://api.github.com/users/fathur/received_events","type":"User","site_admin":false},"repo":{"id":46250809,"name":"Nestable","full_name":"fathur/Nestable","owner":{"login":"fathur","id":846678,"avatar_url":"https://avatars.githubusercontent.com/u/846678?v=3","gravatar_id":"","url":"https://api.github.com/users/fathur","html_url":"https://github.com/fathur","followers_url":"https://api.github.com/users/fathur/followers","following_url":"https://api.github.com/users/fathur/following{/other_user}","gists_url":"https://api.github.com/users/fathur/gists{/gist_id}","starred_url":"https://api.github.com/users/fathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fathur/subscriptions","organizations_url":"https://api.github.com/users/fathur/orgs","repos_url":"https://api.github.com/users/fathur/repos","events_url":"https://api.github.com/users/fathur/events{/privacy}","received_events_url":"https://api.github.com/users/fathur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fathur/Nestable","description":"New pickup of Nestable!","fork":true,"url":"https://api.github.com/repos/fathur/Nestable","forks_url":"https://api.github.com/repos/fathur/Nestable/forks","keys_url":"https://api.github.com/repos/fathur/Nestable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fathur/Nestable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fathur/Nestable/teams","hooks_url":"https://api.github.com/repos/fathur/Nestable/hooks","issue_events_url":"https://api.github.com/repos/fathur/Nestable/issues/events{/number}","events_url":"https://api.github.com/repos/fathur/Nestable/events","assignees_url":"https://api.github.com/repos/fathur/Nestable/assignees{/user}","branches_url":"https://api.github.com/repos/fathur/Nestable/branches{/branch}","tags_url":"https://api.github.com/repos/fathur/Nestable/tags","blobs_url":"https://api.github.com/repos/fathur/Nestable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fathur/Nestable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fathur/Nestable/git/refs{/sha}","trees_url":"https://api.github.com/repos/fathur/Nestable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fathur/Nestable/statuses/{sha}","languages_url":"https://api.github.com/repos/fathur/Nestable/languages","stargazers_url":"https://api.github.com/repos/fathur/Nestable/stargazers","contributors_url":"https://api.github.com/repos/fathur/Nestable/contributors","subscribers_url":"https://api.github.com/repos/fathur/Nestable/subscribers","subscription_url":"https://api.github.com/repos/fathur/Nestable/subscription","commits_url":"https://api.github.com/repos/fathur/Nestable/commits{/sha}","git_commits_url":"https://api.github.com/repos/fathur/Nestable/git/commits{/sha}","comments_url":"https://api.github.com/repos/fathur/Nestable/comments{/number}","issue_comment_url":"https://api.github.com/repos/fathur/Nestable/issues/comments{/number}","contents_url":"https://api.github.com/repos/fathur/Nestable/contents/{+path}","compare_url":"https://api.github.com/repos/fathur/Nestable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fathur/Nestable/merges","archive_url":"https://api.github.com/repos/fathur/Nestable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fathur/Nestable/downloads","issues_url":"https://api.github.com/repos/fathur/Nestable/issues{/number}","pulls_url":"https://api.github.com/repos/fathur/Nestable/pulls{/number}","milestones_url":"https://api.github.com/repos/fathur/Nestable/milestones{/number}","notifications_url":"https://api.github.com/repos/fathur/Nestable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fathur/Nestable/labels{/name}","releases_url":"https://api.github.com/repos/fathur/Nestable/releases{/id}","deployments_url":"https://api.github.com/repos/fathur/Nestable/deployments","created_at":"2015-11-16T03:53:12Z","updated_at":"2016-01-25T19:29:18Z","pushed_at":"2016-03-23T00:44:07Z","git_url":"git://github.com/fathur/Nestable.git","ssh_url":"git@github.com:fathur/Nestable.git","clone_url":"https://github.com/fathur/Nestable.git","svn_url":"https://github.com/fathur/Nestable","homepage":null,"size":479,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fathur/Nestable/pulls/1"},"html":{"href":"https://github.com/fathur/Nestable/pull/1"},"issue":{"href":"https://api.github.com/repos/fathur/Nestable/issues/1"},"comments":{"href":"https://api.github.com/repos/fathur/Nestable/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/fathur/Nestable/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/fathur/Nestable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fathur/Nestable/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/fathur/Nestable/statuses/1be46cd649bf50222f5d38f8350eb75b40d912fd"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"fathur","id":846678,"avatar_url":"https://avatars.githubusercontent.com/u/846678?v=3","gravatar_id":"","url":"https://api.github.com/users/fathur","html_url":"https://github.com/fathur","followers_url":"https://api.github.com/users/fathur/followers","following_url":"https://api.github.com/users/fathur/following{/other_user}","gists_url":"https://api.github.com/users/fathur/gists{/gist_id}","starred_url":"https://api.github.com/users/fathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fathur/subscriptions","organizations_url":"https://api.github.com/users/fathur/orgs","repos_url":"https://api.github.com/users/fathur/repos","events_url":"https://api.github.com/users/fathur/events{/privacy}","received_events_url":"https://api.github.com/users/fathur/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":8,"additions":41,"deletions":4,"changed_files":4}}