{"action":"created","comment":{"url":"https://api.github.com/repos/elo7/ajax-amd/pulls/comments/49441533","id":49441533,"diff_hunk":"@@ -25,51 +30,103 @@ define('ajax', ['qwest'], function(qwest) {\n \t\t};\n \t}\n \n+\tfunction urlEncode(data) {\n+\t\tif (data) {\n+\t\t\tvar encodedParams = [];\n+\t\t\tfor (var k in data) {\n+\t\t\t\tencodedParams.push(encodeURIComponent(k) + '=' + encodeURIComponent(data[k]));\n+\t\t\t}\n+\t\t\treturn encodedParams.join('&');\n+\t\t}\n+\t\treturn null;\n+\t}\n+\n+\tfunction getRequestObj() {\n+\t\tif (window.XMLHttpRequest) {\n+\t\t\treturn new XMLHttpRequest();\n+\t\t} else if (window.ActiveXObject) {\n+\t\t\treturn new ActiveXObject(\"Microsoft.XMLHTTP\");\n+\t\t}\n+\t}\n+\n+\tfunction isSuccess(status) {\n+\t\treturn status >= 200 && status < 300;\n+\t}\n+\n+\tfunction handleResponse(requestObj, callbacks) {\n+\t\tif (requestObj.readyState !== 4) {\n+\t\t\treturn;\n+\t\t}\n+\n+\t\tvar responseType = requestObj.getResponseHeader(\"Content-Type\") || \"\";\n+\t\tvar responseContent = \"\";\n+\n+\t\tif (responseType.indexOf(\"json\") !== -1) {\n+\t\t\tresponseContent = JSON.parse(requestObj.responseText);\n+\t\t} else if (responseType.indexOf(\"xml\") !== -1) {\n+\t\t\tresponseContent = (new DOMParser()).parseFromString(requestObj.responseText,'text/xml');","path":"ajax.js","position":58,"original_position":58,"commit_id":"9e7bb5d9e38dd2ee9684b3df468fc5ed50c53c58","original_commit_id":"9e7bb5d9e38dd2ee9684b3df468fc5ed50c53c58","user":{"login":"mottam","id":4635808,"avatar_url":"https://avatars.githubusercontent.com/u/4635808?v=3","gravatar_id":"","url":"https://api.github.com/users/mottam","html_url":"https://github.com/mottam","followers_url":"https://api.github.com/users/mottam/followers","following_url":"https://api.github.com/users/mottam/following{/other_user}","gists_url":"https://api.github.com/users/mottam/gists{/gist_id}","starred_url":"https://api.github.com/users/mottam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mottam/subscriptions","organizations_url":"https://api.github.com/users/mottam/orgs","repos_url":"https://api.github.com/users/mottam/repos","events_url":"https://api.github.com/users/mottam/events{/privacy}","received_events_url":"https://api.github.com/users/mottam/received_events","type":"User","site_admin":false},"body":"Let's change all `'` to `\"`.\r\n\r\n@erikatakahara @fellyph ","created_at":"2016-01-12T11:16:24Z","updated_at":"2016-01-12T11:16:24Z","html_url":"https://github.com/elo7/ajax-amd/pull/4#discussion_r49441533","pull_request_url":"https://api.github.com/repos/elo7/ajax-amd/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/elo7/ajax-amd/pulls/comments/49441533"},"html":{"href":"https://github.com/elo7/ajax-amd/pull/4#discussion_r49441533"},"pull_request":{"href":"https://api.github.com/repos/elo7/ajax-amd/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/elo7/ajax-amd/pulls/4","id":55737754,"html_url":"https://github.com/elo7/ajax-amd/pull/4","diff_url":"https://github.com/elo7/ajax-amd/pull/4.diff","patch_url":"https://github.com/elo7/ajax-amd/pull/4.patch","issue_url":"https://api.github.com/repos/elo7/ajax-amd/issues/4","number":4,"state":"open","locked":false,"title":"[Hackday-remove-dependency] Removing qwest and jparam lib","user":{"login":"FernandaBernardo","id":3588700,"avatar_url":"https://avatars.githubusercontent.com/u/3588700?v=3","gravatar_id":"","url":"https://api.github.com/users/FernandaBernardo","html_url":"https://github.com/FernandaBernardo","followers_url":"https://api.github.com/users/FernandaBernardo/followers","following_url":"https://api.github.com/users/FernandaBernardo/following{/other_user}","gists_url":"https://api.github.com/users/FernandaBernardo/gists{/gist_id}","starred_url":"https://api.github.com/users/FernandaBernardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FernandaBernardo/subscriptions","organizations_url":"https://api.github.com/users/FernandaBernardo/orgs","repos_url":"https://api.github.com/users/FernandaBernardo/repos","events_url":"https://api.github.com/users/FernandaBernardo/events{/privacy}","received_events_url":"https://api.github.com/users/FernandaBernardo/received_events","type":"User","site_admin":false},"body":"This pull request removes dependency on qwest and its dependencies, making ajax-amd deal directly with `ActiveXObject` and `XMLHttpRequest`. Supports get and post requests. Post requests can send data only in `application/x-www-form-urlencoded; charset=UTF-8` format for now.","created_at":"2016-01-12T10:18:42Z","updated_at":"2016-01-12T11:16:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da44882194a4b15fd596f33571f8a9949901c1bc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elo7/ajax-amd/pulls/4/commits","review_comments_url":"https://api.github.com/repos/elo7/ajax-amd/pulls/4/comments","review_comment_url":"https://api.github.com/repos/elo7/ajax-amd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elo7/ajax-amd/issues/4/comments","statuses_url":"https://api.github.com/repos/elo7/ajax-amd/statuses/9e7bb5d9e38dd2ee9684b3df468fc5ed50c53c58","head":{"label":"elo7:hackday-remove-dependency","ref":"hackday-remove-dependency","sha":"9e7bb5d9e38dd2ee9684b3df468fc5ed50c53c58","user":{"login":"elo7","id":1469534,"avatar_url":"https://avatars.githubusercontent.com/u/1469534?v=3","gravatar_id":"","url":"https://api.github.com/users/elo7","html_url":"https://github.com/elo7","followers_url":"https://api.github.com/users/elo7/followers","following_url":"https://api.github.com/users/elo7/following{/other_user}","gists_url":"https://api.github.com/users/elo7/gists{/gist_id}","starred_url":"https://api.github.com/users/elo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elo7/subscriptions","organizations_url":"https://api.github.com/users/elo7/orgs","repos_url":"https://api.github.com/users/elo7/repos","events_url":"https://api.github.com/users/elo7/events{/privacy}","received_events_url":"https://api.github.com/users/elo7/received_events","type":"Organization","site_admin":false},"repo":{"id":37743053,"name":"ajax-amd","full_name":"elo7/ajax-amd","owner":{"login":"elo7","id":1469534,"avatar_url":"https://avatars.githubusercontent.com/u/1469534?v=3","gravatar_id":"","url":"https://api.github.com/users/elo7","html_url":"https://github.com/elo7","followers_url":"https://api.github.com/users/elo7/followers","following_url":"https://api.github.com/users/elo7/following{/other_user}","gists_url":"https://api.github.com/users/elo7/gists{/gist_id}","starred_url":"https://api.github.com/users/elo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elo7/subscriptions","organizations_url":"https://api.github.com/users/elo7/orgs","repos_url":"https://api.github.com/users/elo7/repos","events_url":"https://api.github.com/users/elo7/events{/privacy}","received_events_url":"https://api.github.com/users/elo7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elo7/ajax-amd","description":"Ajax.js is a library that helps ajax request. This library uses amd structure.","fork":false,"url":"https://api.github.com/repos/elo7/ajax-amd","forks_url":"https://api.github.com/repos/elo7/ajax-amd/forks","keys_url":"https://api.github.com/repos/elo7/ajax-amd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elo7/ajax-amd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elo7/ajax-amd/teams","hooks_url":"https://api.github.com/repos/elo7/ajax-amd/hooks","issue_events_url":"https://api.github.com/repos/elo7/ajax-amd/issues/events{/number}","events_url":"https://api.github.com/repos/elo7/ajax-amd/events","assignees_url":"https://api.github.com/repos/elo7/ajax-amd/assignees{/user}","branches_url":"https://api.github.com/repos/elo7/ajax-amd/branches{/branch}","tags_url":"https://api.github.com/repos/elo7/ajax-amd/tags","blobs_url":"https://api.github.com/repos/elo7/ajax-amd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elo7/ajax-amd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elo7/ajax-amd/git/refs{/sha}","trees_url":"https://api.github.com/repos/elo7/ajax-amd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elo7/ajax-amd/statuses/{sha}","languages_url":"https://api.github.com/repos/elo7/ajax-amd/languages","stargazers_url":"https://api.github.com/repos/elo7/ajax-amd/stargazers","contributors_url":"https://api.github.com/repos/elo7/ajax-amd/contributors","subscribers_url":"https://api.github.com/repos/elo7/ajax-amd/subscribers","subscription_url":"https://api.github.com/repos/elo7/ajax-amd/subscription","commits_url":"https://api.github.com/repos/elo7/ajax-amd/commits{/sha}","git_commits_url":"https://api.github.com/repos/elo7/ajax-amd/git/commits{/sha}","comments_url":"https://api.github.com/repos/elo7/ajax-amd/comments{/number}","issue_comment_url":"https://api.github.com/repos/elo7/ajax-amd/issues/comments{/number}","contents_url":"https://api.github.com/repos/elo7/ajax-amd/contents/{+path}","compare_url":"https://api.github.com/repos/elo7/ajax-amd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elo7/ajax-amd/merges","archive_url":"https://api.github.com/repos/elo7/ajax-amd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elo7/ajax-amd/downloads","issues_url":"https://api.github.com/repos/elo7/ajax-amd/issues{/number}","pulls_url":"https://api.github.com/repos/elo7/ajax-amd/pulls{/number}","milestones_url":"https://api.github.com/repos/elo7/ajax-amd/milestones{/number}","notifications_url":"https://api.github.com/repos/elo7/ajax-amd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elo7/ajax-amd/labels{/name}","releases_url":"https://api.github.com/repos/elo7/ajax-amd/releases{/id}","created_at":"2015-06-19T19:59:29Z","updated_at":"2015-12-24T17:46:56Z","pushed_at":"2016-01-12T10:18:43Z","git_url":"git://github.com/elo7/ajax-amd.git","ssh_url":"git@github.com:elo7/ajax-amd.git","clone_url":"https://github.com/elo7/ajax-amd.git","svn_url":"https://github.com/elo7/ajax-amd","homepage":"","size":41,"stargazers_count":1,"watchers_count":1,"language":"HTML","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":1,"default_branch":"master"}},"base":{"label":"elo7:master","ref":"master","sha":"ec455d0f7d631c765ffb80c2a8b429c5b4242a1f","user":{"login":"elo7","id":1469534,"avatar_url":"https://avatars.githubusercontent.com/u/1469534?v=3","gravatar_id":"","url":"https://api.github.com/users/elo7","html_url":"https://github.com/elo7","followers_url":"https://api.github.com/users/elo7/followers","following_url":"https://api.github.com/users/elo7/following{/other_user}","gists_url":"https://api.github.com/users/elo7/gists{/gist_id}","starred_url":"https://api.github.com/users/elo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elo7/subscriptions","organizations_url":"https://api.github.com/users/elo7/orgs","repos_url":"https://api.github.com/users/elo7/repos","events_url":"https://api.github.com/users/elo7/events{/privacy}","received_events_url":"https://api.github.com/users/elo7/received_events","type":"Organization","site_admin":false},"repo":{"id":37743053,"name":"ajax-amd","full_name":"elo7/ajax-amd","owner":{"login":"elo7","id":1469534,"avatar_url":"https://avatars.githubusercontent.com/u/1469534?v=3","gravatar_id":"","url":"https://api.github.com/users/elo7","html_url":"https://github.com/elo7","followers_url":"https://api.github.com/users/elo7/followers","following_url":"https://api.github.com/users/elo7/following{/other_user}","gists_url":"https://api.github.com/users/elo7/gists{/gist_id}","starred_url":"https://api.github.com/users/elo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elo7/subscriptions","organizations_url":"https://api.github.com/users/elo7/orgs","repos_url":"https://api.github.com/users/elo7/repos","events_url":"https://api.github.com/users/elo7/events{/privacy}","received_events_url":"https://api.github.com/users/elo7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elo7/ajax-amd","description":"Ajax.js is a library that helps ajax request. This library uses amd structure.","fork":false,"url":"https://api.github.com/repos/elo7/ajax-amd","forks_url":"https://api.github.com/repos/elo7/ajax-amd/forks","keys_url":"https://api.github.com/repos/elo7/ajax-amd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elo7/ajax-amd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elo7/ajax-amd/teams","hooks_url":"https://api.github.com/repos/elo7/ajax-amd/hooks","issue_events_url":"https://api.github.com/repos/elo7/ajax-amd/issues/events{/number}","events_url":"https://api.github.com/repos/elo7/ajax-amd/events","assignees_url":"https://api.github.com/repos/elo7/ajax-amd/assignees{/user}","branches_url":"https://api.github.com/repos/elo7/ajax-amd/branches{/branch}","tags_url":"https://api.github.com/repos/elo7/ajax-amd/tags","blobs_url":"https://api.github.com/repos/elo7/ajax-amd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elo7/ajax-amd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elo7/ajax-amd/git/refs{/sha}","trees_url":"https://api.github.com/repos/elo7/ajax-amd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elo7/ajax-amd/statuses/{sha}","languages_url":"https://api.github.com/repos/elo7/ajax-amd/languages","stargazers_url":"https://api.github.com/repos/elo7/ajax-amd/stargazers","contributors_url":"https://api.github.com/repos/elo7/ajax-amd/contributors","subscribers_url":"https://api.github.com/repos/elo7/ajax-amd/subscribers","subscription_url":"https://api.github.com/repos/elo7/ajax-amd/subscription","commits_url":"https://api.github.com/repos/elo7/ajax-amd/commits{/sha}","git_commits_url":"https://api.github.com/repos/elo7/ajax-amd/git/commits{/sha}","comments_url":"https://api.github.com/repos/elo7/ajax-amd/comments{/number}","issue_comment_url":"https://api.github.com/repos/elo7/ajax-amd/issues/comments{/number}","contents_url":"https://api.github.com/repos/elo7/ajax-amd/contents/{+path}","compare_url":"https://api.github.com/repos/elo7/ajax-amd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elo7/ajax-amd/merges","archive_url":"https://api.github.com/repos/elo7/ajax-amd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elo7/ajax-amd/downloads","issues_url":"https://api.github.com/repos/elo7/ajax-amd/issues{/number}","pulls_url":"https://api.github.com/repos/elo7/ajax-amd/pulls{/number}","milestones_url":"https://api.github.com/repos/elo7/ajax-amd/milestones{/number}","notifications_url":"https://api.github.com/repos/elo7/ajax-amd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elo7/ajax-amd/labels{/name}","releases_url":"https://api.github.com/repos/elo7/ajax-amd/releases{/id}","created_at":"2015-06-19T19:59:29Z","updated_at":"2015-12-24T17:46:56Z","pushed_at":"2016-01-12T10:18:43Z","git_url":"git://github.com/elo7/ajax-amd.git","ssh_url":"git@github.com:elo7/ajax-amd.git","clone_url":"https://github.com/elo7/ajax-amd.git","svn_url":"https://github.com/elo7/ajax-amd","homepage":"","size":41,"stargazers_count":1,"watchers_count":1,"language":"HTML","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elo7/ajax-amd/pulls/4"},"html":{"href":"https://github.com/elo7/ajax-amd/pull/4"},"issue":{"href":"https://api.github.com/repos/elo7/ajax-amd/issues/4"},"comments":{"href":"https://api.github.com/repos/elo7/ajax-amd/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/elo7/ajax-amd/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/elo7/ajax-amd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elo7/ajax-amd/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/elo7/ajax-amd/statuses/9e7bb5d9e38dd2ee9684b3df468fc5ed50c53c58"}}}}