{"action":"created","comment":{"url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/comments/22434469","id":22434469,"diff_hunk":"@@ -0,0 +1,71 @@\n+'use strict';\n+var request = require('request');\n+var EventEmitter = require(\"events\").EventEmitter;\n+var DocumentConstants = require(\"../constants/DocumentConstants.js\");\n+var AppDispatcher = require(\"../dispatcher/AppDispatcher.js\");\n+var objectAssign = require(\"object-assign\");\n+var CHANGE_EVENT = \"CHANGE\";\n+\n+var DocumentStore = objectAssign({}, EventEmitter.prototype, {\n+  _docs: {},\n+\n+  getAllDocs: function () {\n+    return this._docs;\n+  },\n+\n+  getSingleDoc: function (section, doc) {\n+    return this._docs[section][doc];\n+  },\n+\n+\n+  getAll: function() {\n+    //request all doc section names\n+    request('https://api.github.com/repos/TuxedoJS/TuxedoJS/contents/docs/ApiMenu', function (error, response, body) {\n+      if (!error && response.statusCode == 200) {\n+        //set docs to reponse data\n+          this._docs = response.data;\n+          this.emitChange();\n+      }\n+    });\n+  },\n+\n+  getDoc: function(section, doc) {\n+    this.doc = request('https://api.github.com/repos/TuxedoJS/TuxedoJS/contents/docs/' + section + '/' + doc, function (error, response, body) {\n+      if (!error && response.statusCode == 200) {\n+        //return content of the selected doc\n+        this._docs[section][doc] = response.data['content'];\n+        this.emitChange();\n+      }\n+    }).bind(this);\n+  },\n+\n+  emitChange: function() {\n+    this.emit(CHANGE_EVENT);\n+  },\n+\n+  addChangeListener: function(callback) {\n+    this.on(CHANGE_EVENT, callback);\n+  },\n+\n+  removeChangeListener: function(callback) {\n+    this.removeListener(CHANGE_EVENT, callback);\n+  }\n+\n+});//end store\n+\n+AppDispatcher.register(function(payload) {\n+  var action = payload.action;\n+  var body = action.body;\n+\n+  switch (action.actionType) {\n+","path":"client/app/stores/DocumentStore.js","position":61,"original_position":61,"commit_id":"23549056fcc36988bd0e5381bcc083a0e159cfad","original_commit_id":"23549056fcc36988bd0e5381bcc083a0e159cfad","user":{"login":"Cheerazar","id":5581107,"avatar_url":"https://avatars.githubusercontent.com/u/5581107?v=3","gravatar_id":"","url":"https://api.github.com/users/Cheerazar","html_url":"https://github.com/Cheerazar","followers_url":"https://api.github.com/users/Cheerazar/followers","following_url":"https://api.github.com/users/Cheerazar/following{/other_user}","gists_url":"https://api.github.com/users/Cheerazar/gists{/gist_id}","starred_url":"https://api.github.com/users/Cheerazar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cheerazar/subscriptions","organizations_url":"https://api.github.com/users/Cheerazar/orgs","repos_url":"https://api.github.com/users/Cheerazar/repos","events_url":"https://api.github.com/users/Cheerazar/events{/privacy}","received_events_url":"https://api.github.com/users/Cheerazar/received_events","type":"User","site_admin":false},"body":"Remove white space.","created_at":"2015-01-03T20:09:29Z","updated_at":"2015-01-03T20:09:29Z","html_url":"https://github.com/TuxedoJS/TuxWebsite/pull/1#discussion_r22434469","pull_request_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/comments/22434469"},"html":{"href":"https://github.com/TuxedoJS/TuxWebsite/pull/1#discussion_r22434469"},"pull_request":{"href":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/1","id":26779430,"html_url":"https://github.com/TuxedoJS/TuxWebsite/pull/1","diff_url":"https://github.com/TuxedoJS/TuxWebsite/pull/1.diff","patch_url":"https://github.com/TuxedoJS/TuxWebsite/pull/1.patch","issue_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/issues/1","number":1,"state":"open","locked":false,"title":"Basic structure and functionality laid out -work in progress.","user":{"login":"sjstebbins","id":455819,"avatar_url":"https://avatars.githubusercontent.com/u/455819?v=3","gravatar_id":"","url":"https://api.github.com/users/sjstebbins","html_url":"https://github.com/sjstebbins","followers_url":"https://api.github.com/users/sjstebbins/followers","following_url":"https://api.github.com/users/sjstebbins/following{/other_user}","gists_url":"https://api.github.com/users/sjstebbins/gists{/gist_id}","starred_url":"https://api.github.com/users/sjstebbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjstebbins/subscriptions","organizations_url":"https://api.github.com/users/sjstebbins/orgs","repos_url":"https://api.github.com/users/sjstebbins/repos","events_url":"https://api.github.com/users/sjstebbins/events{/privacy}","received_events_url":"https://api.github.com/users/sjstebbins/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-03T04:38:06Z","updated_at":"2015-01-03T20:09:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a56ac2ac63c151a274f6fce167caf992bec36dd0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/1/commits","review_comments_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/1/comments","review_comment_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/comments/{number}","comments_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/issues/1/comments","statuses_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/statuses/23549056fcc36988bd0e5381bcc083a0e159cfad","head":{"label":"sjstebbins:master","ref":"master","sha":"23549056fcc36988bd0e5381bcc083a0e159cfad","user":{"login":"sjstebbins","id":455819,"avatar_url":"https://avatars.githubusercontent.com/u/455819?v=3","gravatar_id":"","url":"https://api.github.com/users/sjstebbins","html_url":"https://github.com/sjstebbins","followers_url":"https://api.github.com/users/sjstebbins/followers","following_url":"https://api.github.com/users/sjstebbins/following{/other_user}","gists_url":"https://api.github.com/users/sjstebbins/gists{/gist_id}","starred_url":"https://api.github.com/users/sjstebbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjstebbins/subscriptions","organizations_url":"https://api.github.com/users/sjstebbins/orgs","repos_url":"https://api.github.com/users/sjstebbins/repos","events_url":"https://api.github.com/users/sjstebbins/events{/privacy}","received_events_url":"https://api.github.com/users/sjstebbins/received_events","type":"User","site_admin":false},"repo":{"id":28616444,"name":"TuxWebsite","full_name":"sjstebbins/TuxWebsite","owner":{"login":"sjstebbins","id":455819,"avatar_url":"https://avatars.githubusercontent.com/u/455819?v=3","gravatar_id":"","url":"https://api.github.com/users/sjstebbins","html_url":"https://github.com/sjstebbins","followers_url":"https://api.github.com/users/sjstebbins/followers","following_url":"https://api.github.com/users/sjstebbins/following{/other_user}","gists_url":"https://api.github.com/users/sjstebbins/gists{/gist_id}","starred_url":"https://api.github.com/users/sjstebbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjstebbins/subscriptions","organizations_url":"https://api.github.com/users/sjstebbins/orgs","repos_url":"https://api.github.com/users/sjstebbins/repos","events_url":"https://api.github.com/users/sjstebbins/events{/privacy}","received_events_url":"https://api.github.com/users/sjstebbins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sjstebbins/TuxWebsite","description":"Documentation site for Tuxedo.js","fork":true,"url":"https://api.github.com/repos/sjstebbins/TuxWebsite","forks_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/forks","keys_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/teams","hooks_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/hooks","issue_events_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/issues/events{/number}","events_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/events","assignees_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/assignees{/user}","branches_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/branches{/branch}","tags_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/tags","blobs_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/git/refs{/sha}","trees_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/statuses/{sha}","languages_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/languages","stargazers_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/stargazers","contributors_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/contributors","subscribers_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/subscribers","subscription_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/subscription","commits_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/commits{/sha}","git_commits_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/git/commits{/sha}","comments_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/comments{/number}","issue_comment_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/issues/comments/{number}","contents_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/contents/{+path}","compare_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/merges","archive_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/downloads","issues_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/issues{/number}","pulls_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/pulls{/number}","milestones_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/milestones{/number}","notifications_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/labels{/name}","releases_url":"https://api.github.com/repos/sjstebbins/TuxWebsite/releases{/id}","created_at":"2014-12-30T03:40:48Z","updated_at":"2015-01-03T19:25:31Z","pushed_at":"2015-01-03T19:25:30Z","git_url":"git://github.com/sjstebbins/TuxWebsite.git","ssh_url":"git@github.com:sjstebbins/TuxWebsite.git","clone_url":"https://github.com/sjstebbins/TuxWebsite.git","svn_url":"https://github.com/sjstebbins/TuxWebsite","homepage":null,"size":0,"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":"TuxedoJS:master","ref":"master","sha":"dc4d4bc1dc09cbf022f683beb08acc2d95089f17","user":{"login":"TuxedoJS","id":10237217,"avatar_url":"https://avatars.githubusercontent.com/u/10237217?v=3","gravatar_id":"","url":"https://api.github.com/users/TuxedoJS","html_url":"https://github.com/TuxedoJS","followers_url":"https://api.github.com/users/TuxedoJS/followers","following_url":"https://api.github.com/users/TuxedoJS/following{/other_user}","gists_url":"https://api.github.com/users/TuxedoJS/gists{/gist_id}","starred_url":"https://api.github.com/users/TuxedoJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuxedoJS/subscriptions","organizations_url":"https://api.github.com/users/TuxedoJS/orgs","repos_url":"https://api.github.com/users/TuxedoJS/repos","events_url":"https://api.github.com/users/TuxedoJS/events{/privacy}","received_events_url":"https://api.github.com/users/TuxedoJS/received_events","type":"Organization","site_admin":false},"repo":{"id":28616372,"name":"TuxWebsite","full_name":"TuxedoJS/TuxWebsite","owner":{"login":"TuxedoJS","id":10237217,"avatar_url":"https://avatars.githubusercontent.com/u/10237217?v=3","gravatar_id":"","url":"https://api.github.com/users/TuxedoJS","html_url":"https://github.com/TuxedoJS","followers_url":"https://api.github.com/users/TuxedoJS/followers","following_url":"https://api.github.com/users/TuxedoJS/following{/other_user}","gists_url":"https://api.github.com/users/TuxedoJS/gists{/gist_id}","starred_url":"https://api.github.com/users/TuxedoJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuxedoJS/subscriptions","organizations_url":"https://api.github.com/users/TuxedoJS/orgs","repos_url":"https://api.github.com/users/TuxedoJS/repos","events_url":"https://api.github.com/users/TuxedoJS/events{/privacy}","received_events_url":"https://api.github.com/users/TuxedoJS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TuxedoJS/TuxWebsite","description":"Documentation site for Tuxedo.js","fork":false,"url":"https://api.github.com/repos/TuxedoJS/TuxWebsite","forks_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/forks","keys_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/teams","hooks_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/hooks","issue_events_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/issues/events{/number}","events_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/events","assignees_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/assignees{/user}","branches_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/branches{/branch}","tags_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/tags","blobs_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/git/refs{/sha}","trees_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/statuses/{sha}","languages_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/languages","stargazers_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/stargazers","contributors_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/contributors","subscribers_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/subscribers","subscription_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/subscription","commits_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/commits{/sha}","git_commits_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/git/commits{/sha}","comments_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/comments{/number}","issue_comment_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/issues/comments/{number}","contents_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/contents/{+path}","compare_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/merges","archive_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/downloads","issues_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/issues{/number}","pulls_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls{/number}","milestones_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/milestones{/number}","notifications_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/labels{/name}","releases_url":"https://api.github.com/repos/TuxedoJS/TuxWebsite/releases{/id}","created_at":"2014-12-30T03:38:10Z","updated_at":"2014-12-30T03:38:10Z","pushed_at":"2014-12-30T03:38:10Z","git_url":"git://github.com/TuxedoJS/TuxWebsite.git","ssh_url":"git@github.com:TuxedoJS/TuxWebsite.git","clone_url":"https://github.com/TuxedoJS/TuxWebsite.git","svn_url":"https://github.com/TuxedoJS/TuxWebsite","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/1"},"html":{"href":"https://github.com/TuxedoJS/TuxWebsite/pull/1"},"issue":{"href":"https://api.github.com/repos/TuxedoJS/TuxWebsite/issues/1"},"comments":{"href":"https://api.github.com/repos/TuxedoJS/TuxWebsite/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/TuxedoJS/TuxWebsite/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/TuxedoJS/TuxWebsite/statuses/23549056fcc36988bd0e5381bcc083a0e159cfad"}}}}