Sha256: 99371d2b76ec2c32d030948b316ed46bc334fe76d29a56f0e78c26d02122c18b
Contents?: true
Size: 600 Bytes
Versions: 18
Compression:
Stored size: 600 Bytes
Contents
export class VRemoves { constructor(options, params, event, root) { this.target = options.target; this.ids = params.ids; this.event = event; this.root = root; } call(results) { const ids = this.ids; const root = this.root; return new Promise(function(resolve) { results.push({action: 'removes', statusCode: 200}); for (const id of ids) { const elem = root.getElementById(id); elem.parentNode.removeChild(elem); } resolve(results); }); } }
Version data entries
18 entries across 18 versions & 2 rubygems