{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/comments/28165341","id":28165341,"diff_hunk":"@@ -44,6 +44,7 @@ $(document).ready(function() {\n \t\t\treturn new GDP.ADVANCED.model.Process(m);\n \t\t}));\n \t\tGDP.ADVANCED.router = new GDP.ADVANCED.controller.AdvancedRouter();\n+\t\tGDP.ADVANCED.Job = new GDP.ADVANCED.model.Job();","path":"src/main/webapp/js/advanced/init.js","position":4,"original_position":4,"commit_id":"ea25e2cf8c4ecba0a982accc31c27a22f55d0c2f","original_commit_id":"33494a86ea53b573ccbe73e85907b62a6dc4d298","user":{"login":"cschroed-usgs","id":3419837,"avatar_url":"https://avatars.githubusercontent.com/u/3419837?v=3","gravatar_id":"","url":"https://api.github.com/users/cschroed-usgs","html_url":"https://github.com/cschroed-usgs","followers_url":"https://api.github.com/users/cschroed-usgs/followers","following_url":"https://api.github.com/users/cschroed-usgs/following{/other_user}","gists_url":"https://api.github.com/users/cschroed-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/cschroed-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschroed-usgs/subscriptions","organizations_url":"https://api.github.com/users/cschroed-usgs/orgs","repos_url":"https://api.github.com/users/cschroed-usgs/repos","events_url":"https://api.github.com/users/cschroed-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/cschroed-usgs/received_events","type":"User","site_admin":false},"body":"That works. Could also convert it into a Singleton. My next PR will have an example of that.","created_at":"2015-04-10T17:47:37Z","updated_at":"2015-04-10T17:47:37Z","html_url":"https://github.com/USGS-CIDA/gdp_web/pull/30#discussion_r28165341","pull_request_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/comments/28165341"},"html":{"href":"https://github.com/USGS-CIDA/gdp_web/pull/30#discussion_r28165341"},"pull_request":{"href":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/30","id":33065704,"html_url":"https://github.com/USGS-CIDA/gdp_web/pull/30","diff_url":"https://github.com/USGS-CIDA/gdp_web/pull/30.diff","patch_url":"https://github.com/USGS-CIDA/gdp_web/pull/30.patch","issue_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/issues/30","number":30,"state":"open","locked":false,"title":"Now loading DataSource and Job models","user":{"login":"isuftin","id":928288,"avatar_url":"https://avatars.githubusercontent.com/u/928288?v=3","gravatar_id":"","url":"https://api.github.com/users/isuftin","html_url":"https://github.com/isuftin","followers_url":"https://api.github.com/users/isuftin/followers","following_url":"https://api.github.com/users/isuftin/following{/other_user}","gists_url":"https://api.github.com/users/isuftin/gists{/gist_id}","starred_url":"https://api.github.com/users/isuftin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isuftin/subscriptions","organizations_url":"https://api.github.com/users/isuftin/orgs","repos_url":"https://api.github.com/users/isuftin/repos","events_url":"https://api.github.com/users/isuftin/events{/privacy}","received_events_url":"https://api.github.com/users/isuftin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-10T17:16:55Z","updated_at":"2015-04-10T17:47:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c934ba0ac9b821bd95aaf3a22946b17dde4d135","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/30/commits","review_comments_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/30/comments","review_comment_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/issues/30/comments","statuses_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/statuses/ea25e2cf8c4ecba0a982accc31c27a22f55d0c2f","head":{"label":"isuftin:master","ref":"master","sha":"ea25e2cf8c4ecba0a982accc31c27a22f55d0c2f","user":{"login":"isuftin","id":928288,"avatar_url":"https://avatars.githubusercontent.com/u/928288?v=3","gravatar_id":"","url":"https://api.github.com/users/isuftin","html_url":"https://github.com/isuftin","followers_url":"https://api.github.com/users/isuftin/followers","following_url":"https://api.github.com/users/isuftin/following{/other_user}","gists_url":"https://api.github.com/users/isuftin/gists{/gist_id}","starred_url":"https://api.github.com/users/isuftin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isuftin/subscriptions","organizations_url":"https://api.github.com/users/isuftin/orgs","repos_url":"https://api.github.com/users/isuftin/repos","events_url":"https://api.github.com/users/isuftin/events{/privacy}","received_events_url":"https://api.github.com/users/isuftin/received_events","type":"User","site_admin":false},"repo":{"id":33559347,"name":"gdp_web","full_name":"isuftin/gdp_web","owner":{"login":"isuftin","id":928288,"avatar_url":"https://avatars.githubusercontent.com/u/928288?v=3","gravatar_id":"","url":"https://api.github.com/users/isuftin","html_url":"https://github.com/isuftin","followers_url":"https://api.github.com/users/isuftin/followers","following_url":"https://api.github.com/users/isuftin/following{/other_user}","gists_url":"https://api.github.com/users/isuftin/gists{/gist_id}","starred_url":"https://api.github.com/users/isuftin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isuftin/subscriptions","organizations_url":"https://api.github.com/users/isuftin/orgs","repos_url":"https://api.github.com/users/isuftin/repos","events_url":"https://api.github.com/users/isuftin/events{/privacy}","received_events_url":"https://api.github.com/users/isuftin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/isuftin/gdp_web","description":"Web UI for Geo Data Portal","fork":true,"url":"https://api.github.com/repos/isuftin/gdp_web","forks_url":"https://api.github.com/repos/isuftin/gdp_web/forks","keys_url":"https://api.github.com/repos/isuftin/gdp_web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/isuftin/gdp_web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/isuftin/gdp_web/teams","hooks_url":"https://api.github.com/repos/isuftin/gdp_web/hooks","issue_events_url":"https://api.github.com/repos/isuftin/gdp_web/issues/events{/number}","events_url":"https://api.github.com/repos/isuftin/gdp_web/events","assignees_url":"https://api.github.com/repos/isuftin/gdp_web/assignees{/user}","branches_url":"https://api.github.com/repos/isuftin/gdp_web/branches{/branch}","tags_url":"https://api.github.com/repos/isuftin/gdp_web/tags","blobs_url":"https://api.github.com/repos/isuftin/gdp_web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/isuftin/gdp_web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/isuftin/gdp_web/git/refs{/sha}","trees_url":"https://api.github.com/repos/isuftin/gdp_web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/isuftin/gdp_web/statuses/{sha}","languages_url":"https://api.github.com/repos/isuftin/gdp_web/languages","stargazers_url":"https://api.github.com/repos/isuftin/gdp_web/stargazers","contributors_url":"https://api.github.com/repos/isuftin/gdp_web/contributors","subscribers_url":"https://api.github.com/repos/isuftin/gdp_web/subscribers","subscription_url":"https://api.github.com/repos/isuftin/gdp_web/subscription","commits_url":"https://api.github.com/repos/isuftin/gdp_web/commits{/sha}","git_commits_url":"https://api.github.com/repos/isuftin/gdp_web/git/commits{/sha}","comments_url":"https://api.github.com/repos/isuftin/gdp_web/comments{/number}","issue_comment_url":"https://api.github.com/repos/isuftin/gdp_web/issues/comments{/number}","contents_url":"https://api.github.com/repos/isuftin/gdp_web/contents/{+path}","compare_url":"https://api.github.com/repos/isuftin/gdp_web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/isuftin/gdp_web/merges","archive_url":"https://api.github.com/repos/isuftin/gdp_web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/isuftin/gdp_web/downloads","issues_url":"https://api.github.com/repos/isuftin/gdp_web/issues{/number}","pulls_url":"https://api.github.com/repos/isuftin/gdp_web/pulls{/number}","milestones_url":"https://api.github.com/repos/isuftin/gdp_web/milestones{/number}","notifications_url":"https://api.github.com/repos/isuftin/gdp_web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/isuftin/gdp_web/labels{/name}","releases_url":"https://api.github.com/repos/isuftin/gdp_web/releases{/id}","created_at":"2015-04-07T17:59:23Z","updated_at":"2015-04-10T17:42:22Z","pushed_at":"2015-04-10T17:42:20Z","git_url":"git://github.com/isuftin/gdp_web.git","ssh_url":"git@github.com:isuftin/gdp_web.git","clone_url":"https://github.com/isuftin/gdp_web.git","svn_url":"https://github.com/isuftin/gdp_web","homepage":null,"size":206,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"USGS-CIDA:master","ref":"master","sha":"9a40c4f420f38c518f6fe9eb1d183a081aabca96","user":{"login":"USGS-CIDA","id":918179,"avatar_url":"https://avatars.githubusercontent.com/u/918179?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"repo":{"id":33559343,"name":"gdp_web","full_name":"USGS-CIDA/gdp_web","owner":{"login":"USGS-CIDA","id":918179,"avatar_url":"https://avatars.githubusercontent.com/u/918179?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-CIDA/gdp_web","description":"Web UI for Geo Data Portal","fork":false,"url":"https://api.github.com/repos/USGS-CIDA/gdp_web","forks_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/forks","keys_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/teams","hooks_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/hooks","issue_events_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/events","assignees_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/tags","blobs_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/languages","stargazers_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/stargazers","contributors_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/contributors","subscribers_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/subscribers","subscription_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/subscription","commits_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/merges","archive_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/downloads","issues_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/labels{/name}","releases_url":"https://api.github.com/repos/USGS-CIDA/gdp_web/releases{/id}","created_at":"2015-04-07T17:59:18Z","updated_at":"2015-04-10T16:46:29Z","pushed_at":"2015-04-10T17:42:21Z","git_url":"git://github.com/USGS-CIDA/gdp_web.git","ssh_url":"git@github.com:USGS-CIDA/gdp_web.git","clone_url":"https://github.com/USGS-CIDA/gdp_web.git","svn_url":"https://github.com/USGS-CIDA/gdp_web","homepage":null,"size":495,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/30"},"html":{"href":"https://github.com/USGS-CIDA/gdp_web/pull/30"},"issue":{"href":"https://api.github.com/repos/USGS-CIDA/gdp_web/issues/30"},"comments":{"href":"https://api.github.com/repos/USGS-CIDA/gdp_web/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-CIDA/gdp_web/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-CIDA/gdp_web/statuses/ea25e2cf8c4ecba0a982accc31c27a22f55d0c2f"}}}}