{"action":"closed","number":223,"pull_request":{"url":"https://api.github.com/repos/cocos-creator/editor-framework/pulls/223","id":65601207,"html_url":"https://github.com/cocos-creator/editor-framework/pull/223","diff_url":"https://github.com/cocos-creator/editor-framework/pull/223.diff","patch_url":"https://github.com/cocos-creator/editor-framework/pull/223.patch","issue_url":"https://api.github.com/repos/cocos-creator/editor-framework/issues/223","number":223,"state":"closed","locked":false,"title":"更改编辑器布局的时候，检查一下当前的编辑状态","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":"如果没有退出编辑状态，直接更改布局，会造成多个插件的运行错误。\r\n\r\n因为scene固定在main window，所以直接使用_Scene判断。\r\n\r\nhttps://github.com/cocos-creator/fireball/issues/2592","created_at":"2016-04-07T09:43:52Z","updated_at":"2016-04-26T02:14:38Z","closed_at":"2016-04-26T02:14:38Z","merged_at":null,"merge_commit_sha":"f44927c12a48170a1709e6f1886e062f137d33cf","assignee":{"login":"jwu","id":174891,"avatar_url":"https://avatars.githubusercontent.com/u/174891?v=3","gravatar_id":"","url":"https://api.github.com/users/jwu","html_url":"https://github.com/jwu","followers_url":"https://api.github.com/users/jwu/followers","following_url":"https://api.github.com/users/jwu/following{/other_user}","gists_url":"https://api.github.com/users/jwu/gists{/gist_id}","starred_url":"https://api.github.com/users/jwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwu/subscriptions","organizations_url":"https://api.github.com/users/jwu/orgs","repos_url":"https://api.github.com/users/jwu/repos","events_url":"https://api.github.com/users/jwu/events{/privacy}","received_events_url":"https://api.github.com/users/jwu/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cocos-creator/editor-framework/pulls/223/commits","review_comments_url":"https://api.github.com/repos/cocos-creator/editor-framework/pulls/223/comments","review_comment_url":"https://api.github.com/repos/cocos-creator/editor-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cocos-creator/editor-framework/issues/223/comments","statuses_url":"https://api.github.com/repos/cocos-creator/editor-framework/statuses/a122bdac3dcfe06e31381ba3eb41c222e1e75f6b","head":{"label":"VisualSJ:v1.0","ref":"v1.0","sha":"a122bdac3dcfe06e31381ba3eb41c222e1e75f6b","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":45034064,"name":"editor-framework","full_name":"VisualSJ/editor-framework","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/editor-framework","description":"A framework gives you power to easily write professional multi-panel desktop software in HTML5 and io.js.","fork":true,"url":"https://api.github.com/repos/VisualSJ/editor-framework","forks_url":"https://api.github.com/repos/VisualSJ/editor-framework/forks","keys_url":"https://api.github.com/repos/VisualSJ/editor-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VisualSJ/editor-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VisualSJ/editor-framework/teams","hooks_url":"https://api.github.com/repos/VisualSJ/editor-framework/hooks","issue_events_url":"https://api.github.com/repos/VisualSJ/editor-framework/issues/events{/number}","events_url":"https://api.github.com/repos/VisualSJ/editor-framework/events","assignees_url":"https://api.github.com/repos/VisualSJ/editor-framework/assignees{/user}","branches_url":"https://api.github.com/repos/VisualSJ/editor-framework/branches{/branch}","tags_url":"https://api.github.com/repos/VisualSJ/editor-framework/tags","blobs_url":"https://api.github.com/repos/VisualSJ/editor-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VisualSJ/editor-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VisualSJ/editor-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/VisualSJ/editor-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VisualSJ/editor-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/VisualSJ/editor-framework/languages","stargazers_url":"https://api.github.com/repos/VisualSJ/editor-framework/stargazers","contributors_url":"https://api.github.com/repos/VisualSJ/editor-framework/contributors","subscribers_url":"https://api.github.com/repos/VisualSJ/editor-framework/subscribers","subscription_url":"https://api.github.com/repos/VisualSJ/editor-framework/subscription","commits_url":"https://api.github.com/repos/VisualSJ/editor-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/VisualSJ/editor-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/VisualSJ/editor-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/VisualSJ/editor-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/VisualSJ/editor-framework/contents/{+path}","compare_url":"https://api.github.com/repos/VisualSJ/editor-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VisualSJ/editor-framework/merges","archive_url":"https://api.github.com/repos/VisualSJ/editor-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VisualSJ/editor-framework/downloads","issues_url":"https://api.github.com/repos/VisualSJ/editor-framework/issues{/number}","pulls_url":"https://api.github.com/repos/VisualSJ/editor-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/VisualSJ/editor-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/VisualSJ/editor-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VisualSJ/editor-framework/labels{/name}","releases_url":"https://api.github.com/repos/VisualSJ/editor-framework/releases{/id}","deployments_url":"https://api.github.com/repos/VisualSJ/editor-framework/deployments","created_at":"2015-10-27T10:41:20Z","updated_at":"2015-10-27T10:41:21Z","pushed_at":"2016-04-07T09:40:11Z","git_url":"git://github.com/VisualSJ/editor-framework.git","ssh_url":"git@github.com:VisualSJ/editor-framework.git","clone_url":"https://github.com/VisualSJ/editor-framework.git","svn_url":"https://github.com/VisualSJ/editor-framework","homepage":"","size":2850,"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.0","ref":"v1.0","sha":"00b606a63c182b462f71031a64386b3b6721284d","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":32774942,"name":"editor-framework","full_name":"cocos-creator/editor-framework","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/editor-framework","description":"A framework gives you power to easily write professional multi-panel desktop software in HTML5 and node.js.","fork":false,"url":"https://api.github.com/repos/cocos-creator/editor-framework","forks_url":"https://api.github.com/repos/cocos-creator/editor-framework/forks","keys_url":"https://api.github.com/repos/cocos-creator/editor-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocos-creator/editor-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocos-creator/editor-framework/teams","hooks_url":"https://api.github.com/repos/cocos-creator/editor-framework/hooks","issue_events_url":"https://api.github.com/repos/cocos-creator/editor-framework/issues/events{/number}","events_url":"https://api.github.com/repos/cocos-creator/editor-framework/events","assignees_url":"https://api.github.com/repos/cocos-creator/editor-framework/assignees{/user}","branches_url":"https://api.github.com/repos/cocos-creator/editor-framework/branches{/branch}","tags_url":"https://api.github.com/repos/cocos-creator/editor-framework/tags","blobs_url":"https://api.github.com/repos/cocos-creator/editor-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocos-creator/editor-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocos-creator/editor-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocos-creator/editor-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocos-creator/editor-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/cocos-creator/editor-framework/languages","stargazers_url":"https://api.github.com/repos/cocos-creator/editor-framework/stargazers","contributors_url":"https://api.github.com/repos/cocos-creator/editor-framework/contributors","subscribers_url":"https://api.github.com/repos/cocos-creator/editor-framework/subscribers","subscription_url":"https://api.github.com/repos/cocos-creator/editor-framework/subscription","commits_url":"https://api.github.com/repos/cocos-creator/editor-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocos-creator/editor-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocos-creator/editor-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocos-creator/editor-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocos-creator/editor-framework/contents/{+path}","compare_url":"https://api.github.com/repos/cocos-creator/editor-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocos-creator/editor-framework/merges","archive_url":"https://api.github.com/repos/cocos-creator/editor-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocos-creator/editor-framework/downloads","issues_url":"https://api.github.com/repos/cocos-creator/editor-framework/issues{/number}","pulls_url":"https://api.github.com/repos/cocos-creator/editor-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/cocos-creator/editor-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/cocos-creator/editor-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocos-creator/editor-framework/labels{/name}","releases_url":"https://api.github.com/repos/cocos-creator/editor-framework/releases{/id}","deployments_url":"https://api.github.com/repos/cocos-creator/editor-framework/deployments","created_at":"2015-03-24T03:53:48Z","updated_at":"2016-04-25T09:40:27Z","pushed_at":"2016-04-25T03:29:07Z","git_url":"git://github.com/cocos-creator/editor-framework.git","ssh_url":"git@github.com:cocos-creator/editor-framework.git","clone_url":"https://github.com/cocos-creator/editor-framework.git","svn_url":"https://github.com/cocos-creator/editor-framework","homepage":"","size":3121,"stargazers_count":396,"watchers_count":396,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":59,"mirror_url":null,"open_issues_count":20,"forks":59,"open_issues":20,"watchers":396,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cocos-creator/editor-framework/pulls/223"},"html":{"href":"https://github.com/cocos-creator/editor-framework/pull/223"},"issue":{"href":"https://api.github.com/repos/cocos-creator/editor-framework/issues/223"},"comments":{"href":"https://api.github.com/repos/cocos-creator/editor-framework/issues/223/comments"},"review_comments":{"href":"https://api.github.com/repos/cocos-creator/editor-framework/pulls/223/comments"},"review_comment":{"href":"https://api.github.com/repos/cocos-creator/editor-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cocos-creator/editor-framework/pulls/223/commits"},"statuses":{"href":"https://api.github.com/repos/cocos-creator/editor-framework/statuses/a122bdac3dcfe06e31381ba3eb41c222e1e75f6b"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":3,"review_comments":0,"commits":2,"additions":4,"deletions":0,"changed_files":1}}