{"action":"created","comment":{"url":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/comments/41728553","id":41728553,"diff_hunk":"@@ -560,99 +540,117 @@ else {\n         width: ratio * w,\n         height: ratio * h\n     };\n-}\n \n+    sys._checkWebGLRenderMode = function () {\n+        if (cc._renderType !== cc.game.RENDER_TYPE_WEBGL)\n+            throw new Error(\"This feature supports WebGL render mode only.\");\n+    };\n \n-sys._checkWebGLRenderMode = function () {\n-    if (cc._renderType !== cc.game.RENDER_TYPE_WEBGL)\n-        throw new Error(\"This feature supports WebGL render mode only.\");\n-};\n+    var _tmpCanvas1 = document.createElement(\"canvas\"),","path":"cocos2d/core/platform/CCSys.js","position":56,"original_position":56,"commit_id":"2ed0801bf9ad9a955295bb1ccd6b1be5177b34d7","original_commit_id":"2ed0801bf9ad9a955295bb1ccd6b1be5177b34d7","user":{"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},"body":"这个脚本主要是调整代码位置，把和 dom 有关的代码放到 if 里面","created_at":"2015-10-12T07:06:21Z","updated_at":"2015-10-12T07:06:21Z","html_url":"https://github.com/fireball-x/cocos2d-html5/pull/10#discussion_r41728553","pull_request_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/comments/41728553"},"html":{"href":"https://github.com/fireball-x/cocos2d-html5/pull/10#discussion_r41728553"},"pull_request":{"href":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/10","id":47390145,"html_url":"https://github.com/fireball-x/cocos2d-html5/pull/10","diff_url":"https://github.com/fireball-x/cocos2d-html5/pull/10.diff","patch_url":"https://github.com/fireball-x/cocos2d-html5/pull/10.patch","issue_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/10","number":10,"state":"open","locked":false,"title":"allows to load cocos in editor's core-level","user":{"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},"body":"做了一些调整，让编辑器的 core level 能加载整个 cocos 包","created_at":"2015-10-12T07:04:20Z","updated_at":"2015-10-12T07:06:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c13e5772dab6c08691435217f860361de9fa787f","assignee":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/10/commits","review_comments_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/10/comments","review_comment_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/10/comments","statuses_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/statuses/2ed0801bf9ad9a955295bb1ccd6b1be5177b34d7","head":{"label":"jareguo:develop","ref":"develop","sha":"2ed0801bf9ad9a955295bb1ccd6b1be5177b34d7","user":{"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},"repo":{"id":34530578,"name":"cocos2d-html5-for-fireball","full_name":"jareguo/cocos2d-html5-for-fireball","owner":{"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},"private":false,"html_url":"https://github.com/jareguo/cocos2d-html5-for-fireball","description":"cocos2d for Web Browsers. Built using JavaScript","fork":true,"url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball","forks_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/forks","keys_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/teams","hooks_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/hooks","issue_events_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/issues/events{/number}","events_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/events","assignees_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/assignees{/user}","branches_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/branches{/branch}","tags_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/tags","blobs_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/git/refs{/sha}","trees_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/statuses/{sha}","languages_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/languages","stargazers_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/stargazers","contributors_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/contributors","subscribers_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/subscribers","subscription_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/subscription","commits_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/commits{/sha}","git_commits_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/git/commits{/sha}","comments_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/comments{/number}","issue_comment_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/issues/comments{/number}","contents_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/contents/{+path}","compare_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/merges","archive_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/downloads","issues_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/issues{/number}","pulls_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/pulls{/number}","milestones_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/milestones{/number}","notifications_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/labels{/name}","releases_url":"https://api.github.com/repos/jareguo/cocos2d-html5-for-fireball/releases{/id}","created_at":"2015-04-24T16:53:03Z","updated_at":"2015-10-05T06:05:36Z","pushed_at":"2015-10-12T07:03:16Z","git_url":"git://github.com/jareguo/cocos2d-html5-for-fireball.git","ssh_url":"git@github.com:jareguo/cocos2d-html5-for-fireball.git","clone_url":"https://github.com/jareguo/cocos2d-html5-for-fireball.git","svn_url":"https://github.com/jareguo/cocos2d-html5-for-fireball","homepage":"http://www.cocos2d-html5.org","size":52523,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"fireball-x:develop","ref":"develop","sha":"a2a2fe12c78a1e604e160026a73f614f713d7e0b","user":{"login":"fireball-x","id":6937061,"avatar_url":"https://avatars.githubusercontent.com/u/6937061?v=3","gravatar_id":"","url":"https://api.github.com/users/fireball-x","html_url":"https://github.com/fireball-x","followers_url":"https://api.github.com/users/fireball-x/followers","following_url":"https://api.github.com/users/fireball-x/following{/other_user}","gists_url":"https://api.github.com/users/fireball-x/gists{/gist_id}","starred_url":"https://api.github.com/users/fireball-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fireball-x/subscriptions","organizations_url":"https://api.github.com/users/fireball-x/orgs","repos_url":"https://api.github.com/users/fireball-x/repos","events_url":"https://api.github.com/users/fireball-x/events{/privacy}","received_events_url":"https://api.github.com/users/fireball-x/received_events","type":"Organization","site_admin":false},"repo":{"id":43405650,"name":"cocos2d-html5","full_name":"fireball-x/cocos2d-html5","owner":{"login":"fireball-x","id":6937061,"avatar_url":"https://avatars.githubusercontent.com/u/6937061?v=3","gravatar_id":"","url":"https://api.github.com/users/fireball-x","html_url":"https://github.com/fireball-x","followers_url":"https://api.github.com/users/fireball-x/followers","following_url":"https://api.github.com/users/fireball-x/following{/other_user}","gists_url":"https://api.github.com/users/fireball-x/gists{/gist_id}","starred_url":"https://api.github.com/users/fireball-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fireball-x/subscriptions","organizations_url":"https://api.github.com/users/fireball-x/orgs","repos_url":"https://api.github.com/users/fireball-x/repos","events_url":"https://api.github.com/users/fireball-x/events{/privacy}","received_events_url":"https://api.github.com/users/fireball-x/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fireball-x/cocos2d-html5","description":"cocos2d for Web Browsers. Built using JavaScript","fork":true,"url":"https://api.github.com/repos/fireball-x/cocos2d-html5","forks_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/forks","keys_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/teams","hooks_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/hooks","issue_events_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/events{/number}","events_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/events","assignees_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/assignees{/user}","branches_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/branches{/branch}","tags_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/tags","blobs_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/git/refs{/sha}","trees_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/statuses/{sha}","languages_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/languages","stargazers_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/stargazers","contributors_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/contributors","subscribers_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/subscribers","subscription_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/subscription","commits_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/commits{/sha}","git_commits_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/git/commits{/sha}","comments_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/comments{/number}","issue_comment_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/comments{/number}","contents_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/contents/{+path}","compare_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/merges","archive_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/downloads","issues_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues{/number}","pulls_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls{/number}","milestones_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/milestones{/number}","notifications_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/labels{/name}","releases_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/releases{/id}","created_at":"2015-09-30T01:55:36Z","updated_at":"2015-09-30T01:55:42Z","pushed_at":"2015-10-12T07:04:21Z","git_url":"git://github.com/fireball-x/cocos2d-html5.git","ssh_url":"git@github.com:fireball-x/cocos2d-html5.git","clone_url":"https://github.com/fireball-x/cocos2d-html5.git","svn_url":"https://github.com/fireball-x/cocos2d-html5","homepage":"http://www.cocos2d-html5.org","size":60822,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/10"},"html":{"href":"https://github.com/fireball-x/cocos2d-html5/pull/10"},"issue":{"href":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/10"},"comments":{"href":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/fireball-x/cocos2d-html5/statuses/2ed0801bf9ad9a955295bb1ccd6b1be5177b34d7"}}}}