소스 검색

Make collections global

Adel Qalieh 12 년 전
부모
커밋
8f28eb0f15
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      lib/models.coffee

+ 5 - 3
lib/models.coffee

@@ -1,3 +1,5 @@
-Tasks = new Meteor.Collection("tasks")
-Lists = new Meteor.Collection("lists")
-Folders = new Meteor.Collection("folders")
+root = exports ? this
+
+root.Tasks = new Meteor.Collection("tasks")
+root.Lists = new Meteor.Collection("lists")
+root.Folders = new Meteor.Collection("folders")