commit melhorias sgf
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// Saving uses the existing form and its existing command/validation path.
|
||||
export class ContextTransition {
|
||||
constructor() { this.dirty = new Set(); this.pending = 0; this.saved = 0; this.failed = 0; this.versions = new WeakMap(); this.submitting = null; }
|
||||
changed(form) { if (form) { this.dirty.add(form); this.versions.set(form,(this.versions.get(form)||0)+1); } }
|
||||
changed(form) { if (form && form.dataset?.sgfReadFilters!=='true') { this.dirty.add(form); this.versions.set(form,(this.versions.get(form)||0)+1); } }
|
||||
prune() { for (const form of this.dirty) if (!form.isConnected) this.dirty.delete(form); }
|
||||
async command(operation) {
|
||||
this.pending++;
|
||||
|
||||
Reference in New Issue
Block a user