{"action":"opened","number":1026,"pull_request":{"url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/pulls/1026","id":58798039,"html_url":"https://github.com/DmitryBaranovskiy/raphael/pull/1026","diff_url":"https://github.com/DmitryBaranovskiy/raphael/pull/1026.diff","patch_url":"https://github.com/DmitryBaranovskiy/raphael/pull/1026.patch","issue_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/issues/1026","number":1026,"state":"open","locked":false,"title":"global variable define fix","user":{"login":"Appex","id":2619866,"avatar_url":"https://avatars.githubusercontent.com/u/2619866?v=3","gravatar_id":"","url":"https://api.github.com/users/Appex","html_url":"https://github.com/Appex","followers_url":"https://api.github.com/users/Appex/followers","following_url":"https://api.github.com/users/Appex/following{/other_user}","gists_url":"https://api.github.com/users/Appex/gists{/gist_id}","starred_url":"https://api.github.com/users/Appex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Appex/subscriptions","organizations_url":"https://api.github.com/users/Appex/orgs","repos_url":"https://api.github.com/users/Appex/repos","events_url":"https://api.github.com/users/Appex/events{/privacy}","received_events_url":"https://api.github.com/users/Appex/received_events","type":"User","site_admin":false},"body":"There's no way to declare global variable without requesting `require(\"raphael\")`, but there are possible cases when we have the `define.amd`, and we need to get the global variable without using amd.","created_at":"2016-02-09T19:42:22Z","updated_at":"2016-02-09T19:42:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/pulls/1026/commits","review_comments_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/pulls/1026/comments","review_comment_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/issues/1026/comments","statuses_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/statuses/5e0e6ad138522b5edbbe5de702141cfd1ce25472","head":{"label":"Appex:define-fix","ref":"define-fix","sha":"5e0e6ad138522b5edbbe5de702141cfd1ce25472","user":{"login":"Appex","id":2619866,"avatar_url":"https://avatars.githubusercontent.com/u/2619866?v=3","gravatar_id":"","url":"https://api.github.com/users/Appex","html_url":"https://github.com/Appex","followers_url":"https://api.github.com/users/Appex/followers","following_url":"https://api.github.com/users/Appex/following{/other_user}","gists_url":"https://api.github.com/users/Appex/gists{/gist_id}","starred_url":"https://api.github.com/users/Appex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Appex/subscriptions","organizations_url":"https://api.github.com/users/Appex/orgs","repos_url":"https://api.github.com/users/Appex/repos","events_url":"https://api.github.com/users/Appex/events{/privacy}","received_events_url":"https://api.github.com/users/Appex/received_events","type":"User","site_admin":false},"repo":{"id":51393443,"name":"raphael","full_name":"Appex/raphael","owner":{"login":"Appex","id":2619866,"avatar_url":"https://avatars.githubusercontent.com/u/2619866?v=3","gravatar_id":"","url":"https://api.github.com/users/Appex","html_url":"https://github.com/Appex","followers_url":"https://api.github.com/users/Appex/followers","following_url":"https://api.github.com/users/Appex/following{/other_user}","gists_url":"https://api.github.com/users/Appex/gists{/gist_id}","starred_url":"https://api.github.com/users/Appex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Appex/subscriptions","organizations_url":"https://api.github.com/users/Appex/orgs","repos_url":"https://api.github.com/users/Appex/repos","events_url":"https://api.github.com/users/Appex/events{/privacy}","received_events_url":"https://api.github.com/users/Appex/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Appex/raphael","description":"JavaScript Vector Library","fork":true,"url":"https://api.github.com/repos/Appex/raphael","forks_url":"https://api.github.com/repos/Appex/raphael/forks","keys_url":"https://api.github.com/repos/Appex/raphael/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Appex/raphael/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Appex/raphael/teams","hooks_url":"https://api.github.com/repos/Appex/raphael/hooks","issue_events_url":"https://api.github.com/repos/Appex/raphael/issues/events{/number}","events_url":"https://api.github.com/repos/Appex/raphael/events","assignees_url":"https://api.github.com/repos/Appex/raphael/assignees{/user}","branches_url":"https://api.github.com/repos/Appex/raphael/branches{/branch}","tags_url":"https://api.github.com/repos/Appex/raphael/tags","blobs_url":"https://api.github.com/repos/Appex/raphael/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Appex/raphael/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Appex/raphael/git/refs{/sha}","trees_url":"https://api.github.com/repos/Appex/raphael/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Appex/raphael/statuses/{sha}","languages_url":"https://api.github.com/repos/Appex/raphael/languages","stargazers_url":"https://api.github.com/repos/Appex/raphael/stargazers","contributors_url":"https://api.github.com/repos/Appex/raphael/contributors","subscribers_url":"https://api.github.com/repos/Appex/raphael/subscribers","subscription_url":"https://api.github.com/repos/Appex/raphael/subscription","commits_url":"https://api.github.com/repos/Appex/raphael/commits{/sha}","git_commits_url":"https://api.github.com/repos/Appex/raphael/git/commits{/sha}","comments_url":"https://api.github.com/repos/Appex/raphael/comments{/number}","issue_comment_url":"https://api.github.com/repos/Appex/raphael/issues/comments{/number}","contents_url":"https://api.github.com/repos/Appex/raphael/contents/{+path}","compare_url":"https://api.github.com/repos/Appex/raphael/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Appex/raphael/merges","archive_url":"https://api.github.com/repos/Appex/raphael/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Appex/raphael/downloads","issues_url":"https://api.github.com/repos/Appex/raphael/issues{/number}","pulls_url":"https://api.github.com/repos/Appex/raphael/pulls{/number}","milestones_url":"https://api.github.com/repos/Appex/raphael/milestones{/number}","notifications_url":"https://api.github.com/repos/Appex/raphael/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Appex/raphael/labels{/name}","releases_url":"https://api.github.com/repos/Appex/raphael/releases{/id}","deployments_url":"https://api.github.com/repos/Appex/raphael/deployments","created_at":"2016-02-09T19:33:14Z","updated_at":"2016-02-09T19:33:15Z","pushed_at":"2016-02-09T19:36:16Z","git_url":"git://github.com/Appex/raphael.git","ssh_url":"git@github.com:Appex/raphael.git","clone_url":"https://github.com/Appex/raphael.git","svn_url":"https://github.com/Appex/raphael","homepage":"http://raphaeljs.com/","size":4821,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DmitryBaranovskiy:master","ref":"master","sha":"f803b084f3774c895c3dfe88596b853158475bda","user":{"login":"DmitryBaranovskiy","id":22726,"avatar_url":"https://avatars.githubusercontent.com/u/22726?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitryBaranovskiy","html_url":"https://github.com/DmitryBaranovskiy","followers_url":"https://api.github.com/users/DmitryBaranovskiy/followers","following_url":"https://api.github.com/users/DmitryBaranovskiy/following{/other_user}","gists_url":"https://api.github.com/users/DmitryBaranovskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryBaranovskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryBaranovskiy/subscriptions","organizations_url":"https://api.github.com/users/DmitryBaranovskiy/orgs","repos_url":"https://api.github.com/users/DmitryBaranovskiy/repos","events_url":"https://api.github.com/users/DmitryBaranovskiy/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryBaranovskiy/received_events","type":"User","site_admin":false},"repo":{"id":48296,"name":"raphael","full_name":"DmitryBaranovskiy/raphael","owner":{"login":"DmitryBaranovskiy","id":22726,"avatar_url":"https://avatars.githubusercontent.com/u/22726?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitryBaranovskiy","html_url":"https://github.com/DmitryBaranovskiy","followers_url":"https://api.github.com/users/DmitryBaranovskiy/followers","following_url":"https://api.github.com/users/DmitryBaranovskiy/following{/other_user}","gists_url":"https://api.github.com/users/DmitryBaranovskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryBaranovskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryBaranovskiy/subscriptions","organizations_url":"https://api.github.com/users/DmitryBaranovskiy/orgs","repos_url":"https://api.github.com/users/DmitryBaranovskiy/repos","events_url":"https://api.github.com/users/DmitryBaranovskiy/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryBaranovskiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DmitryBaranovskiy/raphael","description":"JavaScript Vector Library","fork":false,"url":"https://api.github.com/repos/DmitryBaranovskiy/raphael","forks_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/forks","keys_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/teams","hooks_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/hooks","issue_events_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/issues/events{/number}","events_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/events","assignees_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/assignees{/user}","branches_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/branches{/branch}","tags_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/tags","blobs_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/git/refs{/sha}","trees_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/statuses/{sha}","languages_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/languages","stargazers_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/stargazers","contributors_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/contributors","subscribers_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/subscribers","subscription_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/subscription","commits_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/commits{/sha}","git_commits_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/git/commits{/sha}","comments_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/comments{/number}","issue_comment_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/issues/comments{/number}","contents_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/contents/{+path}","compare_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/merges","archive_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/downloads","issues_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/issues{/number}","pulls_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/pulls{/number}","milestones_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/milestones{/number}","notifications_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/labels{/name}","releases_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/releases{/id}","deployments_url":"https://api.github.com/repos/DmitryBaranovskiy/raphael/deployments","created_at":"2008-09-02T05:34:33Z","updated_at":"2016-02-09T17:20:37Z","pushed_at":"2016-02-09T03:20:49Z","git_url":"git://github.com/DmitryBaranovskiy/raphael.git","ssh_url":"git@github.com:DmitryBaranovskiy/raphael.git","clone_url":"https://github.com/DmitryBaranovskiy/raphael.git","svn_url":"https://github.com/DmitryBaranovskiy/raphael","homepage":"http://raphaeljs.com/","size":7125,"stargazers_count":7900,"watchers_count":7900,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1208,"mirror_url":null,"open_issues_count":337,"forks":1208,"open_issues":337,"watchers":7900,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DmitryBaranovskiy/raphael/pulls/1026"},"html":{"href":"https://github.com/DmitryBaranovskiy/raphael/pull/1026"},"issue":{"href":"https://api.github.com/repos/DmitryBaranovskiy/raphael/issues/1026"},"comments":{"href":"https://api.github.com/repos/DmitryBaranovskiy/raphael/issues/1026/comments"},"review_comments":{"href":"https://api.github.com/repos/DmitryBaranovskiy/raphael/pulls/1026/comments"},"review_comment":{"href":"https://api.github.com/repos/DmitryBaranovskiy/raphael/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DmitryBaranovskiy/raphael/pulls/1026/commits"},"statuses":{"href":"https://api.github.com/repos/DmitryBaranovskiy/raphael/statuses/5e0e6ad138522b5edbbe5de702141cfd1ce25472"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}