I have a plain ole’ client-side function like
function toggleLeftMenu(openClose){
if(openClose == 'open'){
openLeftMenu()
}
else {
closeLeftMenu()
}
}
It lives in my masterLayout template.
I want to be able to call it from any Template.event function, including ones that live inside of my local /packages.
I’ve used Meteor.call() client-side, and that does the trick and the event works. However, it still logs a 404 in the console.
What is the proper way to have a public scoped or application scoped function accessible everywhere?
Thanks,
Don