Let's take for example the documentSubmit event with all it's parameters:
Template.Form.events({
documentSubmit(e, tmpl, doc) {
}
});
If using the Astronomy package, we would expect the doc to be instance of our class, let's say an instance of the Post class. However:
Template.Form.events({
documentSubmit(e, tmpl, doc) {
if (doc instanceof Post) {
}
}
});
The instance check will return false. jQuery is transforming a document to plain objects.