I'm not sure I understand the difference between (quotes around function name):
Template.year.helpers({
'QueryHeader': function() {
return Session.get('keyQueryHeader') + ' Attendees';
}
});
and:
Template.year.helpers({
QueryHeader: function() {
return Session.get('keyQueryHeader') + ' Attendees';
}
});
My IDE mentions something about a primitive value returned from constructor will be lost if when called with "new" if I don't use the quotes around the function name. If I use the quotes, it doesn't give me the warning. Both ways of writing the helper seem to do what they should. Should I use quotes around the name?