' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), 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 }","varMapping":{"__isSmartRef__":true,"id":955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"954":{},"955":{"this":{"__isSmartRef__":true,"id":938},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":956}},"956":{"$super":{"__isSmartRef__":true,"id":957}},"957":{"funcProperties":{"__isSmartRef__":true,"id":958},"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 }","varMapping":{"__isSmartRef__":true,"id":959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"958":{},"959":{"name":"morphMenuItems","obj":{"__isSmartRef__":true,"id":938}},"960":{"morph":{"__isSmartRef__":true,"id":936},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"961":{"_Align":"center","_ClipMode":"hidden","_FontFamily":"Helvetica","_FontSize":10,"_HandStyle":"default","_MaxTextHeight":null,"_MaxTextWidth":101,"_MinTextHeight":null,"_MinTextWidth":101,"_PointerEvents":"none","_Scale":1,"_WhiteSpaceHandling":"pre-wrap","allowInput":false,"attributeConnections":[],"derivationIds":[2897,"92EB5E70-61BB-4A71-942C-A34A20789B2F","A9C9F9CF-1BAC-4074-A093-4EB0C3C90866","2FE50303-6361-4A70-9BD5-0D8D1C8B5176","D774C172-7EE9-40AE-9949-340BA8EDBD37","9B5186A1-2B8E-406C-B165-05F327435DC2","9D4948C2-2429-4333-8F3D-89BB96D33894","748160AD-0FF7-4E89-9BB5-486870332207","944E6E30-642C-448D-BBFE-03835C34628C","254F8208-565C-4C75-A5F5-00426CEB4B73","501AF004-4601-4260-8B81-C8F07DB46A9D","A8CA8FB2-5C27-4E5A-8EC1-6697FE1FF0DD","8517C0CE-CE66-435A-B522-21B2A78DFEE9","3CA33CEB-8ACD-4C69-A01F-254F6D1DA196","B1DA64A1-C447-44F0-8186-BB6E6E7DF3CB","E5464D79-8548-4E65-8C48-D9046F121681","20971AE2-EBF3-4F13-BB11-A40F5FA641C1","3A6E47F6-35C2-425D-B69A-5EDE629EF1A0","B40FB49A-3034-464F-A3D8-43D4E8AAF34E","75562411-CB29-4DE6-8778-A0D7F24F5D9F"],"doNotCopyProperties":[],"doNotSerialize":[],"droppingEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":962},"eventsAreIgnored":true,"fixedHeight":true,"fixedWidth":true,"grabbingEnabled":false,"halosEnabled":true,"id":"A0A645E0-102C-4083-B544-F25174F37F1E","isLabel":true,"owner":{"__isSmartRef__":true,"id":936},"registeredForMouseEvents":true,"scripts":[],"shape":{"__isSmartRef__":true,"id":963},"submorphs":[],"textChunks":[{"__isSmartRef__":true,"id":964}],"textStyle":null,"_WordBreak":"break-all","__serializedExpressions__":["_Padding","_Position","_TextColor","padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,0.0)","_TextColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,5,0,0)"},"962":{"morph":{"__isSmartRef__":true,"id":961},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"963":{"_BorderWidth":0,"_ClipMode":"hidden","_Fill":null,"__serializedExpressions__":["_BorderColor","_Extent","_Padding","position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(0,0,0)","_Extent":"lively.pt(101.0,21.0)","_Padding":"lively.rect(0,3,0,0)","position":"lively.pt(0.0,0.0)"},"964":{"_id":"_1138","chunkOwner":{"__isSmartRef__":true,"id":961},"storedString":"cancel","style":{"__isSmartRef__":true,"id":965},"__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"965":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"966":{"moveHorizontal":true,"moveVertical":true},"967":{"stops":[{"__isSmartRef__":true,"id":968},{"__isSmartRef__":true,"id":969},{"__isSmartRef__":true,"id":970},{"__isSmartRef__":true,"id":971}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"968":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"969":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"970":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"971":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"972":{"stops":[{"__isSmartRef__":true,"id":973},{"__isSmartRef__":true,"id":974},{"__isSmartRef__":true,"id":975},{"__isSmartRef__":true,"id":976}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"973":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"974":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"975":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"976":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"977":{"comment":"Has a script that is called on button press","migrationLevel":4,"partName":"Button","partsSpaceName":"PartsBin/Inputs","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"978":{"_BorderRadius":5.2,"_BorderStyle":"solid","_BorderWidth":1.1840000000000002,"_ClipMode":"visible","_Fill":{"__isSmartRef__":true,"id":972},"_Opacity":1,"__serializedExpressions__":["_BorderColor","_Extent","_Padding","position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(214,214,214)","_Extent":"lively.pt(101.0,21.0)","_Padding":"lively.rect(0,0,0,0)","position":"lively.pt(0.0,0.0)"},"979":{"_ClipMode":"visible","_Rotation":0,"_Scale":1,"attributeConnections":[{"__isSmartRef__":true,"id":980}],"derivationIds":[2898,"9D27A522-4E3D-482F-97CF-3CA3247A3999","4EBF07AD-25C0-4034-BC06-31F137F70FA1","DC6D6B8E-37AE-4815-A81A-AC7071124A26","42DF6D49-8482-40A3-B901-512013BB5C75","0D3EB4E1-46E7-4B1E-8273-6432575F84B5","733427E4-0BB2-4FB7-917C-4A3D98C50589","001872CD-CE26-4A7A-AB1F-3EFF5AC6D6A3","2FFB821F-9334-4125-8541-31C21E305B78","A3635A2F-B9AE-4CAA-A07F-76E90A2AF718","ACE7DD81-434E-40D4-A12D-CB728F4CFA61","15D1D871-417C-444D-B7E7-4556C755A914","AEC9FEB8-505A-4D19-9C25-747D78D04F17","38C38B49-0343-41FA-BC14-2FAF64266DB0","55C4703F-8F22-4BB7-A09A-4186B8A404F2","6F234AFA-11CA-48C1-841A-536E5A48FE21","68C85EC7-341D-4DEB-B92C-816AC5454663","E0718149-6E92-4F3B-8E50-D2728012054D","A14738A0-2B84-4465-BDAC-B98F839BD81C","D1D5B6BD-8D74-4E99-91AD-18C2825CA4C9"],"doNotCopyProperties":["$$fire"],"doNotSerialize":["$$fire"],"droppingEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1003},"grabbingEnabled":false,"halosEnabled":true,"id":"93E9C189-E60D-4A5B-B13B-593420A960EB","isActive":true,"isPressed":false,"label":{"__isSmartRef__":true,"id":1004},"layout":{"__isSmartRef__":true,"id":1009},"lighterFill":{"__isSmartRef__":true,"id":1010},"name":"Button1","normalFill":{"__isSmartRef__":true,"id":1015},"owner":{"__isSmartRef__":true,"id":848},"partsBinMetaInfo":{"__isSmartRef__":true,"id":1020},"registeredForMouseEvents":true,"scripts":[],"shape":{"__isSmartRef__":true,"id":1021},"showsHalos":false,"submorphs":[{"__isSmartRef__":true,"id":1004}],"toggle":false,"value":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(245.0,378.0)","distanceToDragEvent":"lively.pt(62.0,-12.0)"},"980":{"sourceAttrName":"fire","sourceObj":{"__isSmartRef__":true,"id":979},"targetMethodName":"onPublish","targetObj":{"__isSmartRef__":true,"id":848},"visualConnector":{"__isSmartRef__":true,"id":981},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"981":{"con":{"__isSmartRef__":true,"id":980},"controlPoints":[{"__isSmartRef__":true,"id":982},{"__isSmartRef__":true,"id":983}],"droppingEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":991},"halosEnabled":true,"id":139,"owner":null,"scripts":[],"shape":{"__isSmartRef__":true,"id":992},"showsMorphMenu":true,"submorphs":[{"__isSmartRef__":true,"id":984}],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":995},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"982":{"connectedMagnet":null,"index":0,"morph":{"__isSmartRef__":true,"id":981},"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"983":{"connectedMagnet":null,"index":1,"marker":{"__isSmartRef__":true,"id":984},"markerDirection":"prev","morph":{"__isSmartRef__":true,"id":981},"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"984":{"_Rotation":-2.5917394709132084,"droppingEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":985},"halosEnabled":true,"id":140,"owner":{"__isSmartRef__":true,"id":981},"scripts":[],"shape":{"__isSmartRef__":true,"id":986},"submorphs":[],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.5,0.5)"},"985":{"morph":{"__isSmartRef__":true,"id":984},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"986":{"_BorderWidth":0,"_ClipMode":"visible","_PathElements":[{"__isSmartRef__":true,"id":987},{"__isSmartRef__":true,"id":988},{"__isSmartRef__":true,"id":989},{"__isSmartRef__":true,"id":990}],"cachedVertices":null,"dontChangeShape":false,"__serializedExpressions__":["_BorderColor","_Extent","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_BorderColor":"Color.rgb(0,0,0)","_Extent":"lively.pt(16.0,12.0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"987":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"988":{"isAbsolute":true,"x":0,"y":12,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"989":{"isAbsolute":true,"x":16,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"990":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"991":{"morph":{"__isSmartRef__":true,"id":981},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"992":{"_BorderWidth":1,"_ClipMode":"visible","_PathElements":[{"__isSmartRef__":true,"id":993},{"__isSmartRef__":true,"id":994}],"cachedVertices":null,"dontChangeShape":false,"__serializedExpressions__":["_BorderColor","_Extent","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_BorderColor":"Color.rgb(0,0,0)","_Extent":"lively.pt(311.0,191.0)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-0.5,-0.5)"},"993":{"isAbsolute":true,"x":310,"y":190,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"994":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"995":{"morphMenuItems":{"__isSmartRef__":true,"id":996}},"996":{"funcProperties":{"__isSmartRef__":true,"id":997},"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 || '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, 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(), 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 }","varMapping":{"__isSmartRef__":true,"id":998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"997":{},"998":{"this":{"__isSmartRef__":true,"id":981},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":999}},"999":{"$super":{"__isSmartRef__":true,"id":1000}},"1000":{"funcProperties":{"__isSmartRef__":true,"id":1001},"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 }","varMapping":{"__isSmartRef__":true,"id":1002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1001":{},"1002":{"name":"morphMenuItems","obj":{"__isSmartRef__":true,"id":981}},"1003":{"morph":{"__isSmartRef__":true,"id":979},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1004":{"_Align":"center","_ClipMode":"hidden","_FontFamily":"Helvetica","_FontSize":10,"_HandStyle":"default","_MaxTextHeight":null,"_MaxTextWidth":101,"_MinTextHeight":null,"_MinTextWidth":101,"_PointerEvents":"none","_Scale":1,"_WhiteSpaceHandling":"pre-wrap","allowInput":false,"attributeConnections":[],"derivationIds":[2899,"4F00D1F5-B85C-479E-BDDE-322DF2F432A3","5E7BC7AC-9EF9-4CF5-9196-A542A26534CA","46616896-CA46-4B43-B694-9FB001B32989","F73D407C-A72D-414B-AB8D-1E28025BCA1C","C5B395F9-BF24-4FA7-87D3-03E9AE9C4E45","ECEC7694-EF15-4DE7-A847-9DB2D4B99B3C","AE0EC189-A810-44FB-948F-F8667AF67929","CC950242-2CF1-48D3-B3C3-EF03073D145F","181712FB-04E9-40DA-ABEF-E711AC15A136","08CA5C5C-AAE0-4E6D-BFA4-04C9735965CC","F06603E2-E026-4DB9-B64F-71C0F6BE4CAA","5F5EDDF1-7355-4EE9-8286-9B0FC87B4A34","79E77E86-9ABD-4417-A260-E0CAABA3925E","11030354-936E-4E5D-BEB5-643D96C0CE06","34136BAA-3143-44E9-AA72-B7030E66E400","E5860588-E4A1-4D07-A6F3-12B2F107649A","8BB1A3A3-3886-44CB-A963-949225DF336A","9EB47672-A2C1-46F3-B8C7-FB5AFC6B8463","FE7A5658-2B84-42DB-B44A-0609785DD024"],"doNotCopyProperties":[],"doNotSerialize":[],"droppingEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1005},"eventsAreIgnored":true,"fixedHeight":true,"fixedWidth":true,"grabbingEnabled":false,"halosEnabled":true,"id":"B3CB4C6B-7C93-467F-B481-79E20C7BBB16","isLabel":true,"owner":{"__isSmartRef__":true,"id":979},"registeredForMouseEvents":true,"scripts":[],"shape":{"__isSmartRef__":true,"id":1006},"submorphs":[],"textChunks":[{"__isSmartRef__":true,"id":1007}],"textStyle":null,"_WordBreak":"break-all","__serializedExpressions__":["_Padding","_Position","_TextColor","padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,0.0)","_TextColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,5,0,0)"},"1005":{"morph":{"__isSmartRef__":true,"id":1004},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1006":{"_BorderWidth":0,"_ClipMode":"hidden","_Fill":null,"__serializedExpressions__":["_BorderColor","_Extent","_Padding","position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(0,0,0)","_Extent":"lively.pt(101.0,21.0)","_Padding":"lively.rect(0,3,0,0)","position":"lively.pt(0.0,0.0)"},"1007":{"_id":"_1043","chunkOwner":{"__isSmartRef__":true,"id":1004},"storedString":"publish","style":{"__isSmartRef__":true,"id":1008},"__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1008":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1009":{"moveHorizontal":true,"moveVertical":true},"1010":{"stops":[{"__isSmartRef__":true,"id":1011},{"__isSmartRef__":true,"id":1012},{"__isSmartRef__":true,"id":1013},{"__isSmartRef__":true,"id":1014}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1011":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"1012":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"1013":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"1014":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"1015":{"stops":[{"__isSmartRef__":true,"id":1016},{"__isSmartRef__":true,"id":1017},{"__isSmartRef__":true,"id":1018},{"__isSmartRef__":true,"id":1019}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1016":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"1017":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"1018":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"1019":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"1020":{"comment":"Has a script that is called on button press","migrationLevel":4,"partName":"Button","partsSpaceName":"PartsBin/Inputs","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1021":{"_BorderRadius":5.2,"_BorderStyle":"solid","_BorderWidth":1.1840000000000002,"_ClipMode":"visible","_Fill":{"__isSmartRef__":true,"id":1015},"_Opacity":1,"__serializedExpressions__":["_BorderColor","_Extent","_Padding","position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(214,214,214)","_Extent":"lively.pt(101.0,21.0)","_Padding":"lively.rect(0,0,0,0)","position":"lively.pt(0.0,0.0)"},"1022":{"_ClipMode":"auto","_FontFamily":"Helvetica","_FontSize":10,"_InputAllowed":true,"_MaxTextHeight":null,"_MaxTextWidth":445,"_MinTextHeight":null,"_MinTextWidth":445,"_Rotation":0,"_Scale":1,"_WhiteSpaceHandling":"pre-wrap","allowInput":true,"attributeConnections":[],"charsReplaced":"","derivationIds":[2900,"7E82C349-9FC9-48B5-B84C-30E99FC40DF2","A07EAFD3-B03B-4E4C-BC72-FB29F65F543A","888FB55C-0365-4B40-A9B4-33FD19FA1E91","37AE3F7E-8AF9-413E-BDB9-796C3CE0C0A6","C19CF401-2869-429B-8C7E-3679F2C07B10","16D31632-3C1B-4388-9753-E178F4D74EC3","CE8B7F8B-0B5D-4A03-AFA0-CB5E4A9EE815","A0B7AE1E-340F-4786-A906-37B5D92B955E","6FB3DD7F-E27E-4C14-B6A7-87EE557243E3","8C9DC597-8FB3-409F-9F92-43E22D1EE113","96E19549-1C58-47D1-AABB-06F24696272A","20261F28-5D7A-4D9C-9F1F-79FC901C5E5F","9596C6D2-BEBD-47B3-B8A0-CD4AEBEF927D","420AC273-AA29-49EC-A1C7-C0E272006666","5D4C09DA-AAFB-4330-8646-23901C1FDB84","39A3F40D-B127-430E-B317-28966F140BB1","3753F8DF-2D2D-4113-BAB1-02998973DC21","480231CA-4CAF-464A-B1D3-A518AF7C287C","0B6CC11C-44F5-40A9-9FF6-A92E6003C5B3"],"doNotCopyProperties":[],"doNotSerialize":[],"droppingEnabled":false,"evalEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1023},"fixedHeight":true,"fixedWidth":true,"grabbingEnabled":false,"halosEnabled":true,"id":"0F39B240-3EA9-41D1-9385-4773DF3AF9B1","isBeingDragged":false,"isInputLine":false,"isLockOwner":false,"lastFindLoc":12,"layout":{"__isSmartRef__":true,"id":1024},"name":"CommentText","owner":{"__isSmartRef__":true,"id":848},"savedTextString":"no comment","scripts":[],"shape":{"__isSmartRef__":true,"id":1025},"showsHalos":false,"submorphs":[],"textChunks":[{"__isSmartRef__":true,"id":1026}],"_WordBreak":"break-all","__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,110.0)","distanceToDragEvent":"lively.pt(346.0,-16.0)"},"1023":{"morph":{"__isSmartRef__":true,"id":1022},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1024":{"resizeWidth":true},"1025":{"_BorderRadius":4.5,"_BorderStyle":"solid","_BorderWidth":1,"_ClipMode":"hidden","_Opacity":1,"_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_BorderColor","_Extent","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(208,208,208)","_Extent":"lively.pt(455.0,120.0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(4,2,0,0)","_Position":"lively.pt(0.0,0.0)"},"1026":{"style":{"__isSmartRef__":true,"id":1027},"chunkOwner":{"__isSmartRef__":true,"id":1022},"_id":"_419","storedString":"Constraint-based layouting with the Simplex algorithm. Still under construction!","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1027":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1028":{"_ClipMode":"visible","_FontFamily":"Arial, sans-serif","_FontSize":12,"_MaxTextHeight":null,"_MaxTextWidth":250,"_MinTextHeight":null,"_MinTextWidth":250,"_Rotation":0,"_Scale":1,"_WhiteSpaceHandling":"pre-wrap","allowsInput":true,"attributeConnections":[],"charsReplaced":"commit message","derivationIds":[2901,"8E267E15-1052-4F9C-B863-B733384EF1DA","851C46B4-347F-4AE4-9C04-C321E7CC8EA5","D33CE057-77D6-4CCC-90F9-867C622B3572","F9BFA4FE-D786-4384-B9F8-89EEA1D41685","95D3D9C3-CA8D-42A5-833B-30E01D630A4A","9FC24DFC-050E-423E-A017-2D5704509876","1EF71F38-5BCB-4C26-AB60-E2105330181C","7D191F0F-E475-47CF-BABE-55A543C7158D","F6ACFDD6-981C-4170-82C4-1AA9C3090741","092A05B9-0347-411B-8E2A-89272FF7A531","ABE15D91-8819-412F-9FAA-FC6A2F8AD14A","1F266812-1C31-4C6F-9676-B9E59DEA4864","F99A2F51-81DC-4D7F-93A2-84EFBFBC119F","7C9D55B3-6BFC-4DE2-B574-F4A3A11ECF00","08ABC4D8-386F-404A-AB0C-E90DC2E84DC0","4295456F-B084-4B9A-82A4-6C7639896A2F","8316BD0A-FC27-4157-8E2E-EA6DB50AFE6A","63931B60-496E-4220-A617-2BF416EFEA49","DBD3031A-C014-4936-8B4D-0F96354C78C3"],"doNotCopyProperties":[],"doNotSerialize":[],"droppingEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1029},"fixedHeight":false,"fixedWidth":true,"grabbingEnabled":false,"halosEnabled":true,"id":"9B00D609-71D9-4CD4-9196-6A9A6C214D1C","isLockOwner":false,"lastFindLoc":14,"name":"Text9","owner":{"__isSmartRef__":true,"id":848},"partsBinMetaInfo":{"__isSmartRef__":true,"id":1030},"prevScroll":[0,0],"previousSelection":[0,6],"registeredForMouseEvents":true,"scripts":[],"shape":{"__isSmartRef__":true,"id":1031},"showsHalos":false,"submorphs":[],"textChunks":[{"__isSmartRef__":true,"id":1032}],"__serializedExpressions__":["_Padding","_Position","distanceToDragEvent","textColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(5,5,0,0)","_Position":"lively.pt(10.0,90.0)","distanceToDragEvent":"lively.pt(163.0,-17.0)","textColor":"Color.rgb(0,0,0)"},"1029":{"morph":{"__isSmartRef__":true,"id":1028},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1030":{"comment":"a simple text morph","migrationLevel":4,"partName":"Text","partsSpaceName":"PartsBin/Basic","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1031":{"_BorderWidth":0,"_ClipMode":"visible","fill":null,"__serializedExpressions__":["_BorderColor","_Extent","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(0,0,0)","_Extent":"lively.pt(250.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"1032":{"_id":"_408","chunkOwner":{"__isSmartRef__":true,"id":1028},"morph":{"__isSmartRef__":true,"id":1028},"storedString":"comment","style":{"__isSmartRef__":true,"id":1033},"__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1033":{"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1034":{"_ClipMode":"visible","_Rotation":0,"_Scale":1,"attributeConnections":[{"__isSmartRef__":true,"id":1035}],"derivationIds":[2898,"9D27A522-4E3D-482F-97CF-3CA3247A3999","4EBF07AD-25C0-4034-BC06-31F137F70FA1","DC6D6B8E-37AE-4815-A81A-AC7071124A26","42DF6D49-8482-40A3-B901-512013BB5C75","132901B3-F9F2-482D-99E6-40EAECDCEF13","7BC760E1-232D-4654-8D89-3E2AF9B63E8A","10CF8C2D-EC10-4718-9BB8-A4D765C25CA2","E1457927-6D7F-4C43-A0D3-4606E937C36C","B2BCD5A8-36BB-4202-B2F1-480CA22D151C","16C66256-7472-4B33-A3FC-D41E1123E484","9D6EC181-02A4-4AA3-9511-97B61299072E","514B5C5C-2E93-4CD5-913F-C4210C8D3803","A4836A2F-5B4D-4F0C-BA65-6DF7DB4D4262","DD94CDA9-6F9F-4B4F-9D75-C57314BFD093","AB91D3DA-E1FA-400A-813B-C9670264E72F","9E97E660-33C2-4D79-9407-0794A939EBC2","E168BA8A-C869-40F5-B4BD-EF07D7092705","2C134907-2EFA-4549-AC62-E0FC170A250D","702FBC9D-4865-4039-83F3-EB17F30DCEC8","217E34A0-F0D6-4990-B377-FA23D2A96E30"],"doNotCopyProperties":["$$fire"],"doNotSerialize":["$$fire"],"droppingEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1037},"grabbingEnabled":false,"halosEnabled":true,"id":"67A7F826-11B1-45EB-9157-3F578182BF2D","isActive":true,"isPressed":false,"label":{"__isSmartRef__":true,"id":1038},"layout":{"__isSmartRef__":true,"id":1043},"lighterFill":{"__isSmartRef__":true,"id":1044},"name":"DiffButton","normalFill":{"__isSmartRef__":true,"id":1049},"owner":{"__isSmartRef__":true,"id":848},"partsBinMetaInfo":{"__isSmartRef__":true,"id":1054},"registeredForMouseEvents":true,"scripts":[],"shape":{"__isSmartRef__":true,"id":1055},"showsHalos":false,"submorphs":[{"__isSmartRef__":true,"id":1038}],"toggle":false,"value":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(10.0,378.0)","distanceToDragEvent":"lively.pt(69.5,-18.0)"},"1035":{"converterString":null,"sourceAttrName":"fire","sourceObj":{"__isSmartRef__":true,"id":1034},"targetMethodName":"checkForUpdates","targetObj":{"__isSmartRef__":true,"id":848},"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1036},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1036":{"source":{"__isSmartRef__":true,"id":1034},"target":{"__isSmartRef__":true,"id":848}},"1037":{"morph":{"__isSmartRef__":true,"id":1034},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1038":{"_Align":"center","_ClipMode":"hidden","_FontFamily":"Helvetica","_FontSize":10,"_HandStyle":"default","_MaxTextHeight":null,"_MaxTextWidth":150,"_MinTextHeight":null,"_MinTextWidth":150,"_PointerEvents":"none","_Scale":1,"_WhiteSpaceHandling":"pre-wrap","allowInput":false,"attributeConnections":[],"derivationIds":[2899,"4F00D1F5-B85C-479E-BDDE-322DF2F432A3","5E7BC7AC-9EF9-4CF5-9196-A542A26534CA","46616896-CA46-4B43-B694-9FB001B32989","F73D407C-A72D-414B-AB8D-1E28025BCA1C","E34F55EC-06D3-4965-A0D2-625CA896E3B7","2C75B823-DD52-427F-A501-B824B4C4AFFF","B4D1CBE5-9DEA-4728-8803-CCD541086497","6E0FBCF8-EAA4-4635-A092-F3A690EE9EF7","89A9C61E-62E5-4DC5-9ABB-48A97517BF54","7481FBBB-A4A7-4F5E-A153-60033229DE49","FEBD2158-DF74-4EDF-BD2A-2C5A19DDF177","129B298F-732B-46E2-AB44-60B8E8AC2378","92CFB2AD-D63D-4DD7-A729-6D0962A7C5FC","BC6FB6FB-EF63-4C39-9668-0462E42556C2","8BE2159A-9EB3-44EC-8BAD-0CF297F58645","D81DC308-8273-4F17-A7C0-849953D6454B","C536710D-050F-4AF1-BAD1-6EE763015B10","FDD58AA8-D717-4855-BB3A-B81014786962","1ACCD898-314B-4EB0-A177-CE6DD69E30D0","BE433DB8-657C-4FCB-BB4D-0088D3115495"],"doNotCopyProperties":[],"doNotSerialize":[],"droppingEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1039},"eventsAreIgnored":true,"fixedHeight":true,"fixedWidth":true,"grabbingEnabled":false,"halosEnabled":true,"id":"3745C246-D27B-481A-9A0A-DA0ACEA4D462","isLabel":true,"owner":{"__isSmartRef__":true,"id":1034},"registeredForMouseEvents":true,"scripts":[],"shape":{"__isSmartRef__":true,"id":1040},"submorphs":[],"textChunks":[{"__isSmartRef__":true,"id":1041}],"textStyle":null,"_WordBreak":"break-all","__serializedExpressions__":["_Padding","_Position","_TextColor","padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,0.0)","_TextColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,5,0,0)"},"1039":{"morph":{"__isSmartRef__":true,"id":1038},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1040":{"_BorderWidth":0,"_ClipMode":"hidden","_Fill":null,"__serializedExpressions__":["_BorderColor","_Extent","_Padding","position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(0,0,0)","_Extent":"lively.pt(150.0,21.0)","_Padding":"lively.rect(0,3,0,0)","position":"lively.pt(0.0,0.0)"},"1041":{"_id":"_942","chunkOwner":{"__isSmartRef__":true,"id":1038},"storedString":"check for updates","style":{"__isSmartRef__":true,"id":1042},"__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1042":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1043":{"moveVertical":true},"1044":{"stops":[{"__isSmartRef__":true,"id":1045},{"__isSmartRef__":true,"id":1046},{"__isSmartRef__":true,"id":1047},{"__isSmartRef__":true,"id":1048}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1045":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"1046":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"1047":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"1048":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"1049":{"stops":[{"__isSmartRef__":true,"id":1050},{"__isSmartRef__":true,"id":1051},{"__isSmartRef__":true,"id":1052},{"__isSmartRef__":true,"id":1053}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1050":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"1051":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"1052":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"1053":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"1054":{"comment":"Has a script that is called on button press","migrationLevel":4,"partName":"Button","partsSpaceName":"PartsBin/Inputs","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1055":{"_BorderRadius":5.2,"_BorderStyle":"solid","_BorderWidth":1.1840000000000002,"_ClipMode":"visible","_Fill":{"__isSmartRef__":true,"id":1049},"_Opacity":1,"__serializedExpressions__":["_BorderColor","_Extent","_Padding","position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(214,214,214)","_Extent":"lively.pt(150.0,21.0)","_Padding":"lively.rect(0,0,0,0)","position":"lively.pt(0.0,0.0)"},"1056":{"_ClipMode":"hidden","_FontFamily":"Helvetica","_FontSize":10,"_MaxTextHeight":null,"_MaxTextWidth":250,"_MinTextHeight":null,"_MinTextWidth":250,"_WhiteSpaceHandling":"pre-wrap","allowInput":true,"charsReplaced":"CommitMessageTest1","derivationIds":[2893,"FBE4B17F-DC2B-4783-899B-CF1B051F14D9","A2C45BC5-C44B-4AEA-A29E-ADE3DAF08638","640BD984-1AB2-45B8-BCEC-AB32A6199D68","BE2E06DB-4DFC-4628-9FED-8F3E87D18E07","6D28F6C5-8D27-4A2D-A13E-55172343909B","9537F96B-5D0E-47CF-9435-5850919DA5A2","B8516280-8A31-4C9E-A9EF-3C058FB084E5","0A41986D-4F2B-4D8B-8A35-AEB659C5D25A","7A7E3053-DA4F-465C-B558-5138BE382156","7024A970-16E6-4DE1-9BD6-6DC50779F4AA","181F12CB-A2A2-4A98-A3B0-9CAC859DFC66","B6176017-4E7E-463E-82DF-DFC54EB00EC9","2956D5AA-C488-4F2E-AEDF-6D795EEECAB3","DB745EE2-3FE0-42B6-8D29-E2B6215E2B17","BD1B8949-BF8B-4B64-A2A5-95E8919FD98B","2350C658-7205-479B-B1DD-AD260D3425E2","E68A6841-BC15-4078-836D-4949AFA0A264","58CD9B79-D2BF-4300-9531-A42E08842E2A","E6B43BB9-DD76-4917-88E5-E4B146FE5E62"],"droppingEnabled":false,"evalEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1057},"fixedHeight":true,"fixedWidth":true,"grabbingEnabled":false,"halosEnabled":true,"id":"FF13F669-5FB5-4901-8F8B-15E46B34DB0B","isInputLine":true,"isLockOwner":false,"lastFindLoc":18,"layout":{"__isSmartRef__":true,"id":1058},"name":"CategoryText","owner":{"__isSmartRef__":true,"id":848},"previousSelection":[0,14],"savedTextString":"PartsBin/Basic","scripts":[],"shape":{"__isSmartRef__":true,"id":1059},"showsHalos":false,"submorphs":[],"textChunks":[{"__isSmartRef__":true,"id":1060}],"_WordBreak":"break-all","isBeingDragged":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(200.0,50.0)","distanceToDragEvent":"lively.pt(170.4,-10.1)"},"1057":{"morph":{"__isSmartRef__":true,"id":1056},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1058":{"moveHorizontal":true,"resizeWidth":false},"1059":{"_BorderRadius":4.5,"_BorderStyle":"solid","_BorderWidth":1,"_ClipMode":"hidden","_Opacity":1,"_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_BorderColor","_Extent","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(220,220,220)","_Extent":"lively.pt(260.0,20.0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(4,2,0,0)","_Position":"lively.pt(0.0,0.0)"},"1060":{"style":{"__isSmartRef__":true,"id":1061},"chunkOwner":{"__isSmartRef__":true,"id":1056},"_id":"_418","storedString":"PartsBin/sd1213","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1061":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1062":{"askForDiffViewer":{"__isSmartRef__":true,"id":1063},"checkForUpdates":{"__isSmartRef__":true,"id":1067},"copyToPartsBin":{"__isSmartRef__":true,"id":1071},"onCancel":{"__isSmartRef__":true,"id":1079},"onPublish":{"__isSmartRef__":true,"id":1083},"onRemove":{"__isSmartRef__":true,"id":1087},"reset":{"__isSmartRef__":true,"id":1091},"setTarget":{"__isSmartRef__":true,"id":1095},"showDiff":{"__isSmartRef__":true,"id":1099}},"1063":{"funcProperties":{"__isSmartRef__":true,"id":1064},"source":"function askForDiffViewer() {\n $world.confirm('A newer version of '+this.get('NameText').textString+' is available. Show diff?', function (bool) {bool && this.showDiff()}.bind(this))\n}","varMapping":{"__isSmartRef__":true,"id":1066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1064":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1065},"user":"undefined"},"1065":{"isSerializedDate":true,"string":"Fri Mar 23 2012 15:08:43 GMT+0100 (Mitteleuropäische Zeit)"},"1066":{"this":{"__isSmartRef__":true,"id":848}},"1067":{"funcProperties":{"__isSmartRef__":true,"id":1068},"source":"function checkForUpdates() {\n var space = lively.PartsBin.partsSpaceNamed(this.get('CategoryText').textString),\n name = this.get('NameText').textString,\n fileUrl = space.getURL().withFilename(encodeURI(name))+'.json';\n\n var webR = new WebResource(fileUrl);\n \n if (webR.exists()) {\n var rev = webR.getHeadRevision().headRevision;\n if (this.target.getPartsBinMetaInfo().revisionOnLoad == rev) \n alertOK(\"No changes since last update.\")\n else {\n this.askForDiffViewer();\n }\n }\n else \n alertOK(\"Part does not exist in PartsBin.\") \n \n}","varMapping":{"__isSmartRef__":true,"id":1070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1068":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1069},"user":"undefined"},"1069":{"isSerializedDate":true,"string":"Fri Mar 23 2012 15:12:03 GMT+0100 (Mitteleuropäische Zeit)"},"1070":{"this":{"__isSmartRef__":true,"id":848}},"1071":{"funcProperties":{"__isSmartRef__":true,"id":1072},"source":"function copyToPartsBin(morph) {\n var name = this.get('NameText').textString\n\n var info = morph.getPartsBinMetaInfo();\n morph.setName(name);\n\n info.partsSpaceName = this.get('CategoryText').textString\n info.comment = this.get('CommentText').textString\n\n if (! info.changes) info.changes = [];\n var change = { \n date: new Date(), \n author: this.world().getUserName(), \n message: this.get('CommitMessageText').textString,\n id: Strings.newUUID()\n }\n info.changes.push(change) \n\n morph.copyToPartsBin();\n}","varMapping":{"__isSmartRef__":true,"id":1074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1072":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1073},"user":"jenslincke"},"1073":{"isSerializedDate":true,"string":"Fri Oct 28 2011 15:13:21 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1074":{"this":{"__isSmartRef__":true,"id":848},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1075}},"1075":{"$super":{"__isSmartRef__":true,"id":1076}},"1076":{"funcProperties":{"__isSmartRef__":true,"id":1077},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","varMapping":{"__isSmartRef__":true,"id":1078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1077":{},"1078":{"name":"copyToPartsBin","obj":{"__isSmartRef__":true,"id":848}},"1079":{"funcProperties":{"__isSmartRef__":true,"id":1080},"source":"function onCancel() {\n alertOK(\"cancel upload \") \n this.owner.remove()\n}","varMapping":{"__isSmartRef__":true,"id":1082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1080":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1081},"user":"jenslincke"},"1081":{"isSerializedDate":true,"string":"Wed Oct 19 2011 14:52:17 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1082":{"this":{"__isSmartRef__":true,"id":848}},"1083":{"funcProperties":{"__isSmartRef__":true,"id":1084},"source":"function onPublish() {\n if (!this.target) alert(\"No target to upload\");\n this.copyToPartsBin(this.target);\n}","varMapping":{"__isSmartRef__":true,"id":1086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1084":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1085},"user":"undefined"},"1085":{"isSerializedDate":true,"string":"Thu Mar 29 2012 15:46:31 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1086":{"this":{"__isSmartRef__":true,"id":848}},"1087":{"funcProperties":{"__isSmartRef__":true,"id":1088},"source":"function onRemove() {\n $world.publishPartDialog && $world.publishPartDialog.remove()\n}","varMapping":{"__isSmartRef__":true,"id":1090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1088":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1089},"user":"undefined"},"1089":{"isSerializedDate":true,"string":"Thu Mar 29 2012 15:54:34 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1090":{"this":{"__isSmartRef__":true,"id":848}},"1091":{"funcProperties":{"__isSmartRef__":true,"id":1092},"source":"function reset() {\n this.setTarget(null)\n \n}","varMapping":{"__isSmartRef__":true,"id":1094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1092":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1093},"user":"jenslincke"},"1093":{"isSerializedDate":true,"string":"Wed Oct 19 2011 14:45:36 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1094":{"this":{"__isSmartRef__":true,"id":848}},"1095":{"funcProperties":{"__isSmartRef__":true,"id":1096},"source":"function setTarget(morph) {\n this.target = morph \n if (!morph) {\n this.get('NameText').textString = 'Anonymous';\n this.get('CategoryText').textString = 'Default';\n this.get('CommentText').textString = 'no comment'; \n this.get('CommitMessageText').textString = 'no comment' \n return\n }\n var info = this.target.getPartsBinMetaInfo();\n this.get('NameText').textString = info.partName || morph.getName();\n if (info.partsSpaceName) this.get('CategoryText').textString = info.partsSpaceName;\n if (info.comment) this.get('CommentText').textString = info.comment; \n\n}","varMapping":{"__isSmartRef__":true,"id":1098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1096":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1097},"user":"jenslincke"},"1097":{"isSerializedDate":true,"string":"Fri Apr 20 2012 11:59:07 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1098":{"this":{"__isSmartRef__":true,"id":848}},"1099":{"funcProperties":{"__isSmartRef__":true,"id":1100},"source":"function showDiff() {\n if (this.target) {\n if (typeof(this.target.showThreeWayDiff) === 'function') {\n this.target.showThreeWayDiff();\n }\n else {\n alert('Three Way Diff is not implemented yet')\n }\n }\n}","varMapping":{"__isSmartRef__":true,"id":1102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1100":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1101},"user":"undefined"},"1101":{"isSerializedDate":true,"string":"Thu Mar 22 2012 10:32:37 GMT+0100 (Mitteleuropäische Zeit)"},"1102":{"this":{"__isSmartRef__":true,"id":848}},"1103":{"morph":{"__isSmartRef__":true,"id":846},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1104":{"adjustForNewBounds":true},"1105":{"changes":[{"__isSmartRef__":true,"id":1106},{"__isSmartRef__":true,"id":1108},{"__isSmartRef__":true,"id":1110},{"__isSmartRef__":true,"id":1112},{"__isSmartRef__":true,"id":1114},{"__isSmartRef__":true,"id":1116},{"__isSmartRef__":true,"id":1118},{"__isSmartRef__":true,"id":1120},{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1124},{"__isSmartRef__":true,"id":1126},{"__isSmartRef__":true,"id":1128},{"__isSmartRef__":true,"id":1130},{"__isSmartRef__":true,"id":1132}],"comment":"A dialog for publishing parts in the PartsBin. Automatically invoked when invoking the \"Publish\" menu option.","migrationLevel":4,"partName":"PublishPartDialog","partsSpaceName":"PartsBin/Dialogs","requiredModules":[],"lastModifiedDate":{"__isSmartRef__":true,"id":1134},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1106":{"author":"undefined","date":{"__isSmartRef__":true,"id":1107},"id":"61086210-FA8D-49B7-9E8F-E1E202A9ECD7","message":"resetted view"},"1107":{"isSerializedDate":true,"string":"Wed Mar 21 2012 14:50:23 GMT+0100 (Mitteleuropäische Zeit)"},"1108":{"author":"undefined","date":{"__isSmartRef__":true,"id":1109},"id":"93AC78DB-FFE8-40AC-B8FC-34B0936B39A7","message":"added show diff button"},"1109":{"isSerializedDate":true,"string":"Wed Mar 21 2012 14:49:44 GMT+0100 (Mitteleuropäische Zeit)"},"1110":{"author":"undefined","date":{"__isSmartRef__":true,"id":1111},"id":"A5F4EACF-EF62-483F-B8B3-65966A895FA4","message":""},"1111":{"isSerializedDate":true,"string":"Tue Mar 20 2012 13:00:03 GMT+0100 (Mitteleuropäische Zeit)"},"1112":{"author":"jenslincke","date":{"__isSmartRef__":true,"id":1113},"message":"first commit of Publish dialog using the publish dialog itself!"},"1113":{"isSerializedDate":true,"string":"Wed Oct 19 2011 14:54:16 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1114":{"author":"jenslincke","date":{"__isSmartRef__":true,"id":1115},"message":""},"1115":{"isSerializedDate":true,"string":"Wed Oct 19 2011 14:52:26 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1116":{"author":"jenslincke","date":{"__isSmartRef__":true,"id":1117},"message":"store an uuid when publishing an object"},"1117":{"isSerializedDate":true,"string":"Fri Oct 28 2011 15:15:02 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1118":{"author":"jenslincke","date":{"__isSmartRef__":true,"id":1119},"message":""},"1119":{"isSerializedDate":true,"string":"Fri Oct 28 2011 16:06:16 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1120":{"author":"jenslincke","date":{"__isSmartRef__":true,"id":1121},"id":"1A260BD5-E668-4BD4-B7A2-94E087AB4CE1","message":"- fixed issue 283 (Reproduction: Open part, select publish from menu, focus part name input field in dialog, press enter.-> window pane disappears; window decoration stays; part is not published)"},"1121":{"isSerializedDate":true,"string":"Thu Jan 26 2012 12:10:41 GMT+0100 (Mitteleuropäische Zeit)"},"1122":{"author":"undefined","date":{"__isSmartRef__":true,"id":1123},"id":"00A6DFFB-70D2-44A4-B5F9-0778E1CA5724","message":"init for change - don't remove on click"},"1123":{"isSerializedDate":true,"string":"Tue Mar 20 2012 12:04:27 GMT+0100 (Mitteleuropäische Zeit)"},"1124":{"author":"undefined","date":{"__isSmartRef__":true,"id":1125},"id":"2BD37BED-1605-4FD2-8D2C-25552A379B49","message":"added possibility to show diff and adapted to new publishing workflow (check for overwrites)"},"1125":{"isSerializedDate":true,"string":"Thu Mar 22 2012 10:30:02 GMT+0100 (Mitteleuropäische Zeit)"},"1126":{"author":"robertkrahn","date":{"__isSmartRef__":true,"id":1127},"id":"0FC68ADF-8995-4DFA-8713-AACEE168096E","message":"Fixed the issue that there were no line breaks allowed in the comment / commit text fields"},"1127":{"isSerializedDate":true,"string":"Tue Aug 07 2012 01:22:26 GMT+0200 (Mitteleuropäische Sommerzeit)"},"1128":{"date":{"__isSmartRef__":true,"id":1129},"author":"jenslincke","message":"changed colors (Marko Chief Color Advisor)","id":"7C1CA387-560D-471B-A0D9-4669D6CDA738"},"1129":{"isSerializedDate":true,"string":"Thu Nov 22 2012 14:45:14 GMT+0100 (Mitteleuropäische Zeit)"},"1130":{"date":{"__isSmartRef__":true,"id":1131},"author":"jenslincke","message":"reset title bar","id":"91E7578B-97E5-4572-A83F-EA928CE8B43C"},"1131":{"isSerializedDate":true,"string":"Thu Nov 29 2012 09:58:57 GMT+0100 (Mitteleuropäische Zeit)"},"1132":{"date":{"__isSmartRef__":true,"id":1133},"author":"jenslincke","message":"no comment","id":"E3BAAF1D-646D-4D98-9081-826BD0EFA4A5"},"1133":{"isSerializedDate":true,"string":"Thu Nov 29 2012 10:57:31 GMT+0100 (Mitteleuropäische Zeit)"},"1134":{"isSerializedDate":true,"string":"Thu Nov 29 2012 10:54:37 GMT+0100 (Mitteleuropäische Zeit)"},"1135":{"_BorderRadius":0,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_StrokeOpacity":0,"__serializedExpressions__":["_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(479.0,437.0)","_Padding":"lively.rect(0,0,0,0)"},"1136":{"_ClipMode":"visible","_Rotation":0,"_Scale":1,"attributeConnections":[{"__isSmartRef__":true,"id":1137}],"cornerName":"bottomRight","derivationIds":[7147,"16E962DF-21E9-4FE6-8B9B-953F0E908113","ADD0B5C0-0DC6-4D8E-9C2A-0EC7E3C71F21","F0667EB1-BF07-4E63-BA56-99189F82C865","DFDE68D2-3731-46DE-ADC8-56E32998CE07","D914121B-05B0-490E-A9F7-FE9AB53455A3","685BF0CF-E831-4670-98CD-A84F0E9D3C1A","7F4A1B67-C3C5-4398-9FC6-EEECF75FF81D","ABACD15A-2A09-48B6-91CF-E5BD3A9974FB","06D7E052-8590-4522-B7F3-1A59D4B017E7","64688F71-E370-4CC3-815D-3FE4545735AC","82AF7869-92D1-43A8-83CE-315C60557E32","CDD21940-F284-424B-B564-D6371A616F86","CDA1FA5A-B36D-40D1-9004-9FBAD3A12AAE"],"doNotCopyProperties":["$$cornerName"],"doNotSerialize":["$$cornerName"],"dragStartPoint":null,"draggingEnabled":true,"droppingEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":1138},"halosEnabled":true,"id":"BFE24303-407F-4C81-A075-55B6DADDE6A2","isResizeCorner":true,"moved":true,"name":"ResizeCorner","originalTargetBounds":null,"originalTargetExtent":null,"originalTargetInnerBounds":null,"owner":{"__isSmartRef__":true,"id":846},"partsBinMetaInfo":{"__isSmartRef__":true,"id":1139},"registeredForMouseEvents":true,"relativeOrigin":null,"scripts":[],"shape":{"__isSmartRef__":true,"id":1140},"showsHalos":false,"submorphs":[],"__serializedExpressions__":["_Position","distanceToDragEvent","originalExtent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1141},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(469.0,427.0)","distanceToDragEvent":"lively.pt(42.0,-10.0)","originalExtent":"lively.pt(239.0,138.0)"},"1137":{"sourceAttrName":"cornerName","sourceObj":{"__isSmartRef__":true,"id":1136},"targetMethodName":"alignToOwner","targetObj":{"__isSmartRef__":true,"id":1136},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1138":{"morph":{"__isSmartRef__":true,"id":1136},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1139":{"comment":"Resize an object without using halos.","migrationLevel":2,"partName":"ResizeCorner","partsSpaceName":"PartsBin/Widgets/","revisionOnLoad":140152,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1140":{"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_BorderColor","_Extent","_Fill","_Padding","position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":"Color.rgb(145,145,145)","_Extent":"lively.pt(10.0,10.0)","_Fill":"Color.rgb(66,66,66)","_Padding":"lively.rect(0,0,0,0)","position":"lively.pt(0.0,0.0)"},"1141":{"alignToOwner":{"__isSmartRef__":true,"id":1142},"morphMenuItems":{"__isSmartRef__":true,"id":1145},"onDrag":{"__isSmartRef__":true,"id":1152},"onDragEnd":{"__isSmartRef__":true,"id":1160},"onDragStart":{"__isSmartRef__":true,"id":1168},"reset":{"__isSmartRef__":true,"id":1176}},"1142":{"funcProperties":{"__isSmartRef__":true,"id":1143},"source":"function alignToOwner() {\n this.align(this.bounds()[this.cornerName](), this.owner.shape.bounds()[this.cornerName]() )\n}","varMapping":{"__isSmartRef__":true,"id":1144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1143":{},"1144":{"this":{"__isSmartRef__":true,"id":1136}},"1145":{"funcProperties":{"__isSmartRef__":true,"id":1146},"source":"function morphMenuItems() {\n return $super().concat([\n [\"corner\", [\n [\"top left\", function() { this.cornerName = 'topLeft'}.bind(this)],\n [\"top right\", function() { this.cornerName = 'topRight'}.bind(this)],\n [\"bottom right\", function() { this.cornerName = 'bottomRight'}.bind(this)],\n [\"bottom left\", function() { this.cornerName = 'bottomLeft'}.bind(this)],\n ]]\n ])\t\n}","varMapping":{"__isSmartRef__":true,"id":1147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1146":{},"1147":{"this":{"__isSmartRef__":true,"id":1136},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1148}},"1148":{"$super":{"__isSmartRef__":true,"id":1149}},"1149":{"funcProperties":{"__isSmartRef__":true,"id":1150},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","varMapping":{"__isSmartRef__":true,"id":1151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1150":{},"1151":{"name":"morphMenuItems","obj":{"__isSmartRef__":true,"id":1136}},"1152":{"funcProperties":{"__isSmartRef__":true,"id":1153},"source":"function onDrag(evt) {\n // alert(\"onDrag\")\n // this.owner.setPosition(pt(0,0))\n // this.owner.setOrigin(pt(0,0))\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n \n // moveDelta = moveDelta.maxPt(pt(0,0))\n var ownerExtent = this.owner.getExtent();\n\n // TODO does not work\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n if (maxDelta == 0) return;\n var factor = ownerExtent.x / ownerExtent.y\n moveDelta = pt(maxDelta * factor, maxDelta )\n }\n var accessor = \"with\" + this.cornerName.charAt(0).toUpperCase() + this.cornerName.substring(1);\n\n var newCorner = this.originalTargetBounds[this.cornerName]().addPt(moveDelta);\n var newBounds = this.originalTargetBounds[accessor ](newCorner);\n\n this.owner.setBounds(newBounds);\n \n // var newExtent = this.originalTargetExtent.addPt(moveDelta)\n // alertOK(\"new extent\" + newExtent)\n // this.owner.setExtent(newExtent);\n this.owner.submorphs.select(function(ea) {\n return ea.isResizeCorner\n }).invoke('alignToOwner');\n if (this.owner.halos) {\n this.owner.halos.invoke('alignAtTarget')\n }\n // alertOK(\"relative \" + this.relativeOrigin)\n var newOrigin = pt(0,0).extent(this.owner.getExtent()).relativeToAbsPoint(this.relativeOrigin)\n\n // TODO IMPLEMENT updating the origin does not work yet\n // this.owner.setOrigin(newOrigin);\n // alertOK(\"new origin \" + newOrigin)\n\n}","varMapping":{"__isSmartRef__":true,"id":1155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1153":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1154},"user":"sstamm"},"1154":{"isSerializedDate":true,"string":"Thu Feb 23 2012 12:08:52 GMT+0100 (Mitteleuropäische Zeit)"},"1155":{"this":{"__isSmartRef__":true,"id":1136},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1156}},"1156":{"$super":{"__isSmartRef__":true,"id":1157}},"1157":{"funcProperties":{"__isSmartRef__":true,"id":1158},"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 }","varMapping":{"__isSmartRef__":true,"id":1159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1158":{},"1159":{"name":"onDrag","obj":{"__isSmartRef__":true,"id":1136}},"1160":{"funcProperties":{"__isSmartRef__":true,"id":1161},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetBounds = null;\n this.relativeOrigin = null;\n}","varMapping":{"__isSmartRef__":true,"id":1163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1161":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1162},"user":"sstamm"},"1162":{"isSerializedDate":true,"string":"Thu Feb 23 2012 12:09:00 GMT+0100 (Mitteleuropäische Zeit)"},"1163":{"this":{"__isSmartRef__":true,"id":1136},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1164}},"1164":{"$super":{"__isSmartRef__":true,"id":1165}},"1165":{"funcProperties":{"__isSmartRef__":true,"id":1166},"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 }","varMapping":{"__isSmartRef__":true,"id":1167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1166":{},"1167":{"name":"onDragEnd","obj":{"__isSmartRef__":true,"id":1136}},"1168":{"funcProperties":{"__isSmartRef__":true,"id":1169},"source":"function onDragStart(evt) {\n var absToRelativePoint = function (r, absPt) {\n\t\treturn new Point(\n\t\t\t(absPt.x - r.x) / r.width,\n\t\t\t(absPt.y - r.y) / r.height)\n\t}\n // absToRelativePoint(new Rectangle(10,10,100,100), pt(20,20))\n // absToRelativePoint(new Rectangle(10,10,100,100), pt(0,0))\n // absToRelativePoint(new Rectangle(-100,-100,200,200), pt(0,0))\n\n\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetBounds= this.owner.bounds();\n this.relativeOrigin = absToRelativePoint(pt(0,0).extent(this.owner.getExtent()), this.owner.getOrigin())\n}","varMapping":{"__isSmartRef__":true,"id":1171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1169":{"tags":[],"timestamp":{"__isSmartRef__":true,"id":1170},"user":"sstamm"},"1170":{"isSerializedDate":true,"string":"Thu Feb 23 2012 12:08:40 GMT+0100 (Mitteleuropäische Zeit)"},"1171":{"this":{"__isSmartRef__":true,"id":1136},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1172}},"1172":{"$super":{"__isSmartRef__":true,"id":1173}},"1173":{"funcProperties":{"__isSmartRef__":true,"id":1174},"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 }","varMapping":{"__isSmartRef__":true,"id":1175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1174":{},"1175":{"name":"onDragStart","obj":{"__isSmartRef__":true,"id":1136}},"1176":{"funcProperties":{"__isSmartRef__":true,"id":1177},"source":"function reset() {\n this.isResizeCorner = true\n this.cornerName = 'bottomRight'\n this.setExtent(pt(10,10));\n this.setPosition(pt(0,0))\n}","varMapping":{"__isSmartRef__":true,"id":1178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1177":{},"1178":{"this":{"__isSmartRef__":true,"id":1136}},"1179":{"submorphs":[{"__isSmartRef__":true,"id":1180},{"__isSmartRef__":true,"id":1186},{"__isSmartRef__":true,"id":1199},{"__isSmartRef__":true,"id":1211}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1224},"eventHandler":{"__isSmartRef__":true,"id":1225},"_ClipMode":"visible","derivationIds":["7F2F2823-877B-454C-84EB-725AB48DDB39","9DAC655E-F6CE-47F2-A10E-96FC2E163CA1"],"id":"AFA7A71B-FC8E-4BBA-BBC8-AA487AF86CAC","droppingEnabled":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1226},"windowMorph":{"__isSmartRef__":true,"id":846},"label":{"__isSmartRef__":true,"id":1180},"closeButton":{"__isSmartRef__":true,"id":1186},"menuButton":{"__isSmartRef__":true,"id":1199},"collapseButton":{"__isSmartRef__":true,"id":1211},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":846},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"1180":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1181},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1182}],"eventHandler":{"__isSmartRef__":true,"id":1184},"_ClipMode":"hidden","derivationIds":["A690BA51-C5D5-44FD-90C3-AB1D767BAAB7","5099C734-AAFC-438A-9956-AEA02652C8E5"],"id":"5D0B2B89-C7A8-489B-AB57-8FEFD75F6374","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"layout":{"__isSmartRef__":true,"id":1185},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1179},"_StyleClassNames":["window-title"],"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(20.0,3.0)"},"1181":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(420.0,18.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1182":{"style":{"__isSmartRef__":true,"id":1183},"chunkOwner":{"__isSmartRef__":true,"id":1180},"_id":"_2170","storedString":"Publish in PartsBin","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1183":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1184":{"morph":{"__isSmartRef__":true,"id":1180},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1185":{"resizeWidth":true},"1186":{"submorphs":[{"__isSmartRef__":true,"id":1187}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1192},"eventHandler":{"__isSmartRef__":true,"id":1193},"_ClipMode":"visible","derivationIds":["5CE8ED0B-9B20-49FE-84A3-C4BBFB608DA2","61C44023-E4BF-41AC-8B50-1D1090F00DE5"],"id":"7E374179-284E-48C3-9EBF-2B53F4C954CE","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":1187},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":1179},"layout":{"__isSmartRef__":true,"id":1194},"_StyleClassNames":["close"],"attributeConnections":[{"__isSmartRef__":true,"id":1195},{"__isSmartRef__":true,"id":1197}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(459.0,3.0)"},"1187":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1188},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1189}],"eventHandler":{"__isSmartRef__":true,"id":1191},"_ClipMode":"hidden","derivationIds":["2912D7D0-02F2-414D-BD53-ED6C7F8DBE0B","356257A5-ED2C-40F0-854D-3B2F792F303D"],"id":"DBCBB812-0E46-4FCE-9311-F07DDE829DD8","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1186},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,-1.0)"},"1188":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1189":{"style":{"__isSmartRef__":true,"id":1190},"chunkOwner":{"__isSmartRef__":true,"id":1187},"_id":"_2172","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1190":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1191":{"morph":{"__isSmartRef__":true,"id":1187},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1192":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"1193":{"morph":{"__isSmartRef__":true,"id":1186},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1194":{"moveHorizontal":true},"1195":{"sourceObj":{"__isSmartRef__":true,"id":1186},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":846},"targetMethodName":"getCloseHelp","varMapping":{"__isSmartRef__":true,"id":1196},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1196":{"source":{"__isSmartRef__":true,"id":1186},"target":{"__isSmartRef__":true,"id":846}},"1197":{"sourceObj":{"__isSmartRef__":true,"id":1186},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":846},"targetMethodName":"initiateShutdown","varMapping":{"__isSmartRef__":true,"id":1198},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1198":{"source":{"__isSmartRef__":true,"id":1186},"target":{"__isSmartRef__":true,"id":846}},"1199":{"submorphs":[{"__isSmartRef__":true,"id":1200}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1205},"eventHandler":{"__isSmartRef__":true,"id":1206},"_ClipMode":"visible","derivationIds":["A7FA40A4-F29E-4570-92BF-F78E1C00D3EB","3AC17936-B2BF-44C6-B326-9071C9C5D23F"],"id":"61F36A36-8D40-4706-82C9-5A169D0D0A8B","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":1200},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":1179},"attributeConnections":[{"__isSmartRef__":true,"id":1207},{"__isSmartRef__":true,"id":1209}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"1200":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1201},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1202}],"eventHandler":{"__isSmartRef__":true,"id":1204},"_ClipMode":"hidden","derivationIds":["BDC5DD9B-DE40-4FDD-AA67-8A7BDA277AB5","BCEE5262-22DE-4D41-9074-294E4121D56C"],"id":"CBAD96A6-5438-4278-8665-8FDA7393B520","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1199},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,0.0)"},"1201":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(18.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1202":{"style":{"__isSmartRef__":true,"id":1203},"chunkOwner":{"__isSmartRef__":true,"id":1200},"_id":"_2174","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1203":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1204":{"morph":{"__isSmartRef__":true,"id":1200},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1205":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"1206":{"morph":{"__isSmartRef__":true,"id":1199},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1207":{"sourceObj":{"__isSmartRef__":true,"id":1199},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":846},"targetMethodName":"getMenuHelp","varMapping":{"__isSmartRef__":true,"id":1208},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1208":{"source":{"__isSmartRef__":true,"id":1199},"target":{"__isSmartRef__":true,"id":846}},"1209":{"sourceObj":{"__isSmartRef__":true,"id":1199},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":846},"targetMethodName":"showTargetMorphMenu","varMapping":{"__isSmartRef__":true,"id":1210},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1210":{"source":{"__isSmartRef__":true,"id":1199},"target":{"__isSmartRef__":true,"id":846}},"1211":{"submorphs":[{"__isSmartRef__":true,"id":1212}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1217},"eventHandler":{"__isSmartRef__":true,"id":1218},"_ClipMode":"visible","derivationIds":["73941EFE-62E0-4AFD-B15E-C9447809FD60","2FB05F48-6D05-4DC9-89A6-6D2E7B48F11C"],"id":"826655D1-5FEC-430C-885F-BF515E61F372","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":1212},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":1179},"layout":{"__isSmartRef__":true,"id":1219},"attributeConnections":[{"__isSmartRef__":true,"id":1220},{"__isSmartRef__":true,"id":1222}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(440.0,3.0)"},"1212":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1213},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1214}],"eventHandler":{"__isSmartRef__":true,"id":1216},"_ClipMode":"hidden","derivationIds":["66A9385E-35FA-4BB8-89BB-4566D7CFBA1F","E2CA0F2A-CFD4-4939-9A62-4BA456BC9CE0"],"id":"AAE0D9DE-6E9D-4DD4-9680-D9D3A4D7D172","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1211},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,1.0)"},"1213":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"1214":{"style":{"__isSmartRef__":true,"id":1215},"chunkOwner":{"__isSmartRef__":true,"id":1212},"_id":"_2176","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1215":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1216":{"morph":{"__isSmartRef__":true,"id":1212},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1217":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"1218":{"morph":{"__isSmartRef__":true,"id":1211},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1219":{"moveHorizontal":true},"1220":{"sourceObj":{"__isSmartRef__":true,"id":1211},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":846},"targetMethodName":"getCollapseHelp","varMapping":{"__isSmartRef__":true,"id":1221},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1221":{"source":{"__isSmartRef__":true,"id":1211},"target":{"__isSmartRef__":true,"id":846}},"1222":{"sourceObj":{"__isSmartRef__":true,"id":1211},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":846},"targetMethodName":"toggleCollapse","varMapping":{"__isSmartRef__":true,"id":1223},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1223":{"source":{"__isSmartRef__":true,"id":1211},"target":{"__isSmartRef__":true,"id":846}},"1224":{"_AppearanceStylingMode":true,"_BorderStylingMode":true,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(479.0,22.0)","_Padding":"lively.rect(0,0,0,0)"},"1225":{"morph":{"__isSmartRef__":true,"id":1179},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1226":{"resizeWidth":true,"adjustForNewBounds":true},"isSimplifiedRegistry":true}}]]>