Sha256: 5fae0e4f270b61317fb0379de45a105ef1df17926e43b87202c119a35b462fdb
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
export class VRemoves { constructor(options, params, event) { this.target = options.target; this.ids = params.ids; this.event = event; } call(results) { let ids = this.ids; var promiseObj = new Promise(function (resolve) { results.push({action: 'removes', statusCode: 200}); for (const id of ids){ let elem = document.getElementById(id); elem.parentNode.removeChild(elem); } resolve(results); }); return promiseObj; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voom-presenters-0.2.0 | views/mdc/assets/js/components/events/removes.js |