mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
15 lines
502 B
JavaScript
15 lines
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));
|
||
|
}
|
||
|
});
|
||
|
};
|