{"action":"created","comment":{"url":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/comments/77000697","id":77000697,"diff_hunk":"@@ -0,0 +1,95 @@\n+// Copyright (c) 2015, the Dart project authors.  Please see the AUTHORS file\n+// for details. All rights reserved. Use of this source code is governed by a\n+// BSD-style license that can be found in the LICENSE file.\n+library polymer.lib.src.common.es6_js_proxy;\n+\n+import 'dart:html';\n+import 'dart:js';\n+\n+import 'package:polymer/src/common/js_proxy.dart';\n+import 'package:polymer_interop/polymer_interop.dart';\n+export 'package:polymer_interop/polymer_interop.dart'\n+    show convertToDart, convertToJs;\n+import 'package:reflectable/reflectable.dart';\n+\n+import 'behavior.dart';\n+import 'declarations.dart';\n+import 'reflectable.dart';\n+\n+/// Mixin this class to get js proxy support! If a [JsProxy] is passed to\n+/// [convertToJs] then you will get back a [JsObject] which is fully usable from\n+/// JS, but proxies all method calls and properties to the dart instance.\n+/// Calling [convertToDart] on that [JsObject] will also return the original\n+/// dart instance (not a copy).\n+@jsProxyReflectable\n+abstract class ES6JsProxy implements JsProxyInterface {\n+  JsFunction get jsProxyConstructor => null;\n+  JsObject _jsProxy;\n+  JsObject get jsProxy {\n+    if (_jsProxy == null) _jsProxy = _buildES6JsProxy(this);\n+    return _jsProxy;\n+  }\n+}\n+\n+final Function\n+    _es6JsPropertyGetter = /*new JsFunction.withThis*/ ((dartInstance,","path":"lib/src/common/es6_js_proxy.dart","position":35,"original_position":35,"commit_id":"b80ff487e76983d40f3bcdd351d952183dcbdd64","original_commit_id":"b80ff487e76983d40f3bcdd351d952183dcbdd64","user":{"login":"jakemac53","id":984921,"avatar_url":"https://avatars.githubusercontent.com/u/984921?v=3","gravatar_id":"","url":"https://api.github.com/users/jakemac53","html_url":"https://github.com/jakemac53","followers_url":"https://api.github.com/users/jakemac53/followers","following_url":"https://api.github.com/users/jakemac53/following{/other_user}","gists_url":"https://api.github.com/users/jakemac53/gists{/gist_id}","starred_url":"https://api.github.com/users/jakemac53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakemac53/subscriptions","organizations_url":"https://api.github.com/users/jakemac53/orgs","repos_url":"https://api.github.com/users/jakemac53/repos","events_url":"https://api.github.com/users/jakemac53/events{/privacy}","received_events_url":"https://api.github.com/users/jakemac53/received_events","type":"User","site_admin":false},"body":"if you don't need the `new JsFunction.withThis` then lets just make this a normal function definition.","created_at":"2016-08-31T14:43:18Z","updated_at":"2016-08-31T14:43:18Z","html_url":"https://github.com/dart-lang/polymer-dart/pull/710#discussion_r77000697","pull_request_url":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/710","_links":{"self":{"href":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/comments/77000697"},"html":{"href":"https://github.com/dart-lang/polymer-dart/pull/710#discussion_r77000697"},"pull_request":{"href":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/710"}}},"pull_request":{"url":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/710","id":83369953,"html_url":"https://github.com/dart-lang/polymer-dart/pull/710","diff_url":"https://github.com/dart-lang/polymer-dart/pull/710.diff","patch_url":"https://github.com/dart-lang/polymer-dart/pull/710.patch","issue_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/710","number":710,"state":"open","locked":false,"title":"initial work on es6 proxy","user":{"login":"dam0vm3nt","id":2409466,"avatar_url":"https://avatars.githubusercontent.com/u/2409466?v=3","gravatar_id":"","url":"https://api.github.com/users/dam0vm3nt","html_url":"https://github.com/dam0vm3nt","followers_url":"https://api.github.com/users/dam0vm3nt/followers","following_url":"https://api.github.com/users/dam0vm3nt/following{/other_user}","gists_url":"https://api.github.com/users/dam0vm3nt/gists{/gist_id}","starred_url":"https://api.github.com/users/dam0vm3nt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dam0vm3nt/subscriptions","organizations_url":"https://api.github.com/users/dam0vm3nt/orgs","repos_url":"https://api.github.com/users/dam0vm3nt/repos","events_url":"https://api.github.com/users/dam0vm3nt/events{/privacy}","received_events_url":"https://api.github.com/users/dam0vm3nt/received_events","type":"User","site_admin":false},"body":"This is just the initial version but it is already working. Still needs some improvements and lacks array and maps support.\r\n\r\n","created_at":"2016-08-31T00:23:08Z","updated_at":"2016-08-31T14:43:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4b642c35dbfa9a46d9f881279324b926cfc4e88","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/710/commits","review_comments_url":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/710/comments","review_comment_url":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/710/comments","statuses_url":"https://api.github.com/repos/dart-lang/polymer-dart/statuses/b80ff487e76983d40f3bcdd351d952183dcbdd64","head":{"label":"dam0vm3nt:es6-proxy","ref":"es6-proxy","sha":"b80ff487e76983d40f3bcdd351d952183dcbdd64","user":{"login":"dam0vm3nt","id":2409466,"avatar_url":"https://avatars.githubusercontent.com/u/2409466?v=3","gravatar_id":"","url":"https://api.github.com/users/dam0vm3nt","html_url":"https://github.com/dam0vm3nt","followers_url":"https://api.github.com/users/dam0vm3nt/followers","following_url":"https://api.github.com/users/dam0vm3nt/following{/other_user}","gists_url":"https://api.github.com/users/dam0vm3nt/gists{/gist_id}","starred_url":"https://api.github.com/users/dam0vm3nt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dam0vm3nt/subscriptions","organizations_url":"https://api.github.com/users/dam0vm3nt/orgs","repos_url":"https://api.github.com/users/dam0vm3nt/repos","events_url":"https://api.github.com/users/dam0vm3nt/events{/privacy}","received_events_url":"https://api.github.com/users/dam0vm3nt/received_events","type":"User","site_admin":false},"repo":{"id":42894687,"name":"polymer-dart","full_name":"dam0vm3nt/polymer-dart","owner":{"login":"dam0vm3nt","id":2409466,"avatar_url":"https://avatars.githubusercontent.com/u/2409466?v=3","gravatar_id":"","url":"https://api.github.com/users/dam0vm3nt","html_url":"https://github.com/dam0vm3nt","followers_url":"https://api.github.com/users/dam0vm3nt/followers","following_url":"https://api.github.com/users/dam0vm3nt/following{/other_user}","gists_url":"https://api.github.com/users/dam0vm3nt/gists{/gist_id}","starred_url":"https://api.github.com/users/dam0vm3nt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dam0vm3nt/subscriptions","organizations_url":"https://api.github.com/users/dam0vm3nt/orgs","repos_url":"https://api.github.com/users/dam0vm3nt/repos","events_url":"https://api.github.com/users/dam0vm3nt/events{/privacy}","received_events_url":"https://api.github.com/users/dam0vm3nt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dam0vm3nt/polymer-dart","description":"Polymer support for Dart","fork":true,"url":"https://api.github.com/repos/dam0vm3nt/polymer-dart","forks_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/forks","keys_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/teams","hooks_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/hooks","issue_events_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/issues/events{/number}","events_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/events","assignees_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/assignees{/user}","branches_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/branches{/branch}","tags_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/tags","blobs_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/git/refs{/sha}","trees_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/statuses/{sha}","languages_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/languages","stargazers_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/stargazers","contributors_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/contributors","subscribers_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/subscribers","subscription_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/subscription","commits_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/commits{/sha}","git_commits_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/git/commits{/sha}","comments_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/comments{/number}","issue_comment_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/issues/comments{/number}","contents_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/contents/{+path}","compare_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/merges","archive_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/downloads","issues_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/issues{/number}","pulls_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/pulls{/number}","milestones_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/milestones{/number}","notifications_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/labels{/name}","releases_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/releases{/id}","deployments_url":"https://api.github.com/repos/dam0vm3nt/polymer-dart/deployments","created_at":"2015-09-21T21:29:43Z","updated_at":"2016-07-18T15:02:27Z","pushed_at":"2016-08-31T00:31:54Z","git_url":"git://github.com/dam0vm3nt/polymer-dart.git","ssh_url":"git@github.com:dam0vm3nt/polymer-dart.git","clone_url":"https://github.com/dam0vm3nt/polymer-dart.git","svn_url":"https://github.com/dam0vm3nt/polymer-dart","homepage":"https://pub.dartlang.org/packages/polymer","size":3748,"stargazers_count":0,"watchers_count":0,"language":"Dart","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":"dart-lang:master","ref":"master","sha":"4f71385bd44b450cba5dc406e29bab0c4123c121","user":{"login":"dart-lang","id":1609975,"avatar_url":"https://avatars.githubusercontent.com/u/1609975?v=3","gravatar_id":"","url":"https://api.github.com/users/dart-lang","html_url":"https://github.com/dart-lang","followers_url":"https://api.github.com/users/dart-lang/followers","following_url":"https://api.github.com/users/dart-lang/following{/other_user}","gists_url":"https://api.github.com/users/dart-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/dart-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dart-lang/subscriptions","organizations_url":"https://api.github.com/users/dart-lang/orgs","repos_url":"https://api.github.com/users/dart-lang/repos","events_url":"https://api.github.com/users/dart-lang/events{/privacy}","received_events_url":"https://api.github.com/users/dart-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":24337873,"name":"polymer-dart","full_name":"dart-lang/polymer-dart","owner":{"login":"dart-lang","id":1609975,"avatar_url":"https://avatars.githubusercontent.com/u/1609975?v=3","gravatar_id":"","url":"https://api.github.com/users/dart-lang","html_url":"https://github.com/dart-lang","followers_url":"https://api.github.com/users/dart-lang/followers","following_url":"https://api.github.com/users/dart-lang/following{/other_user}","gists_url":"https://api.github.com/users/dart-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/dart-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dart-lang/subscriptions","organizations_url":"https://api.github.com/users/dart-lang/orgs","repos_url":"https://api.github.com/users/dart-lang/repos","events_url":"https://api.github.com/users/dart-lang/events{/privacy}","received_events_url":"https://api.github.com/users/dart-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dart-lang/polymer-dart","description":"Polymer support for Dart","fork":false,"url":"https://api.github.com/repos/dart-lang/polymer-dart","forks_url":"https://api.github.com/repos/dart-lang/polymer-dart/forks","keys_url":"https://api.github.com/repos/dart-lang/polymer-dart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dart-lang/polymer-dart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dart-lang/polymer-dart/teams","hooks_url":"https://api.github.com/repos/dart-lang/polymer-dart/hooks","issue_events_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/events{/number}","events_url":"https://api.github.com/repos/dart-lang/polymer-dart/events","assignees_url":"https://api.github.com/repos/dart-lang/polymer-dart/assignees{/user}","branches_url":"https://api.github.com/repos/dart-lang/polymer-dart/branches{/branch}","tags_url":"https://api.github.com/repos/dart-lang/polymer-dart/tags","blobs_url":"https://api.github.com/repos/dart-lang/polymer-dart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dart-lang/polymer-dart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dart-lang/polymer-dart/git/refs{/sha}","trees_url":"https://api.github.com/repos/dart-lang/polymer-dart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dart-lang/polymer-dart/statuses/{sha}","languages_url":"https://api.github.com/repos/dart-lang/polymer-dart/languages","stargazers_url":"https://api.github.com/repos/dart-lang/polymer-dart/stargazers","contributors_url":"https://api.github.com/repos/dart-lang/polymer-dart/contributors","subscribers_url":"https://api.github.com/repos/dart-lang/polymer-dart/subscribers","subscription_url":"https://api.github.com/repos/dart-lang/polymer-dart/subscription","commits_url":"https://api.github.com/repos/dart-lang/polymer-dart/commits{/sha}","git_commits_url":"https://api.github.com/repos/dart-lang/polymer-dart/git/commits{/sha}","comments_url":"https://api.github.com/repos/dart-lang/polymer-dart/comments{/number}","issue_comment_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/comments{/number}","contents_url":"https://api.github.com/repos/dart-lang/polymer-dart/contents/{+path}","compare_url":"https://api.github.com/repos/dart-lang/polymer-dart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dart-lang/polymer-dart/merges","archive_url":"https://api.github.com/repos/dart-lang/polymer-dart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dart-lang/polymer-dart/downloads","issues_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues{/number}","pulls_url":"https://api.github.com/repos/dart-lang/polymer-dart/pulls{/number}","milestones_url":"https://api.github.com/repos/dart-lang/polymer-dart/milestones{/number}","notifications_url":"https://api.github.com/repos/dart-lang/polymer-dart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dart-lang/polymer-dart/labels{/name}","releases_url":"https://api.github.com/repos/dart-lang/polymer-dart/releases{/id}","deployments_url":"https://api.github.com/repos/dart-lang/polymer-dart/deployments","created_at":"2014-09-22T17:18:57Z","updated_at":"2016-08-30T15:28:44Z","pushed_at":"2016-08-31T00:31:55Z","git_url":"git://github.com/dart-lang/polymer-dart.git","ssh_url":"git@github.com:dart-lang/polymer-dart.git","clone_url":"https://github.com/dart-lang/polymer-dart.git","svn_url":"https://github.com/dart-lang/polymer-dart","homepage":"https://pub.dartlang.org/packages/polymer","size":4053,"stargazers_count":172,"watchers_count":172,"language":"Dart","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":51,"forks":34,"open_issues":51,"watchers":172,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/710"},"html":{"href":"https://github.com/dart-lang/polymer-dart/pull/710"},"issue":{"href":"https://api.github.com/repos/dart-lang/polymer-dart/issues/710"},"comments":{"href":"https://api.github.com/repos/dart-lang/polymer-dart/issues/710/comments"},"review_comments":{"href":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/710/comments"},"review_comment":{"href":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dart-lang/polymer-dart/pulls/710/commits"},"statuses":{"href":"https://api.github.com/repos/dart-lang/polymer-dart/statuses/b80ff487e76983d40f3bcdd351d952183dcbdd64"}}}}
{"actor":{"display_login":"jakemac53"}}