{"action":"created","comment":{"url":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/comments/180970096","pull_request_review_id":111485554,"id":180970096,"diff_hunk":"@@ -0,0 +1,12 @@\n+export default class DeviceMotionEvent {\n+  constructor() {\n+    this.type = 'devicemotion';\n+  }\n+}\n+\n+wx.onAccelerometerChange(function (res) {\n+  var deviceMotionEvent = new DeviceMotionEvent();\n+  deviceMotionEvent.accelerationIncludingGravity = res;","path":"src/EventIniter/DeviceMotionEvent.js","position":9,"original_position":9,"commit_id":"b88e95f2eb95f20057665e78bc1405f2576319f1","original_commit_id":"b88e95f2eb95f20057665e78bc1405f2576319f1","user":{"login":"umbrellaPP","id":17872773,"avatar_url":"https://avatars2.githubusercontent.com/u/17872773?v=4","gravatar_id":"","url":"https://api.github.com/users/umbrellaPP","html_url":"https://github.com/umbrellaPP","followers_url":"https://api.github.com/users/umbrellaPP/followers","following_url":"https://api.github.com/users/umbrellaPP/following{/other_user}","gists_url":"https://api.github.com/users/umbrellaPP/gists{/gist_id}","starred_url":"https://api.github.com/users/umbrellaPP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umbrellaPP/subscriptions","organizations_url":"https://api.github.com/users/umbrellaPP/orgs","repos_url":"https://api.github.com/users/umbrellaPP/repos","events_url":"https://api.github.com/users/umbrellaPP/events{/privacy}","received_events_url":"https://api.github.com/users/umbrellaPP/received_events","type":"User","site_admin":false},"body":"没有什么特别的目的哦，我只是觉得构造constructor 里声明一个空对象没太大意义\r\n需要再constructor 里提前声明吗","created_at":"2018-04-12T05:44:15Z","updated_at":"2018-04-12T05:44:15Z","html_url":"https://github.com/cocos-creator/weapp-adapter/pull/4#discussion_r180970096","pull_request_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/comments/180970096"},"html":{"href":"https://github.com/cocos-creator/weapp-adapter/pull/4#discussion_r180970096"},"pull_request":{"href":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/4"}},"in_reply_to_id":180969617},"pull_request":{"url":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/4","id":181090896,"html_url":"https://github.com/cocos-creator/weapp-adapter/pull/4","diff_url":"https://github.com/cocos-creator/weapp-adapter/pull/4.diff","patch_url":"https://github.com/cocos-creator/weapp-adapter/pull/4.patch","issue_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/issues/4","number":4,"state":"open","locked":false,"title":"adapt DeviceMotionEvent","user":{"login":"umbrellaPP","id":17872773,"avatar_url":"https://avatars2.githubusercontent.com/u/17872773?v=4","gravatar_id":"","url":"https://api.github.com/users/umbrellaPP","html_url":"https://github.com/umbrellaPP","followers_url":"https://api.github.com/users/umbrellaPP/followers","following_url":"https://api.github.com/users/umbrellaPP/following{/other_user}","gists_url":"https://api.github.com/users/umbrellaPP/gists{/gist_id}","starred_url":"https://api.github.com/users/umbrellaPP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umbrellaPP/subscriptions","organizations_url":"https://api.github.com/users/umbrellaPP/orgs","repos_url":"https://api.github.com/users/umbrellaPP/repos","events_url":"https://api.github.com/users/umbrellaPP/events{/privacy}","received_events_url":"https://api.github.com/users/umbrellaPP/received_events","type":"User","site_admin":false},"body":"适配小游戏重力检测","created_at":"2018-04-12T05:01:04Z","updated_at":"2018-04-12T05:44:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96f853d8d8e411aa4be60517d332849d4d9ab5e0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/4/commits","review_comments_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/4/comments","review_comment_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/issues/4/comments","statuses_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/statuses/b88e95f2eb95f20057665e78bc1405f2576319f1","head":{"label":"umbrellaPP:master","ref":"master","sha":"b88e95f2eb95f20057665e78bc1405f2576319f1","user":{"login":"umbrellaPP","id":17872773,"avatar_url":"https://avatars2.githubusercontent.com/u/17872773?v=4","gravatar_id":"","url":"https://api.github.com/users/umbrellaPP","html_url":"https://github.com/umbrellaPP","followers_url":"https://api.github.com/users/umbrellaPP/followers","following_url":"https://api.github.com/users/umbrellaPP/following{/other_user}","gists_url":"https://api.github.com/users/umbrellaPP/gists{/gist_id}","starred_url":"https://api.github.com/users/umbrellaPP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umbrellaPP/subscriptions","organizations_url":"https://api.github.com/users/umbrellaPP/orgs","repos_url":"https://api.github.com/users/umbrellaPP/repos","events_url":"https://api.github.com/users/umbrellaPP/events{/privacy}","received_events_url":"https://api.github.com/users/umbrellaPP/received_events","type":"User","site_admin":false},"repo":{"id":125840188,"name":"weapp-adapter","full_name":"umbrellaPP/weapp-adapter","owner":{"login":"umbrellaPP","id":17872773,"avatar_url":"https://avatars2.githubusercontent.com/u/17872773?v=4","gravatar_id":"","url":"https://api.github.com/users/umbrellaPP","html_url":"https://github.com/umbrellaPP","followers_url":"https://api.github.com/users/umbrellaPP/followers","following_url":"https://api.github.com/users/umbrellaPP/following{/other_user}","gists_url":"https://api.github.com/users/umbrellaPP/gists{/gist_id}","starred_url":"https://api.github.com/users/umbrellaPP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umbrellaPP/subscriptions","organizations_url":"https://api.github.com/users/umbrellaPP/orgs","repos_url":"https://api.github.com/users/umbrellaPP/repos","events_url":"https://api.github.com/users/umbrellaPP/events{/privacy}","received_events_url":"https://api.github.com/users/umbrellaPP/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/umbrellaPP/weapp-adapter","description":"weapp-adapter of Wechat Tiny Game in ES6","fork":true,"url":"https://api.github.com/repos/umbrellaPP/weapp-adapter","forks_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/forks","keys_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/teams","hooks_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/hooks","issue_events_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/issues/events{/number}","events_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/events","assignees_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/assignees{/user}","branches_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/branches{/branch}","tags_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/tags","blobs_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/git/refs{/sha}","trees_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/statuses/{sha}","languages_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/languages","stargazers_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/stargazers","contributors_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/contributors","subscribers_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/subscribers","subscription_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/subscription","commits_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/commits{/sha}","git_commits_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/git/commits{/sha}","comments_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/comments{/number}","issue_comment_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/issues/comments{/number}","contents_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/contents/{+path}","compare_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/merges","archive_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/downloads","issues_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/issues{/number}","pulls_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/pulls{/number}","milestones_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/milestones{/number}","notifications_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/labels{/name}","releases_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/releases{/id}","deployments_url":"https://api.github.com/repos/umbrellaPP/weapp-adapter/deployments","created_at":"2018-03-19T10:23:11Z","updated_at":"2018-04-12T04:58:51Z","pushed_at":"2018-04-12T04:58:50Z","git_url":"git://github.com/umbrellaPP/weapp-adapter.git","ssh_url":"git@github.com:umbrellaPP/weapp-adapter.git","clone_url":"https://github.com/umbrellaPP/weapp-adapter.git","svn_url":"https://github.com/umbrellaPP/weapp-adapter","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cocos-creator:master","ref":"master","sha":"5d88e3c5f6b017c25a0688d3ed1e35242efe07bc","user":{"login":"cocos-creator","id":6937061,"avatar_url":"https://avatars3.githubusercontent.com/u/6937061?v=4","gravatar_id":"","url":"https://api.github.com/users/cocos-creator","html_url":"https://github.com/cocos-creator","followers_url":"https://api.github.com/users/cocos-creator/followers","following_url":"https://api.github.com/users/cocos-creator/following{/other_user}","gists_url":"https://api.github.com/users/cocos-creator/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos-creator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos-creator/subscriptions","organizations_url":"https://api.github.com/users/cocos-creator/orgs","repos_url":"https://api.github.com/users/cocos-creator/repos","events_url":"https://api.github.com/users/cocos-creator/events{/privacy}","received_events_url":"https://api.github.com/users/cocos-creator/received_events","type":"Organization","site_admin":false},"repo":{"id":125474095,"name":"weapp-adapter","full_name":"cocos-creator/weapp-adapter","owner":{"login":"cocos-creator","id":6937061,"avatar_url":"https://avatars3.githubusercontent.com/u/6937061?v=4","gravatar_id":"","url":"https://api.github.com/users/cocos-creator","html_url":"https://github.com/cocos-creator","followers_url":"https://api.github.com/users/cocos-creator/followers","following_url":"https://api.github.com/users/cocos-creator/following{/other_user}","gists_url":"https://api.github.com/users/cocos-creator/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos-creator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos-creator/subscriptions","organizations_url":"https://api.github.com/users/cocos-creator/orgs","repos_url":"https://api.github.com/users/cocos-creator/repos","events_url":"https://api.github.com/users/cocos-creator/events{/privacy}","received_events_url":"https://api.github.com/users/cocos-creator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cocos-creator/weapp-adapter","description":"weapp-adapter of Wechat Tiny Game in ES6","fork":true,"url":"https://api.github.com/repos/cocos-creator/weapp-adapter","forks_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/forks","keys_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/teams","hooks_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/hooks","issue_events_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/issues/events{/number}","events_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/events","assignees_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/assignees{/user}","branches_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/branches{/branch}","tags_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/tags","blobs_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/statuses/{sha}","languages_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/languages","stargazers_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/stargazers","contributors_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/contributors","subscribers_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/subscribers","subscription_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/subscription","commits_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/contents/{+path}","compare_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/merges","archive_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/downloads","issues_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/issues{/number}","pulls_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls{/number}","milestones_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/milestones{/number}","notifications_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/labels{/name}","releases_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/releases{/id}","deployments_url":"https://api.github.com/repos/cocos-creator/weapp-adapter/deployments","created_at":"2018-03-16T06:34:26Z","updated_at":"2018-03-23T08:38:08Z","pushed_at":"2018-04-12T05:01:05Z","git_url":"git://github.com/cocos-creator/weapp-adapter.git","ssh_url":"git@github.com:cocos-creator/weapp-adapter.git","clone_url":"https://github.com/cocos-creator/weapp-adapter.git","svn_url":"https://github.com/cocos-creator/weapp-adapter","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/4"},"html":{"href":"https://github.com/cocos-creator/weapp-adapter/pull/4"},"issue":{"href":"https://api.github.com/repos/cocos-creator/weapp-adapter/issues/4"},"comments":{"href":"https://api.github.com/repos/cocos-creator/weapp-adapter/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cocos-creator/weapp-adapter/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/cocos-creator/weapp-adapter/statuses/b88e95f2eb95f20057665e78bc1405f2576319f1"}},"author_association":"NONE"}}
{"actor":{"display_login":"umbrellaPP"}}