')\n .append($('').text(metrics.name))\n .append($(' | ').text(metrics.methods))\n .append($(' | ').text(metrics.subclasses))\n .appendTo(table);\n });\n\n var container = $('')\n .css({ overflow: 'auto', width: '100%', height:'100%' })\n .append(table);\n $(this.renderContext().shapeNode).empty().append(container);\n\n}).categorize([]);","_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":1106},"lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":1107},"attributeConnections":[{"__isSmartRef__":true,"id":1108}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"distanceToDragEvent":{"__isSmartRef__":true,"id":1133},"_MinTextWidth":748.0285365288845,"_MinTextHeight":null,"previousSelection":[445,445],"lastSaveSource":"// changed at Fri Nov 25 2011 15:56:03 GMT+0100 (CET) by mf \nthis.addScript(function updateList() {\n var metrics = Global.classes(true).map(function(cls) {\n return {\n name: cls.name,\n methods: Functions.own(cls).length,\n subclasses: cls.allSubclasses().length\n };\n });\n\n metrics.sort(function(a, b) {\n if (b.methods !== a.methods) return b.methods - a.methods;\n return b.subclasses - a.subclasses;\n });\n\n var $ = jQuery;\n var table = $(' ');\n $('')\n .append($('').text('Class name'))\n .append($(' | ').text('WMC'))\n .append($(' | ').text('NOC'))\n .appendTo(table);\n\n metrics.forEach(function(metrics) {\n $(' | ')\n .append($('').text(metrics.name))\n .append($(' | ').text(metrics.methods))\n .append($(' | ').text(metrics.subclasses))\n .appendTo(table);\n });\n\n var container = $('')\n .css({ overflow: 'auto', width: '100%', height:'100%' })\n .append(table);\n $(this.renderContext().shapeNode).empty().append(container);\n\n}).categorize([]);","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":200},"isCopyMorphRef":true,"morphRefId":1,"statusMorph":{"__isSmartRef__":true,"id":1134},"_Rotation":0,"_Scale":1,"textString":"","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1149},"__LivelyClassName__":"lively.morphic.Text"},"697":{"_Position":{"__isSmartRef__":true,"id":698},"_Extent":{"__isSmartRef__":true,"id":699},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":700},"_Fill":{"__isSmartRef__":true,"id":701},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":702},"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":703},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"698":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"699":{"x":765.0285365288845,"y":391.61253261443596,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"700":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"701":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"702":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"703":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"704":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"705":{"x":200,"y":40,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"706":{"style":{"__isSmartRef__":true,"id":707},"chunkOwner":{"__isSmartRef__":true,"id":696},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"707":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"708":{"resizeWidth":true,"resizeHeight":true},"709":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"710":{"x":765.0285365288845,"y":391.61253261443596,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"711":{"submorphs":[],"scripts":[],"id":204,"shape":{"__isSmartRef__":true,"id":712},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Rectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":719},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":720},"eventHandler":{"__isSmartRef__":true,"id":721},"attributeConnections":[{"__isSmartRef__":true,"id":722},{"__isSmartRef__":true,"id":1073},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1075},{"__isSmartRef__":true,"id":1076}],"doNotSerialize":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"layout":{"__isSmartRef__":true,"id":1082},"priorExtent":{"__isSmartRef__":true,"id":1083},"prevScroll":[0,0],"isBeingDragged":false,"classes":[],"isCopyMorphRef":true,"morphRefId":2,"_Position":{"__isSmartRef__":true,"id":1084},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":802},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1085},"__LivelyClassName__":"lively.morphic.Box"},"712":{"position":{"__isSmartRef__":true,"id":713},"_Extent":{"__isSmartRef__":true,"id":714},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":715},"_Fill":{"__isSmartRef__":true,"id":716},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":717},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":718},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"713":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"714":{"x":500,"y":331,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"715":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"undefined.1"},"716":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"undefined.1"},"717":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"718":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"719":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"720":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"721":{"morph":{"__isSmartRef__":true,"id":711},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"722":{"sourceObj":{"__isSmartRef__":true,"id":711},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":723},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1067},{"__isSmartRef__":true,"id":1068},{"__isSmartRef__":true,"id":1069},{"__isSmartRef__":true,"id":1049},{"__isSmartRef__":true,"id":1050},{"__isSmartRef__":true,"id":1051},{"__isSmartRef__":true,"id":1052},{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1067},{"__isSmartRef__":true,"id":1068},{"__isSmartRef__":true,"id":1069},{"__isSmartRef__":true,"id":1049},{"__isSmartRef__":true,"id":1050},{"__isSmartRef__":true,"id":1051},{"__isSmartRef__":true,"id":1052}],"oldTransform":{"__isSmartRef__":true,"id":1071},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"723":{"morph":{"__isSmartRef__":true,"id":724},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":725},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"724":{"submorphs":[{"__isSmartRef__":true,"id":725}],"scripts":[],"shape":{"__isSmartRef__":true,"id":744},"id":1815,"renderContextTable":{"__isSmartRef__":true,"id":751},"eventHandler":{"__isSmartRef__":true,"id":752},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":753},{"__isSmartRef__":true,"id":723}],"con":{"__isSmartRef__":true,"id":754},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1058},"__LivelyClassName__":"lively.morphic.Path"},"725":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":726},"id":1816,"renderContextTable":{"__isSmartRef__":true,"id":737},"eventHandler":{"__isSmartRef__":true,"id":738},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":739},"owner":{"__isSmartRef__":true,"id":724},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":1.4089421516639344,"showsHalos":false,"controlPoints":[{"__isSmartRef__":true,"id":740},{"__isSmartRef__":true,"id":741},{"__isSmartRef__":true,"id":742},{"__isSmartRef__":true,"id":743}],"__LivelyClassName__":"lively.morphic.Path"},"726":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":727},{"__isSmartRef__":true,"id":728},{"__isSmartRef__":true,"id":729},{"__isSmartRef__":true,"id":730}],"renderContextTable":{"__isSmartRef__":true,"id":731},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":732},"_Extent":{"__isSmartRef__":true,"id":733},"_Padding":{"__isSmartRef__":true,"id":734},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":735},"_Fill":{"__isSmartRef__":true,"id":736},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"727":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"728":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"729":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"730":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"731":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"732":{"x":-12,"y":-6,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"733":{"x":16,"y":12,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"734":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"735":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"736":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"738":{"morph":{"__isSmartRef__":true,"id":725},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"739":{"x":30.178857975203897,"y":57.87292501532346,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"740":{"morph":{"__isSmartRef__":true,"id":725},"index":0,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"741":{"morph":{"__isSmartRef__":true,"id":725},"index":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"742":{"morph":{"__isSmartRef__":true,"id":725},"index":2,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"743":{"morph":{"__isSmartRef__":true,"id":725},"index":3,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"744":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":745},{"__isSmartRef__":true,"id":746}],"renderContextTable":{"__isSmartRef__":true,"id":747},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":748},"_Extent":{"__isSmartRef__":true,"id":749},"_Padding":{"__isSmartRef__":true,"id":750},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":735},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"745":{"isAbsolute":true,"x":23.833451898553903,"y":19.011404538017132,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"746":{"isAbsolute":true,"x":30.178857975203897,"y":57.87292501532346,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"747":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"748":{"x":23,"y":18,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"749":{"x":8,"y":40,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"750":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"751":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"752":{"morph":{"__isSmartRef__":true,"id":724},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"753":{"morph":{"__isSmartRef__":true,"id":724},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"754":{"sourceObj":{"__isSmartRef__":true,"id":755},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":711},"targetMethodName":"updateList","visualConnector":{"__isSmartRef__":true,"id":724},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"755":{"submorphs":[{"__isSmartRef__":true,"id":756}],"scripts":[],"id":2226,"shape":{"__isSmartRef__":true,"id":771},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":775},"lighterFill":{"__isSmartRef__":true,"id":787},"label":{"__isSmartRef__":true,"id":756},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":796},"attributeConnections":[{"__isSmartRef__":true,"id":754}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":797},"renderContextTable":{"__isSmartRef__":true,"id":798},"eventHandler":{"__isSmartRef__":true,"id":799},"distanceToDragEvent":{"__isSmartRef__":true,"id":800},"prevScroll":[0,0],"_Position":{"__isSmartRef__":true,"id":801},"owner":{"__isSmartRef__":true,"id":802},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"756":{"submorphs":[],"scripts":[],"id":2227,"shape":{"__isSmartRef__":true,"id":757},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":763},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":764},"_Padding":{"__isSmartRef__":true,"id":765},"owner":{"__isSmartRef__":true,"id":755},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":766},"textChunks":[{"__isSmartRef__":true,"id":767}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":769},"eventHandler":{"__isSmartRef__":true,"id":770},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":101,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"757":{"position":{"__isSmartRef__":true,"id":758},"_Extent":{"__isSmartRef__":true,"id":759},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":760},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":761},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":762},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"758":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"759":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"undefined.1"},"760":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"761":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"762":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"763":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"764":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"765":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"766":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"undefined.1"},"767":{"style":{"__isSmartRef__":true,"id":768},"chunkOwner":{"__isSmartRef__":true,"id":756},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"World","__LivelyClassName__":"lively.morphic.TextChunk"},"768":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"769":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"770":{"morph":{"__isSmartRef__":true,"id":756},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"771":{"position":{"__isSmartRef__":true,"id":772},"_Extent":{"__isSmartRef__":true,"id":773},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":774},"_Fill":{"__isSmartRef__":true,"id":775},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":785},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":786},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"772":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"773":{"x":101,"y":21,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"774":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"775":{"stops":[{"__isSmartRef__":true,"id":776},{"__isSmartRef__":true,"id":778},{"__isSmartRef__":true,"id":780},{"__isSmartRef__":true,"id":782}],"vector":{"__isSmartRef__":true,"id":784},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"776":{"offset":0,"color":{"__isSmartRef__":true,"id":777}},"777":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"778":{"offset":0.4,"color":{"__isSmartRef__":true,"id":779}},"779":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"780":{"offset":0.6,"color":{"__isSmartRef__":true,"id":781}},"781":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"782":{"offset":1,"color":{"__isSmartRef__":true,"id":783}},"783":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"784":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"785":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"786":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"787":{"stops":[{"__isSmartRef__":true,"id":788},{"__isSmartRef__":true,"id":790},{"__isSmartRef__":true,"id":792},{"__isSmartRef__":true,"id":794}],"vector":{"__isSmartRef__":true,"id":784},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"788":{"offset":0,"color":{"__isSmartRef__":true,"id":789}},"789":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"790":{"offset":0.4,"color":{"__isSmartRef__":true,"id":791}},"791":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"792":{"offset":0.6,"color":{"__isSmartRef__":true,"id":793}},"793":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"794":{"offset":1,"color":{"__isSmartRef__":true,"id":795}},"795":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"796":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"797":{"x":101,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"798":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"799":{"morph":{"__isSmartRef__":true,"id":755},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"800":{"x":69.42218877156489,"y":-14.96458483244517,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"801":{"x":23.833451898553903,"y":19.015299943776313,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"802":{"submorphs":[{"__isSmartRef__":true,"id":711},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":950},{"__isSmartRef__":true,"id":883},{"__isSmartRef__":true,"id":755}],"scripts":[],"id":536,"shape":{"__isSmartRef__":true,"id":1039},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"MetricsView","partsBinMetaInfo":{"__isSmartRef__":true,"id":1046},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1047},"eventHandler":{"__isSmartRef__":true,"id":1048},"attributeConnections":[{"__isSmartRef__":true,"id":1049},{"__isSmartRef__":true,"id":1050},{"__isSmartRef__":true,"id":1051},{"__isSmartRef__":true,"id":1052}],"doNotSerialize":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":1054},"priorExtent":{"__isSmartRef__":true,"id":1055},"prevScroll":[0,0],"distanceToDragEvent":{"__isSmartRef__":true,"id":1056},"_Position":{"__isSmartRef__":true,"id":1057},"_Scale":1.002003004005006,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Box"},"803":{"submorphs":[{"__isSmartRef__":true,"id":804}],"scripts":[],"id":"68CB0259-9C28-4246-AC4F-D4AA662DE002","shape":{"__isSmartRef__":true,"id":819},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"TextInput","partsBinMetaInfo":{"__isSmartRef__":true,"id":826},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":851},"eventHandler":{"__isSmartRef__":true,"id":852},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":853},"layout":{"__isSmartRef__":true,"id":854},"isInLayoutCycle":false,"prevScroll":[0,0],"label":{"__isSmartRef__":true,"id":856},"input":{"__isSmartRef__":true,"id":883},"distanceToDragEvent":{"__isSmartRef__":true,"id":911},"isBeingDragged":false,"isDataField":true,"isTypedDataField":true,"isCopyMorphRef":true,"morphRefId":1,"derivationIds":[3457,"F30465C1-3E65-4F06-8CE2-34B1B6D39F44"],"_Position":{"__isSmartRef__":true,"id":912},"owner":{"__isSmartRef__":true,"id":802},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":913},"__LivelyClassName__":"lively.morphic.Box"},"804":{"submorphs":[],"scripts":[],"id":"5E2F5C12-0646-4AE8-89E2-DE978FEA9510","shape":{"__isSmartRef__":true,"id":805},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":811},"_MaxTextWidth":140,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":808},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Label","partsBinMetaInfo":{"__isSmartRef__":true,"id":812},"textChunks":[{"__isSmartRef__":true,"id":813}],"charsReplaced":"TextInput","lastFindLoc":9,"priorSelectionRange":[7,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":815},"renderContextTable":{"__isSmartRef__":true,"id":816},"eventHandler":{"__isSmartRef__":true,"id":817},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":818},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":140,"_MinTextHeight":null,"previousSelection":[1,1],"owner":{"__isSmartRef__":true,"id":803},"derivationIds":[3459,"6AB049DD-3056-4759-B95B-5DA1DAE23880"],"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"805":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":806},"_Extent":{"__isSmartRef__":true,"id":807},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":808},"renderContextTable":{"__isSmartRef__":true,"id":809},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":810},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"806":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"807":{"x":140,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"undefined.1"},"808":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"809":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"810":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"811":{"x":7.135,"y":7.135,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"812":{"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"813":{"style":{"__isSmartRef__":true,"id":814},"chunkOwner":{"__isSmartRef__":true,"id":804},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Module:","__LivelyClassName__":"lively.morphic.TextChunk"},"814":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"815":{"x":140,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"undefined.1"},"816":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"817":{"morph":{"__isSmartRef__":true,"id":804},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"818":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"819":{"position":{"__isSmartRef__":true,"id":820},"_Extent":{"__isSmartRef__":true,"id":821},"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":822},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":823},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":824},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_BorderColor":{"__isSmartRef__":true,"id":825},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"820":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"821":{"x":396.89140465873186,"y":44.11192548326366,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"822":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"undefined.1"},"823":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"824":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"825":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"undefined.1"},"826":{"partsSpaceName":"PartsBin/DatabaseDemo/","__SourceModuleName__":"Global.lively.PartsBin","comment":"String input (text). Interface: #getInputString #getType #getValue #setLabel #getName","migrationLevel":4,"partName":"TextInput","changes":[{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":829},{"__isSmartRef__":true,"id":831},{"__isSmartRef__":true,"id":833},{"__isSmartRef__":true,"id":835},{"__isSmartRef__":true,"id":837},{"__isSmartRef__":true,"id":839},{"__isSmartRef__":true,"id":841},{"__isSmartRef__":true,"id":843},{"__isSmartRef__":true,"id":845},{"__isSmartRef__":true,"id":847},{"__isSmartRef__":true,"id":849}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"827":{"date":{"__isSmartRef__":true,"id":828},"author":null,"message":"","id":"8FDAD811-D04E-4C77-B0EC-B839EF848821"},"828":{"isSerializedDate":true,"string":"Thu Jan 05 2012 00:13:45 GMT+0100 (CET)"},"829":{"date":{"__isSmartRef__":true,"id":830},"author":null,"message":"","id":"2A84CEED-6D97-4405-809E-D94E0783B671"},"830":{"isSerializedDate":true,"string":"Wed Nov 23 2011 22:25:46 GMT+0100 (CET)"},"831":{"date":{"__isSmartRef__":true,"id":832},"author":null,"message":"","id":"746BCB9A-8E05-4C29-8965-BAE702453043"},"832":{"isSerializedDate":true,"string":"Tue Nov 22 2011 22:22:01 GMT+0100 (CET)"},"833":{"date":{"__isSmartRef__":true,"id":834},"author":null,"message":"","id":"C368FD9D-6A38-4D1D-AA63-C2170A3F2AEE"},"834":{"isSerializedDate":true,"string":"Thu Nov 17 2011 01:21:05 GMT+0100 (CET)"},"835":{"date":{"__isSmartRef__":true,"id":836},"author":null,"message":"","id":"DD9591F7-AED2-49DF-A46C-1ABD96F0704E"},"836":{"isSerializedDate":true,"string":"Mon Nov 14 2011 19:03:18 GMT+0100 (CET)"},"837":{"date":{"__isSmartRef__":true,"id":838},"author":null,"message":"","id":"1649BEFF-AE79-471A-9588-9F85C717B691"},"838":{"isSerializedDate":true,"string":"Mon Nov 14 2011 19:06:39 GMT+0100 (CET)"},"839":{"date":{"__isSmartRef__":true,"id":840},"author":null,"message":"","id":"866D4176-0654-41AF-B572-7155CD518000"},"840":{"isSerializedDate":true,"string":"Mon Nov 14 2011 19:07:31 GMT+0100 (CET)"},"841":{"date":{"__isSmartRef__":true,"id":842},"author":null,"message":"","id":"BB5FCC65-1A15-436D-A613-D8DEFF053440"},"842":{"isSerializedDate":true,"string":"Mon Nov 14 2011 19:17:07 GMT+0100 (CET)"},"843":{"date":{"__isSmartRef__":true,"id":844},"author":null,"message":"","id":"68F0961D-33A6-4218-B689-D0D80AE50825"},"844":{"isSerializedDate":true,"string":"Mon Nov 14 2011 19:27:07 GMT+0100 (CET)"},"845":{"date":{"__isSmartRef__":true,"id":846},"author":null,"message":"","id":"9DFAB0C9-0AE3-47FD-B9C3-3C00BD27B942"},"846":{"isSerializedDate":true,"string":"Wed Nov 16 2011 20:23:40 GMT+0100 (CET)"},"847":{"date":{"__isSmartRef__":true,"id":848},"author":null,"message":"","id":"B3A0813A-D4E0-4A53-8507-A8D2A2CF2E36"},"848":{"isSerializedDate":true,"string":"Tue Nov 22 2011 01:13:13 GMT+0100 (CET)"},"849":{"date":{"__isSmartRef__":true,"id":850},"author":null,"message":"","id":"95329BDB-9877-442A-B609-68B165559487"},"850":{"isSerializedDate":true,"string":"Tue Jan 03 2012 20:38:55 GMT+0100 (CET)"},"851":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"852":{"morph":{"__isSmartRef__":true,"id":803},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"853":{"x":411.419658698746,"y":44.11192548326366,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"854":{"layouter":{"__isSmartRef__":true,"id":855},"extentWithoutPlaceholder":{"__isSmartRef__":true,"id":821}},"855":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":7.135,"spacing":3.995,"container":{"__isSmartRef__":true,"id":803},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.HorizontalLayout"},"856":{"submorphs":[],"scripts":[],"id":23199,"shape":{"__isSmartRef__":true,"id":857},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":863},"_MaxTextWidth":48,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":860},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Label","partsBinMetaInfo":{"__isSmartRef__":true,"id":864},"textChunks":[{"__isSmartRef__":true,"id":865}],"charsReplaced":"some text ","lastFindLoc":10,"priorSelectionRange":[0,10],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":867},"renderContextTable":{"__isSmartRef__":true,"id":868},"eventHandler":{"__isSmartRef__":true,"id":869},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":870},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","owner":null,"_MinTextWidth":48,"_MinTextHeight":null,"previousSelection":[5,9],"distanceToDragEvent":{"__isSmartRef__":true,"id":871},"eventsAreIgnored":true,"scriptAnnotations":{"__isSmartRef__":true,"id":872},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":875},"__LivelyClassName__":"lively.morphic.Text"},"857":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":858},"_Extent":{"__isSmartRef__":true,"id":859},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":860},"renderContextTable":{"__isSmartRef__":true,"id":861},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":862},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"858":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"859":{"x":48,"y":22,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"860":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"861":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"862":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"863":{"x":7.135,"y":7.135,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"864":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"865":{"style":{"__isSmartRef__":true,"id":866},"chunkOwner":{"__isSmartRef__":true,"id":856},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"866":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"867":{"x":48,"y":22,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"868":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"869":{"morph":{"__isSmartRef__":true,"id":856},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"870":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"871":{"x":65,"y":-18,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"872":{"setTextString":{"__isSmartRef__":true,"id":873}},"873":{"time":{"__isSmartRef__":true,"id":874}},"874":{"isSerializedDate":true,"string":"Mon Nov 14 2011 22:03:35 GMT+0100 (CET)"},"875":{"setTextString":{"__isSmartRef__":true,"id":876}},"876":{"varMapping":{"__isSmartRef__":true,"id":877},"source":"function setTextString(string) {\n $super(string);\n this.fit();\n this.applyLayout();\n}","funcProperties":{"__isSmartRef__":true,"id":882},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"877":{"this":{"__isSmartRef__":true,"id":856},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":878}},"878":{"$super":{"__isSmartRef__":true,"id":879}},"879":{"varMapping":{"__isSmartRef__":true,"id":880},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":881},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"880":{"obj":{"__isSmartRef__":true,"id":856},"name":"setTextString"},"881":{},"882":{},"883":{"submorphs":[],"scripts":[],"id":"DFDFE3DA-95BF-40CE-A7FB-0BAE6766B25D","shape":{"__isSmartRef__":true,"id":884},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":891},"_MaxTextWidth":176.69588523692522,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":892},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Input","partsBinMetaInfo":{"__isSmartRef__":true,"id":893},"textChunks":[{"__isSmartRef__":true,"id":894}],"charsReplaced":"sdf","lastFindLoc":3,"priorSelectionRange":[5,5],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":896},"renderContextTable":{"__isSmartRef__":true,"id":897},"eventHandler":{"__isSmartRef__":true,"id":898},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":899},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","owner":{"__isSmartRef__":true,"id":802},"_MinTextWidth":176.69588523692522,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":900},"distanceToDragEvent":{"__isSmartRef__":true,"id":901},"previousSelection":[11,11],"derivationIds":[3458,"443AE3A2-E1DF-48F5-8CBC-AE8D720ACD4E"],"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":902},"__LivelyClassName__":"lively.morphic.Text"},"884":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":885},"_Extent":{"__isSmartRef__":true,"id":886},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":887},"renderContextTable":{"__isSmartRef__":true,"id":888},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":889},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"dashed","_Fill":{"__isSmartRef__":true,"id":890},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"885":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"886":{"x":176.69588523692522,"y":22.98024068540795,"__LivelyClassName__":"Point","__SourceModuleName__":"undefined.1"},"887":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"undefined.1"},"888":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"889":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"890":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"undefined.1"},"891":{"x":233.5325412335461,"y":18.07339511200624,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"892":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"893":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"894":{"style":{"__isSmartRef__":true,"id":895},"chunkOwner":{"__isSmartRef__":true,"id":883},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"lively.morphic","__LivelyClassName__":"lively.morphic.TextChunk"},"895":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"896":{"x":176.69588523692522,"y":22.98024068540795,"__LivelyClassName__":"Point","__SourceModuleName__":"undefined.1"},"897":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"898":{"morph":{"__isSmartRef__":true,"id":883},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"899":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"900":{},"901":{"x":175.92081270755892,"y":-8.13934924907744,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"902":{"onEnterPressed":{"__isSmartRef__":true,"id":903}},"903":{"varMapping":{"__isSmartRef__":true,"id":904},"source":"function onEnterPressed(evt) {\n console.log(jQuery(evt.target).text());\n}","funcProperties":{"__isSmartRef__":true,"id":909},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"904":{"this":{"__isSmartRef__":true,"id":883},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":905}},"905":{"$super":{"__isSmartRef__":true,"id":906}},"906":{"varMapping":{"__isSmartRef__":true,"id":907},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":908},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"907":{"obj":{"__isSmartRef__":true,"id":883},"name":"onEnterPressed"},"908":{},"909":{"timestamp":{"__isSmartRef__":true,"id":910},"user":"undefined","tags":[]},"910":{"isSerializedDate":true,"string":"Thu Jan 05 2012 15:56:17 GMT+0100 (CET)"},"911":{"x":86,"y":-22,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"912":{"x":134.17332343635104,"y":11.9225547996745,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"913":{"setLabel":{"__isSmartRef__":true,"id":914},"getValue":{"__isSmartRef__":true,"id":918},"getType":{"__isSmartRef__":true,"id":922},"getInputString":{"__isSmartRef__":true,"id":926},"setValue":{"__isSmartRef__":true,"id":930},"getSelectorString":{"__isSmartRef__":true,"id":934},"setName":{"__isSmartRef__":true,"id":938},"reset":{"__isSmartRef__":true,"id":946}},"914":{"varMapping":{"__isSmartRef__":true,"id":915},"source":"function setLabel(label) { this.label.setTextString(label);\n}","funcProperties":{"__isSmartRef__":true,"id":916},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"915":{"this":{"__isSmartRef__":true,"id":803}},"916":{"timestamp":{"__isSmartRef__":true,"id":917}},"917":{"isSerializedDate":true,"string":"Mon Nov 14 2011 23:08:14 GMT+0100 (CET)"},"918":{"varMapping":{"__isSmartRef__":true,"id":919},"source":"function getValue() {\n return this.input.getTextString();\n}","funcProperties":{"__isSmartRef__":true,"id":920},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"919":{"this":{"__isSmartRef__":true,"id":803}},"920":{"timestamp":{"__isSmartRef__":true,"id":921}},"921":{"isSerializedDate":true,"string":"Mon Nov 14 2011 18:48:58 GMT+0100 (CET)"},"922":{"varMapping":{"__isSmartRef__":true,"id":923},"source":"function getType() {\n return 'text';\n}","funcProperties":{"__isSmartRef__":true,"id":924},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"923":{"this":{"__isSmartRef__":true,"id":803}},"924":{"timestamp":{"__isSmartRef__":true,"id":925}},"925":{"isSerializedDate":true,"string":"Mon Nov 14 2011 19:22:22 GMT+0100 (CET)"},"926":{"varMapping":{"__isSmartRef__":true,"id":927},"source":"function getInputString() {\n return this.input.getTextString();\n}","funcProperties":{"__isSmartRef__":true,"id":928},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"927":{"this":{"__isSmartRef__":true,"id":803}},"928":{"timestamp":{"__isSmartRef__":true,"id":929}},"929":{"isSerializedDate":true,"string":"Mon Nov 14 2011 18:48:50 GMT+0100 (CET)"},"930":{"varMapping":{"__isSmartRef__":true,"id":931},"source":"function setValue(aString) {\n this.get('Input').textString = aString;\n}","funcProperties":{"__isSmartRef__":true,"id":932},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"931":{"this":{"__isSmartRef__":true,"id":803}},"932":{"timestamp":{"__isSmartRef__":true,"id":933}},"933":{"isSerializedDate":true,"string":"Wed Nov 16 2011 20:23:29 GMT+0100 (CET)"},"934":{"varMapping":{"__isSmartRef__":true,"id":935},"source":"function getSelectorString() {\n return '';\n}","funcProperties":{"__isSmartRef__":true,"id":936},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"935":{"this":{"__isSmartRef__":true,"id":803}},"936":{"timestamp":{"__isSmartRef__":true,"id":937},"categories":[]},"937":{"isSerializedDate":true,"string":"Tue Nov 22 2011 22:21:48 GMT+0100 (CET)"},"938":{"varMapping":{"__isSmartRef__":true,"id":939},"source":"function setName(name) {\n $super(name);\n this.get(\"Label\").setTextString(name + \":\");\n }","funcProperties":{"__isSmartRef__":true,"id":944},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"939":{"this":{"__isSmartRef__":true,"id":803},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":940}},"940":{"$super":{"__isSmartRef__":true,"id":941}},"941":{"varMapping":{"__isSmartRef__":true,"id":942},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":943},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"942":{"obj":{"__isSmartRef__":true,"id":803},"name":"setName"},"943":{},"944":{"timestamp":{"__isSmartRef__":true,"id":945}},"945":{"isSerializedDate":true,"string":"Wed Nov 23 2011 19:54:41 GMT+0100 (CET)"},"946":{"varMapping":{"__isSmartRef__":true,"id":947},"source":"function reset() {\n this.input.textString = '';\n}","funcProperties":{"__isSmartRef__":true,"id":948},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"947":{"this":{"__isSmartRef__":true,"id":803}},"948":{"timestamp":{"__isSmartRef__":true,"id":949},"categories":[]},"949":{"isSerializedDate":true,"string":"Wed Nov 23 2011 22:25:40 GMT+0100 (CET)"},"950":{"submorphs":[{"__isSmartRef__":true,"id":951}],"scripts":[],"id":"A0BC55E7-6461-4AB3-9117-32E79D02BAB5","shape":{"__isSmartRef__":true,"id":966},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":982},"lighterFill":{"__isSmartRef__":true,"id":970},"label":{"__isSmartRef__":true,"id":951},"name":"Button1","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":991},"attributeConnections":[{"__isSmartRef__":true,"id":992}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":1034},"renderContextTable":{"__isSmartRef__":true,"id":1035},"eventHandler":{"__isSmartRef__":true,"id":1036},"distanceToDragEvent":{"__isSmartRef__":true,"id":1037},"derivationIds":[7251],"isCopyMorphRef":true,"morphRefId":1,"_Position":{"__isSmartRef__":true,"id":1038},"owner":{"__isSmartRef__":true,"id":802},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"951":{"submorphs":[],"scripts":[],"id":"EAF0A36E-3166-45B1-A4A8-C5D8A16AEF2A","shape":{"__isSmartRef__":true,"id":952},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":958},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":959},"_Padding":{"__isSmartRef__":true,"id":960},"owner":{"__isSmartRef__":true,"id":950},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":961},"textChunks":[{"__isSmartRef__":true,"id":962}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":964},"eventHandler":{"__isSmartRef__":true,"id":965},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252],"_MinTextWidth":101,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"952":{"position":{"__isSmartRef__":true,"id":953},"_Extent":{"__isSmartRef__":true,"id":954},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":955},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":956},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":957},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"953":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"954":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"undefined.1"},"955":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"957":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"958":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"959":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"960":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"961":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"undefined.1"},"962":{"style":{"__isSmartRef__":true,"id":963},"chunkOwner":{"__isSmartRef__":true,"id":951},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Module","__LivelyClassName__":"lively.morphic.TextChunk"},"963":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"964":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"965":{"morph":{"__isSmartRef__":true,"id":951},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"966":{"position":{"__isSmartRef__":true,"id":967},"_Extent":{"__isSmartRef__":true,"id":968},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":969},"_Fill":{"__isSmartRef__":true,"id":970},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":980},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":981},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"967":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"968":{"x":101,"y":21,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"969":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"970":{"stops":[{"__isSmartRef__":true,"id":971},{"__isSmartRef__":true,"id":973},{"__isSmartRef__":true,"id":975},{"__isSmartRef__":true,"id":977}],"vector":{"__isSmartRef__":true,"id":979},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"971":{"offset":0,"color":{"__isSmartRef__":true,"id":972}},"972":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"973":{"offset":0.4,"color":{"__isSmartRef__":true,"id":974}},"974":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"975":{"offset":0.6,"color":{"__isSmartRef__":true,"id":976}},"976":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"977":{"offset":1,"color":{"__isSmartRef__":true,"id":978}},"978":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"979":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"980":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"981":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"982":{"stops":[{"__isSmartRef__":true,"id":983},{"__isSmartRef__":true,"id":985},{"__isSmartRef__":true,"id":987},{"__isSmartRef__":true,"id":989}],"vector":{"__isSmartRef__":true,"id":979},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"983":{"offset":0,"color":{"__isSmartRef__":true,"id":984}},"984":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"985":{"offset":0.4,"color":{"__isSmartRef__":true,"id":986}},"986":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"987":{"offset":0.6,"color":{"__isSmartRef__":true,"id":988}},"988":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"989":{"offset":1,"color":{"__isSmartRef__":true,"id":990}},"990":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"991":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"992":{"sourceObj":{"__isSmartRef__":true,"id":950},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":711},"targetMethodName":"updateModuleList","visualConnector":{"__isSmartRef__":true,"id":993},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"993":{"submorphs":[{"__isSmartRef__":true,"id":994}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1013},"derivationIds":[null],"id":"35427A57-2D9A-4E0D-B03B-6A28467924A2","renderContextTable":{"__isSmartRef__":true,"id":1020},"eventHandler":{"__isSmartRef__":true,"id":1021},"droppingEnabled":true,"halosEnabled":true,"owner":null,"_Position":{"__isSmartRef__":true,"id":1022},"priorExtent":{"__isSmartRef__":true,"id":1023},"controlPoints":[{"__isSmartRef__":true,"id":1024},{"__isSmartRef__":true,"id":1025}],"con":{"__isSmartRef__":true,"id":992},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1026},"__LivelyClassName__":"lively.morphic.Path"},"994":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":995},"derivationIds":[null],"id":"2836264C-734B-4D4B-98F9-B713C9003C0C","renderContextTable":{"__isSmartRef__":true,"id":1006},"eventHandler":{"__isSmartRef__":true,"id":1007},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1008},"owner":{"__isSmartRef__":true,"id":993},"_Rotation":2.961776014200943,"showsHalos":false,"controlPoints":[{"__isSmartRef__":true,"id":1009},{"__isSmartRef__":true,"id":1010},{"__isSmartRef__":true,"id":1011},{"__isSmartRef__":true,"id":1012}],"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"995":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":997},{"__isSmartRef__":true,"id":998},{"__isSmartRef__":true,"id":999}],"renderContextTable":{"__isSmartRef__":true,"id":1000},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":1001},"_Extent":{"__isSmartRef__":true,"id":1002},"_Padding":{"__isSmartRef__":true,"id":1003},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1004},"_Fill":{"__isSmartRef__":true,"id":1005},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"996":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"997":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"998":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"999":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1000":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1001":{"x":-12,"y":-6,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1002":{"x":16,"y":12,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1003":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1004":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1005":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1006":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1007":{"morph":{"__isSmartRef__":true,"id":994},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1008":{"x":-112.35406122954501,"y":37.8911145536417,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1009":{"morph":{"__isSmartRef__":true,"id":994},"index":0,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1010":{"morph":{"__isSmartRef__":true,"id":994},"index":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1011":{"morph":{"__isSmartRef__":true,"id":994},"index":2,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1012":{"morph":{"__isSmartRef__":true,"id":994},"index":3,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1013":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1014},{"__isSmartRef__":true,"id":1015}],"renderContextTable":{"__isSmartRef__":true,"id":1016},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":1017},"_Extent":{"__isSmartRef__":true,"id":1018},"_Padding":{"__isSmartRef__":true,"id":1019},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"1014":{"isAbsolute":true,"x":299.64434925829386,"y":-37.001999,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"1015":{"isAbsolute":true,"x":-112.35406122954501,"y":37.8911145536417,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1016":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1017":{"x":-113,"y":-38,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1018":{"x":413,"y":76,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1019":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1020":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1021":{"morph":{"__isSmartRef__":true,"id":993},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1022":{"x":268.4926622758477,"y":45.135,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1023":{"x":413,"y":76,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1024":{"morph":{"__isSmartRef__":true,"id":993},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1025":{"morph":{"__isSmartRef__":true,"id":993},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":994},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1026":{"morphMenuItems":{"__isSmartRef__":true,"id":1027}},"1027":{"varMapping":{"__isSmartRef__":true,"id":1028},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || \n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, \n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), \n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":1033},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1028":{"this":{"__isSmartRef__":true,"id":993},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1029}},"1029":{"$super":{"__isSmartRef__":true,"id":1030}},"1030":{"varMapping":{"__isSmartRef__":true,"id":1031},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1032},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1031":{"obj":{"__isSmartRef__":true,"id":993},"name":"morphMenuItems"},"1032":{},"1033":{},"1034":{"x":101,"y":21,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1035":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1036":{"morph":{"__isSmartRef__":true,"id":950},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1037":{"x":75.01466489007407,"y":-10.097867193874649,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1038":{"x":415.4245184509528,"y":19.061473801934724,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1039":{"position":{"__isSmartRef__":true,"id":1040},"_Extent":{"__isSmartRef__":true,"id":1041},"_BorderWidth":1.332,"_BorderColor":{"__isSmartRef__":true,"id":1042},"_Fill":{"__isSmartRef__":true,"id":1043},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1044},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1045},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1040":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1041":{"x":555,"y":408,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1042":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1043":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"undefined.1"},"1044":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1045":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1046":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1047":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1048":{"morph":{"__isSmartRef__":true,"id":802},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1049":{"sourceObj":{"__isSmartRef__":true,"id":802},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1050":{"sourceObj":{"__isSmartRef__":true,"id":802},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1051":{"sourceObj":{"__isSmartRef__":true,"id":802},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1052":{"sourceObj":{"__isSmartRef__":true,"id":802},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1053},"dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1053":{"source":{"__isSmartRef__":true,"id":802},"target":{"__isSmartRef__":true,"id":722}},"1054":{},"1055":{"x":543,"y":397,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1056":{"x":305,"y":2,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1057":{"x":75.29801872044425,"y":78.23963418488157,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1058":{"morphMenuItems":{"__isSmartRef__":true,"id":1059}},"1059":{"varMapping":{"__isSmartRef__":true,"id":1060},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || \n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, \n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), \n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":1065},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1060":{"this":{"__isSmartRef__":true,"id":724},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1061}},"1061":{"$super":{"__isSmartRef__":true,"id":1062}},"1062":{"varMapping":{"__isSmartRef__":true,"id":1063},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1064},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1063":{"obj":{"__isSmartRef__":true,"id":724},"name":"morphMenuItems"},"1064":{},"1065":{},"1066":{"sourceObj":{"__isSmartRef__":true,"id":711},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1067":{"sourceObj":{"__isSmartRef__":true,"id":711},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1068":{"sourceObj":{"__isSmartRef__":true,"id":711},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1069":{"sourceObj":{"__isSmartRef__":true,"id":711},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1070},"dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1070":{"source":{"__isSmartRef__":true,"id":711},"target":{"__isSmartRef__":true,"id":722}},"1071":{"d":1.002003004005006,"a":1.002003004005006,"f":123.48534999048869,"e":134.94454563127775,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1072},"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"1072":{"a":1.002003004005006,"b":0,"c":0,"d":1.002003004005006,"e":134.94454563127775,"f":123.48534999048869,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"1073":{"sourceObj":{"__isSmartRef__":true,"id":711},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1074":{"sourceObj":{"__isSmartRef__":true,"id":711},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1075":{"sourceObj":{"__isSmartRef__":true,"id":711},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1076":{"sourceObj":{"__isSmartRef__":true,"id":711},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":722},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1077},"dependedBy":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1078},"__LivelyClassName__":"AttributeConnection"},"1077":{"source":{"__isSmartRef__":true,"id":711},"target":{"__isSmartRef__":true,"id":722}},"1078":{"converter":{"__isSmartRef__":true,"id":1079}},"1079":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1080},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1081},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1080":{"source":{"__isSmartRef__":true,"id":711},"target":{"__isSmartRef__":true,"id":722}},"1081":{},"1082":{},"1083":{"x":500,"y":331,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1084":{"x":30.178857975203883,"y":57.87292501532346,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1085":{"updateList":{"__isSmartRef__":true,"id":1086},"fillClassCache":{"__isSmartRef__":true,"id":1090},"getMetrics":{"__isSmartRef__":true,"id":1094},"updateModuleList":{"__isSmartRef__":true,"id":1098},"updateGlobalList":{"__isSmartRef__":true,"id":1102}},"1086":{"varMapping":{"__isSmartRef__":true,"id":1087},"source":"function updateList() {\n var metrics = this.getMetrics();\n\n metrics.sort(function(a, b) {\n if (b.methods !== a.methods) return b.methods - a.methods;\n return b.subclasses - a.subclasses;\n });\n\n var $ = jQuery;\n var table = $(' ');\n $('')\n .append($('').text('Class name'))\n .append($(' | ').text('WMC'))\n .append($(' | ').text('NOC'))\n .append($(' | ').text('DIT'))\n .appendTo(table);\n\n metrics.forEach(function(metrics) {\n $(' | ')\n .append($('').text(metrics.name))\n .append($(' | ').text(metrics.methods))\n .append($(' | ').text(metrics.subclasses))\n .append($(' | ').text(metrics.depthInTree))\n .appendTo(table);\n });\n\n var container = $(' ')\n .css({ overflow: 'auto', width: '100%', height:'100%' })\n .append(table);\n $(this.renderContext().shapeNode).empty().append(container);\n\n}","funcProperties":{"__isSmartRef__":true,"id":1088},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1087":{"this":{"__isSmartRef__":true,"id":711}},"1088":{"timestamp":{"__isSmartRef__":true,"id":1089},"user":"undefined","tags":[]},"1089":{"isSerializedDate":true,"string":"Thu Jan 05 2012 16:15:22 GMT+0100 (CET)"},"1090":{"varMapping":{"__isSmartRef__":true,"id":1091},"source":"function fillClassCache(ns) {\n\tthis.classes = (ns || Global).classes(true).uniq().filter(function(cls) {\n\t\treturn cls.sourceModule instanceof lively.lang.Namespace\n\t})\n}","funcProperties":{"__isSmartRef__":true,"id":1092},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1091":{"this":{"__isSmartRef__":true,"id":711}},"1092":{"timestamp":{"__isSmartRef__":true,"id":1093},"user":"undefined","tags":[]},"1093":{"isSerializedDate":true,"string":"Thu Jan 05 2012 16:13:42 GMT+0100 (CET)"},"1094":{"varMapping":{"__isSmartRef__":true,"id":1095},"source":"function getMetrics() {\n\treturn this.classes.map(function(cls) {\n return {\n name: cls.displayName || cls.type || cls.name,\n methods: Functions.own(cls.prototype).length +\n \t\t Functions.own(cls).length,\n subclasses: cls.directSubclasses().length,\n depthInTree: cls.superclasses().length\n };\n });\n}","funcProperties":{"__isSmartRef__":true,"id":1096},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1095":{"this":{"__isSmartRef__":true,"id":711}},"1096":{"timestamp":{"__isSmartRef__":true,"id":1097},"tags":[]},"1097":{"isSerializedDate":true,"string":"Thu Dec 15 2011 17:06:52 GMT+0100 (CET)"},"1098":{"varMapping":{"__isSmartRef__":true,"id":1099},"source":"function updateModuleList() {\n for (var i = 0; i < this.owner.submorphs.length; i++) {\n if (this.owner.submorphs[i].name === 'TextInput') {\n try {\n var ns = eval(this.owner.submorphs[i].input.getTextString());\n this.fillClassCache(ns);\n this.updateList();\n } catch(err) {\n alert(err);\n }\n break;\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1100},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1099":{"this":{"__isSmartRef__":true,"id":711}},"1100":{"timestamp":{"__isSmartRef__":true,"id":1101},"user":"undefined","tags":[]},"1101":{"isSerializedDate":true,"string":"Thu Jan 05 2012 16:34:58 GMT+0100 (CET)"},"1102":{"varMapping":{"__isSmartRef__":true,"id":1103},"source":"function updateGlobalList() {\n this.fillClassCache();\n this.updateList();\n}","funcProperties":{"__isSmartRef__":true,"id":1104},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1103":{"this":{"__isSmartRef__":true,"id":711}},"1104":{"timestamp":{"__isSmartRef__":true,"id":1105},"user":"undefined","tags":[]},"1105":{"isSerializedDate":true,"string":"Thu Jan 05 2012 16:15:59 GMT+0100 (CET)"},"1106":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1107":{"morph":{"__isSmartRef__":true,"id":696},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1108":{"sourceObj":{"__isSmartRef__":true,"id":696},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":1109},"targetMethodName":"indicateUnsavedChanges","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1109":{"submorphs":[],"scripts":[],"id":1593,"shape":{"__isSmartRef__":true,"id":1110},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1116},"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":1117},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1118},"eventHandler":{"__isSmartRef__":true,"id":1119},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":200},"priorExtent":{"__isSmartRef__":true,"id":1120},"layout":{"__isSmartRef__":true,"id":1121},"isBeingDragged":false,"savedColor":{"__isSmartRef__":true,"id":1113},"alarmColor":{"__isSmartRef__":true,"id":1122},"grabbingEnabled":false,"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1123},"isCopyMorphRef":true,"morphRefId":26,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1124},"__LivelyClassName__":"lively.morphic.Box"},"1110":{"position":{"__isSmartRef__":true,"id":1111},"_Extent":{"__isSmartRef__":true,"id":1112},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1113},"_Fill":{"__isSmartRef__":true,"id":1113},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1114},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1115},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1111":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1112":{"x":8.637782619743348,"y":9.712632235981744,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1113":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1114":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1115":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1116":{"x":957.0245425248855,"y":39.999999999999986,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1117":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1118":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1119":{"morph":{"__isSmartRef__":true,"id":1109},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1120":{"x":8.637782619743348,"y":10.787481852220026,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1121":{"moveHorizontal":true,"adjustForNewBounds":true},"1122":{"r":0.9411764705882353,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1123":{"x":37.328206296760186,"y":-17.53316489131697,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1124":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":1125},"setColors":{"__isSmartRef__":true,"id":1129}},"1125":{"varMapping":{"__isSmartRef__":true,"id":1126},"source":"function indicateUnsavedChanges() {\n if (this.owner.scriptPane.hasChanged()) {\n this.setColors(this.alarmColor);\n } else {\n this.setColors(this.savedColor);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1127},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1126":{"this":{"__isSmartRef__":true,"id":1109}},"1127":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":1128}},"1128":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (CEST)"},"1129":{"varMapping":{"__isSmartRef__":true,"id":1130},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":1131},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1130":{"this":{"__isSmartRef__":true,"id":1109}},"1131":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":1132}},"1132":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (CEST)"},"1133":{"x":341.1979959929888,"y":-18.288721442524036,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1134":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1135},"id":553,"renderContextTable":{"__isSmartRef__":true,"id":1142},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1143}],"eventHandler":{"__isSmartRef__":true,"id":1145},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_Position":{"__isSmartRef__":true,"id":1146},"priorExtent":{"__isSmartRef__":true,"id":1147},"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","_TextColor":{"__isSmartRef__":true,"id":1148},"owner":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1135":{"_Position":{"__isSmartRef__":true,"id":1136},"renderContextTable":{"__isSmartRef__":true,"id":1137},"_Extent":{"__isSmartRef__":true,"id":1138},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1139},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1140},"_Fill":{"__isSmartRef__":true,"id":1141},"_StrokeOpacity":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1136":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1137":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1138":{"x":100,"y":25,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1139":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1140":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1141":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1142":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1143":{"style":{"__isSmartRef__":true,"id":1144},"chunkOwner":{"__isSmartRef__":true,"id":1134},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1144":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1145":{"morph":{"__isSmartRef__":true,"id":1134},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1146":{"x":332.51426826444225,"y":183.30626630721798,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1147":{"x":100,"y":25,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1148":{"r":0,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1149":{"doSave":{"__isSmartRef__":true,"id":1150},"boundEval":{"__isSmartRef__":true,"id":1158},"reset":{"__isSmartRef__":true,"id":1166},"display":{"__isSmartRef__":true,"id":1170},"hasChanged":{"__isSmartRef__":true,"id":1174},"setTarget":{"__isSmartRef__":true,"id":1178},"displayStatus":{"__isSmartRef__":true,"id":1182}},"1150":{"varMapping":{"__isSmartRef__":true,"id":1151},"source":"function doSave() {\n $super();\n var saved = this.boundEval(this.getTextString());\n if (saved) {\n this.lastSaveSource = this.textString;\n this.owner.changeIndicator.indicateUnsavedChanges();\n this.owner.updateLists();\n this.owner.selectChangedContent(this.getTextString());\n this.displayStatus(\"saved source\", Color.green);\n } else {\n this.displayStatus(\"not saved\", Color.red);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1156},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1151":{"this":{"__isSmartRef__":true,"id":696},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1152}},"1152":{"$super":{"__isSmartRef__":true,"id":1153}},"1153":{"varMapping":{"__isSmartRef__":true,"id":1154},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1155},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1154":{"obj":{"__isSmartRef__":true,"id":696},"name":"doSave"},"1155":{},"1156":{"timestamp":{"__isSmartRef__":true,"id":1157},"user":"lauritz"},"1157":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (CET)"},"1158":{"varMapping":{"__isSmartRef__":true,"id":1159},"source":"function boundEval(str) {\n var result;\n\n this.objectEditorPane.ensureAnnotationLayer();\n withLayers([ScriptAnnotationLayer], function() {\n result = $super(str);\n })\n \n return result\n}","funcProperties":{"__isSmartRef__":true,"id":1164},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1159":{"this":{"__isSmartRef__":true,"id":696},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1160}},"1160":{"$super":{"__isSmartRef__":true,"id":1161}},"1161":{"varMapping":{"__isSmartRef__":true,"id":1162},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1163},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1162":{"obj":{"__isSmartRef__":true,"id":696},"name":"boundEval"},"1163":{},"1164":{"timestamp":{"__isSmartRef__":true,"id":1165},"user":"lauritz","categories":[]},"1165":{"isSerializedDate":true,"string":"Wed Nov 16 2011 05:41:53 GMT+0100 (CET)"},"1166":{"varMapping":{"__isSmartRef__":true,"id":1167},"source":"function reset() {\n this.doitContext = null;\n this.lastSaveSource = \"\";\n this.textString = \"\";\n this.lastSaveSource = this.textString;\n}","funcProperties":{"__isSmartRef__":true,"id":1168},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1167":{"this":{"__isSmartRef__":true,"id":696}},"1168":{"timestamp":{"__isSmartRef__":true,"id":1169},"user":"lauritz","categories":[]},"1169":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:14:35 GMT+0200 (CEST)"},"1170":{"varMapping":{"__isSmartRef__":true,"id":1171},"source":"function display(jsCode) {\n this.lastSaveSource = jsCode;\n this.setTextString(jsCode);\n this.highlightJavaScriptSyntax();\n this.applyStyle({align: 'left'});\n}","funcProperties":{"__isSmartRef__":true,"id":1172},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1171":{"this":{"__isSmartRef__":true,"id":696}},"1172":{"timestamp":{"__isSmartRef__":true,"id":1173},"user":"lauritz","categories":[]},"1173":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (CEST)"},"1174":{"varMapping":{"__isSmartRef__":true,"id":1175},"source":"function hasChanged() {\n var cleanText = function (string) {\n var source = string.trim();\n if (source.substring(0,2) === \"//\") {\n // removes annotation line\n source = source.substring(source.indexOf(\"\\n\"), source.length);\n source = source.trim();\n }\n if (source === 'undefined' || source === 'null') source = '';\n return source;\n }\n var cleanedTextString = cleanText(this.textString);\n var cleanedLastSource = cleanText(this.lastSaveSource);\n return cleanedTextString !== cleanedLastSource;\n}","funcProperties":{"__isSmartRef__":true,"id":1176},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1175":{"this":{"__isSmartRef__":true,"id":696}},"1176":{"timestamp":{"__isSmartRef__":true,"id":1177},"user":"lauritz","categories":[]},"1177":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (CEST)"},"1178":{"varMapping":{"__isSmartRef__":true,"id":1179},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":1180},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1179":{"this":{"__isSmartRef__":true,"id":696}},"1180":{"timestamp":{"__isSmartRef__":true,"id":1181},"user":"lauritz","categories":[]},"1181":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:30:39 GMT+0100 (CET)"},"1182":{"varMapping":{"__isSmartRef__":true,"id":1183},"source":"function displayStatus(msg, color, delay) {\n if (!this.statusMorph) {\n this.statusMorph = new TextMorph(pt(100,25).extentAsRectangle());\n this.statusMorph.applyStyle({borderWidth: 1, strokeOpacity: 0, borderColor: Color.gray});\n this.statusMorph.setFill(this.owner.getFill());\n this.statusMorph.setFontSize(11);\n this.statusMorph.setAlign('center');\n this.statusMorph.setVerticalAlign('center');\n }\n this.statusMorph.setTextString(msg);\n this.statusMorph.centerAt(this.innerBounds().center());\n this.statusMorph.setTextColor(color || Color.black);\n this.addMorph(this.statusMorph);\n (function() { this.statusMorph.remove() }).bind(this).delay(delay || 2); \n}","funcProperties":{"__isSmartRef__":true,"id":1184},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1183":{"this":{"__isSmartRef__":true,"id":696}},"1184":{"timestamp":{"__isSmartRef__":true,"id":1185},"user":"lauritz","categories":[]},"1185":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (CET)"},"1186":{"submorphs":[{"__isSmartRef__":true,"id":1187}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":1201},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1216},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1204},"lighterFill":{"__isSmartRef__":true,"id":1217},"label":{"__isSmartRef__":true,"id":1187},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":1226},"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1227},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":1228},"renderContextTable":{"__isSmartRef__":true,"id":1229},"eventHandler":{"__isSmartRef__":true,"id":1230},"__LivelyClassName__":"lively.morphic.Button"},"1187":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":1188},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1193},"textColor":{"__isSmartRef__":true,"id":1191},"owner":{"__isSmartRef__":true,"id":1186},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1194}],"padding":{"__isSmartRef__":true,"id":1196},"_Padding":{"__isSmartRef__":true,"id":1197},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1198},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1199},"eventHandler":{"__isSmartRef__":true,"id":1200},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"1188":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1189},"_Extent":{"__isSmartRef__":true,"id":1190},"_BorderColor":{"__isSmartRef__":true,"id":1191},"renderContextTable":{"__isSmartRef__":true,"id":1192},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1189":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1190":{"x":116,"y":18,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1191":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1192":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1193":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1194":{"style":{"__isSmartRef__":true,"id":1195},"chunkOwner":{"__isSmartRef__":true,"id":1187},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1195":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1196":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1197":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1198":{"x":116,"y":18,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1199":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1200":{"morph":{"__isSmartRef__":true,"id":1187},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1201":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1202},"_Extent":{"__isSmartRef__":true,"id":1203},"_Fill":{"__isSmartRef__":true,"id":1204},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1214},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1215},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1202":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1203":{"x":116,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1204":{"stops":[{"__isSmartRef__":true,"id":1205},{"__isSmartRef__":true,"id":1207},{"__isSmartRef__":true,"id":1209},{"__isSmartRef__":true,"id":1211}],"vector":{"__isSmartRef__":true,"id":1213},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1205":{"offset":0,"color":{"__isSmartRef__":true,"id":1206}},"1206":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1207":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1208}},"1208":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1209":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1210}},"1210":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1211":{"offset":1,"color":{"__isSmartRef__":true,"id":1212}},"1212":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1213":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1214":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1215":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1216":{"x":820,"y":8.999999999999972,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1217":{"stops":[{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1220},{"__isSmartRef__":true,"id":1222},{"__isSmartRef__":true,"id":1224}],"vector":{"__isSmartRef__":true,"id":1213},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1218":{"offset":0,"color":{"__isSmartRef__":true,"id":1219}},"1219":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1220":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1221}},"1221":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1222":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1223}},"1223":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1224":{"offset":1,"color":{"__isSmartRef__":true,"id":1225}},"1225":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1226":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1227":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1228":{"moveHorizontal":true},"1229":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1230":{"morph":{"__isSmartRef__":true,"id":1186},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1231":{"submorphs":[],"scripts":[],"id":1582,"shape":{"__isSmartRef__":true,"id":1232},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1239},"itemList":["-- ALL --",["globalTransform",{"__isSmartRef__":true,"id":722}],["_Position",{"__isSmartRef__":true,"id":1073}],["_Scale",{"__isSmartRef__":true,"id":1074}],["_Rotation",{"__isSmartRef__":true,"id":1075}],["owner",{"__isSmartRef__":true,"id":1076}]],"selectedLineNo":1,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":1240},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":200},"priorExtent":{"__isSmartRef__":true,"id":1241},"attributeConnections":[{"__isSmartRef__":true,"id":1242}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":1247},"renderContextTable":{"__isSmartRef__":true,"id":1248},"eventHandler":{"__isSmartRef__":true,"id":1249},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":1250},"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":19,"_Rotation":0,"_Scale":1,"selection":["savedWorldAsURL",{"__isSmartRef__":true,"id":1251}],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1256},"__LivelyClassName__":"lively.morphic.List"},"1232":{"position":{"__isSmartRef__":true,"id":1233},"_Extent":{"__isSmartRef__":true,"id":1234},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1235},"_Fill":{"__isSmartRef__":true,"id":1236},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":1237},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":1238},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1233":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1234":{"x":180,"y":74,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1235":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1236":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1237":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1238":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1239":{"x":10,"y":357.5965565984398,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1240":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1241":{"x":180,"y":75,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1242":{"sourceObj":{"__isSmartRef__":true,"id":1231},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":200},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1243},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1244},"__LivelyClassName__":"AttributeConnection"},"1243":{"source":{"__isSmartRef__":true,"id":1231},"target":{"__isSmartRef__":true,"id":200}},"1244":{"converter":{"__isSmartRef__":true,"id":1245}},"1245":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1243},"source":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","funcProperties":{"__isSmartRef__":true,"id":1246},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1246":{},"1247":{"resizeHeight":false,"moveVertical":true},"1248":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","renderAsDropDownList":"renderAsDropDownListHTML","setFontSize":"setFontSizeHTML","setFontFamily":"setFontFamilyHTML","getSelectedIndexes":"getSelectedIndexesHTML","enableMultipleSelections":"enableMultipleSelectionsHTML","selectAllAt":"selectAllAtHTML","clearSelections":"clearSelectionsHTML","deselectAt":"deselectAtHTML"},"1249":{"morph":{"__isSmartRef__":true,"id":1231},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1250":{"x":124.95989979964943,"y":-17.076643708895745,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1251":{"sourceAttrName":"savedWorldAsURL","targetMethodName":"visitNewPageAfterSaveAs","converter":null,"converterString":null,"updaterString":"function ($upd, v) { \n if (v && v.toString() !== URL.source.toString()) {\n $upd(v) \n }\n }","varMapping":{"__isSmartRef__":true,"id":1252},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1253},"__LivelyClassName__":"AttributeConnection"},"1252":{},"1253":{"updater":{"__isSmartRef__":true,"id":1254}},"1254":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1252},"source":"function ($upd, v) { \n if (v && v.toString() !== URL.source.toString()) {\n $upd(v) \n }\n }","funcProperties":{"__isSmartRef__":true,"id":1255},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1255":{},"1256":{"preselectItem":{"__isSmartRef__":true,"id":1257}},"1257":{"varMapping":{"__isSmartRef__":true,"id":1258},"source":"function preselectItem() {\n if (this.getList().size() === 2) {\n this.selectAt(1);\n } else {\n this.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1259},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1258":{"this":{"__isSmartRef__":true,"id":1231}},"1259":{"timestamp":{"__isSmartRef__":true,"id":1260},"user":"lauritz"},"1260":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (CET)"},"1261":{"submorphs":[{"__isSmartRef__":true,"id":1262}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":1275},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1290},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1278},"lighterFill":{"__isSmartRef__":true,"id":1291},"label":{"__isSmartRef__":true,"id":1262},"attributeConnections":[{"__isSmartRef__":true,"id":1300}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":1301},"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1302},"_Scale":1,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":1303},"isCopyMorphRef":true,"morphRefId":1,"__LivelyClassName__":"lively.morphic.Button"},"1262":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":1263},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1268},"textColor":{"__isSmartRef__":true,"id":1266},"owner":{"__isSmartRef__":true,"id":1261},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1269}],"padding":{"__isSmartRef__":true,"id":1271},"_Padding":{"__isSmartRef__":true,"id":1272},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1273},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1274},"__LivelyClassName__":"lively.morphic.Text"},"1263":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1264},"_Extent":{"__isSmartRef__":true,"id":1265},"_BorderColor":{"__isSmartRef__":true,"id":1266},"renderContextTable":{"__isSmartRef__":true,"id":1267},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1264":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1265":{"x":116,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1266":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1267":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"1268":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1269":{"style":{"__isSmartRef__":true,"id":1270},"chunkOwner":{"__isSmartRef__":true,"id":1262},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1270":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1271":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1272":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1273":{"x":116,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1274":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1275":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1276},"_Extent":{"__isSmartRef__":true,"id":1277},"_Fill":{"__isSmartRef__":true,"id":1278},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1288},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1289},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1276":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1277":{"x":116,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1278":{"stops":[{"__isSmartRef__":true,"id":1279},{"__isSmartRef__":true,"id":1281},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1285}],"vector":{"__isSmartRef__":true,"id":1287},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1279":{"offset":0,"color":{"__isSmartRef__":true,"id":1280}},"1280":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1281":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1282}},"1282":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1283":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1284}},"1284":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1285":{"offset":1,"color":{"__isSmartRef__":true,"id":1286}},"1286":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1287":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1288":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1289":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"1290":{"x":215,"y":35,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1291":{"stops":[{"__isSmartRef__":true,"id":1292},{"__isSmartRef__":true,"id":1294},{"__isSmartRef__":true,"id":1296},{"__isSmartRef__":true,"id":1298}],"vector":{"__isSmartRef__":true,"id":1287},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1292":{"offset":0,"color":{"__isSmartRef__":true,"id":1293}},"1293":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1294":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1295}},"1295":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1296":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1297}},"1297":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1298":{"offset":1,"color":{"__isSmartRef__":true,"id":1299}},"1299":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1300":{"sourceObj":{"__isSmartRef__":true,"id":1261},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":218},"targetMethodName":"chooseTargetMorphMenu","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection"},"1301":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1302":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1303":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1304":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1305":{"x":715.5,"y":73.89999999999998,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1306":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":1307},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1314},"_MaxTextWidth":218,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1315},"showsHalos":false,"_FontSize":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":1316},"textChunks":[{"__isSmartRef__":true,"id":1317}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":1319}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"priorExtent":{"__isSmartRef__":true,"id":1321},"_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":1322},"eventHandler":{"__isSmartRef__":true,"id":1323},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":1324},"selection":{"__isSmartRef__":true,"id":1},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":1343},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":1344},"savedTextString":"100","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1345},"__LivelyClassName__":"lively.morphic.Text"},"1307":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1308},"_Extent":{"__isSmartRef__":true,"id":1309},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1310},"renderContextTable":{"__isSmartRef__":true,"id":1311},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1312},"_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":1313},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1308":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1309":{"x":220,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1310":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1311":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1312":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1313":{"r":0.9548430751559654,"g":0.9548430751559654,"b":0.9548430751559654,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1314":{"x":200,"y":10,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1315":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1316":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1317":{"style":{"__isSmartRef__":true,"id":1318},"chunkOwner":{"__isSmartRef__":true,"id":1306},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1318":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1319":{"sourceObj":{"__isSmartRef__":true,"id":1306},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":200},"targetMethodName":"setTarget","converter":null,"converterString":"function (name) { return $world.get(name)}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1320},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1320":{"source":{"__isSmartRef__":true,"id":1306},"target":{"__isSmartRef__":true,"id":200}},"1321":{"x":220,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1322":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1323":{"morph":{"__isSmartRef__":true,"id":1306},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1324":{"createListMorph":{"__isSmartRef__":true,"id":1325},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":1327},"onMouseUp":{"__isSmartRef__":true,"id":1329},"resetConnections":{"__isSmartRef__":true,"id":1331},"setTargetToListSelection":{"__isSmartRef__":true,"id":1333},"setTargetOfPane":{"__isSmartRef__":true,"id":1335},"onBlur":{"__isSmartRef__":true,"id":1337},"reset":{"__isSmartRef__":true,"id":1339},"onMouseDown":{"__isSmartRef__":true,"id":1341}},"1325":{"time":{"__isSmartRef__":true,"id":1326},"user":"lauritz"},"1326":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (CEST)"},"1327":{"time":{"__isSmartRef__":true,"id":1328},"user":"lauritz"},"1328":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (CEST)"},"1329":{"time":{"__isSmartRef__":true,"id":1330},"user":"lauritz"},"1330":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (CEST)"},"1331":{"time":{"__isSmartRef__":true,"id":1332},"user":"lauritz"},"1332":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (CEST)"},"1333":{"time":{"__isSmartRef__":true,"id":1334},"user":"lauritz"},"1334":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (CEST)"},"1335":{"time":{"__isSmartRef__":true,"id":1336},"user":"lauritz"},"1336":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (CEST)"},"1337":{"time":{"__isSmartRef__":true,"id":1338},"user":"lauritz"},"1338":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (CEST)"},"1339":{"time":{"__isSmartRef__":true,"id":1340},"user":"lauritz"},"1340":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (CEST)"},"1341":{"time":{"__isSmartRef__":true,"id":1342},"user":"lauritz"},"1342":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (CEST)"},"1343":{},"1344":{"x":153.8540395186758,"y":-23.74126935194758,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1345":{"getList":{"__isSmartRef__":true,"id":1346},"setList":{"__isSmartRef__":true,"id":1349},"reset":{"__isSmartRef__":true,"id":1352},"example":{"__isSmartRef__":true,"id":1355},"removeList":{"__isSmartRef__":true,"id":1358},"onBlur":{"__isSmartRef__":true,"id":1361},"createListMorph":{"__isSmartRef__":true,"id":1368},"resetConnections":{"__isSmartRef__":true,"id":1371},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":1374},"setTargetToListSelection":{"__isSmartRef__":true,"id":1377},"setTargetOfPane":{"__isSmartRef__":true,"id":1380},"onMouseDown":{"__isSmartRef__":true,"id":1383}},"1346":{"varMapping":{"__isSmartRef__":true,"id":1347},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":1348},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1347":{"this":{"__isSmartRef__":true,"id":1306}},"1348":{},"1349":{"varMapping":{"__isSmartRef__":true,"id":1350},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":1351},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1350":{"this":{"__isSmartRef__":true,"id":1306}},"1351":{},"1352":{"varMapping":{"__isSmartRef__":true,"id":1353},"source":"function reset() {\n this.list = [];\n this.textString = 'empty';\n this.removeList();\n this.resetConnections();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":1354},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1353":{"this":{"__isSmartRef__":true,"id":1306}},"1354":{},"1355":{"varMapping":{"__isSmartRef__":true,"id":1356},"source":"function example() {\n/*\nthis.example()\nthis.getList()\n*/\n this.setList(Array.range(0,100));\n this.textString = 'empty';\n}","funcProperties":{"__isSmartRef__":true,"id":1357},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1356":{"this":{"__isSmartRef__":true,"id":1306}},"1357":{},"1358":{"varMapping":{"__isSmartRef__":true,"id":1359},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1360},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1359":{"this":{"__isSmartRef__":true,"id":1306}},"1360":{},"1361":{"varMapping":{"__isSmartRef__":true,"id":1362},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":1367},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1362":{"this":{"__isSmartRef__":true,"id":1306},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1363}},"1363":{"$super":{"__isSmartRef__":true,"id":1364}},"1364":{"varMapping":{"__isSmartRef__":true,"id":1365},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1366},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1365":{"obj":{"__isSmartRef__":true,"id":1306},"name":"onBlur"},"1366":{},"1367":{},"1368":{"varMapping":{"__isSmartRef__":true,"id":1369},"source":"function createListMorph() {\n var list = new lively.morphic.List(new Rectangle(0,0, this.getExtent().x, 520));\n list.setList(this.getList());\n list.setFontSize(12);\n\n list.disableGrabbing();\n list.disableDragging();\n \n this.addMorph(list);\n list.setPosition(pt(0,0));\n\n connect(list, 'selection', this, 'setTargetToListSelection');\n \n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":1370},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1369":{"this":{"__isSmartRef__":true,"id":1306}},"1370":{},"1371":{"varMapping":{"__isSmartRef__":true,"id":1372},"source":"function resetConnections() {\n disconnectAll(this);\n connect(this, 'savedTextString', this.owner, 'setTarget', {converter: \n\tfunction (name) { return $world.get(name)}});\n}","funcProperties":{"__isSmartRef__":true,"id":1373},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1372":{"this":{"__isSmartRef__":true,"id":1306}},"1373":{},"1374":{"varMapping":{"__isSmartRef__":true,"id":1375},"source":"function displayTopLevelMorphs() {\n if (this.listMorph) { this.removeList(); return true }\n var list = this.createListMorph(); \n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":1376},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1375":{"this":{"__isSmartRef__":true,"id":1306}},"1376":{},"1377":{"varMapping":{"__isSmartRef__":true,"id":1378},"source":"function setTargetToListSelection(selection) { \n this.removeList();\n if (!selection) return;\n if (this.owner.scriptPane.hasChanged()) {\n var that = this;\n var callback = function (confirmed) {\n if (confirmed) that.setTargetOfPane(selection);\n }\n this.owner.confirmUnsavedChanges(callback);\n } else {\n this.setTargetOfPane(selection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1379},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1378":{"this":{"__isSmartRef__":true,"id":1306}},"1379":{},"1380":{"varMapping":{"__isSmartRef__":true,"id":1381},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":1382},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1381":{"this":{"__isSmartRef__":true,"id":1306}},"1382":{},"1383":{"varMapping":{"__isSmartRef__":true,"id":1384},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n return false;\n } else {\n this.displayTopLevelMorphs();\n return true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1389},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1384":{"this":{"__isSmartRef__":true,"id":1306},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1385}},"1385":{"$super":{"__isSmartRef__":true,"id":1386}},"1386":{"varMapping":{"__isSmartRef__":true,"id":1387},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1388},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1387":{"obj":{"__isSmartRef__":true,"id":1306},"name":"onMouseDown"},"1388":{},"1389":{},"1390":{"morph":{"__isSmartRef__":true,"id":218},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1391":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":1392},"setTarget":{"__isSmartRef__":true,"id":1395},"generateSourceForScript":{"__isSmartRef__":true,"id":1398},"generateSourceForConnection":{"__isSmartRef__":true,"id":1401},"generateTargetCode":{"__isSmartRef__":true,"id":1404},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":1407},"displayJavaScriptSource":{"__isSmartRef__":true,"id":1410},"displaySourceForScript":{"__isSmartRef__":true,"id":1413},"displaySourceForConnection":{"__isSmartRef__":true,"id":1416},"newScript":{"__isSmartRef__":true,"id":1419},"newConnection":{"__isSmartRef__":true,"id":1422},"deleteSelectedScript":{"__isSmartRef__":true,"id":1425},"disconnectConnection":{"__isSmartRef__":true,"id":1428},"updateLists":{"__isSmartRef__":true,"id":1431},"displayInitialScript":{"__isSmartRef__":true,"id":1434},"reset":{"__isSmartRef__":true,"id":1437},"selectChangedContent":{"__isSmartRef__":true,"id":1440}},"1392":{"varMapping":{"__isSmartRef__":true,"id":1393},"source":"function sortedScriptNamesOfObj(obj) {\n if (!Functions.own(obj) || Functions.own(obj).size() == 0) return [];\n return Functions.own(obj)\n\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":1394},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1393":{"this":{"__isSmartRef__":true,"id":218}},"1394":{},"1395":{"varMapping":{"__isSmartRef__":true,"id":1396},"source":"function setTarget(morph) {\n this.reset();\n module('lively.ide.SyntaxHighlighting').load(true);\n this.target = morph;\n this.morphSelector.textString = (this.target.getName() || this.target.toString());\n this.scriptPane.doitContext = this.target;\n this.updateLists();\n this.displayInitialScript();\n}","funcProperties":{"__isSmartRef__":true,"id":1397},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1396":{"this":{"__isSmartRef__":true,"id":218}},"1397":{},"1398":{"varMapping":{"__isSmartRef__":true,"id":1399},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":1400},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1399":{"this":{"__isSmartRef__":true,"id":218}},"1400":{},"1401":{"varMapping":{"__isSmartRef__":true,"id":1402},"source":"function generateSourceForConnection(connection) {\n var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":1403},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1402":{"this":{"__isSmartRef__":true,"id":218}},"1403":{},"1404":{"varMapping":{"__isSmartRef__":true,"id":1405},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":1406},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1405":{"this":{"__isSmartRef__":true,"id":218}},"1406":{},"1407":{"varMapping":{"__isSmartRef__":true,"id":1408},"source":"function sortedConnectionNamesOfObj(obj) {\n if (\"attributeConnections\" in obj) {\n return obj.attributeConnections\n .sortBy(function(each) {return name.toLowerCase() })\n .collect(function(each) {return [each.getSourceAttrName(), each]});\n } else {\n return [];\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1409},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1408":{"this":{"__isSmartRef__":true,"id":218}},"1409":{},"1410":{"varMapping":{"__isSmartRef__":true,"id":1411},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":1412},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1411":{"this":{"__isSmartRef__":true,"id":218}},"1412":{},"1413":{"varMapping":{"__isSmartRef__":true,"id":1414},"source":"function displaySourceForScript(scriptName) {\n if (!scriptName) return;\n var code = \"\", that = this;\n if (scriptName === \"-- ALL --\") {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\");\n });\n } else {\n code = this.generateSourceForScript(scriptName); \n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":1415},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1414":{"this":{"__isSmartRef__":true,"id":218}},"1415":{},"1416":{"varMapping":{"__isSmartRef__":true,"id":1417},"source":"function displaySourceForConnection(connection) {\n if (!connection) return;\n var code = \"\", that = this;\n if ((typeof connection === \"string\") && connection === \"-- ALL --\") {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n })\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":1418},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1417":{"this":{"__isSmartRef__":true,"id":218}},"1418":{},"1419":{"varMapping":{"__isSmartRef__":true,"id":1420},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n\\t\\n});\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1421},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1420":{"this":{"__isSmartRef__":true,"id":218}},"1421":{},"1422":{"varMapping":{"__isSmartRef__":true,"id":1423},"source":"function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1424},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1423":{"this":{"__isSmartRef__":true,"id":218}},"1424":{},"1425":{"varMapping":{"__isSmartRef__":true,"id":1426},"source":"function deleteSelectedScript() {\n if (this.scriptList.selection && this.target) {\n if (!this.target.hasOwnProperty(this.scriptList.selection)) return;\n delete this.target[this.scriptList.selection];\n this.updateLists();\n this.displayInitialScript();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1427},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1426":{"this":{"__isSmartRef__":true,"id":218}},"1427":{},"1428":{"varMapping":{"__isSmartRef__":true,"id":1429},"source":"function disconnectConnection() {\n var selection = this.connectionList.selection;\n if (selection && \n (typeof selection !== \"string\") &&\n this.target.attributeConnections.indexOf(selection[1]) > -1) {\n var c = this.connectionList.selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n this.updateLists();\n this.displayInitialScript();\n } \n}","funcProperties":{"__isSmartRef__":true,"id":1430},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1429":{"this":{"__isSmartRef__":true,"id":218}},"1430":{},"1431":{"varMapping":{"__isSmartRef__":true,"id":1432},"source":"function updateLists() {\n this.scriptList.setList(this.sortedScriptNamesOfObj(this.target));\n var scriptListItems = this.scriptList.getList();\n scriptListItems.unshift(\"-- ALL --\");\n this.scriptList.setList(scriptListItems);\n\n this.connectionList.setList(this.sortedConnectionNamesOfObj(this.target));\n var connectionListItems = this.connectionList.getList();\n connectionListItems.unshift(\"-- ALL --\");\n this.connectionList.setList(connectionListItems);\n}","funcProperties":{"__isSmartRef__":true,"id":1433},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1432":{"this":{"__isSmartRef__":true,"id":218}},"1433":{},"1434":{"varMapping":{"__isSmartRef__":true,"id":1435},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.selectAt(0);\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.selectAt(0);\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1436},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1435":{"this":{"__isSmartRef__":true,"id":218}},"1436":{},"1437":{"varMapping":{"__isSmartRef__":true,"id":1438},"source":"function reset() {\n this.target = null;\n this.scriptPane.doitContext = null;\n this.scriptList.setList();\n this.connectionList.setList();\n this.scriptPane.setTextString(\"\");\n this.morphSelector.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":1439},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1438":{"this":{"__isSmartRef__":true,"id":218}},"1439":{},"1440":{"varMapping":{"__isSmartRef__":true,"id":1441},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n var index = this.scriptList.getList().indexOf(addScriptMatches[0]);\n if (index > -1) { \n return this.scriptList.selectAt(index);\n }\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i -1) {\n var c = selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n editor.updateLists();\n editor.displayInitialScript();\n } \n }\n\n var message = 'Disconnect \"' + selection[0] +'\" connection?';\n var callback = disconnectConnection;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":1642},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1641":{"this":{"__isSmartRef__":true,"id":1588}},"1642":{"timestamp":{"__isSmartRef__":true,"id":1643},"user":"lauritz","categories":[]},"1643":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (CET)"},"1644":{"submorphs":[{"__isSmartRef__":true,"id":1645}],"scripts":[],"id":1590,"shape":{"__isSmartRef__":true,"id":1660},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1676},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1663},"lighterFill":{"__isSmartRef__":true,"id":1677},"label":{"__isSmartRef__":true,"id":1645},"attributeConnections":[{"__isSmartRef__":true,"id":1686}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1688},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1689},"renderContextTable":{"__isSmartRef__":true,"id":1690},"priorExtent":{"__isSmartRef__":true,"id":1691},"owner":{"__isSmartRef__":true,"id":200},"eventHandler":{"__isSmartRef__":true,"id":1692},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":200},"distanceToDragEvent":{"__isSmartRef__":true,"id":1693},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1694},"__LivelyClassName__":"lively.morphic.Button"},"1645":{"submorphs":[],"scripts":[],"id":1591,"shape":{"__isSmartRef__":true,"id":1646},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1652},"textColor":{"__isSmartRef__":true,"id":1649},"owner":{"__isSmartRef__":true,"id":1644},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1653}],"padding":{"__isSmartRef__":true,"id":1655},"_Padding":{"__isSmartRef__":true,"id":1656},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1657},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":1658},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":1659},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_MinTextHeight":null,"draggingEnabled":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1646":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1647},"_Extent":{"__isSmartRef__":true,"id":1648},"_BorderColor":{"__isSmartRef__":true,"id":1649},"renderContextTable":{"__isSmartRef__":true,"id":1650},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1651},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1647":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1648":{"x":25,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1649":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1650":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1651":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1652":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1653":{"style":{"__isSmartRef__":true,"id":1654},"morph":{"__isSmartRef__":true,"id":1645},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1645},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1654":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1655":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1656":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1657":{"x":25,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1658":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1659":{"morph":{"__isSmartRef__":true,"id":1645},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1660":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1661},"_Extent":{"__isSmartRef__":true,"id":1662},"_Fill":{"__isSmartRef__":true,"id":1663},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1673},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1674},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1675},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1661":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1662":{"x":25,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1663":{"stops":[{"__isSmartRef__":true,"id":1664},{"__isSmartRef__":true,"id":1666},{"__isSmartRef__":true,"id":1668},{"__isSmartRef__":true,"id":1670}],"vector":{"__isSmartRef__":true,"id":1672},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1664":{"offset":0,"color":{"__isSmartRef__":true,"id":1665}},"1665":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1666":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1667}},"1667":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1668":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1669}},"1669":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1670":{"offset":1,"color":{"__isSmartRef__":true,"id":1671}},"1671":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1672":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1673":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1674":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1675":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1676":{"x":160,"y":40,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1677":{"stops":[{"__isSmartRef__":true,"id":1678},{"__isSmartRef__":true,"id":1680},{"__isSmartRef__":true,"id":1682},{"__isSmartRef__":true,"id":1684}],"vector":{"__isSmartRef__":true,"id":1672},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1678":{"offset":0,"color":{"__isSmartRef__":true,"id":1679}},"1679":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1680":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1681}},"1681":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1682":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1683}},"1683":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1684":{"offset":1,"color":{"__isSmartRef__":true,"id":1685}},"1685":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1686":{"sourceObj":{"__isSmartRef__":true,"id":1644},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1644},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1687},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1687":{"source":{"__isSmartRef__":true,"id":1644},"target":{"__isSmartRef__":true,"id":1644}},"1688":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1689":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1690":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1691":{"x":30,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1692":{"morph":{"__isSmartRef__":true,"id":1644},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1693":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1694":{"deleteSelectedScript":{"__isSmartRef__":true,"id":1695}},"1695":{"varMapping":{"__isSmartRef__":true,"id":1696},"source":"function deleteSelectedScript() {\n\n var editor = this.objectEditorPane;\n var selection = editor.scriptList.selection;\n\n if (!editor.target || editor.scriptList.getList().size() < 2) \n return; \n\n var deleteScript = function (confirmed) {\n if (!confirmed) return;\n \n if (selection && editor.target) {\n if (!editor.target.hasOwnProperty(selection)) \n return;\n delete editor.target[selection];\n editor.updateLists();\n editor.displayInitialScript();\n }\n }\n\n var message = 'Delete \"' + selection + '\" script?';\n var callback = deleteScript;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":1697},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1696":{"this":{"__isSmartRef__":true,"id":1644}},"1697":{"timestamp":{"__isSmartRef__":true,"id":1698},"user":"lauritz"},"1698":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (CET)"},"1699":{"submorphs":[{"__isSmartRef__":true,"id":1700}],"scripts":[],"id":1594,"shape":{"__isSmartRef__":true,"id":1715},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1731},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1718},"lighterFill":{"__isSmartRef__":true,"id":1732},"label":{"__isSmartRef__":true,"id":1700},"attributeConnections":[{"__isSmartRef__":true,"id":1741}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1743},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":1744},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":1745},"eventHandler":{"__isSmartRef__":true,"id":1746},"distanceToDragEvent":{"__isSmartRef__":true,"id":1747},"priorExtent":{"__isSmartRef__":true,"id":1748},"owner":{"__isSmartRef__":true,"id":200},"textString":"","selection":{"__isSmartRef__":true,"id":1749},"_ClipMode":"visible","prevScroll":[0,0],"listMorph":null,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1766},"__LivelyClassName__":"lively.morphic.Button"},"1700":{"submorphs":[],"scripts":[],"id":1595,"shape":{"__isSmartRef__":true,"id":1701},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":180,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1707},"textColor":{"__isSmartRef__":true,"id":1704},"owner":{"__isSmartRef__":true,"id":1699},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1708}],"padding":{"__isSmartRef__":true,"id":1710},"_Padding":{"__isSmartRef__":true,"id":1710},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1711},"attributeConnections":[{"__isSmartRef__":true,"id":1712}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":1713},"eventHandler":{"__isSmartRef__":true,"id":1714},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":180,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1701":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1702},"_Extent":{"__isSmartRef__":true,"id":1703},"_BorderColor":{"__isSmartRef__":true,"id":1704},"renderContextTable":{"__isSmartRef__":true,"id":1705},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1706},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1702":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1703":{"x":180,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1704":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1705":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1706":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1707":{"x":2,"y":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1708":{"style":{"__isSmartRef__":true,"id":1709},"chunkOwner":{"__isSmartRef__":true,"id":1700},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1709":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1710":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1711":{"x":180,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1712":{"sourceObj":{"__isSmartRef__":true,"id":1700},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1713":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1714":{"morph":{"__isSmartRef__":true,"id":1700},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1715":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1716},"_Extent":{"__isSmartRef__":true,"id":1717},"_Fill":{"__isSmartRef__":true,"id":1718},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1728},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1729},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1730},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1716":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1717":{"x":180,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1718":{"stops":[{"__isSmartRef__":true,"id":1719},{"__isSmartRef__":true,"id":1721},{"__isSmartRef__":true,"id":1723},{"__isSmartRef__":true,"id":1725}],"vector":{"__isSmartRef__":true,"id":1727},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1719":{"offset":0,"color":{"__isSmartRef__":true,"id":1720}},"1720":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1721":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1722}},"1722":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1723":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1724}},"1724":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1725":{"offset":1,"color":{"__isSmartRef__":true,"id":1726}},"1726":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1727":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1728":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1729":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1730":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1731":{"x":258.0589736068345,"y":10,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1732":{"stops":[{"__isSmartRef__":true,"id":1733},{"__isSmartRef__":true,"id":1735},{"__isSmartRef__":true,"id":1737},{"__isSmartRef__":true,"id":1739}],"vector":{"__isSmartRef__":true,"id":1727},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1733":{"offset":0,"color":{"__isSmartRef__":true,"id":1734}},"1734":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1735":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1736}},"1736":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1737":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1738}},"1738":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1739":{"offset":1,"color":{"__isSmartRef__":true,"id":1740}},"1740":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1741":{"sourceObj":{"__isSmartRef__":true,"id":1699},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":200},"targetMethodName":"setTarget","converter":null,"converterString":"function (name) { return $world.get(name)}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1742},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1742":{"source":{"__isSmartRef__":true,"id":1699},"target":{"__isSmartRef__":true,"id":200}},"1743":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1744":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1745":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1746":{"morph":{"__isSmartRef__":true,"id":1699},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1747":{"x":118.72902552729943,"y":-8.294927936433453,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1748":{"x":180,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1749":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":1750},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1756},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1757},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":1758},"_TextColor":{"__isSmartRef__":true,"id":1759},"renderContextTable":{"__isSmartRef__":true,"id":1760},"textChunks":[{"__isSmartRef__":true,"id":1761}],"eventHandler":{"__isSmartRef__":true,"id":1763},"priorExtent":{"__isSmartRef__":true,"id":1764},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":580,"_MinTextHeight":null,"_Rotation":0,"_Scale":1.002003004005006,"previousSelection":[35,35],"priorSelectionRange":[23,23],"charsReplaced":"WIP / Proof of Concept","lastFindLoc":22,"distanceToDragEvent":{"__isSmartRef__":true,"id":1765},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"1750":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1751},"_Extent":{"__isSmartRef__":true,"id":1752},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1753},"renderContextTable":{"__isSmartRef__":true,"id":1754},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1755},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1751":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1752":{"x":580,"y":43,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1753":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1754":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1755":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1756":{"x":37,"y":23,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1757":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1758":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1759":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1760":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1761":{"style":{"__isSmartRef__":true,"id":1762},"chunkOwner":{"__isSmartRef__":true,"id":1749},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1762":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1763":{"morph":{"__isSmartRef__":true,"id":1749},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1764":{"x":580,"y":43,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1765":{"x":221,"y":-12,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1766":{"createListMorph":{"__isSmartRef__":true,"id":1767},"getList":{"__isSmartRef__":true,"id":1771},"removeList":{"__isSmartRef__":true,"id":1775},"reset":{"__isSmartRef__":true,"id":1779},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":1783},"onMouseDown":{"__isSmartRef__":true,"id":1787},"resetConnections":{"__isSmartRef__":true,"id":1795},"setTargetOfPane":{"__isSmartRef__":true,"id":1799},"setTargetToListSelection":{"__isSmartRef__":true,"id":1803},"onBlur":{"__isSmartRef__":true,"id":1807},"setTarget":{"__isSmartRef__":true,"id":1815}},"1767":{"varMapping":{"__isSmartRef__":true,"id":1768},"source":"function createListMorph() {\n var items = this.getList();\n \n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n \n connect(listMorph, 'selection', this, 'setTargetToListSelection');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":1769},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1768":{"this":{"__isSmartRef__":true,"id":1699}},"1769":{"timestamp":{"__isSmartRef__":true,"id":1770},"user":"lauritz","categories":[]},"1770":{"isSerializedDate":true,"string":"Wed Nov 16 2011 07:18:15 GMT+0100 (CET)"},"1771":{"varMapping":{"__isSmartRef__":true,"id":1772},"source":"function getList() {\n var worldEntry = {\n isListItem: true,\n selectionString: 'World',\n string: 'World',\n value: this.world()\n };\n var list = this.world().indentedListItemsOfMorphNames();\n list.unshift(worldEntry);\n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":1773},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1772":{"this":{"__isSmartRef__":true,"id":1699}},"1773":{"timestamp":{"__isSmartRef__":true,"id":1774},"user":"lauritz","categories":[]},"1774":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (CET)"},"1775":{"varMapping":{"__isSmartRef__":true,"id":1776},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1777},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1776":{"this":{"__isSmartRef__":true,"id":1699}},"1777":{"timestamp":{"__isSmartRef__":true,"id":1778},"user":"lauritz","categories":[]},"1778":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:04:43 GMT+0100 (CET)"},"1779":{"varMapping":{"__isSmartRef__":true,"id":1780},"source":"function reset() {\n this.list = [];\n this.setLabel('empty');\n this.label.setAlign('left');\n this.removeList();\n this.resetConnections();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":1781},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1780":{"this":{"__isSmartRef__":true,"id":1699}},"1781":{"timestamp":{"__isSmartRef__":true,"id":1782},"user":"lauritz","categories":[]},"1782":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:04:57 GMT+0100 (CET)"},"1783":{"varMapping":{"__isSmartRef__":true,"id":1784},"source":"function displayTopLevelMorphs() {\n var list = this.createListMorph(); \n if (this.getList().length === 0) return;\n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":1785},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1784":{"this":{"__isSmartRef__":true,"id":1699}},"1785":{"timestamp":{"__isSmartRef__":true,"id":1786},"user":"lauritz","categories":[]},"1786":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:03:02 GMT+0100 (CET)"},"1787":{"varMapping":{"__isSmartRef__":true,"id":1788},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n this.removeList();\n } else {\n this.displayTopLevelMorphs();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1793},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1788":{"this":{"__isSmartRef__":true,"id":1699},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1789}},"1789":{"$super":{"__isSmartRef__":true,"id":1790}},"1790":{"varMapping":{"__isSmartRef__":true,"id":1791},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1792},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1791":{"obj":{"__isSmartRef__":true,"id":1699},"name":"onMouseDown"},"1792":{},"1793":{"timestamp":{"__isSmartRef__":true,"id":1794},"user":"lauritz","categories":[]},"1794":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:04:36 GMT+0100 (CET)"},"1795":{"varMapping":{"__isSmartRef__":true,"id":1796},"source":"function resetConnections() {\n disconnectAll(this);\n connect(this, 'savedTextString', this.owner, 'setTarget', {converter: \n\tfunction (name) { return $world.get(name)}});\n}","funcProperties":{"__isSmartRef__":true,"id":1797},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1796":{"this":{"__isSmartRef__":true,"id":1699}},"1797":{"timestamp":{"__isSmartRef__":true,"id":1798},"user":"lauritz","categories":[]},"1798":{"isSerializedDate":true,"string":"Wed Nov 16 2011 06:41:16 GMT+0100 (CET)"},"1799":{"varMapping":{"__isSmartRef__":true,"id":1800},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setLabel(selection.getName());\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":1801},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1800":{"this":{"__isSmartRef__":true,"id":1699}},"1801":{"timestamp":{"__isSmartRef__":true,"id":1802},"user":"lauritz","categories":[]},"1802":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:40:02 GMT+0100 (CET)"},"1803":{"varMapping":{"__isSmartRef__":true,"id":1804},"source":"function setTargetToListSelection(selection) { \n this.removeList();\n if (!selection) return;\n if (this.owner.scriptPane.hasChanged()) {\n var that = this;\n var callback = function (confirmed) {\n if (confirmed) that.setTargetOfPane(selection);\n }\n this.owner.confirmUnsavedChanges(callback);\n } else {\n this.setTargetOfPane(selection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1805},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1804":{"this":{"__isSmartRef__":true,"id":1699}},"1805":{"timestamp":{"__isSmartRef__":true,"id":1806},"user":"lauritz","categories":[]},"1806":{"isSerializedDate":true,"string":"Wed Nov 16 2011 06:41:16 GMT+0100 (CET)"},"1807":{"varMapping":{"__isSmartRef__":true,"id":1808},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1813},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1808":{"this":{"__isSmartRef__":true,"id":1699},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1809}},"1809":{"$super":{"__isSmartRef__":true,"id":1810}},"1810":{"varMapping":{"__isSmartRef__":true,"id":1811},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1812},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1811":{"obj":{"__isSmartRef__":true,"id":1699},"name":"onBlur"},"1812":{},"1813":{"timestamp":{"__isSmartRef__":true,"id":1814},"user":"lauritz","categories":[]},"1814":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:13:05 GMT+0100 (CET)"},"1815":{"varMapping":{"__isSmartRef__":true,"id":1816},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":1817},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1816":{"this":{"__isSmartRef__":true,"id":1699}},"1817":{"timestamp":{"__isSmartRef__":true,"id":1818},"user":"lauritz","categories":[]},"1818":{"isSerializedDate":true,"string":"Fri Nov 18 2011 20:18:03 GMT+0100 (CET)"},"1819":{"submorphs":[],"scripts":[],"id":1596,"shape":{"__isSmartRef__":true,"id":1820},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1826},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1823},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1827},"textChunks":[{"__isSmartRef__":true,"id":1828}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1830},"renderContextTable":{"__isSmartRef__":true,"id":1831},"eventHandler":{"__isSmartRef__":true,"id":1832},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1833},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":200},"isCopyMorphRef":true,"morphRefId":27,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1820":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1821},"_Extent":{"__isSmartRef__":true,"id":1822},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1823},"renderContextTable":{"__isSmartRef__":true,"id":1824},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1825},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1821":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1822":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1823":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1824":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1825":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1826":{"x":217.0884604102518,"y":12.911539589748202,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1827":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1828":{"style":{"__isSmartRef__":true,"id":1829},"chunkOwner":{"__isSmartRef__":true,"id":1819},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1829":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1830":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1831":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1832":{"morph":{"__isSmartRef__":true,"id":1819},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1833":{"x":34.16558966370093,"y":-10.24373788432382,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1834":{"submorphs":[],"scripts":[],"id":1597,"shape":{"__isSmartRef__":true,"id":1835},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1841},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1838},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":1842},"textChunks":[{"__isSmartRef__":true,"id":1843}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1845},"renderContextTable":{"__isSmartRef__":true,"id":1846},"eventHandler":{"__isSmartRef__":true,"id":1847},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1848},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":200},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1835":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1836},"_Extent":{"__isSmartRef__":true,"id":1837},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1838},"renderContextTable":{"__isSmartRef__":true,"id":1839},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1840},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1836":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1837":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1838":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1839":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1840":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1841":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1842":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1843":{"style":{"__isSmartRef__":true,"id":1844},"chunkOwner":{"__isSmartRef__":true,"id":1834},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1844":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1845":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1846":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1847":{"morph":{"__isSmartRef__":true,"id":1834},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1848":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1849":{"submorphs":[{"__isSmartRef__":true,"id":1850}],"scripts":[],"id":1598,"shape":{"__isSmartRef__":true,"id":1865},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1881},"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1882},"lighterFill":{"__isSmartRef__":true,"id":1868},"label":{"__isSmartRef__":true,"id":1850},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1891},"name":"ObjectEditorCategoryChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":1892},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":1893},"eventHandler":{"__isSmartRef__":true,"id":1894},"distanceToDragEvent":{"__isSmartRef__":true,"id":1895},"priorExtent":{"__isSmartRef__":true,"id":1896},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":200},"setTargetToListSelection":"all","savedTextString":"all","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1897},"__LivelyClassName__":"lively.morphic.Button"},"1850":{"submorphs":[],"scripts":[],"id":1599,"shape":{"__isSmartRef__":true,"id":1851},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1857},"textColor":{"__isSmartRef__":true,"id":1854},"owner":{"__isSmartRef__":true,"id":1849},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1858}],"padding":{"__isSmartRef__":true,"id":1860},"_Padding":{"__isSmartRef__":true,"id":1860},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1861},"attributeConnections":[{"__isSmartRef__":true,"id":1862}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":1863},"eventHandler":{"__isSmartRef__":true,"id":1864},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1851":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1852},"_Extent":{"__isSmartRef__":true,"id":1853},"_BorderColor":{"__isSmartRef__":true,"id":1854},"renderContextTable":{"__isSmartRef__":true,"id":1855},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1856},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1852":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1853":{"x":130,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1854":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1855":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1856":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1857":{"x":2,"y":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1858":{"style":{"__isSmartRef__":true,"id":1859},"chunkOwner":{"__isSmartRef__":true,"id":1850},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1859":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1860":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1861":{"x":130,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1862":{"sourceObj":{"__isSmartRef__":true,"id":1850},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1849},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1863":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1864":{"morph":{"__isSmartRef__":true,"id":1850},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1865":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1866},"_Extent":{"__isSmartRef__":true,"id":1867},"_Fill":{"__isSmartRef__":true,"id":1868},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1878},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1879},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1880},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1866":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1867":{"x":130,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1868":{"stops":[{"__isSmartRef__":true,"id":1869},{"__isSmartRef__":true,"id":1871},{"__isSmartRef__":true,"id":1873},{"__isSmartRef__":true,"id":1875}],"vector":{"__isSmartRef__":true,"id":1877},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1869":{"offset":0,"color":{"__isSmartRef__":true,"id":1870}},"1870":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1871":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1872}},"1872":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1873":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1874}},"1874":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1875":{"offset":1,"color":{"__isSmartRef__":true,"id":1876}},"1876":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1877":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1878":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1879":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1880":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1881":{"x":66.01597601599599,"y":10,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1882":{"stops":[{"__isSmartRef__":true,"id":1883},{"__isSmartRef__":true,"id":1885},{"__isSmartRef__":true,"id":1887},{"__isSmartRef__":true,"id":1889}],"vector":{"__isSmartRef__":true,"id":1877},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1883":{"offset":0,"color":{"__isSmartRef__":true,"id":1884}},"1884":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1885":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1886}},"1886":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1887":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1888}},"1888":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1889":{"offset":1,"color":{"__isSmartRef__":true,"id":1890}},"1890":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1891":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1892":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1893":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1894":{"morph":{"__isSmartRef__":true,"id":1849},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1895":{"x":98.35917424891335,"y":-11.15391566717662,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1896":{"x":130,"y":20,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1897":{"createListMorph":{"__isSmartRef__":true,"id":1898},"getList":{"__isSmartRef__":true,"id":1902},"removeList":{"__isSmartRef__":true,"id":1906},"reset":{"__isSmartRef__":true,"id":1910},"setCategory":{"__isSmartRef__":true,"id":1914},"onMouseUp":{"__isSmartRef__":true,"id":1918},"onBlur":{"__isSmartRef__":true,"id":1926}},"1898":{"varMapping":{"__isSmartRef__":true,"id":1899},"source":"function createListMorph() {\n var items = this.getList();\n\n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n \n connect(listMorph, 'selection', this, 'setCategory');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":1900},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1899":{"this":{"__isSmartRef__":true,"id":1849}},"1900":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":1901}},"1901":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:45:56 GMT+0100 (CET)"},"1902":{"varMapping":{"__isSmartRef__":true,"id":1903},"source":"function getList() {\n if (!this.owner.target) return [''];\n\n var target = this.owner.target;\n\n var categories = Functions.own(target).collect(function (each) {\n return target[each].categories || [];\n }).flatten().uniq();\n\n categories.unshift(''); // all scripts\n return categories;\n}","funcProperties":{"__isSmartRef__":true,"id":1904},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1903":{"this":{"__isSmartRef__":true,"id":1849}},"1904":{"timestamp":{"__isSmartRef__":true,"id":1905},"user":"lauritz"},"1905":{"isSerializedDate":true,"string":"Thu Nov 17 2011 00:21:19 GMT+0100 (CET)"},"1906":{"varMapping":{"__isSmartRef__":true,"id":1907},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1908},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1907":{"this":{"__isSmartRef__":true,"id":1849}},"1908":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":1909}},"1909":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (CET)"},"1910":{"varMapping":{"__isSmartRef__":true,"id":1911},"source":"function reset() {\n this.list = [];\n this.setLabel('');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":1912},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1911":{"this":{"__isSmartRef__":true,"id":1849}},"1912":{"timestamp":{"__isSmartRef__":true,"id":1913},"user":"lauritz"},"1913":{"isSerializedDate":true,"string":"Wed Nov 16 2011 07:35:58 GMT+0100 (CET)"},"1914":{"varMapping":{"__isSmartRef__":true,"id":1915},"source":"function setCategory(category) {\n this.setLabel(category || '');\n this.label.setAlign('left');\n this.owner.setCategory(category);\n}","funcProperties":{"__isSmartRef__":true,"id":1916},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1915":{"this":{"__isSmartRef__":true,"id":1849}},"1916":{"timestamp":{"__isSmartRef__":true,"id":1917},"user":"lauritz"},"1917":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:26:40 GMT+0100 (CET)"},"1918":{"varMapping":{"__isSmartRef__":true,"id":1919},"source":"function onMouseUp(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n this.removeList();\n return true;\n } \n if (this.getList().size() < 2) return;\n var list = this.createListMorph();\n this.addMorph(list);\n this.listMorph = list;\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":1924},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1919":{"this":{"__isSmartRef__":true,"id":1849},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1920}},"1920":{"$super":{"__isSmartRef__":true,"id":1921}},"1921":{"varMapping":{"__isSmartRef__":true,"id":1922},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1923},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1922":{"obj":{"__isSmartRef__":true,"id":1849},"name":"onMouseUp"},"1923":{},"1924":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":1925}},"1925":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (CET)"},"1926":{"varMapping":{"__isSmartRef__":true,"id":1927},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1932},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1927":{"this":{"__isSmartRef__":true,"id":1849},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1928}},"1928":{"$super":{"__isSmartRef__":true,"id":1929}},"1929":{"varMapping":{"__isSmartRef__":true,"id":1930},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1931},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1930":{"obj":{"__isSmartRef__":true,"id":1849},"name":"onBlur"},"1931":{},"1932":{"timestamp":{"__isSmartRef__":true,"id":1933},"user":"lauritz","categories":[]},"1933":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (CET)"},"1934":{"target":{"__isSmartRef__":true,"id":200},"selector":"update","args":[],"stopped":true,"tickTime":500,"currentTimeout":5362,"suspended":true,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.TargetScript"},"1935":{"position":{"__isSmartRef__":true,"id":1936},"_Extent":{"__isSmartRef__":true,"id":1937},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1938},"_Fill":{"__isSmartRef__":true,"id":1939},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1940},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1941},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1936":{"x":0,"y":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1937":{"x":983.0285365288845,"y":442.61253261443596,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1938":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1939":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Color"},"1940":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1941":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Rectangle"},"1942":{"x":0.971126750461849,"y":21.45669012569269,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1943":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":1944}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1944":{"date":{"__isSmartRef__":true,"id":1945},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"1945":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (CEST)"},"1946":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1947":{"morph":{"__isSmartRef__":true,"id":200},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1948":{"x":983.0285365288845,"y":442.61253261443596,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1949":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"1950":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"undefined.1","__LivelyClassName__":"Point"},"1951":{"displayInitialScript":{"__isSmartRef__":true,"id":1952},"displayJavaScriptSource":{"__isSmartRef__":true,"id":1956},"displaySourceForConnection":{"__isSmartRef__":true,"id":1960},"displaySourceForScript":{"__isSmartRef__":true,"id":1964},"generateSourceForConnection":{"__isSmartRef__":true,"id":1968},"generateSourceForScript":{"__isSmartRef__":true,"id":1972},"generateTargetCode":{"__isSmartRef__":true,"id":1976},"newConnection":{"__isSmartRef__":true,"id":1980},"newScript":{"__isSmartRef__":true,"id":1984},"reset":{"__isSmartRef__":true,"id":1988},"selectChangedContent":{"__isSmartRef__":true,"id":1992},"setTarget":{"__isSmartRef__":true,"id":1996},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":2000},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":2004},"updateLists":{"__isSmartRef__":true,"id":2008},"onShutdown":{"__isSmartRef__":true,"id":2012},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":2016},"update":{"__isSmartRef__":true,"id":2020},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":2024},"printCategories":{"__isSmartRef__":true,"id":2028},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":2032},"setCategory":{"__isSmartRef__":true,"id":2035},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":2039}},"1952":{"varMapping":{"__isSmartRef__":true,"id":1953},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.preselectItem();\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.preselectItem();\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1954},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1953":{"this":{"__isSmartRef__":true,"id":200}},"1954":{"timestamp":{"__isSmartRef__":true,"id":1955},"user":"lauritz","categories":[]},"1955":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (CET)"},"1956":{"varMapping":{"__isSmartRef__":true,"id":1957},"source":"function displayJavaScriptSource(jsCode) {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n var callback = function(confirmed) {\n if (confirmed) that.scriptPane.display(jsCode)\n };\n this.confirmUnsavedChanges(callback);\n } else {\n this.scriptPane.display(jsCode);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1958},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1957":{"this":{"__isSmartRef__":true,"id":200}},"1958":{"timestamp":{"__isSmartRef__":true,"id":1959},"user":"lauritz","categories":[]},"1959":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"1960":{"varMapping":{"__isSmartRef__":true,"id":1961},"source":"function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":1962},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1961":{"this":{"__isSmartRef__":true,"id":200}},"1962":{"timestamp":{"__isSmartRef__":true,"id":1963},"user":"lauritz","categories":[]},"1963":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:52:36 GMT+0100 (CET)"},"1964":{"varMapping":{"__isSmartRef__":true,"id":1965},"source":"function displaySourceForScript(scriptName) {\n var code = \"\",\n that = this;\n if (scriptName === null) {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForScript(scriptName); \n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":1966},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1965":{"this":{"__isSmartRef__":true,"id":200}},"1966":{"timestamp":{"__isSmartRef__":true,"id":1967},"user":"lauritz","categories":[]},"1967":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (CET)"},"1968":{"varMapping":{"__isSmartRef__":true,"id":1969},"source":"function generateSourceForConnection(connection) {\n var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":1970},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1969":{"this":{"__isSmartRef__":true,"id":200}},"1970":{"timestamp":{"__isSmartRef__":true,"id":1971},"user":"lauritz","categories":[]},"1971":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"1972":{"varMapping":{"__isSmartRef__":true,"id":1973},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n categorizeScript = '';\n\n if (script.timestamp && script.user) \n annotation = Strings.format('// changed at %s by %s \\n', script.timestamp, script.user);\n scriptSource = Strings.format('this.addScript(%s)', script.getOriginal());\n categorizeScript = Strings.format('.categorize(%s);', this.printCategories(script));\n\n return annotation + scriptSource + categorizeScript;\n}","funcProperties":{"__isSmartRef__":true,"id":1974},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1973":{"this":{"__isSmartRef__":true,"id":200}},"1974":{"timestamp":{"__isSmartRef__":true,"id":1975},"user":"lauritz","categories":[]},"1975":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"1976":{"varMapping":{"__isSmartRef__":true,"id":1977},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":1978},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1977":{"this":{"__isSmartRef__":true,"id":200}},"1978":{"timestamp":{"__isSmartRef__":true,"id":1979},"user":"lauritz","categories":[]},"1979":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"1980":{"varMapping":{"__isSmartRef__":true,"id":1981},"source":"function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1982},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1981":{"this":{"__isSmartRef__":true,"id":200}},"1982":{"timestamp":{"__isSmartRef__":true,"id":1983},"user":"lauritz","categories":[]},"1983":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"1984":{"varMapping":{"__isSmartRef__":true,"id":1985},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n \\n}).categorize([]);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1986},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1985":{"this":{"__isSmartRef__":true,"id":200}},"1986":{"timestamp":{"__isSmartRef__":true,"id":1987},"user":"lauritz"},"1987":{"isSerializedDate":true,"string":"Thu Nov 17 2011 21:25:20 GMT+0100 (CET)"},"1988":{"varMapping":{"__isSmartRef__":true,"id":1989},"source":"function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.connectionList.setList();\n this.morphSelector.reset();\n this.categoryChooser.reset();\n this.currentCategory = null;\n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":1990},"__SourceModuleName__":"undefined.1","__LivelyClassName__":"lively.Closure"},"1989":{"this":{"__isSmartRef__":true,"id":200}},"1990":{"timestamp":{"__isSmartRef__":true,"id":1991},"user":"lauritz","categories":[]},"1991":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"1992":{"varMapping":{"__isSmartRef__":true,"id":1993},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n return this.scriptList.selectAddedScript(addScriptMatches[0]);\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i
| | |