UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

16 lines (15 loc) 400 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LocalSlices = void 0; const Slices_1 = require("./Slices"); class LocalSlices extends Slices_1.Slices { del(id) { super.del(id); if (Math.random() < 0.1) this.set.removeTombstones(); } toStringName() { return 'LocalSlices'; } } exports.LocalSlices = LocalSlices;