{"action":"closed","number":464,"pull_request":{"url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/464","id":56920940,"html_url":"https://github.com/reddit/reddit-mobile/pull/464","diff_url":"https://github.com/reddit/reddit-mobile/pull/464.diff","patch_url":"https://github.com/reddit/reddit-mobile/pull/464.patch","issue_url":"https://api.github.com/repos/reddit/reddit-mobile/issues/464","number":464,"state":"closed","locked":false,"title":"GTM add null check in trigger and set methods","user":{"login":"curioussavage","id":7064600,"avatar_url":"https://avatars.githubusercontent.com/u/7064600?v=3","gravatar_id":"","url":"https://api.github.com/users/curioussavage","html_url":"https://github.com/curioussavage","followers_url":"https://api.github.com/users/curioussavage/followers","following_url":"https://api.github.com/users/curioussavage/following{/other_user}","gists_url":"https://api.github.com/users/curioussavage/gists{/gist_id}","starred_url":"https://api.github.com/users/curioussavage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curioussavage/subscriptions","organizations_url":"https://api.github.com/users/curioussavage/orgs","repos_url":"https://api.github.com/users/curioussavage/repos","events_url":"https://api.github.com/users/curioussavage/events{/privacy}","received_events_url":"https://api.github.com/users/curioussavage/received_events","type":"User","site_admin":false},"body":"This was causing an error locally when the config variables\r\naren't set and there is no 'jail' element. The two methods\r\ntry to access a property on the element.\r\n\r\nalso fully es6ified it. and moved `getElementbyId` into the functions so It doesn't run when the file is loaded. \r\n\r\n@dwick @schwers ","created_at":"2016-01-22T18:02:54Z","updated_at":"2016-01-22T20:30:30Z","closed_at":"2016-01-22T20:30:30Z","merged_at":null,"merge_commit_sha":"fcc97a86c5d00c062d828dabdaa3dbe020374a47","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/464/commits","review_comments_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/464/comments","review_comment_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reddit/reddit-mobile/issues/464/comments","statuses_url":"https://api.github.com/repos/reddit/reddit-mobile/statuses/88e1e4d4b2d8e2f9a2e25e4c7ae0dbbdbba8eefb","head":{"label":"curioussavage:gtm-local-fix","ref":"gtm-local-fix","sha":"88e1e4d4b2d8e2f9a2e25e4c7ae0dbbdbba8eefb","user":{"login":"curioussavage","id":7064600,"avatar_url":"https://avatars.githubusercontent.com/u/7064600?v=3","gravatar_id":"","url":"https://api.github.com/users/curioussavage","html_url":"https://github.com/curioussavage","followers_url":"https://api.github.com/users/curioussavage/followers","following_url":"https://api.github.com/users/curioussavage/following{/other_user}","gists_url":"https://api.github.com/users/curioussavage/gists{/gist_id}","starred_url":"https://api.github.com/users/curioussavage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curioussavage/subscriptions","organizations_url":"https://api.github.com/users/curioussavage/orgs","repos_url":"https://api.github.com/users/curioussavage/repos","events_url":"https://api.github.com/users/curioussavage/events{/privacy}","received_events_url":"https://api.github.com/users/curioussavage/received_events","type":"User","site_admin":false},"repo":{"id":35171597,"name":"reddit-mobile","full_name":"curioussavage/reddit-mobile","owner":{"login":"curioussavage","id":7064600,"avatar_url":"https://avatars.githubusercontent.com/u/7064600?v=3","gravatar_id":"","url":"https://api.github.com/users/curioussavage","html_url":"https://github.com/curioussavage","followers_url":"https://api.github.com/users/curioussavage/followers","following_url":"https://api.github.com/users/curioussavage/following{/other_user}","gists_url":"https://api.github.com/users/curioussavage/gists{/gist_id}","starred_url":"https://api.github.com/users/curioussavage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curioussavage/subscriptions","organizations_url":"https://api.github.com/users/curioussavage/orgs","repos_url":"https://api.github.com/users/curioussavage/repos","events_url":"https://api.github.com/users/curioussavage/events{/privacy}","received_events_url":"https://api.github.com/users/curioussavage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/curioussavage/reddit-mobile","description":"","fork":true,"url":"https://api.github.com/repos/curioussavage/reddit-mobile","forks_url":"https://api.github.com/repos/curioussavage/reddit-mobile/forks","keys_url":"https://api.github.com/repos/curioussavage/reddit-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/curioussavage/reddit-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/curioussavage/reddit-mobile/teams","hooks_url":"https://api.github.com/repos/curioussavage/reddit-mobile/hooks","issue_events_url":"https://api.github.com/repos/curioussavage/reddit-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/curioussavage/reddit-mobile/events","assignees_url":"https://api.github.com/repos/curioussavage/reddit-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/curioussavage/reddit-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/curioussavage/reddit-mobile/tags","blobs_url":"https://api.github.com/repos/curioussavage/reddit-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/curioussavage/reddit-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/curioussavage/reddit-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/curioussavage/reddit-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/curioussavage/reddit-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/curioussavage/reddit-mobile/languages","stargazers_url":"https://api.github.com/repos/curioussavage/reddit-mobile/stargazers","contributors_url":"https://api.github.com/repos/curioussavage/reddit-mobile/contributors","subscribers_url":"https://api.github.com/repos/curioussavage/reddit-mobile/subscribers","subscription_url":"https://api.github.com/repos/curioussavage/reddit-mobile/subscription","commits_url":"https://api.github.com/repos/curioussavage/reddit-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/curioussavage/reddit-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/curioussavage/reddit-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/curioussavage/reddit-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/curioussavage/reddit-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/curioussavage/reddit-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/curioussavage/reddit-mobile/merges","archive_url":"https://api.github.com/repos/curioussavage/reddit-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/curioussavage/reddit-mobile/downloads","issues_url":"https://api.github.com/repos/curioussavage/reddit-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/curioussavage/reddit-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/curioussavage/reddit-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/curioussavage/reddit-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/curioussavage/reddit-mobile/labels{/name}","releases_url":"https://api.github.com/repos/curioussavage/reddit-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/curioussavage/reddit-mobile/deployments","created_at":"2015-05-06T16:55:50Z","updated_at":"2016-01-21T19:27:43Z","pushed_at":"2016-01-22T20:24:40Z","git_url":"git://github.com/curioussavage/reddit-mobile.git","ssh_url":"git@github.com:curioussavage/reddit-mobile.git","clone_url":"https://github.com/curioussavage/reddit-mobile.git","svn_url":"https://github.com/curioussavage/reddit-mobile","homepage":null,"size":2877,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"reddit:master","ref":"master","sha":"3b4d520d37fa7a471ededb162cf80c7ef8dcfd40","user":{"login":"reddit","id":14248,"avatar_url":"https://avatars.githubusercontent.com/u/14248?v=3","gravatar_id":"","url":"https://api.github.com/users/reddit","html_url":"https://github.com/reddit","followers_url":"https://api.github.com/users/reddit/followers","following_url":"https://api.github.com/users/reddit/following{/other_user}","gists_url":"https://api.github.com/users/reddit/gists{/gist_id}","starred_url":"https://api.github.com/users/reddit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reddit/subscriptions","organizations_url":"https://api.github.com/users/reddit/orgs","repos_url":"https://api.github.com/users/reddit/repos","events_url":"https://api.github.com/users/reddit/events{/privacy}","received_events_url":"https://api.github.com/users/reddit/received_events","type":"Organization","site_admin":false},"repo":{"id":23087554,"name":"reddit-mobile","full_name":"reddit/reddit-mobile","owner":{"login":"reddit","id":14248,"avatar_url":"https://avatars.githubusercontent.com/u/14248?v=3","gravatar_id":"","url":"https://api.github.com/users/reddit","html_url":"https://github.com/reddit","followers_url":"https://api.github.com/users/reddit/followers","following_url":"https://api.github.com/users/reddit/following{/other_user}","gists_url":"https://api.github.com/users/reddit/gists{/gist_id}","starred_url":"https://api.github.com/users/reddit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reddit/subscriptions","organizations_url":"https://api.github.com/users/reddit/orgs","repos_url":"https://api.github.com/users/reddit/repos","events_url":"https://api.github.com/users/reddit/events{/privacy}","received_events_url":"https://api.github.com/users/reddit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reddit/reddit-mobile","description":"","fork":false,"url":"https://api.github.com/repos/reddit/reddit-mobile","forks_url":"https://api.github.com/repos/reddit/reddit-mobile/forks","keys_url":"https://api.github.com/repos/reddit/reddit-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reddit/reddit-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reddit/reddit-mobile/teams","hooks_url":"https://api.github.com/repos/reddit/reddit-mobile/hooks","issue_events_url":"https://api.github.com/repos/reddit/reddit-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/reddit/reddit-mobile/events","assignees_url":"https://api.github.com/repos/reddit/reddit-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/reddit/reddit-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/reddit/reddit-mobile/tags","blobs_url":"https://api.github.com/repos/reddit/reddit-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reddit/reddit-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reddit/reddit-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/reddit/reddit-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reddit/reddit-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/reddit/reddit-mobile/languages","stargazers_url":"https://api.github.com/repos/reddit/reddit-mobile/stargazers","contributors_url":"https://api.github.com/repos/reddit/reddit-mobile/contributors","subscribers_url":"https://api.github.com/repos/reddit/reddit-mobile/subscribers","subscription_url":"https://api.github.com/repos/reddit/reddit-mobile/subscription","commits_url":"https://api.github.com/repos/reddit/reddit-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/reddit/reddit-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/reddit/reddit-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/reddit/reddit-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/reddit/reddit-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/reddit/reddit-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reddit/reddit-mobile/merges","archive_url":"https://api.github.com/repos/reddit/reddit-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reddit/reddit-mobile/downloads","issues_url":"https://api.github.com/repos/reddit/reddit-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/reddit/reddit-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/reddit/reddit-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reddit/reddit-mobile/labels{/name}","releases_url":"https://api.github.com/repos/reddit/reddit-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/reddit/reddit-mobile/deployments","created_at":"2014-08-18T21:42:05Z","updated_at":"2016-01-17T19:45:47Z","pushed_at":"2016-01-22T20:24:41Z","git_url":"git://github.com/reddit/reddit-mobile.git","ssh_url":"git@github.com:reddit/reddit-mobile.git","clone_url":"https://github.com/reddit/reddit-mobile.git","svn_url":"https://github.com/reddit/reddit-mobile","homepage":null,"size":6344,"stargazers_count":669,"watchers_count":669,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":98,"mirror_url":null,"open_issues_count":19,"forks":98,"open_issues":19,"watchers":669,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/464"},"html":{"href":"https://github.com/reddit/reddit-mobile/pull/464"},"issue":{"href":"https://api.github.com/repos/reddit/reddit-mobile/issues/464"},"comments":{"href":"https://api.github.com/repos/reddit/reddit-mobile/issues/464/comments"},"review_comments":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/464/comments"},"review_comment":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/464/commits"},"statuses":{"href":"https://api.github.com/repos/reddit/reddit-mobile/statuses/88e1e4d4b2d8e2f9a2e25e4c7ae0dbbdbba8eefb"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":16,"deletions":18,"changed_files":1}}