{"action":"created","comment":{"url":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/comments/57563556","id":57563556,"diff_hunk":"@@ -77,6 +86,24 @@ uploadcare.namespace 'widget.tabs', (ns) ->\n             @__setState('image', {file: false})\n             @element('image').attr('src', src)\n             @initImage(size)\n+            df.resolve()","path":"app/assets/javascripts/uploadcare/widget/tabs/preview-tab.coffee","position":55,"original_position":55,"commit_id":"4385425682edaffdd7e8e9763eac853d17b667e6","original_commit_id":"4385425682edaffdd7e8e9763eac853d17b667e6","user":{"login":"homm","id":128982,"avatar_url":"https://avatars.githubusercontent.com/u/128982?v=3","gravatar_id":"","url":"https://api.github.com/users/homm","html_url":"https://github.com/homm","followers_url":"https://api.github.com/users/homm/followers","following_url":"https://api.github.com/users/homm/following{/other_user}","gists_url":"https://api.github.com/users/homm/gists{/gist_id}","starred_url":"https://api.github.com/users/homm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homm/subscriptions","organizations_url":"https://api.github.com/users/homm/orgs","repos_url":"https://api.github.com/users/homm/repos","events_url":"https://api.github.com/users/homm/events{/privacy}","received_events_url":"https://api.github.com/users/homm/received_events","type":"User","site_admin":false},"body":"Should be right after `canvasToBlob` resolve (even if we don't want to show image preview).","created_at":"2016-03-28T11:23:02Z","updated_at":"2016-03-28T11:23:02Z","html_url":"https://github.com/uploadcare/uploadcare-widget/pull/327#discussion_r57563556","pull_request_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/327","_links":{"self":{"href":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/comments/57563556"},"html":{"href":"https://github.com/uploadcare/uploadcare-widget/pull/327#discussion_r57563556"},"pull_request":{"href":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/327"}}},"pull_request":{"url":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/327","id":64056331,"html_url":"https://github.com/uploadcare/uploadcare-widget/pull/327","diff_url":"https://github.com/uploadcare/uploadcare-widget/pull/327.diff","patch_url":"https://github.com/uploadcare/uploadcare-widget/pull/327.patch","issue_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/issues/327","number":327,"state":"open","locked":false,"title":"Added preview tab for video from camera","user":{"login":"Zmoki","id":948688,"avatar_url":"https://avatars.githubusercontent.com/u/948688?v=3","gravatar_id":"","url":"https://api.github.com/users/Zmoki","html_url":"https://github.com/Zmoki","followers_url":"https://api.github.com/users/Zmoki/followers","following_url":"https://api.github.com/users/Zmoki/following{/other_user}","gists_url":"https://api.github.com/users/Zmoki/gists{/gist_id}","starred_url":"https://api.github.com/users/Zmoki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zmoki/subscriptions","organizations_url":"https://api.github.com/users/Zmoki/orgs","repos_url":"https://api.github.com/users/Zmoki/repos","events_url":"https://api.github.com/users/Zmoki/events{/privacy}","received_events_url":"https://api.github.com/users/Zmoki/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-24T16:01:35Z","updated_at":"2016-03-28T11:23:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"614b8231863f8889e507b759e4f937bc8aa9c69d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/327/commits","review_comments_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/327/comments","review_comment_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/issues/327/comments","statuses_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/statuses/4385425682edaffdd7e8e9763eac853d17b667e6","head":{"label":"uploadcare:camera-video-preview","ref":"camera-video-preview","sha":"4385425682edaffdd7e8e9763eac853d17b667e6","user":{"login":"uploadcare","id":978311,"avatar_url":"https://avatars.githubusercontent.com/u/978311?v=3","gravatar_id":"","url":"https://api.github.com/users/uploadcare","html_url":"https://github.com/uploadcare","followers_url":"https://api.github.com/users/uploadcare/followers","following_url":"https://api.github.com/users/uploadcare/following{/other_user}","gists_url":"https://api.github.com/users/uploadcare/gists{/gist_id}","starred_url":"https://api.github.com/users/uploadcare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uploadcare/subscriptions","organizations_url":"https://api.github.com/users/uploadcare/orgs","repos_url":"https://api.github.com/users/uploadcare/repos","events_url":"https://api.github.com/users/uploadcare/events{/privacy}","received_events_url":"https://api.github.com/users/uploadcare/received_events","type":"Organization","site_admin":false},"repo":{"id":5705577,"name":"uploadcare-widget","full_name":"uploadcare/uploadcare-widget","owner":{"login":"uploadcare","id":978311,"avatar_url":"https://avatars.githubusercontent.com/u/978311?v=3","gravatar_id":"","url":"https://api.github.com/users/uploadcare","html_url":"https://github.com/uploadcare","followers_url":"https://api.github.com/users/uploadcare/followers","following_url":"https://api.github.com/users/uploadcare/following{/other_user}","gists_url":"https://api.github.com/users/uploadcare/gists{/gist_id}","starred_url":"https://api.github.com/users/uploadcare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uploadcare/subscriptions","organizations_url":"https://api.github.com/users/uploadcare/orgs","repos_url":"https://api.github.com/users/uploadcare/repos","events_url":"https://api.github.com/users/uploadcare/events{/privacy}","received_events_url":"https://api.github.com/users/uploadcare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uploadcare/uploadcare-widget","description":" The Uploadcare Widget","fork":false,"url":"https://api.github.com/repos/uploadcare/uploadcare-widget","forks_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/forks","keys_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/teams","hooks_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/hooks","issue_events_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/issues/events{/number}","events_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/events","assignees_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/assignees{/user}","branches_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/branches{/branch}","tags_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/tags","blobs_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/statuses/{sha}","languages_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/languages","stargazers_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/stargazers","contributors_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/contributors","subscribers_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/subscribers","subscription_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/subscription","commits_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/contents/{+path}","compare_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/merges","archive_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/downloads","issues_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/issues{/number}","pulls_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls{/number}","milestones_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/milestones{/number}","notifications_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/labels{/name}","releases_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/releases{/id}","deployments_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/deployments","created_at":"2012-09-06T17:07:04Z","updated_at":"2016-03-17T10:35:41Z","pushed_at":"2016-03-28T10:13:59Z","git_url":"git://github.com/uploadcare/uploadcare-widget.git","ssh_url":"git@github.com:uploadcare/uploadcare-widget.git","clone_url":"https://github.com/uploadcare/uploadcare-widget.git","svn_url":"https://github.com/uploadcare/uploadcare-widget","homepage":"https://uploadcare.com/","size":4194,"stargazers_count":50,"watchers_count":50,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":11,"forks":47,"open_issues":11,"watchers":50,"default_branch":"master"}},"base":{"label":"uploadcare:master","ref":"master","sha":"55a615aa11297e87fb460db2b3c4b0c0a423991c","user":{"login":"uploadcare","id":978311,"avatar_url":"https://avatars.githubusercontent.com/u/978311?v=3","gravatar_id":"","url":"https://api.github.com/users/uploadcare","html_url":"https://github.com/uploadcare","followers_url":"https://api.github.com/users/uploadcare/followers","following_url":"https://api.github.com/users/uploadcare/following{/other_user}","gists_url":"https://api.github.com/users/uploadcare/gists{/gist_id}","starred_url":"https://api.github.com/users/uploadcare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uploadcare/subscriptions","organizations_url":"https://api.github.com/users/uploadcare/orgs","repos_url":"https://api.github.com/users/uploadcare/repos","events_url":"https://api.github.com/users/uploadcare/events{/privacy}","received_events_url":"https://api.github.com/users/uploadcare/received_events","type":"Organization","site_admin":false},"repo":{"id":5705577,"name":"uploadcare-widget","full_name":"uploadcare/uploadcare-widget","owner":{"login":"uploadcare","id":978311,"avatar_url":"https://avatars.githubusercontent.com/u/978311?v=3","gravatar_id":"","url":"https://api.github.com/users/uploadcare","html_url":"https://github.com/uploadcare","followers_url":"https://api.github.com/users/uploadcare/followers","following_url":"https://api.github.com/users/uploadcare/following{/other_user}","gists_url":"https://api.github.com/users/uploadcare/gists{/gist_id}","starred_url":"https://api.github.com/users/uploadcare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uploadcare/subscriptions","organizations_url":"https://api.github.com/users/uploadcare/orgs","repos_url":"https://api.github.com/users/uploadcare/repos","events_url":"https://api.github.com/users/uploadcare/events{/privacy}","received_events_url":"https://api.github.com/users/uploadcare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uploadcare/uploadcare-widget","description":" The Uploadcare Widget","fork":false,"url":"https://api.github.com/repos/uploadcare/uploadcare-widget","forks_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/forks","keys_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/teams","hooks_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/hooks","issue_events_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/issues/events{/number}","events_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/events","assignees_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/assignees{/user}","branches_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/branches{/branch}","tags_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/tags","blobs_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/statuses/{sha}","languages_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/languages","stargazers_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/stargazers","contributors_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/contributors","subscribers_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/subscribers","subscription_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/subscription","commits_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/contents/{+path}","compare_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/merges","archive_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/downloads","issues_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/issues{/number}","pulls_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls{/number}","milestones_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/milestones{/number}","notifications_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/labels{/name}","releases_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/releases{/id}","deployments_url":"https://api.github.com/repos/uploadcare/uploadcare-widget/deployments","created_at":"2012-09-06T17:07:04Z","updated_at":"2016-03-17T10:35:41Z","pushed_at":"2016-03-28T10:13:59Z","git_url":"git://github.com/uploadcare/uploadcare-widget.git","ssh_url":"git@github.com:uploadcare/uploadcare-widget.git","clone_url":"https://github.com/uploadcare/uploadcare-widget.git","svn_url":"https://github.com/uploadcare/uploadcare-widget","homepage":"https://uploadcare.com/","size":4194,"stargazers_count":50,"watchers_count":50,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":11,"forks":47,"open_issues":11,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/327"},"html":{"href":"https://github.com/uploadcare/uploadcare-widget/pull/327"},"issue":{"href":"https://api.github.com/repos/uploadcare/uploadcare-widget/issues/327"},"comments":{"href":"https://api.github.com/repos/uploadcare/uploadcare-widget/issues/327/comments"},"review_comments":{"href":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/327/comments"},"review_comment":{"href":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uploadcare/uploadcare-widget/pulls/327/commits"},"statuses":{"href":"https://api.github.com/repos/uploadcare/uploadcare-widget/statuses/4385425682edaffdd7e8e9763eac853d17b667e6"}}}}