logoots-structs
Version:
Provides several data structures to represent a text using a ropes-like structure and manipulating it
22 lines (18 loc) • 365 B
JavaScript
var LogootSAdd = function (id, l) {
this.id = id || null;
this.l = l || '';
};
LogootSAdd.prototype.copy = function () {
var o = new LogootSAdd();
o.id = this.id.copy();
o.l = this.l;
return o;
};
LogootSAdd.prototype.execute = function (doc) {
var args = {
'id': this.id,
'str': this.l
};
return doc.addBlock(args);
};
module.exports = LogootSAdd;