@@ -12,3 +12,11 @@ Template.errors.helpers({
return Errors.find();
}
});
+
+Template.error.onRendered(function () {
+ var error = this.data;
+ Meteor._debug(this.data);
+ Meteor.setTimeout(function () {
+ Errors.remove(error._id);
+ }, 3000);
+});