{"action":"created","comment":{"url":"https://api.github.com/repos/ecomfe/bat-ria/pulls/comments/40169818","id":40169818,"diff_hunk":"@@ -251,7 +252,14 @@ define(function (require) {\n      */\n     exports.disableSubmit = function () {\n         if (this.viewContext) {\n-            this.getGroup('submit').disable();\n+            var group = this.getGroup('submit');\n+            var submitBtn = this.get('submit');\n+            if (group.length) {\n+                group.disable();\n+            }\n+            else if (submitBtn) {\n+                submitBtn.disable();\n+            }","path":"src/mvc/FormView.js","position":20,"original_position":20,"commit_id":"682d91a103927b603c7e89a77ac3343fce836ff3","original_commit_id":"682d91a103927b603c7e89a77ac3343fce836ff3","user":{"login":"Justineo","id":1726061,"avatar_url":"https://avatars.githubusercontent.com/u/1726061?v=3","gravatar_id":"","url":"https://api.github.com/users/Justineo","html_url":"https://github.com/Justineo","followers_url":"https://api.github.com/users/Justineo/followers","following_url":"https://api.github.com/users/Justineo/following{/other_user}","gists_url":"https://api.github.com/users/Justineo/gists{/gist_id}","starred_url":"https://api.github.com/users/Justineo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Justineo/subscriptions","organizations_url":"https://api.github.com/users/Justineo/orgs","repos_url":"https://api.github.com/users/Justineo/repos","events_url":"https://api.github.com/users/Justineo/events{/privacy}","received_events_url":"https://api.github.com/users/Justineo/received_events","type":"User","site_admin":false},"body":"这样好像还是有些问题的。如果不是通过 `submit` 这个按钮提交的呢？","created_at":"2015-09-23T04:12:28Z","updated_at":"2015-09-23T04:12:28Z","html_url":"https://github.com/ecomfe/bat-ria/pull/83#discussion_r40169818","pull_request_url":"https://api.github.com/repos/ecomfe/bat-ria/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/ecomfe/bat-ria/pulls/comments/40169818"},"html":{"href":"https://github.com/ecomfe/bat-ria/pull/83#discussion_r40169818"},"pull_request":{"href":"https://api.github.com/repos/ecomfe/bat-ria/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/ecomfe/bat-ria/pulls/83","id":45663579,"html_url":"https://github.com/ecomfe/bat-ria/pull/83","diff_url":"https://github.com/ecomfe/bat-ria/pull/83.diff","patch_url":"https://github.com/ecomfe/bat-ria/pull/83.patch","issue_url":"https://api.github.com/repos/ecomfe/bat-ria/issues/83","number":83,"state":"open","locked":false,"title":"fix #82","user":{"login":"chestnutchen","id":2787987,"avatar_url":"https://avatars.githubusercontent.com/u/2787987?v=3","gravatar_id":"","url":"https://api.github.com/users/chestnutchen","html_url":"https://github.com/chestnutchen","followers_url":"https://api.github.com/users/chestnutchen/followers","following_url":"https://api.github.com/users/chestnutchen/following{/other_user}","gists_url":"https://api.github.com/users/chestnutchen/gists{/gist_id}","starred_url":"https://api.github.com/users/chestnutchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chestnutchen/subscriptions","organizations_url":"https://api.github.com/users/chestnutchen/orgs","repos_url":"https://api.github.com/users/chestnutchen/repos","events_url":"https://api.github.com/users/chestnutchen/events{/privacy}","received_events_url":"https://api.github.com/users/chestnutchen/received_events","type":"User","site_admin":false},"body":"fix #82","created_at":"2015-09-22T13:35:33Z","updated_at":"2015-09-23T04:12:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d713e048ebffcbb95a7dd29736c40366c7cd04e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ecomfe/bat-ria/pulls/83/commits","review_comments_url":"https://api.github.com/repos/ecomfe/bat-ria/pulls/83/comments","review_comment_url":"https://api.github.com/repos/ecomfe/bat-ria/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ecomfe/bat-ria/issues/83/comments","statuses_url":"https://api.github.com/repos/ecomfe/bat-ria/statuses/682d91a103927b603c7e89a77ac3343fce836ff3","head":{"label":"chestnutchen:master","ref":"master","sha":"682d91a103927b603c7e89a77ac3343fce836ff3","user":{"login":"chestnutchen","id":2787987,"avatar_url":"https://avatars.githubusercontent.com/u/2787987?v=3","gravatar_id":"","url":"https://api.github.com/users/chestnutchen","html_url":"https://github.com/chestnutchen","followers_url":"https://api.github.com/users/chestnutchen/followers","following_url":"https://api.github.com/users/chestnutchen/following{/other_user}","gists_url":"https://api.github.com/users/chestnutchen/gists{/gist_id}","starred_url":"https://api.github.com/users/chestnutchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chestnutchen/subscriptions","organizations_url":"https://api.github.com/users/chestnutchen/orgs","repos_url":"https://api.github.com/users/chestnutchen/repos","events_url":"https://api.github.com/users/chestnutchen/events{/privacy}","received_events_url":"https://api.github.com/users/chestnutchen/received_events","type":"User","site_admin":false},"repo":{"id":17164152,"name":"ma-ria","full_name":"chestnutchen/ma-ria","owner":{"login":"chestnutchen","id":2787987,"avatar_url":"https://avatars.githubusercontent.com/u/2787987?v=3","gravatar_id":"","url":"https://api.github.com/users/chestnutchen","html_url":"https://github.com/chestnutchen","followers_url":"https://api.github.com/users/chestnutchen/followers","following_url":"https://api.github.com/users/chestnutchen/following{/other_user}","gists_url":"https://api.github.com/users/chestnutchen/gists{/gist_id}","starred_url":"https://api.github.com/users/chestnutchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chestnutchen/subscriptions","organizations_url":"https://api.github.com/users/chestnutchen/orgs","repos_url":"https://api.github.com/users/chestnutchen/repos","events_url":"https://api.github.com/users/chestnutchen/events{/privacy}","received_events_url":"https://api.github.com/users/chestnutchen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chestnutchen/ma-ria","description":"ecma","fork":true,"url":"https://api.github.com/repos/chestnutchen/ma-ria","forks_url":"https://api.github.com/repos/chestnutchen/ma-ria/forks","keys_url":"https://api.github.com/repos/chestnutchen/ma-ria/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chestnutchen/ma-ria/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chestnutchen/ma-ria/teams","hooks_url":"https://api.github.com/repos/chestnutchen/ma-ria/hooks","issue_events_url":"https://api.github.com/repos/chestnutchen/ma-ria/issues/events{/number}","events_url":"https://api.github.com/repos/chestnutchen/ma-ria/events","assignees_url":"https://api.github.com/repos/chestnutchen/ma-ria/assignees{/user}","branches_url":"https://api.github.com/repos/chestnutchen/ma-ria/branches{/branch}","tags_url":"https://api.github.com/repos/chestnutchen/ma-ria/tags","blobs_url":"https://api.github.com/repos/chestnutchen/ma-ria/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chestnutchen/ma-ria/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chestnutchen/ma-ria/git/refs{/sha}","trees_url":"https://api.github.com/repos/chestnutchen/ma-ria/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chestnutchen/ma-ria/statuses/{sha}","languages_url":"https://api.github.com/repos/chestnutchen/ma-ria/languages","stargazers_url":"https://api.github.com/repos/chestnutchen/ma-ria/stargazers","contributors_url":"https://api.github.com/repos/chestnutchen/ma-ria/contributors","subscribers_url":"https://api.github.com/repos/chestnutchen/ma-ria/subscribers","subscription_url":"https://api.github.com/repos/chestnutchen/ma-ria/subscription","commits_url":"https://api.github.com/repos/chestnutchen/ma-ria/commits{/sha}","git_commits_url":"https://api.github.com/repos/chestnutchen/ma-ria/git/commits{/sha}","comments_url":"https://api.github.com/repos/chestnutchen/ma-ria/comments{/number}","issue_comment_url":"https://api.github.com/repos/chestnutchen/ma-ria/issues/comments{/number}","contents_url":"https://api.github.com/repos/chestnutchen/ma-ria/contents/{+path}","compare_url":"https://api.github.com/repos/chestnutchen/ma-ria/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chestnutchen/ma-ria/merges","archive_url":"https://api.github.com/repos/chestnutchen/ma-ria/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chestnutchen/ma-ria/downloads","issues_url":"https://api.github.com/repos/chestnutchen/ma-ria/issues{/number}","pulls_url":"https://api.github.com/repos/chestnutchen/ma-ria/pulls{/number}","milestones_url":"https://api.github.com/repos/chestnutchen/ma-ria/milestones{/number}","notifications_url":"https://api.github.com/repos/chestnutchen/ma-ria/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chestnutchen/ma-ria/labels{/name}","releases_url":"https://api.github.com/repos/chestnutchen/ma-ria/releases{/id}","created_at":"2014-02-25T06:51:19Z","updated_at":"2015-03-13T09:36:23Z","pushed_at":"2015-09-22T13:33:06Z","git_url":"git://github.com/chestnutchen/ma-ria.git","ssh_url":"git@github.com:chestnutchen/ma-ria.git","clone_url":"https://github.com/chestnutchen/ma-ria.git","svn_url":"https://github.com/chestnutchen/ma-ria","homepage":"","size":1098,"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":"ecomfe:dev","ref":"dev","sha":"7c9c41588ba5d2222043e37992703aa2cb01d7b7","user":{"login":"ecomfe","id":2268460,"avatar_url":"https://avatars.githubusercontent.com/u/2268460?v=3","gravatar_id":"","url":"https://api.github.com/users/ecomfe","html_url":"https://github.com/ecomfe","followers_url":"https://api.github.com/users/ecomfe/followers","following_url":"https://api.github.com/users/ecomfe/following{/other_user}","gists_url":"https://api.github.com/users/ecomfe/gists{/gist_id}","starred_url":"https://api.github.com/users/ecomfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecomfe/subscriptions","organizations_url":"https://api.github.com/users/ecomfe/orgs","repos_url":"https://api.github.com/users/ecomfe/repos","events_url":"https://api.github.com/users/ecomfe/events{/privacy}","received_events_url":"https://api.github.com/users/ecomfe/received_events","type":"Organization","site_admin":false},"repo":{"id":16939559,"name":"bat-ria","full_name":"ecomfe/bat-ria","owner":{"login":"ecomfe","id":2268460,"avatar_url":"https://avatars.githubusercontent.com/u/2268460?v=3","gravatar_id":"","url":"https://api.github.com/users/ecomfe","html_url":"https://github.com/ecomfe","followers_url":"https://api.github.com/users/ecomfe/followers","following_url":"https://api.github.com/users/ecomfe/following{/other_user}","gists_url":"https://api.github.com/users/ecomfe/gists{/gist_id}","starred_url":"https://api.github.com/users/ecomfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecomfe/subscriptions","organizations_url":"https://api.github.com/users/ecomfe/orgs","repos_url":"https://api.github.com/users/ecomfe/repos","events_url":"https://api.github.com/users/ecomfe/events{/privacy}","received_events_url":"https://api.github.com/users/ecomfe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ecomfe/bat-ria","description":"RIA extensions for Brand Ads","fork":false,"url":"https://api.github.com/repos/ecomfe/bat-ria","forks_url":"https://api.github.com/repos/ecomfe/bat-ria/forks","keys_url":"https://api.github.com/repos/ecomfe/bat-ria/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ecomfe/bat-ria/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ecomfe/bat-ria/teams","hooks_url":"https://api.github.com/repos/ecomfe/bat-ria/hooks","issue_events_url":"https://api.github.com/repos/ecomfe/bat-ria/issues/events{/number}","events_url":"https://api.github.com/repos/ecomfe/bat-ria/events","assignees_url":"https://api.github.com/repos/ecomfe/bat-ria/assignees{/user}","branches_url":"https://api.github.com/repos/ecomfe/bat-ria/branches{/branch}","tags_url":"https://api.github.com/repos/ecomfe/bat-ria/tags","blobs_url":"https://api.github.com/repos/ecomfe/bat-ria/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ecomfe/bat-ria/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ecomfe/bat-ria/git/refs{/sha}","trees_url":"https://api.github.com/repos/ecomfe/bat-ria/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ecomfe/bat-ria/statuses/{sha}","languages_url":"https://api.github.com/repos/ecomfe/bat-ria/languages","stargazers_url":"https://api.github.com/repos/ecomfe/bat-ria/stargazers","contributors_url":"https://api.github.com/repos/ecomfe/bat-ria/contributors","subscribers_url":"https://api.github.com/repos/ecomfe/bat-ria/subscribers","subscription_url":"https://api.github.com/repos/ecomfe/bat-ria/subscription","commits_url":"https://api.github.com/repos/ecomfe/bat-ria/commits{/sha}","git_commits_url":"https://api.github.com/repos/ecomfe/bat-ria/git/commits{/sha}","comments_url":"https://api.github.com/repos/ecomfe/bat-ria/comments{/number}","issue_comment_url":"https://api.github.com/repos/ecomfe/bat-ria/issues/comments{/number}","contents_url":"https://api.github.com/repos/ecomfe/bat-ria/contents/{+path}","compare_url":"https://api.github.com/repos/ecomfe/bat-ria/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ecomfe/bat-ria/merges","archive_url":"https://api.github.com/repos/ecomfe/bat-ria/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ecomfe/bat-ria/downloads","issues_url":"https://api.github.com/repos/ecomfe/bat-ria/issues{/number}","pulls_url":"https://api.github.com/repos/ecomfe/bat-ria/pulls{/number}","milestones_url":"https://api.github.com/repos/ecomfe/bat-ria/milestones{/number}","notifications_url":"https://api.github.com/repos/ecomfe/bat-ria/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ecomfe/bat-ria/labels{/name}","releases_url":"https://api.github.com/repos/ecomfe/bat-ria/releases{/id}","created_at":"2014-02-18T06:38:46Z","updated_at":"2015-08-25T09:35:32Z","pushed_at":"2015-09-22T13:35:34Z","git_url":"git://github.com/ecomfe/bat-ria.git","ssh_url":"git@github.com:ecomfe/bat-ria.git","clone_url":"https://github.com/ecomfe/bat-ria.git","svn_url":"https://github.com/ecomfe/bat-ria","homepage":"","size":2579,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":8,"forks":11,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ecomfe/bat-ria/pulls/83"},"html":{"href":"https://github.com/ecomfe/bat-ria/pull/83"},"issue":{"href":"https://api.github.com/repos/ecomfe/bat-ria/issues/83"},"comments":{"href":"https://api.github.com/repos/ecomfe/bat-ria/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/ecomfe/bat-ria/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/ecomfe/bat-ria/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ecomfe/bat-ria/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/ecomfe/bat-ria/statuses/682d91a103927b603c7e89a77ac3343fce836ff3"}}}}