Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

统一models头部变量声明格式 #22

Merged
merged 0 commits into from
Mar 16, 2012
Merged

统一models头部变量声明格式 #22

merged 0 commits into from
Mar 16, 2012

Conversation

ericzhang-cn
Copy link
Contributor

No description provided.

var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

每行新起var name 来声明变量比较好,至少删除的时候只需要变更一行就可以了。和nodejs源代码保持一致。

@ericzhang-cn ericzhang-cn merged commit f04b6e7 into cnodejs:master Mar 16, 2012
hailiang-wang pushed a commit to hailiang-wang/nodeclub that referenced this pull request Oct 31, 2014
JinlonZhang pushed a commit to JinlonZhang/nodeclub that referenced this pull request Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants