tty.js icon indicating copy to clipboard operation
tty.js copied to clipboard

document.body.appendChild(…) ?

Open pzich opened this issue 12 years ago • 0 comments

I think it's a little inflexible to have Terminal.prototype.open() use document.body.appendChild(this.element). Perhaps it would be better to have this return this.element, and let the user of this library (and the example code) do document.body.appendChild(term.open()) if they want it appended there.

pzich avatar Mar 27 '13 04:03 pzich