ethercalc
Version:
Multi-User Spreadsheet Server
23 lines (16 loc) • 378 B
JavaScript
Class('Document.Emitter', function() {
var proto = this.prototype;
proto.className = 'Document.Emitter';
proto.instantiate = function() {
return eval('new ' + this.className + '()');
}
proto.init = function() {
this.output = '';
}
proto.content = function() {
return this.output;
}
proto.insert = function(receiver) {
this.output += receiver.output;
}
});