Lively Kernel canvas
// this script is evaluated on world load
MyConsole = WorldMorph.current().submorphs.detect(function(ea){return ea.name == "MyConsole"});
if(!MyConsole) return;
MyConsole = MyConsole.component;
MyConsole.setText("-- start --");
MyConsole.log = function(s) {
this.setText(this.formalModel.getText() + "\n" + s);
};
MyConsole.log("My Console initialized!");
MyConsole.morph.resetScrollPane = function() {
var sp = this.enclosingScrollPane();
if (sp) sp.scrollToBottom();
};
// console.consumers seems to be broken... so we go the hard waz
console.log = console.log.wrap(function(proceed, s) {
MyConsole.log(s)
proceed(s)})
console.log("wrapped console for MyConsole successfully")
24
Hasso-Plattner-InstitutPotsdamSoftwareArchitectureGroupRobertHirschfeldJensLinckehttp://www.hpi.uni-potsdam.de/swa/SoSe201018true5
Web-basedDevelopmentEnvironmentsLivelyKernelProjectSeminar40true1
truetrue
Web-basedDevelopmentEnvironments201018null
prevfalsenullfalsetrue
nextfalsenullfalsetrue
-Introduction-Tutorial-ContextJS28true
http://lively-kernel.org/repository/webwerkstatt/ProjectSeminar2010/ProjectSeminar.xhtm16
100033.5534775282932Wikicontroltrue
null54