mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
15 lines
No EOL
502 B
JavaScript
15 lines
No EOL
502 B
JavaScript
// note: this is shared between client/server in order to enable fast-render to auto-detect subscriptions
|
|
|
|
Telescope.subscriptions.preload('settings');
|
|
Telescope.subscriptions.preload('currentUser');
|
|
|
|
FlowRouter.subscriptions = function() {
|
|
var flow = this;
|
|
Telescope.subscriptions.forEach(function (sub) {
|
|
if (typeof sub === 'object'){
|
|
flow.register(sub.subName, Meteor.subscribe(sub.subName, sub.subArguments));
|
|
}else{
|
|
flow.register(sub, Meteor.subscribe(sub));
|
|
}
|
|
});
|
|
}; |