We currently have functions defined on Model.prototype which can be confusing to people looking at the docs, expecting a specific function to be on the Document section.
AFAICT there is virtually no benefit to defining methods on Model.prototype since Model returns a Document instance, we should define only statics on Model, and leave prototype methods to Document.
Am I missing something here? Let me know if those changes sound reasonable, and I'll put in a PR.
We currently have functions defined on
Model.prototypewhich can be confusing to people looking at the docs, expecting a specific function to be on theDocumentsection.AFAICT there is virtually no benefit to defining methods on
Model.prototypesinceModelreturns aDocumentinstance, we should define only statics onModel, and leave prototype methods toDocument.Am I missing something here? Let me know if those changes sound reasonable, and I'll put in a PR.