From 29f32ee4c4239684ed4cc660cbd2a1f5a5b2142b Mon Sep 17 00:00:00 2001 From: Dave Allen Date: Wed, 28 Aug 2013 16:21:20 -0700 Subject: [PATCH] More wordsmithing --- meteor/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meteor/README.md b/meteor/README.md index a040b5e6a..16a58f423 100644 --- a/meteor/README.md +++ b/meteor/README.md @@ -46,7 +46,7 @@ After you create this file, you may access the Template variable by declaring so ##Defining Collections -In TypeScript, creating global variables is not allowed, and in a Meteor app, creating local variables (using `var `) limits variables' scope to the file. However, you will probably want to define variables, such as collections, that can be used across files. In the case of collections, one way to work around these limitations is to wrap each collection within a module, and then make the module globally accessible. Here is an example using posts.ts: +In TypeScript, global variables are not allowed, and in a Meteor app, creating a local variable (using `var `) limits a variable's scope to the file. However, you will probably want to define variables, such as collections, that can be used across files. In the case of collections, one way to work around these limitations is to wrap each collection within a module, and then make the module globally accessible. Here is an example using posts.ts: module PostsModel { export var Posts = new Meteor.Collection('posts'); @@ -60,7 +60,7 @@ You can then access the Posts collection by placing `///