mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
Remove unnecessary console.logs
This commit is contained in:
parent
3cec10fecd
commit
aad8c70498
2 changed files with 0 additions and 10 deletions
|
@ -546,7 +546,6 @@ export default class ComposerView extends React.Component {
|
|||
};
|
||||
|
||||
_onBodyChanged = event => {
|
||||
console.log(`adding body changes: ${event.target.value}`);
|
||||
this.props.session.changes.add({ body: event.target.value });
|
||||
return;
|
||||
};
|
||||
|
|
|
@ -82,9 +82,7 @@ class DraftChangeSet extends EventEmitter {
|
|||
|
||||
this._saving = this._pending;
|
||||
this._pending = {};
|
||||
console.log('_saving = ' + JSON.stringify(this._saving));
|
||||
return this.callbacks.onCommit().then(() => {
|
||||
console.log('_saving cleared');
|
||||
this._saving = {};
|
||||
});
|
||||
};
|
||||
|
@ -380,8 +378,6 @@ export default class DraftEditingSession extends MailspringStore {
|
|||
return;
|
||||
}
|
||||
|
||||
console.log('_onDraftChanged');
|
||||
|
||||
// If our draft has been changed, only accept values which are present.
|
||||
// If `body` is undefined, assume it's not loaded. Do not overwrite old body.
|
||||
const nextDraft = change.objects
|
||||
|
@ -399,7 +395,6 @@ export default class DraftEditingSession extends MailspringStore {
|
|||
}
|
||||
nextValues[key] = nextDraft[key];
|
||||
}
|
||||
console.log('_setDraft nextValues: ' + JSON.stringify(nextValues));
|
||||
this._setDraft(Object.assign(new Message(), this._draft, nextValues));
|
||||
this.trigger();
|
||||
}
|
||||
|
@ -427,12 +422,8 @@ export default class DraftEditingSession extends MailspringStore {
|
|||
const baseDraft = draft || inMemoryDraft;
|
||||
const updatedDraft = this.changes.applyToModel(baseDraft);
|
||||
const task = new SyncbackDraftTask({ draft: updatedDraft });
|
||||
console.log('changeSetCommit queueing task');
|
||||
Actions.queueTask(task);
|
||||
await TaskQueue.waitForPerformLocal(task);
|
||||
console.log(
|
||||
'changeSetCommit finished waiting for performLocal. At this point, onDraftChanged should have been called.'
|
||||
);
|
||||
}
|
||||
|
||||
// Undo / Redo
|
||||
|
|
Loading…
Reference in a new issue