{"action":"created","issue":{"url":"https://api.github.com/repos/cnodejs/nodeclub/issues/530","labels_url":"https://api.github.com/repos/cnodejs/nodeclub/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/cnodejs/nodeclub/issues/530/comments","events_url":"https://api.github.com/repos/cnodejs/nodeclub/issues/530/events","html_url":"https://github.com/cnodejs/nodeclub/pull/530","id":80480626,"number":530,"title":"改进一些地方的写法","user":{"login":"huacnlee","id":5518,"avatar_url":"https://avatars.githubusercontent.com/u/5518?v=3","gravatar_id":"","url":"https://api.github.com/users/huacnlee","html_url":"https://github.com/huacnlee","followers_url":"https://api.github.com/users/huacnlee/followers","following_url":"https://api.github.com/users/huacnlee/following{/other_user}","gists_url":"https://api.github.com/users/huacnlee/gists{/gist_id}","starred_url":"https://api.github.com/users/huacnlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huacnlee/subscriptions","organizations_url":"https://api.github.com/users/huacnlee/orgs","repos_url":"https://api.github.com/users/huacnlee/repos","events_url":"https://api.github.com/users/huacnlee/events{/privacy}","received_events_url":"https://api.github.com/users/huacnlee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-25T10:04:51Z","updated_at":"2015-05-28T03:49:40Z","closed_at":"2015-05-27T13:59:34Z","pull_request":{"url":"https://api.github.com/repos/cnodejs/nodeclub/pulls/530","html_url":"https://github.com/cnodejs/nodeclub/pull/530","diff_url":"https://github.com/cnodejs/nodeclub/pull/530.diff","patch_url":"https://github.com/cnodejs/nodeclub/pull/530.patch"},"body":"- 确保 View 里面 current_user，避免 undefined 检测；\r\n- 将反复在 Controller 里面转换的 format_create_at, format_updated_at 放到 Model 里面成为一个标准的 model 实例方法；\r\n- 增加 render404, renderError 函数，简化 Controller 输出错误页面的代码；\r\n- 对齐等号赋值；\r\n- 一些函数、变量命名按 JS 标准修正；\r\n- 增加 `make run` 用于开发环境启动，对应 `make test` 命令；"},"comment":{"url":"https://api.github.com/repos/cnodejs/nodeclub/issues/comments/106162596","html_url":"https://github.com/cnodejs/nodeclub/pull/530#issuecomment-106162596","issue_url":"https://api.github.com/repos/cnodejs/nodeclub/issues/530","id":106162596,"user":{"login":"huacnlee","id":5518,"avatar_url":"https://avatars.githubusercontent.com/u/5518?v=3","gravatar_id":"","url":"https://api.github.com/users/huacnlee","html_url":"https://github.com/huacnlee","followers_url":"https://api.github.com/users/huacnlee/followers","following_url":"https://api.github.com/users/huacnlee/following{/other_user}","gists_url":"https://api.github.com/users/huacnlee/gists{/gist_id}","starred_url":"https://api.github.com/users/huacnlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huacnlee/subscriptions","organizations_url":"https://api.github.com/users/huacnlee/orgs","repos_url":"https://api.github.com/users/huacnlee/repos","events_url":"https://api.github.com/users/huacnlee/events{/privacy}","received_events_url":"https://api.github.com/users/huacnlee/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T03:49:40Z","updated_at":"2015-05-28T03:49:40Z","body":"@alsotang 我建议 revert 那个 commit，看了一下 Node.js 官方的所有 .js 文件，发现几个细节\r\n\r\n1. 没等号对齐\r\n2. function 后面没有空格\r\n"}}