mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00

Using jshint and and fixmyjs I went through and removed 220 trivial Javascript errors – mostly missing semicolons, and some properties that weren’t written in dot notation. You can view the diff of jshint’s output here: https://gist.github.com/christianbundy/7b37c51bb6f7c8d739e7/revisions
9 lines
318 B
JavaScript
9 lines
318 B
JavaScript
if(Meteor.isClient){
|
|
// Local (client-only) collection
|
|
Errors = new Meteor.Collection(null);
|
|
}
|
|
throwError = function(message, type){
|
|
type = (typeof type === 'undefined') ? 'error': type;
|
|
// Store errors in the 'Errors' local collection
|
|
Errors.insert({message:message, type:type, seen: false, show:true});
|
|
};
|