This commit is contained in:
Tom Moor
2017-07-09 20:02:10 -07:00
parent f456dc6b6a
commit a04af08064
16 changed files with 209 additions and 56 deletions

View File

@ -152,9 +152,9 @@ class Document {
return this;
};
updateData(data: Object = {}) {
updateData(data: Object = {}, dirty: boolean = false) {
if (data.text) data.title = parseHeader(data.text);
data.hasPendingChanges = true;
if (dirty) data.hasPendingChanges = true;
extendObservable(this, data);
}