{"action":"created","comment":{"url":"https://api.github.com/repos/appcelerator/alloy/pulls/comments/30797801","id":30797801,"diff_hunk":"@@ -7,5 +7,10 @@ var Alloy = require('alloy'),\n \t_ = Alloy._,\n \tBackbone = Alloy.Backbone;\n \n+(function(exports) {","path":"Alloy/template/app.js","position":4,"original_position":4,"commit_id":"a8b5883a22e55ce21a82f77227beef934b6dd910","original_commit_id":"a8b5883a22e55ce21a82f77227beef934b6dd910","user":{"login":"FokkeZB","id":2699409,"avatar_url":"https://avatars.githubusercontent.com/u/2699409?v=3","gravatar_id":"","url":"https://api.github.com/users/FokkeZB","html_url":"https://github.com/FokkeZB","followers_url":"https://api.github.com/users/FokkeZB/followers","following_url":"https://api.github.com/users/FokkeZB/following{/other_user}","gists_url":"https://api.github.com/users/FokkeZB/gists{/gist_id}","starred_url":"https://api.github.com/users/FokkeZB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FokkeZB/subscriptions","organizations_url":"https://api.github.com/users/FokkeZB/orgs","repos_url":"https://api.github.com/users/FokkeZB/repos","events_url":"https://api.github.com/users/FokkeZB/events{/privacy}","received_events_url":"https://api.github.com/users/FokkeZB/received_events","type":"User","site_admin":false},"body":"Not sure if this should be named `exports`. We've seen confusion in Alloy controllers where `exports` really is the controller's `this` and not the CommonJS exports people take it for.\r\n\r\nMaybe `globals`","created_at":"2015-05-21T12:46:09Z","updated_at":"2015-05-21T12:46:09Z","html_url":"https://github.com/appcelerator/alloy/pull/675#discussion_r30797801","pull_request_url":"https://api.github.com/repos/appcelerator/alloy/pulls/675","_links":{"self":{"href":"https://api.github.com/repos/appcelerator/alloy/pulls/comments/30797801"},"html":{"href":"https://github.com/appcelerator/alloy/pull/675#discussion_r30797801"},"pull_request":{"href":"https://api.github.com/repos/appcelerator/alloy/pulls/675"}}},"pull_request":{"url":"https://api.github.com/repos/appcelerator/alloy/pulls/675","id":32249812,"html_url":"https://github.com/appcelerator/alloy/pull/675","diff_url":"https://github.com/appcelerator/alloy/pull/675.diff","patch_url":"https://github.com/appcelerator/alloy/pull/675.patch","issue_url":"https://api.github.com/repos/appcelerator/alloy/issues/675","number":675,"state":"open","locked":false,"title":"[ALOY-1259] Wrap code form `alloy.js` to protect global scope","user":{"login":"FokkeZB","id":2699409,"avatar_url":"https://avatars.githubusercontent.com/u/2699409?v=3","gravatar_id":"","url":"https://api.github.com/users/FokkeZB","html_url":"https://github.com/FokkeZB","followers_url":"https://api.github.com/users/FokkeZB/followers","following_url":"https://api.github.com/users/FokkeZB/following{/other_user}","gists_url":"https://api.github.com/users/FokkeZB/gists{/gist_id}","starred_url":"https://api.github.com/users/FokkeZB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FokkeZB/subscriptions","organizations_url":"https://api.github.com/users/FokkeZB/orgs","repos_url":"https://api.github.com/users/FokkeZB/repos","events_url":"https://api.github.com/users/FokkeZB/events{/privacy}","received_events_url":"https://api.github.com/users/FokkeZB/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-30T17:46:37Z","updated_at":"2015-05-21T12:46:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"552a8b09601d05d2028714605d19d7f3759e70d1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/appcelerator/alloy/pulls/675/commits","review_comments_url":"https://api.github.com/repos/appcelerator/alloy/pulls/675/comments","review_comment_url":"https://api.github.com/repos/appcelerator/alloy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appcelerator/alloy/issues/675/comments","statuses_url":"https://api.github.com/repos/appcelerator/alloy/statuses/a8b5883a22e55ce21a82f77227beef934b6dd910","head":{"label":"FokkeZB:patch-9","ref":"patch-9","sha":"a8b5883a22e55ce21a82f77227beef934b6dd910","user":{"login":"FokkeZB","id":2699409,"avatar_url":"https://avatars.githubusercontent.com/u/2699409?v=3","gravatar_id":"","url":"https://api.github.com/users/FokkeZB","html_url":"https://github.com/FokkeZB","followers_url":"https://api.github.com/users/FokkeZB/followers","following_url":"https://api.github.com/users/FokkeZB/following{/other_user}","gists_url":"https://api.github.com/users/FokkeZB/gists{/gist_id}","starred_url":"https://api.github.com/users/FokkeZB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FokkeZB/subscriptions","organizations_url":"https://api.github.com/users/FokkeZB/orgs","repos_url":"https://api.github.com/users/FokkeZB/repos","events_url":"https://api.github.com/users/FokkeZB/events{/privacy}","received_events_url":"https://api.github.com/users/FokkeZB/received_events","type":"User","site_admin":false},"repo":{"id":10399960,"name":"alloy","full_name":"FokkeZB/alloy","owner":{"login":"FokkeZB","id":2699409,"avatar_url":"https://avatars.githubusercontent.com/u/2699409?v=3","gravatar_id":"","url":"https://api.github.com/users/FokkeZB","html_url":"https://github.com/FokkeZB","followers_url":"https://api.github.com/users/FokkeZB/followers","following_url":"https://api.github.com/users/FokkeZB/following{/other_user}","gists_url":"https://api.github.com/users/FokkeZB/gists{/gist_id}","starred_url":"https://api.github.com/users/FokkeZB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FokkeZB/subscriptions","organizations_url":"https://api.github.com/users/FokkeZB/orgs","repos_url":"https://api.github.com/users/FokkeZB/repos","events_url":"https://api.github.com/users/FokkeZB/events{/privacy}","received_events_url":"https://api.github.com/users/FokkeZB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FokkeZB/alloy","description":"Alloy is an MVC framework for Titanium which is developed by Appcelerator.","fork":true,"url":"https://api.github.com/repos/FokkeZB/alloy","forks_url":"https://api.github.com/repos/FokkeZB/alloy/forks","keys_url":"https://api.github.com/repos/FokkeZB/alloy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FokkeZB/alloy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FokkeZB/alloy/teams","hooks_url":"https://api.github.com/repos/FokkeZB/alloy/hooks","issue_events_url":"https://api.github.com/repos/FokkeZB/alloy/issues/events{/number}","events_url":"https://api.github.com/repos/FokkeZB/alloy/events","assignees_url":"https://api.github.com/repos/FokkeZB/alloy/assignees{/user}","branches_url":"https://api.github.com/repos/FokkeZB/alloy/branches{/branch}","tags_url":"https://api.github.com/repos/FokkeZB/alloy/tags","blobs_url":"https://api.github.com/repos/FokkeZB/alloy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FokkeZB/alloy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FokkeZB/alloy/git/refs{/sha}","trees_url":"https://api.github.com/repos/FokkeZB/alloy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FokkeZB/alloy/statuses/{sha}","languages_url":"https://api.github.com/repos/FokkeZB/alloy/languages","stargazers_url":"https://api.github.com/repos/FokkeZB/alloy/stargazers","contributors_url":"https://api.github.com/repos/FokkeZB/alloy/contributors","subscribers_url":"https://api.github.com/repos/FokkeZB/alloy/subscribers","subscription_url":"https://api.github.com/repos/FokkeZB/alloy/subscription","commits_url":"https://api.github.com/repos/FokkeZB/alloy/commits{/sha}","git_commits_url":"https://api.github.com/repos/FokkeZB/alloy/git/commits{/sha}","comments_url":"https://api.github.com/repos/FokkeZB/alloy/comments{/number}","issue_comment_url":"https://api.github.com/repos/FokkeZB/alloy/issues/comments{/number}","contents_url":"https://api.github.com/repos/FokkeZB/alloy/contents/{+path}","compare_url":"https://api.github.com/repos/FokkeZB/alloy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FokkeZB/alloy/merges","archive_url":"https://api.github.com/repos/FokkeZB/alloy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FokkeZB/alloy/downloads","issues_url":"https://api.github.com/repos/FokkeZB/alloy/issues{/number}","pulls_url":"https://api.github.com/repos/FokkeZB/alloy/pulls{/number}","milestones_url":"https://api.github.com/repos/FokkeZB/alloy/milestones{/number}","notifications_url":"https://api.github.com/repos/FokkeZB/alloy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FokkeZB/alloy/labels{/name}","releases_url":"https://api.github.com/repos/FokkeZB/alloy/releases{/id}","created_at":"2013-05-31T07:27:01Z","updated_at":"2014-12-18T08:44:52Z","pushed_at":"2015-05-13T13:32:22Z","git_url":"git://github.com/FokkeZB/alloy.git","ssh_url":"git@github.com:FokkeZB/alloy.git","clone_url":"https://github.com/FokkeZB/alloy.git","svn_url":"https://github.com/FokkeZB/alloy","homepage":"","size":35754,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"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":"appcelerator:master","ref":"master","sha":"a39ba2c3c9d9be057bbe98a1b19042e309510257","user":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"repo":{"id":4611433,"name":"alloy","full_name":"appcelerator/alloy","owner":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appcelerator/alloy","description":"Alloy is an MVC framework for the Appcelerator Titanium SDK","fork":false,"url":"https://api.github.com/repos/appcelerator/alloy","forks_url":"https://api.github.com/repos/appcelerator/alloy/forks","keys_url":"https://api.github.com/repos/appcelerator/alloy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appcelerator/alloy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appcelerator/alloy/teams","hooks_url":"https://api.github.com/repos/appcelerator/alloy/hooks","issue_events_url":"https://api.github.com/repos/appcelerator/alloy/issues/events{/number}","events_url":"https://api.github.com/repos/appcelerator/alloy/events","assignees_url":"https://api.github.com/repos/appcelerator/alloy/assignees{/user}","branches_url":"https://api.github.com/repos/appcelerator/alloy/branches{/branch}","tags_url":"https://api.github.com/repos/appcelerator/alloy/tags","blobs_url":"https://api.github.com/repos/appcelerator/alloy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appcelerator/alloy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appcelerator/alloy/git/refs{/sha}","trees_url":"https://api.github.com/repos/appcelerator/alloy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appcelerator/alloy/statuses/{sha}","languages_url":"https://api.github.com/repos/appcelerator/alloy/languages","stargazers_url":"https://api.github.com/repos/appcelerator/alloy/stargazers","contributors_url":"https://api.github.com/repos/appcelerator/alloy/contributors","subscribers_url":"https://api.github.com/repos/appcelerator/alloy/subscribers","subscription_url":"https://api.github.com/repos/appcelerator/alloy/subscription","commits_url":"https://api.github.com/repos/appcelerator/alloy/commits{/sha}","git_commits_url":"https://api.github.com/repos/appcelerator/alloy/git/commits{/sha}","comments_url":"https://api.github.com/repos/appcelerator/alloy/comments{/number}","issue_comment_url":"https://api.github.com/repos/appcelerator/alloy/issues/comments{/number}","contents_url":"https://api.github.com/repos/appcelerator/alloy/contents/{+path}","compare_url":"https://api.github.com/repos/appcelerator/alloy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appcelerator/alloy/merges","archive_url":"https://api.github.com/repos/appcelerator/alloy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appcelerator/alloy/downloads","issues_url":"https://api.github.com/repos/appcelerator/alloy/issues{/number}","pulls_url":"https://api.github.com/repos/appcelerator/alloy/pulls{/number}","milestones_url":"https://api.github.com/repos/appcelerator/alloy/milestones{/number}","notifications_url":"https://api.github.com/repos/appcelerator/alloy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appcelerator/alloy/labels{/name}","releases_url":"https://api.github.com/repos/appcelerator/alloy/releases{/id}","created_at":"2012-06-09T23:45:27Z","updated_at":"2015-05-20T01:35:26Z","pushed_at":"2015-05-21T06:55:06Z","git_url":"git://github.com/appcelerator/alloy.git","ssh_url":"git@github.com:appcelerator/alloy.git","clone_url":"https://github.com/appcelerator/alloy.git","svn_url":"https://github.com/appcelerator/alloy","homepage":"","size":91077,"stargazers_count":877,"watchers_count":877,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":973,"mirror_url":null,"open_issues_count":13,"forks":973,"open_issues":13,"watchers":877,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appcelerator/alloy/pulls/675"},"html":{"href":"https://github.com/appcelerator/alloy/pull/675"},"issue":{"href":"https://api.github.com/repos/appcelerator/alloy/issues/675"},"comments":{"href":"https://api.github.com/repos/appcelerator/alloy/issues/675/comments"},"review_comments":{"href":"https://api.github.com/repos/appcelerator/alloy/pulls/675/comments"},"review_comment":{"href":"https://api.github.com/repos/appcelerator/alloy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appcelerator/alloy/pulls/675/commits"},"statuses":{"href":"https://api.github.com/repos/appcelerator/alloy/statuses/a8b5883a22e55ce21a82f77227beef934b6dd910"}}}}