{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/541","labels_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/541/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/541/comments","events_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/541/events","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/pull/541","id":99399490,"number":541,"title":"call the dragStart callback after setting up the variables","user":{"login":"kuldeepaggarwal","id":1930730,"avatar_url":"https://avatars.githubusercontent.com/u/1930730?v=3","gravatar_id":"","url":"https://api.github.com/users/kuldeepaggarwal","html_url":"https://github.com/kuldeepaggarwal","followers_url":"https://api.github.com/users/kuldeepaggarwal/followers","following_url":"https://api.github.com/users/kuldeepaggarwal/following{/other_user}","gists_url":"https://api.github.com/users/kuldeepaggarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/kuldeepaggarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuldeepaggarwal/subscriptions","organizations_url":"https://api.github.com/users/kuldeepaggarwal/orgs","repos_url":"https://api.github.com/users/kuldeepaggarwal/repos","events_url":"https://api.github.com/users/kuldeepaggarwal/events{/privacy}","received_events_url":"https://api.github.com/users/kuldeepaggarwal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-06T09:50:10Z","updated_at":"2015-08-07T18:54:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/pulls/541","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/pull/541","diff_url":"https://github.com/angular-ui-tree/angular-ui-tree/pull/541.diff","patch_url":"https://github.com/angular-ui-tree/angular-ui-tree/pull/541.patch"},"body":"# before\r\n`elements and pos variable was defining after the callback has been called.`\r\n\r\n# After\r\n\r\n1. first setting the variables.\r\n2. Call the dragStart callback.\r\n"},"comment":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/comments/128794805","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/pull/541#issuecomment-128794805","issue_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/541","id":128794805,"user":{"login":"Voles","id":1725563,"avatar_url":"https://avatars.githubusercontent.com/u/1725563?v=3","gravatar_id":"","url":"https://api.github.com/users/Voles","html_url":"https://github.com/Voles","followers_url":"https://api.github.com/users/Voles/followers","following_url":"https://api.github.com/users/Voles/following{/other_user}","gists_url":"https://api.github.com/users/Voles/gists{/gist_id}","starred_url":"https://api.github.com/users/Voles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voles/subscriptions","organizations_url":"https://api.github.com/users/Voles/orgs","repos_url":"https://api.github.com/users/Voles/repos","events_url":"https://api.github.com/users/Voles/events{/privacy}","received_events_url":"https://api.github.com/users/Voles/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T18:54:53Z","updated_at":"2015-08-07T18:54:53Z","body":"Thanks for this, @kuldeepaggarwal! Can you explain why you need the `dragStart` callback to be called after the element has been created? Thanks."}}