-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmagicCss4MeteorJs.js
More file actions
33 lines (25 loc) · 827 Bytes
/
Copy pathmagicCss4MeteorJs.js
File metadata and controls
33 lines (25 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// The collection for the test
Members = new Meteor.Collection('members');
if (Meteor.isClient) {
Meteor.startup(function () {
});
// The cursor
membersList = Members.find({}, {sort: {date: 1}});
// #1 alter the template to animate
animatorAutomation.alterTemplate(Template.item);
// #2 alter the cursor used by the template
animatorAutomation.alterCursorObserver(membersList);
// The helper that return the cursor (for the forEach)
Template.container.inList = function () {
return membersList;
};
/* Template.item.created = function () {
//@TODO maybe use created to set a var that will disable animation of first render ?
};*/
}
if (Meteor.isServer) {
Meteor.startup(function () {
});
// #3 on server side, alter the Collection
animatorAutomation.alterCollectionAllow(Members);
}