{"action":"created","issue":{"url":"https://api.github.com/repos/voidberg/html5sortable/issues/62","labels_url":"https://api.github.com/repos/voidberg/html5sortable/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/voidberg/html5sortable/issues/62/comments","events_url":"https://api.github.com/repos/voidberg/html5sortable/issues/62/events","html_url":"https://github.com/voidberg/html5sortable/pull/62","id":51352256,"number":62,"title":"Create 'clone' option to prevent object from being removed","user":{"login":"tlshaheen","id":385724,"avatar_url":"https://avatars.githubusercontent.com/u/385724?v=3","gravatar_id":"","url":"https://api.github.com/users/tlshaheen","html_url":"https://github.com/tlshaheen","followers_url":"https://api.github.com/users/tlshaheen/followers","following_url":"https://api.github.com/users/tlshaheen/following{/other_user}","gists_url":"https://api.github.com/users/tlshaheen/gists{/gist_id}","starred_url":"https://api.github.com/users/tlshaheen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlshaheen/subscriptions","organizations_url":"https://api.github.com/users/tlshaheen/orgs","repos_url":"https://api.github.com/users/tlshaheen/repos","events_url":"https://api.github.com/users/tlshaheen/events{/privacy}","received_events_url":"https://api.github.com/users/tlshaheen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/voidberg/html5sortable/labels/enhancement","name":"enhancement","color":"006b75"},{"url":"https://api.github.com/repos/voidberg/html5sortable/labels/refactor-needed","name":"refactor-needed","color":"0052cc"},{"url":"https://api.github.com/repos/voidberg/html5sortable/labels/testing-needed","name":"testing-needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-08T21:07:02Z","updated_at":"2015-05-13T08:25:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/voidberg/html5sortable/pulls/62","html_url":"https://github.com/voidberg/html5sortable/pull/62","diff_url":"https://github.com/voidberg/html5sortable/pull/62.diff","patch_url":"https://github.com/voidberg/html5sortable/pull/62.patch"},"body":"Setting the option 'clone' to true will **duplicate** (or clone) the object to the new location (in a different sortable list), rather than **move** then object to the new location. Defaults to false of course.\r\n\r\nSimply set `$('original-list').sortable({ clone: true });` on the original list, and `$('new-list').sortable({ clone: false, connectWith: 'original-list' });` on the target list.\r\n\r\nThis is useful when doing something like a WYSIWYG editor (https://github.com/farhadi/html5sortable/issues/100).\r\n\r\nYou'll see I'm carrying `originaldragging` and `dragging` both throughout the drag process. Some times you want to reference the actual object that isn't being moved, some times you want to reference the new clone/copy."},"comment":{"url":"https://api.github.com/repos/voidberg/html5sortable/issues/comments/101570206","html_url":"https://github.com/voidberg/html5sortable/pull/62#issuecomment-101570206","issue_url":"https://api.github.com/repos/voidberg/html5sortable/issues/62","id":101570206,"user":{"login":"lukasoppermann","id":813754,"avatar_url":"https://avatars.githubusercontent.com/u/813754?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasoppermann","html_url":"https://github.com/lukasoppermann","followers_url":"https://api.github.com/users/lukasoppermann/followers","following_url":"https://api.github.com/users/lukasoppermann/following{/other_user}","gists_url":"https://api.github.com/users/lukasoppermann/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasoppermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasoppermann/subscriptions","organizations_url":"https://api.github.com/users/lukasoppermann/orgs","repos_url":"https://api.github.com/users/lukasoppermann/repos","events_url":"https://api.github.com/users/lukasoppermann/events{/privacy}","received_events_url":"https://api.github.com/users/lukasoppermann/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T08:25:40Z","updated_at":"2015-05-13T08:25:40Z","body":"Hey, @tlshaheen can you please give me an example for when you would actually use something like this. I would like to understand the problem you are trying to solve, to come up with a good solution."}}