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")
null
LayerStatewithContextJSBugdemonstration
30
31
true
null
30
null
false
--start--MyConsoleinitialized!wrappedconsoleforMyConsolesuccessfullystartingWikiNavigatorstatus207onPROPFINDhttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlhttp://localhost/svn/wiki/anonymous_module_1loadedin32mshttp://localhost/svn/wiki/anonymous_module_0loadedin444msfontHelvetica30:spacewidth8from38xWidth15fontCourier14:spacewidth8from24xWidth8Moduleloadcheckdone.23modulesloaded.makingselectionmakingselectionstatus200onGEThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlrecursingforfieldownerWidgetstatus204onPUThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlsuccesspublishingworldathttp://localhost/svn/wiki/LayeredStateExampleBug.xhtml,status204commandDlayerpropertyainMyLayerlayerGetterMethodMyLayer,[objectObject],alayerSetterMethodMyLayer,[objectObject],alayerpropertyainMyLayer2layerGetterMethodMyLayer2,[objectObject],amakingselectioncommandD[objectObject]setato71010commandDlayerpropertyainMyLayerlayerGetterMethodMyLayer,[objectObject],alayerSetterMethodMyLayer,[objectObject],alayerpropertyainMyLayer2layerGetterMethodMyLayer2,[objectObject],alayerSetterMethodMyLayer2,[objectObject],acommandD[objectObject]setato71010commandD[objectObject]setato71010commandXcommandVcommandD[objectObject]setato7commandDcommandD99commandDcommandD99commandDcommandD[objectObject]setato799commandD10commandD99commandXcommandVcommandD[objectObject]setato71010commandD[objectObject]setato7commandDgetMyLayer1alayerpropertyainMyLayer1layerGetterMethodMyLayer1,[objectObject],alayerSetterMethodMyLayer1,[objectObject],alayerpropertyainMyLayer2layerGetterMethodMyLayer2,[objectObject],alayerSetterMethodMyLayer2,[objectObject],acommandD[objectObject]setato7getMyLayer1a10getMyLayer1a10commandDgetMyLayer1agetMyLayer2alayerpropertyainMyLayer1layerGetterMethodMyLayer1,[objectObject],alayerSetterMethodMyLayer1,[objectObject],alayerpropertyainMyLayer2layerGetterMethodMyLayer2,[objectObject],alayerSetterMethodMyLayer2,[objectObject],acommandD[objectObject]setato7setMyLayer1asetMyLayer1agetMyLayer1a10getMyLayer1a10status200onGEThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlrecursingforfieldownerWidgetstatus204onPUThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlsuccesspublishingworldathttp://localhost/svn/wiki/LayeredStateExampleBug.xhtml,status204makingselectionmakingselectionstatus200onGEThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlrecursingforfieldownerWidgetstatus204onPUThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlsuccesspublishingworldathttp://localhost/svn/wiki/LayeredStateExampleBug.xhtml,status204status200onGEThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlrecursingforfieldownerWidgetstatus204onPUThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlsuccesspublishingworldathttp://localhost/svn/wiki/LayeredStateExampleBug.xhtml,status204ClipboardactionnotsuccessfulcommandDgetMyLayer1agetMyLayer2alayerpropertyainMyLayer1layerGetterMethodMyLayer1,[objectObject],alayerSetterMethodMyLayer1,[objectObject],alayerpropertyainMyLayer2layerGetterMethodMyLayer2,[objectObject],alayerSetterMethodMyLayer2,[objectObject],acommandD[objectObject]setato7setMyLayer1asetMyLayer1agetMyLayer1a10getMyLayer1a10commandXcommandVClipboardactionnotsuccessfulcommandZCan'tfindcurrentpositionintextcommandZCan'tfindcurrentpositionintextcommandZCan'tfindcurrentpositionintextcommandZCan'tfindcurrentpositionintextcommandZCan'tfindcurrentpositionintextcommandXcommandVcopied%smakingselectionfitWidthfailureonTextMorph.getCharBoundsfitWidthfailureonTextMorph.getCharBoundscommandSgetMyLayer1agetMyLayer2alayerpropertyainMyLayer1layerGetterMethodMyLayer1,[objectObject],alayerSetterMethodMyLayer1,[objectObject],alayerpropertyainMyLayer2layerGetterMethodMyLayer2,[objectObject],alayerSetterMethodMyLayer2,[objectObject],acomputingwheelfor49gotselectionsimplecomputingwheelfor49computingwheelfor49computingwheelfor49commandSfontCourier12:spacewidth7from21xWidth7commandSmakingselectionfitWidthfailureonTextMorph.getCharBoundsfitWidthfailureonTextMorph.getCharBoundscopied%scopied%sClipboardactionnotsuccessfulcommandDsetMyLayer1asetMyLayer3agetMyLayer1a9getMyLayer2a10commandXcommandVcommandS[objectObject]setato7setMyLayer1asetMyLayer3agetMyLayer1a9getMyLayer2a10setMyLayer1asetMyLayer1agetMyLayer1a10getMyLayer1a10commandSgetMyLayer1agetMyLayer2alayerpropertyainMyLayer1layerGetterMethodMyLayer1,[objectObject],alayerSetterMethodMyLayer1,[objectObject],alayerpropertyainMyLayer2layerGetterMethodMyLayer2,[objectObject],alayerSetterMethodMyLayer2,[objectObject],amakingselectionmakingselectionstatus200onGEThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlrecursingforfieldownerWidgetstatus204onPUThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlsuccesspublishingworldathttp://localhost/svn/wiki/LayeredStateExampleBug.xhtml,status204status200onGEThttp://localhost/svn/wiki/LayeredStateExampleBug.xhtmlrecursingforfieldownerWidget
222
true
true
false
3791
false
null
1
true
true
false
1
null
true
true
false
null
false
null
null
null
null
1000
1.9810220637169846
Wikicontrol
true
null
o=newMyClass();o.a;//7withLayers([MyLayer1],function(){o.a=9;});withLayers([MyLayer2],function(){o.a=10;});withLayers([MyLayer1],function(){console.log(o.a);//9});withLayers([MyLayer2],function(){console.log(o.a);//10});//isbroken....withLayers([MyLayer1],function(){o.a=9;withLayers([MyLayer2],function(){o.a=10;});});withLayers([MyLayer1],function(){console.log(o.a);//9withLayers([MyLayer2],function(){console.log(o.a);//10});});
31
true
true
false
263
true
264
14
null
true
true
false
false
1
true
false
true
true
false
null
false
true
null
false
null
false
null
false
false
false
false
null
false
false
null
null
null
null
false
null
false
createLayer("MyLayer1");createLayer("MyLayer2");Object.subclass('MyClass',{initialize:function(){this.a=7;},getMyLayer1$a(proceed){console.log("getMyLayer1a");returnthis._MyLayer_a;},setMyLayer1$a(proceed,v){console.log("setMyLayer1a");this._MyLayer_a=v;},getMyLayer2$a(proceed){console.log("getMyLayer2a");returnthis._MyLayer2_a;},setMyLayer2$a(proceed,v){console.log("setMyLayer3a");this._MyLayer2_a=v;},});
22
true
true
false
122
false
null
488
14
true
true
false
false
1
true
false
true
true
false
null
false
true
null
false
null
false
false
null
false
false
false
false
null
false
false
null
null
null
null
false
null
1248266845124
19287
1
12
1248266845
null
null