{"action":"closed","number":1222,"pull_request":{"url":"https://api.github.com/repos/cocos-creator/engine/pulls/1222","id":89979081,"html_url":"https://github.com/cocos-creator/engine/pull/1222","diff_url":"https://github.com/cocos-creator/engine/pull/1222.diff","patch_url":"https://github.com/cocos-creator/engine/pull/1222.patch","issue_url":"https://api.github.com/repos/cocos-creator/engine/issues/1222","number":1222,"state":"closed","locked":false,"title":"Fixed a bug about audio.ended","user":{"login":"VisualSJ","id":7113508,"avatar_url":"https://avatars.githubusercontent.com/u/7113508?v=3","gravatar_id":"","url":"https://api.github.com/users/VisualSJ","html_url":"https://github.com/VisualSJ","followers_url":"https://api.github.com/users/VisualSJ/followers","following_url":"https://api.github.com/users/VisualSJ/following{/other_user}","gists_url":"https://api.github.com/users/VisualSJ/gists{/gist_id}","starred_url":"https://api.github.com/users/VisualSJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VisualSJ/subscriptions","organizations_url":"https://api.github.com/users/VisualSJ/orgs","repos_url":"https://api.github.com/users/VisualSJ/repos","events_url":"https://api.github.com/users/VisualSJ/events{/privacy}","received_events_url":"https://api.github.com/users/VisualSJ/received_events","type":"User","site_admin":false},"body":"因为复用了 Audio 这个壳，导致 audio 事件重复触发。\r\n现在每次都会重新new 一个 Audio 对象，但是对象内的 buffer 等数据是公用的。不会增加太多的额外开销。\r\n去除了部分多余的逻辑\r\n\r\n@jareguo ","created_at":"2016-10-19T10:11:04Z","updated_at":"2016-10-20T06:10:10Z","closed_at":"2016-10-20T06:10:10Z","merged_at":"2016-10-20T06:10:10Z","merge_commit_sha":"f459b17613a8b6134181504c5dcada917c8e2dd2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cocos-creator/engine/pulls/1222/commits","review_comments_url":"https://api.github.com/repos/cocos-creator/engine/pulls/1222/comments","review_comment_url":"https://api.github.com/repos/cocos-creator/engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cocos-creator/engine/issues/1222/comments","statuses_url":"https://api.github.com/repos/cocos-creator/engine/statuses/7394ef9edc5db1711cbed0f05acae7a87aab1849","head":{"label":"VisualSJ:v1.3","ref":"v1.3","sha":"7394ef9edc5db1711cbed0f05acae7a87aab1849","user":{"login":"VisualSJ","id":7113508,"avatar_url":"https://avatars.githubusercontent.com/u/7113508?v=3","gravatar_id":"","url":"https://api.github.com/users/VisualSJ","html_url":"https://github.com/VisualSJ","followers_url":"https://api.github.com/users/VisualSJ/followers","following_url":"https://api.github.com/users/VisualSJ/following{/other_user}","gists_url":"https://api.github.com/users/VisualSJ/gists{/gist_id}","starred_url":"https://api.github.com/users/VisualSJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VisualSJ/subscriptions","organizations_url":"https://api.github.com/users/VisualSJ/orgs","repos_url":"https://api.github.com/users/VisualSJ/repos","events_url":"https://api.github.com/users/VisualSJ/events{/privacy}","received_events_url":"https://api.github.com/users/VisualSJ/received_events","type":"User","site_admin":false},"repo":{"id":54621717,"name":"engine","full_name":"VisualSJ/engine","owner":{"login":"VisualSJ","id":7113508,"avatar_url":"https://avatars.githubusercontent.com/u/7113508?v=3","gravatar_id":"","url":"https://api.github.com/users/VisualSJ","html_url":"https://github.com/VisualSJ","followers_url":"https://api.github.com/users/VisualSJ/followers","following_url":"https://api.github.com/users/VisualSJ/following{/other_user}","gists_url":"https://api.github.com/users/VisualSJ/gists{/gist_id}","starred_url":"https://api.github.com/users/VisualSJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VisualSJ/subscriptions","organizations_url":"https://api.github.com/users/VisualSJ/orgs","repos_url":"https://api.github.com/users/VisualSJ/repos","events_url":"https://api.github.com/users/VisualSJ/events{/privacy}","received_events_url":"https://api.github.com/users/VisualSJ/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VisualSJ/engine","description":"The engine for Cocos Creator","fork":true,"url":"https://api.github.com/repos/VisualSJ/engine","forks_url":"https://api.github.com/repos/VisualSJ/engine/forks","keys_url":"https://api.github.com/repos/VisualSJ/engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VisualSJ/engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VisualSJ/engine/teams","hooks_url":"https://api.github.com/repos/VisualSJ/engine/hooks","issue_events_url":"https://api.github.com/repos/VisualSJ/engine/issues/events{/number}","events_url":"https://api.github.com/repos/VisualSJ/engine/events","assignees_url":"https://api.github.com/repos/VisualSJ/engine/assignees{/user}","branches_url":"https://api.github.com/repos/VisualSJ/engine/branches{/branch}","tags_url":"https://api.github.com/repos/VisualSJ/engine/tags","blobs_url":"https://api.github.com/repos/VisualSJ/engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VisualSJ/engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VisualSJ/engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/VisualSJ/engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VisualSJ/engine/statuses/{sha}","languages_url":"https://api.github.com/repos/VisualSJ/engine/languages","stargazers_url":"https://api.github.com/repos/VisualSJ/engine/stargazers","contributors_url":"https://api.github.com/repos/VisualSJ/engine/contributors","subscribers_url":"https://api.github.com/repos/VisualSJ/engine/subscribers","subscription_url":"https://api.github.com/repos/VisualSJ/engine/subscription","commits_url":"https://api.github.com/repos/VisualSJ/engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/VisualSJ/engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/VisualSJ/engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/VisualSJ/engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/VisualSJ/engine/contents/{+path}","compare_url":"https://api.github.com/repos/VisualSJ/engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VisualSJ/engine/merges","archive_url":"https://api.github.com/repos/VisualSJ/engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VisualSJ/engine/downloads","issues_url":"https://api.github.com/repos/VisualSJ/engine/issues{/number}","pulls_url":"https://api.github.com/repos/VisualSJ/engine/pulls{/number}","milestones_url":"https://api.github.com/repos/VisualSJ/engine/milestones{/number}","notifications_url":"https://api.github.com/repos/VisualSJ/engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VisualSJ/engine/labels{/name}","releases_url":"https://api.github.com/repos/VisualSJ/engine/releases{/id}","deployments_url":"https://api.github.com/repos/VisualSJ/engine/deployments","created_at":"2016-03-24T07:03:57Z","updated_at":"2016-09-08T07:20:01Z","pushed_at":"2016-10-20T05:44:49Z","git_url":"git://github.com/VisualSJ/engine.git","ssh_url":"git@github.com:VisualSJ/engine.git","clone_url":"https://github.com/VisualSJ/engine.git","svn_url":"https://github.com/VisualSJ/engine","homepage":"http://www.cocos2d-x.org/creator","size":25408,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"cocos-creator:v1.3","ref":"v1.3","sha":"a8374241dfd4f649a8cff2be8437bf19161b7de9","user":{"login":"cocos-creator","id":6937061,"avatar_url":"https://avatars.githubusercontent.com/u/6937061?v=3","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":47440536,"name":"engine","full_name":"cocos-creator/engine","owner":{"login":"cocos-creator","id":6937061,"avatar_url":"https://avatars.githubusercontent.com/u/6937061?v=3","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/engine","description":"The engine for Cocos Creator","fork":false,"url":"https://api.github.com/repos/cocos-creator/engine","forks_url":"https://api.github.com/repos/cocos-creator/engine/forks","keys_url":"https://api.github.com/repos/cocos-creator/engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocos-creator/engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocos-creator/engine/teams","hooks_url":"https://api.github.com/repos/cocos-creator/engine/hooks","issue_events_url":"https://api.github.com/repos/cocos-creator/engine/issues/events{/number}","events_url":"https://api.github.com/repos/cocos-creator/engine/events","assignees_url":"https://api.github.com/repos/cocos-creator/engine/assignees{/user}","branches_url":"https://api.github.com/repos/cocos-creator/engine/branches{/branch}","tags_url":"https://api.github.com/repos/cocos-creator/engine/tags","blobs_url":"https://api.github.com/repos/cocos-creator/engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocos-creator/engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocos-creator/engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocos-creator/engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocos-creator/engine/statuses/{sha}","languages_url":"https://api.github.com/repos/cocos-creator/engine/languages","stargazers_url":"https://api.github.com/repos/cocos-creator/engine/stargazers","contributors_url":"https://api.github.com/repos/cocos-creator/engine/contributors","subscribers_url":"https://api.github.com/repos/cocos-creator/engine/subscribers","subscription_url":"https://api.github.com/repos/cocos-creator/engine/subscription","commits_url":"https://api.github.com/repos/cocos-creator/engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocos-creator/engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocos-creator/engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocos-creator/engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocos-creator/engine/contents/{+path}","compare_url":"https://api.github.com/repos/cocos-creator/engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocos-creator/engine/merges","archive_url":"https://api.github.com/repos/cocos-creator/engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocos-creator/engine/downloads","issues_url":"https://api.github.com/repos/cocos-creator/engine/issues{/number}","pulls_url":"https://api.github.com/repos/cocos-creator/engine/pulls{/number}","milestones_url":"https://api.github.com/repos/cocos-creator/engine/milestones{/number}","notifications_url":"https://api.github.com/repos/cocos-creator/engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocos-creator/engine/labels{/name}","releases_url":"https://api.github.com/repos/cocos-creator/engine/releases{/id}","deployments_url":"https://api.github.com/repos/cocos-creator/engine/deployments","created_at":"2015-12-05T03:28:59Z","updated_at":"2016-10-19T12:05:56Z","pushed_at":"2016-10-20T06:10:11Z","git_url":"git://github.com/cocos-creator/engine.git","ssh_url":"git@github.com:cocos-creator/engine.git","clone_url":"https://github.com/cocos-creator/engine.git","svn_url":"https://github.com/cocos-creator/engine","homepage":"http://www.cocos2d-x.org/creator","size":26696,"stargazers_count":129,"watchers_count":129,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":17,"forks":84,"open_issues":17,"watchers":129,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cocos-creator/engine/pulls/1222"},"html":{"href":"https://github.com/cocos-creator/engine/pull/1222"},"issue":{"href":"https://api.github.com/repos/cocos-creator/engine/issues/1222"},"comments":{"href":"https://api.github.com/repos/cocos-creator/engine/issues/1222/comments"},"review_comments":{"href":"https://api.github.com/repos/cocos-creator/engine/pulls/1222/comments"},"review_comment":{"href":"https://api.github.com/repos/cocos-creator/engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cocos-creator/engine/pulls/1222/commits"},"statuses":{"href":"https://api.github.com/repos/cocos-creator/engine/statuses/7394ef9edc5db1711cbed0f05acae7a87aab1849"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jareguo","id":1503156,"avatar_url":"https://avatars.githubusercontent.com/u/1503156?v=3","gravatar_id":"","url":"https://api.github.com/users/jareguo","html_url":"https://github.com/jareguo","followers_url":"https://api.github.com/users/jareguo/followers","following_url":"https://api.github.com/users/jareguo/following{/other_user}","gists_url":"https://api.github.com/users/jareguo/gists{/gist_id}","starred_url":"https://api.github.com/users/jareguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jareguo/subscriptions","organizations_url":"https://api.github.com/users/jareguo/orgs","repos_url":"https://api.github.com/users/jareguo/repos","events_url":"https://api.github.com/users/jareguo/events{/privacy}","received_events_url":"https://api.github.com/users/jareguo/received_events","type":"User","site_admin":false},"comments":1,"review_comments":1,"commits":4,"additions":9,"deletions":12,"changed_files":1}}
{"actor":{"display_login":"jareguo"}}