{"action":"created","comment":{"url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/comments/46461148","id":46461148,"diff_hunk":"@@ -0,0 +1,49 @@\n+package scala.scalajs.js.dom.experimental\n+\n+import scala.scalajs.js\n+import scala.scalajs.js.Dynamic.{global => g}\n+import scala.scalajs.js.annotation.JSBracketCall\n+\n+/**\n+ * todo: to be replaced by official version once\n+ * https://github.com/scala-js/scala-js/issues/1141\n+ * is completed\n+ */\n+@js.native\n+trait JSIterable[A] extends js.Object {\n+  @JSBracketCall\n+  def method[R](symbol: js.Any)(): R = js.native","path":"src/main/scala/org/scalajs/dom/experimental/JSIterable.scala","position":15,"original_position":15,"commit_id":"ae4f2a7817bb7694a2edec0ef70b17450ea94498","original_commit_id":"ae4f2a7817bb7694a2edec0ef70b17450ea94498","user":{"login":"sjrd","id":535934,"avatar_url":"https://avatars.githubusercontent.com/u/535934?v=3","gravatar_id":"","url":"https://api.github.com/users/sjrd","html_url":"https://github.com/sjrd","followers_url":"https://api.github.com/users/sjrd/followers","following_url":"https://api.github.com/users/sjrd/following{/other_user}","gists_url":"https://api.github.com/users/sjrd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjrd/subscriptions","organizations_url":"https://api.github.com/users/sjrd/orgs","repos_url":"https://api.github.com/users/sjrd/repos","events_url":"https://api.github.com/users/sjrd/events{/privacy}","received_events_url":"https://api.github.com/users/sjrd/received_events","type":"User","site_admin":false},"body":"This should definitely not be made public like that. It's essentially a hack just to access `Symbol.iterator`.","created_at":"2015-12-02T19:21:37Z","updated_at":"2015-12-02T19:21:37Z","html_url":"https://github.com/scala-js/scala-js-dom/pull/177#discussion_r46461148","pull_request_url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/177","_links":{"self":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/comments/46461148"},"html":{"href":"https://github.com/scala-js/scala-js-dom/pull/177#discussion_r46461148"},"pull_request":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/177"}}},"pull_request":{"url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/177","id":51803755,"html_url":"https://github.com/scala-js/scala-js-dom/pull/177","diff_url":"https://github.com/scala-js/scala-js-dom/pull/177.diff","patch_url":"https://github.com/scala-js/scala-js-dom/pull/177.patch","issue_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/177","number":177,"state":"open","locked":false,"title":"add Fetch API","user":{"login":"bblfish","id":124506,"avatar_url":"https://avatars.githubusercontent.com/u/124506?v=3","gravatar_id":"","url":"https://api.github.com/users/bblfish","html_url":"https://github.com/bblfish","followers_url":"https://api.github.com/users/bblfish/followers","following_url":"https://api.github.com/users/bblfish/following{/other_user}","gists_url":"https://api.github.com/users/bblfish/gists{/gist_id}","starred_url":"https://api.github.com/users/bblfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bblfish/subscriptions","organizations_url":"https://api.github.com/users/bblfish/orgs","repos_url":"https://api.github.com/users/bblfish/repos","events_url":"https://api.github.com/users/bblfish/events{/privacy}","received_events_url":"https://api.github.com/users/bblfish/received_events","type":"User","site_admin":false},"body":"I have been using the Fetch API for my [rww-scala-js akka branch](https://github.com/read-write-web/rww-scala-js/blob/6a24b5ffdf62b1d07542a178a912882e844c7b7c/src/main/scala/rww/store/WebResourceActor.scala). The code that I have tested and used works. So I thought I'd push this over before someone goes through the same work again.\r\n\r\nProbably still a lot to be improved.\r\n\r\nThis would close https://github.com/scala-js/scala-js-dom/issues/167","created_at":"2015-11-25T14:55:01Z","updated_at":"2015-12-02T19:21:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fafe0981c9bc6c3411cdf7919f49f55aba1fd291","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/177/commits","review_comments_url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/177/comments","review_comment_url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/177/comments","statuses_url":"https://api.github.com/repos/scala-js/scala-js-dom/statuses/ae4f2a7817bb7694a2edec0ef70b17450ea94498","head":{"label":"bblfish:FetchAPI","ref":"FetchAPI","sha":"ae4f2a7817bb7694a2edec0ef70b17450ea94498","user":{"login":"bblfish","id":124506,"avatar_url":"https://avatars.githubusercontent.com/u/124506?v=3","gravatar_id":"","url":"https://api.github.com/users/bblfish","html_url":"https://github.com/bblfish","followers_url":"https://api.github.com/users/bblfish/followers","following_url":"https://api.github.com/users/bblfish/following{/other_user}","gists_url":"https://api.github.com/users/bblfish/gists{/gist_id}","starred_url":"https://api.github.com/users/bblfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bblfish/subscriptions","organizations_url":"https://api.github.com/users/bblfish/orgs","repos_url":"https://api.github.com/users/bblfish/repos","events_url":"https://api.github.com/users/bblfish/events{/privacy}","received_events_url":"https://api.github.com/users/bblfish/received_events","type":"User","site_admin":false},"repo":{"id":45736516,"name":"scala-js-dom","full_name":"bblfish/scala-js-dom","owner":{"login":"bblfish","id":124506,"avatar_url":"https://avatars.githubusercontent.com/u/124506?v=3","gravatar_id":"","url":"https://api.github.com/users/bblfish","html_url":"https://github.com/bblfish","followers_url":"https://api.github.com/users/bblfish/followers","following_url":"https://api.github.com/users/bblfish/following{/other_user}","gists_url":"https://api.github.com/users/bblfish/gists{/gist_id}","starred_url":"https://api.github.com/users/bblfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bblfish/subscriptions","organizations_url":"https://api.github.com/users/bblfish/orgs","repos_url":"https://api.github.com/users/bblfish/repos","events_url":"https://api.github.com/users/bblfish/events{/privacy}","received_events_url":"https://api.github.com/users/bblfish/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bblfish/scala-js-dom","description":"statically typed dom wrappers for scala-js","fork":true,"url":"https://api.github.com/repos/bblfish/scala-js-dom","forks_url":"https://api.github.com/repos/bblfish/scala-js-dom/forks","keys_url":"https://api.github.com/repos/bblfish/scala-js-dom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bblfish/scala-js-dom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bblfish/scala-js-dom/teams","hooks_url":"https://api.github.com/repos/bblfish/scala-js-dom/hooks","issue_events_url":"https://api.github.com/repos/bblfish/scala-js-dom/issues/events{/number}","events_url":"https://api.github.com/repos/bblfish/scala-js-dom/events","assignees_url":"https://api.github.com/repos/bblfish/scala-js-dom/assignees{/user}","branches_url":"https://api.github.com/repos/bblfish/scala-js-dom/branches{/branch}","tags_url":"https://api.github.com/repos/bblfish/scala-js-dom/tags","blobs_url":"https://api.github.com/repos/bblfish/scala-js-dom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bblfish/scala-js-dom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bblfish/scala-js-dom/git/refs{/sha}","trees_url":"https://api.github.com/repos/bblfish/scala-js-dom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bblfish/scala-js-dom/statuses/{sha}","languages_url":"https://api.github.com/repos/bblfish/scala-js-dom/languages","stargazers_url":"https://api.github.com/repos/bblfish/scala-js-dom/stargazers","contributors_url":"https://api.github.com/repos/bblfish/scala-js-dom/contributors","subscribers_url":"https://api.github.com/repos/bblfish/scala-js-dom/subscribers","subscription_url":"https://api.github.com/repos/bblfish/scala-js-dom/subscription","commits_url":"https://api.github.com/repos/bblfish/scala-js-dom/commits{/sha}","git_commits_url":"https://api.github.com/repos/bblfish/scala-js-dom/git/commits{/sha}","comments_url":"https://api.github.com/repos/bblfish/scala-js-dom/comments{/number}","issue_comment_url":"https://api.github.com/repos/bblfish/scala-js-dom/issues/comments{/number}","contents_url":"https://api.github.com/repos/bblfish/scala-js-dom/contents/{+path}","compare_url":"https://api.github.com/repos/bblfish/scala-js-dom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bblfish/scala-js-dom/merges","archive_url":"https://api.github.com/repos/bblfish/scala-js-dom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bblfish/scala-js-dom/downloads","issues_url":"https://api.github.com/repos/bblfish/scala-js-dom/issues{/number}","pulls_url":"https://api.github.com/repos/bblfish/scala-js-dom/pulls{/number}","milestones_url":"https://api.github.com/repos/bblfish/scala-js-dom/milestones{/number}","notifications_url":"https://api.github.com/repos/bblfish/scala-js-dom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bblfish/scala-js-dom/labels{/name}","releases_url":"https://api.github.com/repos/bblfish/scala-js-dom/releases{/id}","created_at":"2015-11-07T12:59:47Z","updated_at":"2015-11-07T12:59:48Z","pushed_at":"2015-12-02T18:54:37Z","git_url":"git://github.com/bblfish/scala-js-dom.git","ssh_url":"git@github.com:bblfish/scala-js-dom.git","clone_url":"https://github.com/bblfish/scala-js-dom.git","svn_url":"https://github.com/bblfish/scala-js-dom","homepage":null,"size":2038,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scala-js:master","ref":"master","sha":"25ebd8ddf69221f366a2bf15cba1e338723311f6","user":{"login":"scala-js","id":6039724,"avatar_url":"https://avatars.githubusercontent.com/u/6039724?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-js","html_url":"https://github.com/scala-js","followers_url":"https://api.github.com/users/scala-js/followers","following_url":"https://api.github.com/users/scala-js/following{/other_user}","gists_url":"https://api.github.com/users/scala-js/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-js/subscriptions","organizations_url":"https://api.github.com/users/scala-js/orgs","repos_url":"https://api.github.com/users/scala-js/repos","events_url":"https://api.github.com/users/scala-js/events{/privacy}","received_events_url":"https://api.github.com/users/scala-js/received_events","type":"Organization","site_admin":false},"repo":{"id":13578796,"name":"scala-js-dom","full_name":"scala-js/scala-js-dom","owner":{"login":"scala-js","id":6039724,"avatar_url":"https://avatars.githubusercontent.com/u/6039724?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-js","html_url":"https://github.com/scala-js","followers_url":"https://api.github.com/users/scala-js/followers","following_url":"https://api.github.com/users/scala-js/following{/other_user}","gists_url":"https://api.github.com/users/scala-js/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-js/subscriptions","organizations_url":"https://api.github.com/users/scala-js/orgs","repos_url":"https://api.github.com/users/scala-js/repos","events_url":"https://api.github.com/users/scala-js/events{/privacy}","received_events_url":"https://api.github.com/users/scala-js/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scala-js/scala-js-dom","description":"statically typed dom wrappers for scala-js","fork":false,"url":"https://api.github.com/repos/scala-js/scala-js-dom","forks_url":"https://api.github.com/repos/scala-js/scala-js-dom/forks","keys_url":"https://api.github.com/repos/scala-js/scala-js-dom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scala-js/scala-js-dom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scala-js/scala-js-dom/teams","hooks_url":"https://api.github.com/repos/scala-js/scala-js-dom/hooks","issue_events_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/events{/number}","events_url":"https://api.github.com/repos/scala-js/scala-js-dom/events","assignees_url":"https://api.github.com/repos/scala-js/scala-js-dom/assignees{/user}","branches_url":"https://api.github.com/repos/scala-js/scala-js-dom/branches{/branch}","tags_url":"https://api.github.com/repos/scala-js/scala-js-dom/tags","blobs_url":"https://api.github.com/repos/scala-js/scala-js-dom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scala-js/scala-js-dom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scala-js/scala-js-dom/git/refs{/sha}","trees_url":"https://api.github.com/repos/scala-js/scala-js-dom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scala-js/scala-js-dom/statuses/{sha}","languages_url":"https://api.github.com/repos/scala-js/scala-js-dom/languages","stargazers_url":"https://api.github.com/repos/scala-js/scala-js-dom/stargazers","contributors_url":"https://api.github.com/repos/scala-js/scala-js-dom/contributors","subscribers_url":"https://api.github.com/repos/scala-js/scala-js-dom/subscribers","subscription_url":"https://api.github.com/repos/scala-js/scala-js-dom/subscription","commits_url":"https://api.github.com/repos/scala-js/scala-js-dom/commits{/sha}","git_commits_url":"https://api.github.com/repos/scala-js/scala-js-dom/git/commits{/sha}","comments_url":"https://api.github.com/repos/scala-js/scala-js-dom/comments{/number}","issue_comment_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/comments{/number}","contents_url":"https://api.github.com/repos/scala-js/scala-js-dom/contents/{+path}","compare_url":"https://api.github.com/repos/scala-js/scala-js-dom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scala-js/scala-js-dom/merges","archive_url":"https://api.github.com/repos/scala-js/scala-js-dom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scala-js/scala-js-dom/downloads","issues_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues{/number}","pulls_url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls{/number}","milestones_url":"https://api.github.com/repos/scala-js/scala-js-dom/milestones{/number}","notifications_url":"https://api.github.com/repos/scala-js/scala-js-dom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scala-js/scala-js-dom/labels{/name}","releases_url":"https://api.github.com/repos/scala-js/scala-js-dom/releases{/id}","created_at":"2013-10-15T02:35:07Z","updated_at":"2015-11-27T19:11:30Z","pushed_at":"2015-12-02T18:54:39Z","git_url":"git://github.com/scala-js/scala-js-dom.git","ssh_url":"git@github.com:scala-js/scala-js-dom.git","clone_url":"https://github.com/scala-js/scala-js-dom.git","svn_url":"https://github.com/scala-js/scala-js-dom","homepage":null,"size":2143,"stargazers_count":99,"watchers_count":99,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":17,"forks":44,"open_issues":17,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/177"},"html":{"href":"https://github.com/scala-js/scala-js-dom/pull/177"},"issue":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/issues/177"},"comments":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/scala-js/scala-js-dom/statuses/ae4f2a7817bb7694a2edec0ef70b17450ea94498"}}}}