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")
LayerAssignment40
//DebuggingBehaviorcreateLayer("DebugMorphLayer");layerClass(DebugMorphLayer,TextMorph,{onKeyDown:function(proceed,evt){console.log("onKeyDown:"+evt)returnproceed(evt);}})Morph.prototype.getActivatedLayers=function(){returnthis.layers}//getaspecificmorphmyMorph=WorldMorph.current().submorphs.detect(function(ea){returnea.name=="MyMorph"})myMorph.layers=[DebugMorphLayer]//myMorph.layers=[]1423
10000.11801322124465137Wikicontroltrue
10000.00873121525990214Wikicontroltrue
10003.240665163403411Wikicontroltrue
firsttextmorphnull
true
-----falsetruefalse0
worldis1:WorldMorph([0,0,1289,866])falsetruefalse0
Errorevaluatinginitializer:SyntaxError:Invalidreturnstatement.falsetruefalse0
startingWikiNavigatorfalsetruefalse0
status207onPROPFINDhttp://lively-kernel.org/repository/webwerkstatt/ContextJSLayerAssignment.xhtmlfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_2loadedin42msfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/anonymous_module_1loadedin384msfalsetruefalse0
fontHelvetica40:spacewidth11from51xWidth20falsetruefalse0
fontCourier14:spacewidth8from24xWidth8falsetruefalse0
fontCourier14:spacewidth8from24xWidth8falsetruefalse0
fontHelvetica18:spacewidth5from23xWidth9falsetruefalse0
fontHelvetica18:spacewidth5from23xWidth9falsetruefalse0
fontHelvetica14:spacewidth4from18xWidth7falsetruefalse0
fontHelvetica14:spacewidth4from18xWidth7falsetruefalse0
ResizingSVGcanvasfalsetruefalse0
Moduleloadcheckdone.26modulesloaded.falsetruefalse0
-------------------------------------------falsetruefalse0
invoke54850:TextMorph([0,0,475,53.400001525878906])falsetruefalse0
-------------------------------------------falsetruefalse0
invoke56360:TextMorph([0,0,475,24.733333587646484])falsetruefalse0
onKeyDown:#<Event:KeyDown8>"]]>falsetruefalse0
onKeyDown:#<Event:KeyDown8>"]]>falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([0,0,1289,866])falsetruefalse0
status200onGEThttp://lively-kernel.org/repository/webwerkstatt/ContextJSLayerAssignment.xhtml?1259660244253falsetruefalse0
extendForSerializationundefinedfalsetruefalse0
ERRORSerializingiteminarraylayersof55225:TextMorph([0,0,103.59200286865234,21.200000762939453])falsetruefalse0824-1nulltrue0falsetruetruefalse
false1truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
true100false
truefalsenull050
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalsenull41