{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/airpub/ninja/pulls/3","id":28417478,"html_url":"https://github.com/airpub/ninja/pull/3","diff_url":"https://github.com/airpub/ninja/pull/3.diff","patch_url":"https://github.com/airpub/ninja/pull/3.patch","issue_url":"https://api.github.com/repos/airpub/ninja/issues/3","number":3,"state":"open","locked":false,"title":"修正 editor.inject() 时报错问题 undefined is not a function","user":{"login":"leizongmin","id":841625,"avatar_url":"https://avatars.githubusercontent.com/u/841625?v=3","gravatar_id":"","url":"https://api.github.com/users/leizongmin","html_url":"https://github.com/leizongmin","followers_url":"https://api.github.com/users/leizongmin/followers","following_url":"https://api.github.com/users/leizongmin/following{/other_user}","gists_url":"https://api.github.com/users/leizongmin/gists{/gist_id}","starred_url":"https://api.github.com/users/leizongmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leizongmin/subscriptions","organizations_url":"https://api.github.com/users/leizongmin/orgs","repos_url":"https://api.github.com/users/leizongmin/repos","events_url":"https://api.github.com/users/leizongmin/events{/privacy}","received_events_url":"https://api.github.com/users/leizongmin/received_events","type":"User","site_admin":false},"body":"```javascript\r\nfunction inject(cm, texts, triggered) {\r\n  // 这里传过来的texts实际上是一个arguments对象（在Node.js里面arguments是一个array，但是Chrome浏览器下是一个object\r\n  // 后面的程序执行 texts.join() 时会报错，因此在使用前需要先将其转为数组\r\n}\r\n```","created_at":"2015-01-31T17:03:17Z","updated_at":"2015-01-31T17:03:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79945bbf9015a47e11b0791a7d91852f39163bef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/airpub/ninja/pulls/3/commits","review_comments_url":"https://api.github.com/repos/airpub/ninja/pulls/3/comments","review_comment_url":"https://api.github.com/repos/airpub/ninja/pulls/comments/{number}","comments_url":"https://api.github.com/repos/airpub/ninja/issues/3/comments","statuses_url":"https://api.github.com/repos/airpub/ninja/statuses/e4b7f22f91813e44a20a17568ef5581e226743b7","head":{"label":"WritingsSpace:master","ref":"master","sha":"e4b7f22f91813e44a20a17568ef5581e226743b7","user":{"login":"WritingsSpace","id":10782814,"avatar_url":"https://avatars.githubusercontent.com/u/10782814?v=3","gravatar_id":"","url":"https://api.github.com/users/WritingsSpace","html_url":"https://github.com/WritingsSpace","followers_url":"https://api.github.com/users/WritingsSpace/followers","following_url":"https://api.github.com/users/WritingsSpace/following{/other_user}","gists_url":"https://api.github.com/users/WritingsSpace/gists{/gist_id}","starred_url":"https://api.github.com/users/WritingsSpace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WritingsSpace/subscriptions","organizations_url":"https://api.github.com/users/WritingsSpace/orgs","repos_url":"https://api.github.com/users/WritingsSpace/repos","events_url":"https://api.github.com/users/WritingsSpace/events{/privacy}","received_events_url":"https://api.github.com/users/WritingsSpace/received_events","type":"Organization","site_admin":false},"repo":{"id":30104218,"name":"ninja","full_name":"WritingsSpace/ninja","owner":{"login":"WritingsSpace","id":10782814,"avatar_url":"https://avatars.githubusercontent.com/u/10782814?v=3","gravatar_id":"","url":"https://api.github.com/users/WritingsSpace","html_url":"https://github.com/WritingsSpace","followers_url":"https://api.github.com/users/WritingsSpace/followers","following_url":"https://api.github.com/users/WritingsSpace/following{/other_user}","gists_url":"https://api.github.com/users/WritingsSpace/gists{/gist_id}","starred_url":"https://api.github.com/users/WritingsSpace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WritingsSpace/subscriptions","organizations_url":"https://api.github.com/users/WritingsSpace/orgs","repos_url":"https://api.github.com/users/WritingsSpace/repos","events_url":"https://api.github.com/users/WritingsSpace/events{/privacy}","received_events_url":"https://api.github.com/users/WritingsSpace/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WritingsSpace/ninja","description":"a hackable Markdown editor","fork":true,"url":"https://api.github.com/repos/WritingsSpace/ninja","forks_url":"https://api.github.com/repos/WritingsSpace/ninja/forks","keys_url":"https://api.github.com/repos/WritingsSpace/ninja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WritingsSpace/ninja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WritingsSpace/ninja/teams","hooks_url":"https://api.github.com/repos/WritingsSpace/ninja/hooks","issue_events_url":"https://api.github.com/repos/WritingsSpace/ninja/issues/events{/number}","events_url":"https://api.github.com/repos/WritingsSpace/ninja/events","assignees_url":"https://api.github.com/repos/WritingsSpace/ninja/assignees{/user}","branches_url":"https://api.github.com/repos/WritingsSpace/ninja/branches{/branch}","tags_url":"https://api.github.com/repos/WritingsSpace/ninja/tags","blobs_url":"https://api.github.com/repos/WritingsSpace/ninja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WritingsSpace/ninja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WritingsSpace/ninja/git/refs{/sha}","trees_url":"https://api.github.com/repos/WritingsSpace/ninja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WritingsSpace/ninja/statuses/{sha}","languages_url":"https://api.github.com/repos/WritingsSpace/ninja/languages","stargazers_url":"https://api.github.com/repos/WritingsSpace/ninja/stargazers","contributors_url":"https://api.github.com/repos/WritingsSpace/ninja/contributors","subscribers_url":"https://api.github.com/repos/WritingsSpace/ninja/subscribers","subscription_url":"https://api.github.com/repos/WritingsSpace/ninja/subscription","commits_url":"https://api.github.com/repos/WritingsSpace/ninja/commits{/sha}","git_commits_url":"https://api.github.com/repos/WritingsSpace/ninja/git/commits{/sha}","comments_url":"https://api.github.com/repos/WritingsSpace/ninja/comments{/number}","issue_comment_url":"https://api.github.com/repos/WritingsSpace/ninja/issues/comments/{number}","contents_url":"https://api.github.com/repos/WritingsSpace/ninja/contents/{+path}","compare_url":"https://api.github.com/repos/WritingsSpace/ninja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WritingsSpace/ninja/merges","archive_url":"https://api.github.com/repos/WritingsSpace/ninja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WritingsSpace/ninja/downloads","issues_url":"https://api.github.com/repos/WritingsSpace/ninja/issues{/number}","pulls_url":"https://api.github.com/repos/WritingsSpace/ninja/pulls{/number}","milestones_url":"https://api.github.com/repos/WritingsSpace/ninja/milestones{/number}","notifications_url":"https://api.github.com/repos/WritingsSpace/ninja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WritingsSpace/ninja/labels{/name}","releases_url":"https://api.github.com/repos/WritingsSpace/ninja/releases{/id}","created_at":"2015-01-31T06:11:06Z","updated_at":"2015-01-31T17:00:39Z","pushed_at":"2015-01-31T17:00:39Z","git_url":"git://github.com/WritingsSpace/ninja.git","ssh_url":"git@github.com:WritingsSpace/ninja.git","clone_url":"https://github.com/WritingsSpace/ninja.git","svn_url":"https://github.com/WritingsSpace/ninja","homepage":"editor.ninja","size":2364,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"airpub:master","ref":"master","sha":"76bb1b76bf6d5a34d84da6a063b4130f1c5f5d87","user":{"login":"airpub","id":8274499,"avatar_url":"https://avatars.githubusercontent.com/u/8274499?v=3","gravatar_id":"","url":"https://api.github.com/users/airpub","html_url":"https://github.com/airpub","followers_url":"https://api.github.com/users/airpub/followers","following_url":"https://api.github.com/users/airpub/following{/other_user}","gists_url":"https://api.github.com/users/airpub/gists{/gist_id}","starred_url":"https://api.github.com/users/airpub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airpub/subscriptions","organizations_url":"https://api.github.com/users/airpub/orgs","repos_url":"https://api.github.com/users/airpub/repos","events_url":"https://api.github.com/users/airpub/events{/privacy}","received_events_url":"https://api.github.com/users/airpub/received_events","type":"Organization","site_admin":false},"repo":{"id":23232443,"name":"ninja","full_name":"airpub/ninja","owner":{"login":"airpub","id":8274499,"avatar_url":"https://avatars.githubusercontent.com/u/8274499?v=3","gravatar_id":"","url":"https://api.github.com/users/airpub","html_url":"https://github.com/airpub","followers_url":"https://api.github.com/users/airpub/followers","following_url":"https://api.github.com/users/airpub/following{/other_user}","gists_url":"https://api.github.com/users/airpub/gists{/gist_id}","starred_url":"https://api.github.com/users/airpub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airpub/subscriptions","organizations_url":"https://api.github.com/users/airpub/orgs","repos_url":"https://api.github.com/users/airpub/repos","events_url":"https://api.github.com/users/airpub/events{/privacy}","received_events_url":"https://api.github.com/users/airpub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/airpub/ninja","description":"a hackable Markdown editor","fork":false,"url":"https://api.github.com/repos/airpub/ninja","forks_url":"https://api.github.com/repos/airpub/ninja/forks","keys_url":"https://api.github.com/repos/airpub/ninja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airpub/ninja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airpub/ninja/teams","hooks_url":"https://api.github.com/repos/airpub/ninja/hooks","issue_events_url":"https://api.github.com/repos/airpub/ninja/issues/events{/number}","events_url":"https://api.github.com/repos/airpub/ninja/events","assignees_url":"https://api.github.com/repos/airpub/ninja/assignees{/user}","branches_url":"https://api.github.com/repos/airpub/ninja/branches{/branch}","tags_url":"https://api.github.com/repos/airpub/ninja/tags","blobs_url":"https://api.github.com/repos/airpub/ninja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airpub/ninja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airpub/ninja/git/refs{/sha}","trees_url":"https://api.github.com/repos/airpub/ninja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airpub/ninja/statuses/{sha}","languages_url":"https://api.github.com/repos/airpub/ninja/languages","stargazers_url":"https://api.github.com/repos/airpub/ninja/stargazers","contributors_url":"https://api.github.com/repos/airpub/ninja/contributors","subscribers_url":"https://api.github.com/repos/airpub/ninja/subscribers","subscription_url":"https://api.github.com/repos/airpub/ninja/subscription","commits_url":"https://api.github.com/repos/airpub/ninja/commits{/sha}","git_commits_url":"https://api.github.com/repos/airpub/ninja/git/commits{/sha}","comments_url":"https://api.github.com/repos/airpub/ninja/comments{/number}","issue_comment_url":"https://api.github.com/repos/airpub/ninja/issues/comments/{number}","contents_url":"https://api.github.com/repos/airpub/ninja/contents/{+path}","compare_url":"https://api.github.com/repos/airpub/ninja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airpub/ninja/merges","archive_url":"https://api.github.com/repos/airpub/ninja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airpub/ninja/downloads","issues_url":"https://api.github.com/repos/airpub/ninja/issues{/number}","pulls_url":"https://api.github.com/repos/airpub/ninja/pulls{/number}","milestones_url":"https://api.github.com/repos/airpub/ninja/milestones{/number}","notifications_url":"https://api.github.com/repos/airpub/ninja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airpub/ninja/labels{/name}","releases_url":"https://api.github.com/repos/airpub/ninja/releases{/id}","created_at":"2014-08-22T16:47:55Z","updated_at":"2015-01-31T05:39:21Z","pushed_at":"2014-09-19T14:06:53Z","git_url":"git://github.com/airpub/ninja.git","ssh_url":"git@github.com:airpub/ninja.git","clone_url":"https://github.com/airpub/ninja.git","svn_url":"https://github.com/airpub/ninja","homepage":"editor.ninja","size":2364,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/airpub/ninja/pulls/3"},"html":{"href":"https://github.com/airpub/ninja/pull/3"},"issue":{"href":"https://api.github.com/repos/airpub/ninja/issues/3"},"comments":{"href":"https://api.github.com/repos/airpub/ninja/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/airpub/ninja/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/airpub/ninja/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/airpub/ninja/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/airpub/ninja/statuses/e4b7f22f91813e44a20a17568ef5581e226743b7"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":2,"changed_files":3}}