Currently, it's not possible to make final changes to a document when Document:close is called by game:BindToClose.
To solve this, I propose adding Document:beforeClose(callback: (data) -> ()). The document would call all the registered callbacks inside of Document:close before it saves the data.
Currently, it's not possible to make final changes to a document when
Document:close
is called bygame:BindToClose
.To solve this, I propose adding
Document:beforeClose(callback: (data) -> ())
. The document would call all the registered callbacks inside ofDocument:close
before it saves the data.