Skip to content

Commit

Permalink
去掉不需要的,;改正错别字;加tmeasday:
Browse files Browse the repository at this point in the history
  • Loading branch information
gazeldx committed Apr 10, 2015
1 parent 3d26759 commit ee602ba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.sublime-project
*.sublime-workspace
*.sublime-workspace
.idea/
.gitignore
4 changes: 2 additions & 2 deletions 08-editing-posts.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Posts = new Mongo.Collection('posts');

Posts.allow({
update: function(userId, post) { return ownsDocument(userId, post); },
remove: function(userId, post) { return ownsDocument(userId, post); },
remove: function(userId, post) { return ownsDocument(userId, post); }
});

//...
Expand All @@ -216,7 +216,7 @@ Posts = new Mongo.Collection('posts');

Posts.allow({
update: function(userId, post) { return ownsDocument(userId, post); },
remove: function(userId, post) { return ownsDocument(userId, post); },
remove: function(userId, post) { return ownsDocument(userId, post); }
});

Posts.deny({
Expand Down
2 changes: 1 addition & 1 deletion 09-errors.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ paragraphs: 31

一开始,我们需要创建一个集合来存储我们的错误。既然错误只与当前会话相关,而且不需要以任何方式长久存在,我们要在这做点新鲜的事儿,创建一个*本地集合(Local collection)*。这意味着,错误 `Errors` 集合将会只存在于*浏览器*中,并且将不作任何尝试去同步回服务器。

为实现它,我们创建在 `client` 文件夹中创建错误(确保这集合只在客户端存在),我们将它的 MongoDB 集合命名为 `null` (因为集合的数据讲不会保存在服务器端的数据库中):
为实现它,我们在 `client` 文件夹中创建错误(确保这集合只在客户端存在),我们将它的 MongoDB 集合命名为 `null` (因为集合的数据将不会保存在服务器端的数据库中):

~~~js
// 本地(仅客户端)集合
Expand Down
2 changes: 1 addition & 1 deletion 09s-creating-a-meteor-package.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ meteor publish --create
既然包已经发布,我们可以从项目中删除它,然后直接从 Atmopshere 重新添加它:

~~~bash
rm -r packages/errors
rm -r packages/tmeasday:errors
meteor add tmeasday:errors
~~~
<%= caption "终端 Terminal(在应用最高级别运行)" %>
Expand Down

0 comments on commit ee602ba

Please sign in to comment.