{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":51},{"__isSmartRef__":true,"id":115},{"__isSmartRef__":true,"id":126},{"__isSmartRef__":true,"id":166},{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":174}],"scripts":[],"shape":{"__isSmartRef__":true,"id":178},"_ClipMode":"visible","derivationIds":[],"id":"4FD40D70-0595-4F8D-8F4E-E83CA4E39C1F","droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":179},"__serializedExpressions__":["contentOffset","_Position"],"name":"LoadLib","closeButton":{"__isSmartRef__":true,"id":133},"collapseButton":{"__isSmartRef__":true,"id":143},"menuButton":{"__isSmartRef__":true,"id":153},"titleBar":{"__isSmartRef__":true,"id":126},"doNotSerialize":[],"doNotCopyProperties":[],"grabbingEnabled":false,"_Rotation":0,"_Scale":1,"reframeHandle":{"__isSmartRef__":true,"id":166},"rightReframeHandle":{"__isSmartRef__":true,"id":174},"bottomReframeHandle":{"__isSmartRef__":true,"id":170},"targetMorph":{"__isSmartRef__":true,"id":51},"eventHandler":{"__isSmartRef__":true,"id":180},"_StyleClassNames":["Morph","Window"],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":181},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":183},"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"contentOffset":"lively.pt(3.0,22.0)","_Position":"lively.pt(0.0,0.0)"},"1":{"submorphs":[{"__isSmartRef__":true,"id":2},{"__isSmartRef__":true,"id":14},{"__isSmartRef__":true,"id":33}],"scripts":[],"shape":{"__isSmartRef__":true,"id":48},"_ClipMode":"visible","derivationIds":[],"id":"23FA8BE0-78D4-4B03-A82C-1D7784070461","droppingEnabled":true,"halosEnabled":true,"__serializedExpressions__":["_Position"],"layout":{"__isSmartRef__":true,"id":49},"name":"listContainer","doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":50},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(512.0,22.0)"},"2":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3},"_ClipMode":"auto","derivationIds":[],"id":"4986CF7D-F9AA-4636-B93F-7F6710ADEA5D","droppingEnabled":true,"halosEnabled":true,"__serializedExpressions__":["_Position"],"_StyleSheet":{"__isSmartRef__":true,"id":4},"allowDeselectClick":false,"isMultipleSelectionList":true,"itemList":[],"layout":{"__isSmartRef__":true,"id":11},"name":"workspaceVarObserver","doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":1},"itemMorphs":[],"isInLayoutCycle":false,"eventHandler":{"__isSmartRef__":true,"id":13},"__LivelyClassName__":"lively.morphic.MorphList","__SourceModuleName__":"Global.lively.morphic.Lists","_Position":"lively.pt(4.0,29.0)"},"3":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":0,"_BorderStyle":"solid","_BorderRadius":0,"_Opacity":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(211.0,298.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"4":{"rules":[{"__isSmartRef__":true,"id":5}],"originMorph":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.StyleSheet","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5":{"declarations":[{"__isSmartRef__":true,"id":6},{"__isSmartRef__":true,"id":7},{"__isSmartRef__":true,"id":8},{"__isSmartRef__":true,"id":9},{"__isSmartRef__":true,"id":10}],"styleSheet":{"__isSmartRef__":true,"id":4},"selector":".list-item","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"6":{"values":["9pt"],"rule":{"__isSmartRef__":true,"id":5},"property":"font-size","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"7":{"values":["sans-serif"],"rule":{"__isSmartRef__":true,"id":5},"property":"font-family","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"8":{"values":["nowrap"],"rule":{"__isSmartRef__":true,"id":5},"property":"white-space","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"9":{"values":["#AAA","1px","solid"],"rule":{"__isSmartRef__":true,"id":5},"property":"border","priority":true,"__LivelyClassName__":"lively.morphic.StyleSheetShorthandDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"10":{"values":["transparent"],"rule":{"__isSmartRef__":true,"id":5},"property":"background-color","priority":true,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"11":{"layouter":{"__isSmartRef__":true,"id":12},"adjustForNewBounds":true,"__serializedExpressions__":["extentWithoutPlaceholder"],"resizeHeight":true,"resizeWidth":true,"extentWithoutPlaceholder":"lively.pt(305.0,244.0)"},"12":{"borderSize":2,"defaultBorderSize":10,"spacing":6,"defaultSpacing":15,"__LivelyClassName__":"lively.morphic.Layout.VerticalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"13":{"morph":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14":{"submorphs":[{"__isSmartRef__":true,"id":15}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20},"_ClipMode":"visible","derivationIds":[],"id":"4E4F260F-0AE5-4FFB-A082-A2A384CE2372","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"_StyleClassNames":["Morph","Button"],"label":{"__isSmartRef__":true,"id":15},"layout":{"__isSmartRef__":true,"id":21},"name":"depthButton","doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"_Rotation":0,"_Scale":1,"isActive":true,"style":{"__isSmartRef__":true,"id":22},"owner":{"__isSmartRef__":true,"id":1},"attributeConnections":[{"__isSmartRef__":true,"id":26}],"eventHandler":{"__isSmartRef__":true,"id":28},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(94.0,4.0)"},"15":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17}],"_ClipMode":"hidden","derivationIds":[],"id":"1E3F963C-54A7-4A01-B4D3-B2A40223EADA","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":10,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":14},"isLabel":true,"eventsAreIgnored":true,"_Align":"center","_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":19},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"16":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(60.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"17":{"style":{"__isSmartRef__":true,"id":18},"chunkOwner":{"__isSmartRef__":true,"id":15},"_id":"_4836","storedString":"depth: 1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"19":{"morph":{"__isSmartRef__":true,"id":15},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_Fill":null,"_BorderRadius":5,"_BorderStyle":"solid","_Opacity":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(60.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"21":{"moveHorizontal":true},"22":{"enableGrabbing":false,"enableDropping":false,"__serializedExpressions__":["borderColor","padding"],"borderWidth":1,"borderRadius":5,"label":{"__isSmartRef__":true,"id":23},"borderColor":"Color.rgb(189,190,192)","padding":"lively.rect(0,3,0,0)"},"23":{"borderWidth":0,"fill":null,"__serializedExpressions__":["padding","textColor"],"fontSize":10,"align":"center","fixedWidth":true,"fixedHeight":true,"clipMode":"hidden","emphasize":{"__isSmartRef__":true,"id":24},"allowInput":false,"padding":"lively.rect(0,3,0,0)","textColor":"Color.rgb(0,0,0)"},"24":{"textShadow":{"__isSmartRef__":true,"id":25}},"25":{"__serializedExpressions__":["offset","color"],"offset":"lively.pt(0.0,1.0)","color":"Color.rgb(255,255,255)"},"26":{"sourceObj":{"__isSmartRef__":true,"id":14},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":27},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"27":{"source":{"__isSmartRef__":true,"id":14},"target":{"__isSmartRef__":true,"id":14}},"28":{"morph":{"__isSmartRef__":true,"id":14},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"29":{"doAction":{"__isSmartRef__":true,"id":30}},"30":{"varMapping":{"__isSmartRef__":true,"id":31},"source":"function doAction() {\n                    var obs = this.get('workspaceVarObserver');\n                    var workspace = this.get('workspace');\n                    var self = this;\n                    $world.prompt(\"print depth of objects\", function(input) {\n                        var n = parseInt(input);\n                        if (isNaN(n) || n < 0) {\n                            Global.show('not a valid input:\\n' + input);\n                            return;\n                        }\n                        self.setLabel('depth: ' + n);\n                        workspace.state.depth = n;\n                        workspace.rerender();\n                    }, workspace.state.depth);\n                }","funcProperties":{"__isSmartRef__":true,"id":32},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31":{"this":{"__isSmartRef__":true,"id":14}},"32":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"33":{"submorphs":[{"__isSmartRef__":true,"id":34}],"scripts":[],"shape":{"__isSmartRef__":true,"id":39},"_ClipMode":"visible","derivationIds":[],"id":"BAD3E0EF-29E7-4297-96BF-A7F14838F001","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"label":{"__isSmartRef__":true,"id":34},"layout":{"__isSmartRef__":true,"id":40},"name":"resetButton","value":false,"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"_Rotation":0,"_Scale":1,"isActive":true,"style":{"__isSmartRef__":true,"id":22},"owner":{"__isSmartRef__":true,"id":1},"attributeConnections":[{"__isSmartRef__":true,"id":41}],"eventHandler":{"__isSmartRef__":true,"id":43},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":44},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(156.0,4.0)"},"34":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":35},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":36}],"_ClipMode":"hidden","derivationIds":[],"id":"8C17823F-A338-4AE1-A8BA-2D49E0EAFD48","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":10,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":33},"isLabel":true,"eventsAreIgnored":true,"_Align":"center","_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":38},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"35":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(60.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"36":{"style":{"__isSmartRef__":true,"id":37},"chunkOwner":{"__isSmartRef__":true,"id":34},"_id":"_4838","storedString":"reset","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"38":{"morph":{"__isSmartRef__":true,"id":34},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_Fill":null,"_BorderRadius":5,"_BorderStyle":"solid","_Opacity":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(60.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"40":{"moveHorizontal":true},"41":{"sourceObj":{"__isSmartRef__":true,"id":33},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":33},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":42},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"42":{"source":{"__isSmartRef__":true,"id":33},"target":{"__isSmartRef__":true,"id":33}},"43":{"morph":{"__isSmartRef__":true,"id":33},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"44":{"doAction":{"__isSmartRef__":true,"id":45}},"45":{"varMapping":{"__isSmartRef__":true,"id":46},"source":"function doAction() {\n                    this.get('workspace').resetState();\n                }","funcProperties":{"__isSmartRef__":true,"id":47},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"46":{"this":{"__isSmartRef__":true,"id":33}},"47":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"48":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":0,"_BorderStyle":"solid","_BorderRadius":0,"_Opacity":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,333.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)"},"49":{"adjustForNewBounds":true,"moveHorizontal":true,"resizeHeight":true,"resizeWidth":false},"50":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"51":{"storedTextString":"// var Erizo=null\n\nfunction loadLib(thenDo) {\n    var url = URL.root.withFilename(\"core/lib/erizo.js\").toString()\n    JSLoader.forcedReload(url);\n    Functions.waitFor(1000, function() { return !!Global.Erizo; }, thenDo);\n}\n\n\nloadLib(function(err) {\n    if (err) show(\"Error loading lib: %s\", err);\n    else alertOK(\"Loaded\")\n});\n\nGlobal.Erizo\n","submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":52},"derivationIds":[],"id":"EF1C7EC6-786E-426F-A059-D1D3D76E2AEE","halosEnabled":true,"_FontSize":12,"doNotSerialize":[],"_ShowGutter":false,"_TextMode":"javascript","_Theme":"","_LineWrapping":false,"_ShowInvisibles":false,"_ShowPrintMargin":false,"_ShowIndents":true,"_ShowActiveLine":false,"_SoftTabs":true,"_AutocompletionEnabled":true,"_ShowWarnings":true,"_ShowErrors":true,"__serializedExpressions__":["_Position"],"allowInput":true,"layout":{"__isSmartRef__":true,"id":53},"name":"workspace","state":{"__isSmartRef__":true,"id":54},"storedString":"","doNotCopyProperties":[],"_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":55},"_isFocused":false,"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":56},"__LivelyClassName__":"lively.morphic.CodeEditor","__SourceModuleName__":"Global.lively.ide.CodeEditor","_Position":"lively.pt(3.0,22.0)"},"52":{"_BorderWidth":0,"__serializedExpressions__":["_BorderColor","_Extent","extent"],"_Fill":null,"_BorderStyle":"solid","_BorderRadius":0,"_Opacity":1,"__LivelyClassName__":"lively.morphic.CodeEditorShape","__SourceModuleName__":"Global.lively.ide.CodeEditor","_BorderColor":"Color.rgb(95,94,95)","_Extent":"lively.pt(729.0,333.0)","extent":"lively.pt(729.0,333.0)"},"53":{"resizeHeight":true,"resizeWidth":true},"54":{"depth":1,"doNotSerialize":["workspaceVars"]},"55":{"morph":{"__isSmartRef__":true,"id":51},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"56":{"onWindowGetsFocus":{"__isSmartRef__":true,"id":57},"animatedSetBounds":{"__isSmartRef__":true,"id":64},"boundEval":{"__isSmartRef__":true,"id":67},"hideVariableArea":{"__isSmartRef__":true,"id":74},"onLoad":{"__isSmartRef__":true,"id":77},"onFromBuildSpecCreated":{"__isSmartRef__":true,"id":84},"rerender":{"__isSmartRef__":true,"id":91},"reset":{"__isSmartRef__":true,"id":94},"resetState":{"__isSmartRef__":true,"id":97},"showVariableArea":{"__isSmartRef__":true,"id":100},"showVars":{"__isSmartRef__":true,"id":103},"toggleVarArea":{"__isSmartRef__":true,"id":106},"updateToggleVarsButton":{"__isSmartRef__":true,"id":109},"varAreaIsHidden":{"__isSmartRef__":true,"id":112}},"57":{"varMapping":{"__isSmartRef__":true,"id":58},"source":"function onWindowGetsFocus() { this.focus(); }","funcProperties":{"__isSmartRef__":true,"id":63},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"58":{"this":{"__isSmartRef__":true,"id":51},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":59}},"59":{"$super":{"__isSmartRef__":true,"id":60}},"60":{"varMapping":{"__isSmartRef__":true,"id":61},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":62},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"61":{"obj":{"__isSmartRef__":true,"id":51},"name":"onWindowGetsFocus"},"62":{},"63":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"64":{"varMapping":{"__isSmartRef__":true,"id":65},"source":"function animatedSetBounds(morph, bounds) {\n        // this.setBounds(newEditorBounds);\n        // this.animatedSetBounds(this, this.bounds().withExtent(this.getExtent().addXY(10,0)));\n        var morphBounds = morph.bounds();\n        var posDiff = bounds.topLeft().subPt(morphBounds.topLeft());\n        var extentDiff = bounds.extent().subPt(morphBounds.extent());\n\n        var time = 400; // ms\n        var steps = 10;\n        var stepMove = posDiff.scaleBy(1/steps);\n        var stepResize = extentDiff.scaleBy(1/steps);\n        animatedScale(steps);\n\n        function animatedScale(step) {\n            if (step === 0) { morph.setBounds(bounds); return; }\n            morph.moveBy(stepMove);\n            morph.resizeBy(stepResize);\n            animatedScale.curry(step-1).delay(time/steps / 1000);\n        }\n\n    }","funcProperties":{"__isSmartRef__":true,"id":66},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"65":{"this":{"__isSmartRef__":true,"id":51}},"66":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"67":{"varMapping":{"__isSmartRef__":true,"id":68},"source":"function boundEval(__evalStatement) {\n            // Evaluate the string argument in a context in which \"this\" is\n            // determined by the reuslt of #getDoitContext\n            var ctx = this.getDoitContext() || this,\n                result;\n\n            if (!this.state.workspaceVars) this.state.workspaceVars = {};\n\n            lively.lang.VM.runEval(__evalStatement, {\n                context: ctx,\n                topLevelVarRecorder: this.state.workspaceVars\n            }, function(err, _result) { result = err || _result; })\n            return result;\n        }","funcProperties":{"__isSmartRef__":true,"id":73},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"68":{"this":{"__isSmartRef__":true,"id":51},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":69}},"69":{"$super":{"__isSmartRef__":true,"id":70}},"70":{"varMapping":{"__isSmartRef__":true,"id":71},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":72},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"71":{"obj":{"__isSmartRef__":true,"id":51},"name":"boundEval"},"72":{},"73":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"74":{"varMapping":{"__isSmartRef__":true,"id":75},"source":"function hideVariableArea() {\n        var newEditorBounds = rect(pt(3,22), this.get(\"listContainer\").bounds().bottomRight());\n        // this.setBounds(newEditorBounds);\n        this.updateToggleVarsButton(newEditorBounds);\n        this.animatedSetBounds(this, newEditorBounds);\n        this.stopStepping();\n    }","funcProperties":{"__isSmartRef__":true,"id":76},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"75":{"this":{"__isSmartRef__":true,"id":51}},"76":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"77":{"varMapping":{"__isSmartRef__":true,"id":78},"source":"function onLoad() {\n            $super();\n            // FIXME...\n            this.getWindow().addMorphBack(this.get(\"listContainer\"));\n        }","funcProperties":{"__isSmartRef__":true,"id":83},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"78":{"this":{"__isSmartRef__":true,"id":51},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":79}},"79":{"$super":{"__isSmartRef__":true,"id":80}},"80":{"varMapping":{"__isSmartRef__":true,"id":81},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":82},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"81":{"obj":{"__isSmartRef__":true,"id":51},"name":"onLoad"},"82":{},"83":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"84":{"varMapping":{"__isSmartRef__":true,"id":85},"source":"function onFromBuildSpecCreated() {\n            $super();\n            this.getWindow().addMorphBack(this.get(\"listContainer\"));\n            this.resetState();\n        }","funcProperties":{"__isSmartRef__":true,"id":90},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"85":{"this":{"__isSmartRef__":true,"id":51},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":86}},"86":{"$super":{"__isSmartRef__":true,"id":87}},"87":{"varMapping":{"__isSmartRef__":true,"id":88},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":89},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"88":{"obj":{"__isSmartRef__":true,"id":51},"name":"onFromBuildSpecCreated"},"89":{},"90":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"91":{"varMapping":{"__isSmartRef__":true,"id":92},"source":"function rerender() {\n            var obs = this.get('workspaceVarObserver');\n            obs.setList([]);\n            this.showVars();\n        }","funcProperties":{"__isSmartRef__":true,"id":93},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"92":{"this":{"__isSmartRef__":true,"id":51}},"93":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"94":{"varMapping":{"__isSmartRef__":true,"id":95},"source":"function reset() {\n        this.setStyleSheet('.list-item { font-size: 9pt; }')\n        this.state = {\n            doNotSerialize: ['workspaceVars'],\n            workspaceVars: {},\n            depth: 1\n        };\n        this.showVars();\n        this.textString = '';\n        lively.bindings.connect(this.get(\"toggleVarsButton\"), 'fire', this, 'toggleVarArea');\n    }","funcProperties":{"__isSmartRef__":true,"id":96},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"95":{"this":{"__isSmartRef__":true,"id":51}},"96":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"97":{"varMapping":{"__isSmartRef__":true,"id":98},"source":"function resetState() {\n        this.owner.targetMorph = this;\n        this.state = {\n            depth: 1,\n            doNotSerialize: [\"workspaceVars\"],\n            workspaceVars: {}\n        }\n        this.showVars();\n    }","funcProperties":{"__isSmartRef__":true,"id":99},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"98":{"this":{"__isSmartRef__":true,"id":51}},"99":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"100":{"varMapping":{"__isSmartRef__":true,"id":101},"source":"function showVariableArea() {\n        var border = 2,\n            varAreaWidth = 220,\n            varList = this.get(\"listContainer\"),\n            newEditorBounds = rect(\n                pt(3,22),\n                varList.bounds().bottomRight().addXY(-3 - varAreaWidth - border, 0));\n    \n        varList.setExtent(varList.getExtent().withX(varAreaWidth));\n        varList.align(varList.bounds().topRight(), this.getWindow().innerBounds().topRight().addXY(-3,22));\n    \n        this.updateToggleVarsButton(newEditorBounds);\n    \n        this.animatedSetBounds(this, newEditorBounds);\n        this.startStepping(1000, \"showVars\");\n    }","funcProperties":{"__isSmartRef__":true,"id":102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"101":{"this":{"__isSmartRef__":true,"id":51}},"102":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"103":{"varMapping":{"__isSmartRef__":true,"id":104},"source":"function showVars() {\n            // this.startStepping(1000, 'showVars')\n            // obs.setList([]);\n\n            var style = {\n                allowInput: false,\n                fixedHeight: false, fixedWidth: true,\n                whiteSpaceHandling: 'pre',\n                cssStylingMode: true\n            };\n\n            var s = this.state;\n            var vars = s.workspaceVars || {};\n            var keys = Object.keys(vars);\n\n            var obs = this.get('workspaceVarObserver');\n            var list = obs.getList() || [];\n\n            var preexistingItems = list.filter(function(item) {\n                    return keys.include(item.value.key); })\n                .map(function(ea) {\n                    ea.value = {key: ea.value.key, value: vars[ea.value.key]};\n                    ea.morph = render(ea.value.key, ea.value.value, ea.morph);\n                    return ea\n                });\n\n            var newItems = keys\n                .withoutAll(preexistingItems.pluck('value').pluck('key'))\n                .map(function(k) {\n                    var morph = render(k, vars[k]),\n                        item = {morph: morph, isListItem: true, string: 'foo', value: {key: k, value: vars[k]}};\n                    morph.item = item;\n                    return item; });\n\n            var items = preexistingItems.concat(newItems);\n\n            obs.setList(items);\n            obs.applyLayout();\n\n            // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n\n            function render(key, val, optListItemMorph) {\n                var morph = optListItemMorph || createListItemMorph();\n\n                var valString = stringifyObj(val);\n                var string = key + ': ' + valString;\n                if (morph.textString !== string) {\n                    morph.setClipMode('visible');\n                    morph.textString = string;\n                    morph.fitThenDo(function() { morph.setClipMode(\"hidden\"); });\n                };\n\n                return morph;\n            }\n\n            function createListItemMorph() {\n                var morph = new lively.morphic.Text(\n                    obs.getExtent()\n                        .addXY(-2 * obs.layout.layouter.borderSize, 0)\n                        .extentAsRectangle(), '');\n\n                morph.applyStyle(style);\n\n                morph.addStyleClassName('list-item');\n\n                morph.addScript(function showControls() {\n                    var resetButton = new lively.morphic.Button(this.innerBounds());\n                    resetButton.align(resetButton.getPosition(), this.innerBounds().bottomLeft());\n                    this.controls = [\n                        this.addMorph(resetButton)\n                    ];\n                    this.cachedBounds = null;\n                    this.owner.applyLayout();\n                });\n\n                morph.addScript(function hideControls() {\n                    this.controls.invoke('remove');\n                    this.controls.length = 0;\n                    this.owner.applyLayout();\n                })\n\n                morph.addScript(function onHoverIn(evt) {\n                    this.showControls();\n                });\n\n                morph.addScript(function onHoverOut(evt) {\n                    this.hideControls();\n                });\n\n                morph.addScript(function onMouseMove(evt) {\n                    if (this.thereIsAHandInMe) return false;\n                    this.thereIsAHandInMe = true;\n                    this.onHoverIn(evt);\n                });\n\n                morph.addScript(function onMouseOut(evt) {\n                    var wasHovered = !!this.thereIsAHandInMe;\n                    var hoverInMorph = evt.relatedTarget && lively.$(evt.relatedTarget).parents('.morphNode').data('morph');\n                    if (hoverInMorph && (hoverInMorph === this || hoverInMorph.ownerChain().include(this))) return;\n                    this.thereIsAHandInMe = false;\n                    wasHovered && this.onHoverOut(evt);\n                });\n\n                return morph;\n            }\n\n            function stringifyObj(obj) {\n                var string;\n                if (obj && obj.isMorph) {\n                    string = obj.toString();\n                } else {\n                     string = Objects.inspect(obj, {maxDepth: s.depth});\n                }\n                return string.truncate(250);\n            }\n        }","funcProperties":{"__isSmartRef__":true,"id":105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"104":{"this":{"__isSmartRef__":true,"id":51}},"105":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"106":{"varMapping":{"__isSmartRef__":true,"id":107},"source":"function toggleVarArea() {\n        this[this.varAreaIsHidden() ? \"showVariableArea\" : \"hideVariableArea\"]();\n    }","funcProperties":{"__isSmartRef__":true,"id":108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"107":{"this":{"__isSmartRef__":true,"id":51}},"108":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"109":{"varMapping":{"__isSmartRef__":true,"id":110},"source":"function updateToggleVarsButton(bnds) {\n        var btn = this.get(\"toggleVarsButton\");\n        bnds = bnds || this.bounds();\n\n        var newButtonBounds = btn.bounds().withTopRight(bnds.topRight().addXY(-4,4))\n        this.animatedSetBounds(btn, newButtonBounds);\n\n        var hidden = this.varAreaIsHidden();\n        var label = hidden ? \"hide vars\" : \"show vars\";\n        btn.setLabel(label);\n    }","funcProperties":{"__isSmartRef__":true,"id":111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"110":{"this":{"__isSmartRef__":true,"id":51}},"111":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"112":{"varMapping":{"__isSmartRef__":true,"id":113},"source":"function varAreaIsHidden() {\n        this.cachedBounds = null;\n        this.aceEditor.resize(true)\n        var varsAreVisible = this.getWindow().getExtent().x - this.bounds().width > 30;\n        return !varsAreVisible\n    }","funcProperties":{"__isSmartRef__":true,"id":114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"113":{"this":{"__isSmartRef__":true,"id":51}},"114":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"115":{"submorphs":[{"__isSmartRef__":true,"id":116}],"scripts":[],"shape":{"__isSmartRef__":true,"id":121},"_ClipMode":"visible","derivationIds":[],"id":"822EFB75-1268-483F-897E-5A3859B9492C","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"__serializedExpressions__":["_Position"],"layout":{"__isSmartRef__":true,"id":122},"label":{"__isSmartRef__":true,"id":116},"name":"toggleVarsButton","doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"_Rotation":0,"_Scale":1,"isActive":true,"style":{"__isSmartRef__":true,"id":22},"owner":{"__isSmartRef__":true,"id":0},"attributeConnections":[{"__isSmartRef__":true,"id":123}],"eventHandler":{"__isSmartRef__":true,"id":125},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(664.0,26.0)"},"116":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":117},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":118}],"_ClipMode":"hidden","derivationIds":[],"id":"E86380BB-C7B2-4D97-8D52-3400A5BE280F","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":10,"__serializedExpressions__":["_TextColor"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":115},"isLabel":true,"eventsAreIgnored":true,"_Align":"center","_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":120},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"117":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"118":{"style":{"__isSmartRef__":true,"id":119},"chunkOwner":{"__isSmartRef__":true,"id":116},"_id":"_4840","storedString":"show vars","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"119":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"120":{"morph":{"__isSmartRef__":true,"id":116},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"121":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_Fill":null,"_BorderRadius":5,"_BorderStyle":"solid","_Opacity":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"122":{"moveHorizontal":true},"123":{"sourceObj":{"__isSmartRef__":true,"id":115},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":51},"targetMethodName":"toggleVarArea","varMapping":{"__isSmartRef__":true,"id":124},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"124":{"source":{"__isSmartRef__":true,"id":115},"target":{"__isSmartRef__":true,"id":51}},"125":{"morph":{"__isSmartRef__":true,"id":115},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"126":{"submorphs":[{"__isSmartRef__":true,"id":127},{"__isSmartRef__":true,"id":133},{"__isSmartRef__":true,"id":143},{"__isSmartRef__":true,"id":153}],"scripts":[],"shape":{"__isSmartRef__":true,"id":163},"_ClipMode":"visible","derivationIds":[],"id":"E52F2BCE-C6E2-4407-AB74-34937B4C6CB7","droppingEnabled":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":164},"__serializedExpressions__":["_Position"],"windowMorph":{"__isSmartRef__":true,"id":0},"buttons":[{"__isSmartRef__":true,"id":133},{"__isSmartRef__":true,"id":143},{"__isSmartRef__":true,"id":153}],"label":{"__isSmartRef__":true,"id":127},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":165},"showsHalos":false,"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"127":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":128},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":129}],"_ClipMode":"hidden","derivationIds":[],"id":"17C883E7-7B07-4336-87D8-914429A88EE6","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":10,"__serializedExpressions__":["_TextColor","_Position"],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"layout":{"__isSmartRef__":true,"id":131},"owner":{"__isSmartRef__":true,"id":126},"_StyleClassNames":["Morph","Text","window-title"],"_TextStylingMode":true,"eventHandler":{"__isSmartRef__":true,"id":132},"showsHalos":false,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(3.0,3.0)"},"128":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(643.0,16.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"129":{"style":{"__isSmartRef__":true,"id":130},"chunkOwner":{"__isSmartRef__":true,"id":127},"_id":"_4825","storedString":"JavaScript Workspace","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"130":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"131":{"resizeWidth":true},"132":{"morph":{"__isSmartRef__":true,"id":127},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"133":{"submorphs":[{"__isSmartRef__":true,"id":134}],"scripts":[],"shape":{"__isSmartRef__":true,"id":139},"_ClipMode":"visible","derivationIds":[],"id":"E244882B-F530-46ED-959B-F59F5BC54AF6","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":134},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":126},"_StyleClassNames":["Morph","Button","WindowControl","close"],"attributeConnections":[{"__isSmartRef__":true,"id":140}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":142},"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(715.0,3.0)"},"134":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":135},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":136}],"_ClipMode":"hidden","derivationIds":[],"id":"AA784DCF-634D-47D0-9260-F8DACC039001","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":false,"fixedHeight":false,"_FontFamily":"Helvetica","_FontSize":10,"__serializedExpressions__":["_TextColor","_Position"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":133},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":138},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,0.0)"},"135":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"136":{"style":{"__isSmartRef__":true,"id":137},"chunkOwner":{"__isSmartRef__":true,"id":134},"_id":"_4828","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"137":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"138":{"morph":{"__isSmartRef__":true,"id":134},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"139":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"140":{"sourceObj":{"__isSmartRef__":true,"id":133},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"initiateShutdown","varMapping":{"__isSmartRef__":true,"id":141},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"141":{"source":{"__isSmartRef__":true,"id":133},"target":{"__isSmartRef__":true,"id":0}},"142":{"morph":{"__isSmartRef__":true,"id":133},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"143":{"submorphs":[{"__isSmartRef__":true,"id":144}],"scripts":[],"shape":{"__isSmartRef__":true,"id":149},"_ClipMode":"visible","derivationIds":[],"id":"11F83822-049C-4795-824F-6157A49C76FE","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":144},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":126},"attributeConnections":[{"__isSmartRef__":true,"id":150}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":152},"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(695.0,3.0)"},"144":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":145},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":146}],"_ClipMode":"hidden","derivationIds":[],"id":"8793A012-85F3-493B-9552-816EE69EC657","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":false,"fixedHeight":false,"_FontFamily":"Helvetica","_FontSize":10,"__serializedExpressions__":["_TextColor","_Position"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":143},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":148},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,0.0)"},"145":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"146":{"style":{"__isSmartRef__":true,"id":147},"chunkOwner":{"__isSmartRef__":true,"id":144},"_id":"_4831","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"147":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"148":{"morph":{"__isSmartRef__":true,"id":144},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"149":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"150":{"sourceObj":{"__isSmartRef__":true,"id":143},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"toggleCollapse","varMapping":{"__isSmartRef__":true,"id":151},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"151":{"source":{"__isSmartRef__":true,"id":143},"target":{"__isSmartRef__":true,"id":0}},"152":{"morph":{"__isSmartRef__":true,"id":143},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"153":{"submorphs":[{"__isSmartRef__":true,"id":154}],"scripts":[],"shape":{"__isSmartRef__":true,"id":159},"_ClipMode":"visible","derivationIds":[],"id":"AC3BB5A7-BB68-4279-9033-DA0400E6BB9D","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"__serializedExpressions__":["_Position"],"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":154},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":126},"attributeConnections":[{"__isSmartRef__":true,"id":160}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":162},"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(652.0,3.0)"},"154":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":155},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":156}],"_ClipMode":"hidden","derivationIds":[],"id":"C35D31B8-CE4E-4DD7-88D0-4C15B058C3CF","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":false,"fixedHeight":false,"_FontFamily":"Helvetica","_FontSize":10,"__serializedExpressions__":["_TextColor","_Position"],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":153},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":158},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,0.0)"},"155":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"156":{"style":{"__isSmartRef__":true,"id":157},"chunkOwner":{"__isSmartRef__":true,"id":154},"_id":"_4834","storedString":"Menu","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"157":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"158":{"morph":{"__isSmartRef__":true,"id":154},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"159":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(40.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"160":{"sourceObj":{"__isSmartRef__":true,"id":153},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"showTargetMorphMenu","varMapping":{"__isSmartRef__":true,"id":161},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"161":{"source":{"__isSmartRef__":true,"id":153},"target":{"__isSmartRef__":true,"id":0}},"162":{"morph":{"__isSmartRef__":true,"id":153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"163":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"_BorderWidth":0,"_BorderColor":null,"_Fill":null,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(735.0,22.0)","_Padding":"lively.rect(0,0,0,0)"},"164":{"resizeWidth":true,"adjustForNewBounds":true},"165":{"morph":{"__isSmartRef__":true,"id":126},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"166":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":167},"_ClipMode":"visible","derivationIds":[],"id":"2AD7ABDB-BCCA-4382-A3BC-63DEE70DBF69","droppingEnabled":true,"halosEnabled":true,"__serializedExpressions__":["_Position"],"type":"corner","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle corner"],"layout":{"__isSmartRef__":true,"id":168},"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":169},"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(721.0,344.0)"},"167":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"_BorderWidth":0,"_BorderColor":null,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(14.0,14.0)","_Padding":"lively.rect(0,0,0,0)"},"168":{"moveVertical":true,"moveHorizontal":true},"169":{"morph":{"__isSmartRef__":true,"id":166},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"170":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":171},"_ClipMode":"visible","derivationIds":[],"id":"871BB804-8991-4D6D-BB62-6607FDA1F555","droppingEnabled":true,"halosEnabled":true,"__serializedExpressions__":["_Position"],"type":"bottom","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle bottom"],"layout":{"__isSmartRef__":true,"id":172},"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":173},"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,355.0)"},"171":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"_BorderWidth":0,"_BorderColor":null,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(721.0,3.0)","_Padding":"lively.rect(0,0,0,0)"},"172":{"moveVertical":true},"173":{"morph":{"__isSmartRef__":true,"id":170},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"174":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":175},"_ClipMode":"visible","derivationIds":[],"id":"74DF260C-EBEB-4A78-9E4C-E877A14408DE","droppingEnabled":true,"halosEnabled":true,"__serializedExpressions__":["_Position"],"type":"right","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle right"],"layout":{"__isSmartRef__":true,"id":176},"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":177},"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(732.0,0.0)"},"175":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"_BorderWidth":0,"_BorderColor":null,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(3.0,344.0)","_Padding":"lively.rect(0,0,0,0)"},"176":{"moveHorizontal":true},"177":{"morph":{"__isSmartRef__":true,"id":174},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"178":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"_BorderWidth":1,"_BorderColor":null,"_Fill":null,"_StrokeOpacity":false,"_BorderRadius":0,"_BorderStyle":"solid","_Opacity":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(735.0,358.0)","_Padding":"lively.rect(0,0,0,0)"},"179":{"adjustForNewBounds":true},"180":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"181":{"partName":"LoadLib","requiredModules":[],"partsSpaceName":"PartsBin/Felix/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":182}],"migrationLevel":8,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"182":{"__serializedExpressions__":["date"],"author":"Felix","message":"no comment","id":"A6AF85DE-5482-4777-B3C9-732F0CB7CE30","date":"new Date(\"Fri Oct 03 2014 17:19:53 GMT-0700 (PDT)\")"},"183":{"onKeyDown":{"__isSmartRef__":true,"id":184}},"184":{"varMapping":{"__isSmartRef__":true,"id":185},"source":"function onKeyDown(evt) {\n        var keys = evt.getKeyString();\n        if (keys === \"Control-Shift-V\" || keys === \"Command-Shift-V\") {\n            this.targetMorph.toggleVarArea();\n            evt.stop(); return true;\n        }\n        $super(evt);\n    }","funcProperties":{"__isSmartRef__":true,"id":190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"185":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":186}},"186":{"$super":{"__isSmartRef__":true,"id":187}},"187":{"varMapping":{"__isSmartRef__":true,"id":188},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"188":{"obj":{"__isSmartRef__":true,"id":0},"name":"onKeyDown"},"189":{},"190":{"__serializedExpressions__":["timestamp"],"user":"Felix","timestamp":"new Date(\"Fri Oct 03 2014 17:19:09 GMT-0700 (PDT)\")"},"isSimplifiedRegistry":true}}