blob: 0e13b963a6c34c3e13c8640bcfcae9d6a5640ac0 [file] [log] [blame]
function ScreenConsole(element) {
this._element = element;
}
ScreenConsole.prototype.log = function () {
var text = "";
for (var i = 0; i < arguments.length; i++) {
text += arguments[i] + " ";
}
console.log(text);
this._element.innerText += text + "\n";
};
ScreenConsole.prototype.clear = function () {
this._element.innerText = "";
};