{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":22},{"__isSmartRef__":true,"id":32},{"__isSmartRef__":true,"id":42}],"scripts":[{"__isSmartRef__":true,"id":56}],"id":"AE2DC0AA-F8FC-4E4C-81BC-660BE0F9128D","shape":{"__isSmartRef__":true,"id":57},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"note","partsBinMetaInfo":{"__isSmartRef__":true,"id":58},"eventHandler":{"__isSmartRef__":true,"id":79},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37"],"partTests":{"__isSmartRef__":true,"id":80},"_ClipMode":"visible","moved":true,"layout":{"__isSmartRef__":true,"id":85},"reframeHandle":{"__isSmartRef__":true,"id":86},"isBeingDragged":false,"rightReframeHandle":{"__isSmartRef__":true,"id":90},"bottomReframeHandle":{"__isSmartRef__":true,"id":94},"__serializedExpressions__":["_Position","timeStamp","distanceToDragEvent","timeChanged"],"isCopyMorphRef":true,"morphRefId":1,"authorID":314159265,"itemName":"note","_Rotation":0,"_Scale":1,"seqNo":1,"latestModel":{"__isSmartRef__":true,"id":98},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":99},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","timeStamp":"new Date(\"Wed Oct 09 2013 16:38:32 GMT-0700 (PDT)\")","distanceToDragEvent":"lively.pt(183.0,-15.0)","timeChanged":"new Date(\"Fri Oct 18 2013 00:23:41 GMT-0700 (PDT)\")"},"1":{"submorphs":[],"scripts":[],"id":"B1DE3951-CECA-45A9-AC0B-7C7650D577C1","shape":{"__isSmartRef__":true,"id":2},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"content","partsBinMetaInfo":{"__isSmartRef__":true,"id":3},"textChunks":[{"__isSmartRef__":true,"id":11}],"charsReplaced":"a","lastFindLoc":10,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":13},"_ClipMode":"auto","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":0},"layout":{"__isSmartRef__":true,"id":14},"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"previousSelection":[11,11],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(9.0,30.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(210.0,-15.0)"},"2":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(252.0,205.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4},{"__isSmartRef__":true,"id":5},{"__isSmartRef__":true,"id":6},{"__isSmartRef__":true,"id":7},{"__isSmartRef__":true,"id":8},{"__isSmartRef__":true,"id":9},{"__isSmartRef__":true,"id":10}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"4":{"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)\")"},"5":{"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194","__serializedExpressions__":["date"],"date":"new Date(\"Tue May 08 2012 05:18:18 GMT-0700 (PDT)\")"},"6":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9","__serializedExpressions__":["date"],"date":"new Date(\"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)\")"},"7":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF","__serializedExpressions__":["date"],"date":"new Date(\"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)\")"},"8":{"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)).  This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F","__serializedExpressions__":["date"],"date":"new Date(\"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)\")"},"9":{"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)\")"},"10":{"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598","__serializedExpressions__":["date"],"date":"new Date(\"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)\")"},"11":{"style":{"__isSmartRef__":true,"id":12},"morph":{"__isSmartRef__":true,"id":1},"chunkOwner":{"__isSmartRef__":true,"id":1},"storedString":"Here is a thought...","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12":{"fontSize":13,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"14":{"resizeWidth":true,"resizeHeight":true},"15":{"getModelData":{"__isSmartRef__":true,"id":16},"setModelData":{"__isSmartRef__":true,"id":19}},"16":{"varMapping":{"__isSmartRef__":true,"id":17},"source":"function getModelData() {\n    return this.getTextString()\n}","funcProperties":{"__isSmartRef__":true,"id":18},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17":{"this":{"__isSmartRef__":true,"id":1}},"18":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":[],"timestamp":"new Date(\"Tue Oct 15 2013 16:15:46 GMT-0700 (PDT)\")"},"19":{"varMapping":{"__isSmartRef__":true,"id":20},"source":"function setModelData(str) {\n    this.setTextString(str);\n}","funcProperties":{"__isSmartRef__":true,"id":21},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20":{"this":{"__isSmartRef__":true,"id":1}},"21":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":[],"timestamp":"new Date(\"Wed Oct 16 2013 22:19:34 GMT-0700 (PDT)\")"},"22":{"submorphs":[{"__isSmartRef__":true,"id":23}],"scripts":[],"shape":{"__isSmartRef__":true,"id":28},"_ClipMode":"visible","derivationIds":["F5349740-F1B1-42CC-8127-57AC06C62AAB"],"id":"4F9E3470-7876-40D2-98BA-7513FDD1B4A9","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":23},"_PreviousBorderWidth":0,"_StyleClassNames":["Morph","Button","WindowControl","close"],"eventHandler":{"__isSmartRef__":true,"id":29},"isPressed":false,"showsHalos":false,"name":"WindowControl","owner":{"__isSmartRef__":true,"id":0},"attributeConnections":[{"__isSmartRef__":true,"id":30}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(245.1,7.1)"},"23":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":24},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":25}],"_ClipMode":"hidden","derivationIds":["DB8F286E-6A6F-45B9-8131-5671931597F1"],"id":"D26AA0B8-1F02-4240-B2E3-09488FC90C62","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":22},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":27},"__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)"},"24":{"_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(16.0,19.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"25":{"style":{"__isSmartRef__":true,"id":26},"chunkOwner":{"__isSmartRef__":true,"id":23},"_id":"_5705","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"27":{"morph":{"__isSmartRef__":true,"id":23},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"28":{"_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)"},"29":{"morph":{"__isSmartRef__":true,"id":22},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30":{"sourceObj":{"__isSmartRef__":true,"id":22},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"remove","varMapping":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"31":{"source":{"__isSmartRef__":true,"id":22},"target":{"__isSmartRef__":true,"id":0}},"32":{"submorphs":[{"__isSmartRef__":true,"id":33}],"scripts":[],"shape":{"__isSmartRef__":true,"id":38},"_ClipMode":"visible","derivationIds":["F5349740-F1B1-42CC-8127-57AC06C62AAB","4F9E3470-7876-40D2-98BA-7513FDD1B4A9"],"id":"767B0BD1-B999-437F-A345-99E4428A42BD","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":33},"_PreviousBorderWidth":0,"_StyleClassNames":["Morph","Button","WindowControl"],"eventHandler":{"__isSmartRef__":true,"id":39},"isPressed":false,"showsHalos":false,"name":"WindowControl1","owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position","distanceToDragEvent"],"attributeConnections":[{"__isSmartRef__":true,"id":40}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(188.1,8.1)","distanceToDragEvent":"lively.pt(35.9,-15.1)"},"33":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":34},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":35}],"_ClipMode":"hidden","derivationIds":["DB8F286E-6A6F-45B9-8131-5671931597F1","D26AA0B8-1F02-4240-B2E3-09488FC90C62"],"id":"7820B032-87CB-445A-AAF5-301D5319683B","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":32},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":37},"__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)"},"34":{"_BorderWidth":0,"__serializedExpressions__":["_Fill","_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(0,204,0)","_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)"},"35":{"style":{"__isSmartRef__":true,"id":36},"chunkOwner":{"__isSmartRef__":true,"id":33},"_id":"_7217","storedString":"C","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37":{"morph":{"__isSmartRef__":true,"id":33},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"38":{"_BorderWidth":1,"_StrokeOpacity":0,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"39":{"morph":{"__isSmartRef__":true,"id":32},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"40":{"sourceObj":{"__isSmartRef__":true,"id":32},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"copyToHand","varMapping":{"__isSmartRef__":true,"id":41},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"41":{"source":{"__isSmartRef__":true,"id":32},"target":{"__isSmartRef__":true,"id":0}},"42":{"submorphs":[{"__isSmartRef__":true,"id":43}],"scripts":[],"shape":{"__isSmartRef__":true,"id":48},"_ClipMode":"visible","derivationIds":["F5349740-F1B1-42CC-8127-57AC06C62AAB","4F9E3470-7876-40D2-98BA-7513FDD1B4A9","767B0BD1-B999-437F-A345-99E4428A42BD"],"id":"78760DFC-1C40-42B5-90D5-4CC41D9ACF77","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":43},"_PreviousBorderWidth":0,"_StyleClassNames":["Morph","Button","WindowControl"],"eventHandler":{"__isSmartRef__":true,"id":49},"isPressed":false,"showsHalos":false,"name":"WindowControl2","attributeConnections":[{"__isSmartRef__":true,"id":50}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__serializedExpressions__":["_Position","distanceToDragEvent"],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":52},"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(218.1,7.1)","distanceToDragEvent":"lively.pt(36.9,-12.1)"},"43":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":44},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":45}],"_ClipMode":"hidden","derivationIds":["DB8F286E-6A6F-45B9-8131-5671931597F1","D26AA0B8-1F02-4240-B2E3-09488FC90C62","7820B032-87CB-445A-AAF5-301D5319683B"],"id":"D8B37155-3924-478F-89CB-1885CFBF6CAB","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":42},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"eventsAreDisabled":true,"_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":47},"__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)"},"44":{"_BorderWidth":0,"__serializedExpressions__":["_Fill","_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(204,204,0)","_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)"},"45":{"style":{"__isSmartRef__":true,"id":46},"chunkOwner":{"__isSmartRef__":true,"id":43},"_id":"_796","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"46":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"47":{"morph":{"__isSmartRef__":true,"id":43},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"48":{"_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)"},"49":{"morph":{"__isSmartRef__":true,"id":42},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"50":{"sourceObj":{"__isSmartRef__":true,"id":42},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"copyToHand","varMapping":{"__isSmartRef__":true,"id":51},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"51":{"source":{"__isSmartRef__":true,"id":42},"target":{"__isSmartRef__":true,"id":0}},"52":{"copyToHand":{"__isSmartRef__":true,"id":53}},"53":{"varMapping":{"__isSmartRef__":true,"id":54},"source":"function copyToHand() {\n    var newMorph = this.copy();\n        // FIXME copied from CopyHalo -- should be in Morph\n        this.world().addMorph(newMorph);\n        newMorph.align(\n            newMorph.worldPoint(pt(0,0)),\n            this.worldPoint(pt(0,0)));\n    this.world().firstHand().grabMorph(newMorph);\n}","funcProperties":{"__isSmartRef__":true,"id":55},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"54":{"this":{"__isSmartRef__":true,"id":42}},"55":{"user":"Dan","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Tue Oct 15 2013 14:49:52 GMT-0700 (PDT)\")"},"56":{"target":{"__isSmartRef__":true,"id":0},"selector":"checkForChanges","args":[],"stopped":false,"tickTime":1000,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"57":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":9.86,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(269.0,242.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(235,222,87)","_Padding":"lively.rect(0,0,0,0)"},"58":{"partsSpaceName":"PartsBin/Dan","comment":"A simple sticky note morph for testing the BYO database","migrationLevel":8,"partName":"note","changes":[{"__isSmartRef__":true,"id":59},{"__isSmartRef__":true,"id":60},{"__isSmartRef__":true,"id":61},{"__isSmartRef__":true,"id":62},{"__isSmartRef__":true,"id":63},{"__isSmartRef__":true,"id":64},{"__isSmartRef__":true,"id":65},{"__isSmartRef__":true,"id":66},{"__isSmartRef__":true,"id":67},{"__isSmartRef__":true,"id":68},{"__isSmartRef__":true,"id":69},{"__isSmartRef__":true,"id":70},{"__isSmartRef__":true,"id":71},{"__isSmartRef__":true,"id":72},{"__isSmartRef__":true,"id":73},{"__isSmartRef__":true,"id":74},{"__isSmartRef__":true,"id":75},{"__isSmartRef__":true,"id":76},{"__isSmartRef__":true,"id":77},{"__isSmartRef__":true,"id":78}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Oct 16 2013 23:27:13 GMT-0700 (PDT)\")"},"59":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)\")"},"60":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:18:06 GMT-0700 (PDT)\")"},"61":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)\")"},"62":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 06:51:36 GMT-0700 (PDT)\")"},"63":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 06:51:30 GMT-0700 (PDT)\")"},"64":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)\")"},"65":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"66":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)\")"},"67":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)\")"},"68":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)\")"},"69":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)\")"},"70":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)\")"},"71":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)\")"},"72":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Wed May 29 2013 15:36:50 GMT-0700 (PDT)\")"},"73":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)\")"},"74":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)\")"},"75":{"__serializedExpressions__":["date"],"author":"Dan","message":"no comment","id":"F820E454-2828-441F-A75C-BC7766E77BAF","date":"new Date(\"Wed Oct 16 2013 00:39:33 GMT-0700 (PDT)\")"},"76":{"__serializedExpressions__":["date"],"author":"Dan","message":"disabled grabbing of text field","id":"0C9BABCC-1CEC-4CB5-9ACC-8A0A0D552592","date":"new Date(\"Wed Oct 16 2013 10:25:39 GMT-0700 (PDT)\")"},"77":{"__serializedExpressions__":["date"],"author":"Dan","message":"changed checkForChanges and modelObject methods","id":"3D69449D-AF17-4246-8DF4-AB96B5A4FE8A","date":"new Date(\"Wed Oct 16 2013 23:27:13 GMT-0700 (PDT)\")"},"78":{"__serializedExpressions__":["date"],"author":"Dan","message":"Numerous refactorings","id":"10CEFDAE-C48C-4655-AEDE-ABF6EFC6B93A","date":"new Date(\"Fri Oct 18 2013 00:55:54 GMT-0700 (PDT)\")"},"79":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"80":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":81}},"81":{"test01IsMorph":{"__isSmartRef__":true,"id":82}},"82":{"varMapping":{"__isSmartRef__":true,"id":83},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":84},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"83":{"this":{"__isSmartRef__":true,"id":80}},"84":{},"85":{"adjustForNewBounds":true},"86":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":87},"_ClipMode":"visible","derivationIds":[],"id":"F30C3729-F664-4A8A-8261-FECF0F6C7A35","droppingEnabled":true,"halosEnabled":true,"type":"corner","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle corner"],"layout":{"__isSmartRef__":true,"id":88},"owner":null,"eventHandler":{"__isSmartRef__":true,"id":89},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(27.0,15.0)"},"87":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(14.0,14.0)","_Padding":"lively.rect(0,0,0,0)"},"88":{"moveVertical":true,"moveHorizontal":true},"89":{"morph":{"__isSmartRef__":true,"id":86},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"90":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":91},"_ClipMode":"visible","derivationIds":[],"id":"A9143849-48AD-49EE-AED4-49D68BE22B25","droppingEnabled":true,"halosEnabled":true,"type":"right","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle right"],"layout":{"__isSmartRef__":true,"id":92},"owner":null,"eventHandler":{"__isSmartRef__":true,"id":93},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(27.0,0.0)"},"91":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(0.0,250.0)","_Padding":"lively.rect(0,0,0,0)"},"92":{"moveHorizontal":true},"93":{"morph":{"__isSmartRef__":true,"id":90},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"94":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":95},"_ClipMode":"visible","derivationIds":[],"id":"A1832657-7F3D-430C-B2F9-F4854119AE18","droppingEnabled":true,"halosEnabled":true,"type":"bottom","_StyleClassNames":["Morph","Box","ReframeHandle","reframe-handle bottom"],"layout":{"__isSmartRef__":true,"id":96},"owner":null,"eventHandler":{"__isSmartRef__":true,"id":97},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.ReframeHandle","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,15.0)"},"95":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(297.0,0.0)","_Padding":"lively.rect(0,0,0,0)"},"96":{"moveVertical":true},"97":{"morph":{"__isSmartRef__":true,"id":94},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"98":{"itemName":"note","__serializedExpressions__":["timeStamp","timeChanged"],"seqNo":1,"authorID":314159265,"content":"Here is a thought...","timeStamp":"new Date(\"Wed Oct 09 2013 16:38:32 GMT-0700 (PDT)\")","timeChanged":"new Date(\"Fri Oct 18 2013 00:23:41 GMT-0700 (PDT)\")"},"99":{"init":{"__isSmartRef__":true,"id":100},"copyToHand":{"__isSmartRef__":true,"id":103},"beFullView":{"__isSmartRef__":true,"id":106},"beIconView":{"__isSmartRef__":true,"id":109},"beLineView":{"__isSmartRef__":true,"id":112},"checkForChanges":{"__isSmartRef__":true,"id":115},"equalObjects":{"__isSmartRef__":true,"id":118},"dbStoreModel":{"__isSmartRef__":true,"id":121},"dbRetrieveModel":{"__isSmartRef__":true,"id":124},"dbGetDB":{"__isSmartRef__":true,"id":127},"dbSaveView":{"__isSmartRef__":true,"id":130},"asModel":{"__isSmartRef__":true,"id":133},"asReadFromModel":{"__isSmartRef__":true,"id":136},"dbRegister":{"__isSmartRef__":true,"id":139}},"100":{"varMapping":{"__isSmartRef__":true,"id":101},"source":"function init() {  // this.init()\n    // import the window reframe trait\n    // doesn't work yet :-(\n    //this.addScript(lively.morphic.Window.prototype.makeReframeHandles, 'makeReframeHandles');\n    //this.addScript(lively.morphic.Window.prototype.alignAllHandles, 'alignAllHandles');\n    //this.addScript(lively.morphic.Window.prototype.alignWithWindow, 'alignWithWindow');\n    //this.makeReframeHandles()\n    this.timeStamp = new Date();  // creation date\n    this.startStepping(1000, \"checkForChanges\");\n}","funcProperties":{"__isSmartRef__":true,"id":102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"101":{"this":{"__isSmartRef__":true,"id":0}},"102":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":[],"timestamp":"new Date(\"Tue Oct 15 2013 23:45:47 GMT-0700 (PDT)\")"},"103":{"varMapping":{"__isSmartRef__":true,"id":104},"source":"function copyToHand() {\n    var newMorph = this.copy();\n    newMorph.dbRegister();\n        // FIXME copied from CopyHalo\n        this.world().addMorph(newMorph);\n        newMorph.align(\n            newMorph.worldPoint(pt(0,0)),\n            this.worldPoint(pt(0,0)));\n    this.world().firstHand().grabMorph(newMorph);\n}","funcProperties":{"__isSmartRef__":true,"id":105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"104":{"this":{"__isSmartRef__":true,"id":0}},"105":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["view"],"timestamp":"new Date(\"Thu Oct 17 2013 23:44:27 GMT-0700 (PDT)\")"},"106":{"varMapping":{"__isSmartRef__":true,"id":107},"source":"function beFullView() {  // this.beFullView()\n    // coming soon...\n}","funcProperties":{"__isSmartRef__":true,"id":108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"107":{"this":{"__isSmartRef__":true,"id":0}},"108":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["view"],"timestamp":"new Date(\"Thu Oct 17 2013 20:51:18 GMT-0700 (PDT)\")"},"109":{"varMapping":{"__isSmartRef__":true,"id":110},"source":"function beIconView() {  // this.beIconView()\n    // For draggin in and out of serach panes\n    // coming soon...\n}","funcProperties":{"__isSmartRef__":true,"id":111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"110":{"this":{"__isSmartRef__":true,"id":0}},"111":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["view"],"timestamp":"new Date(\"Thu Oct 17 2013 20:52:53 GMT-0700 (PDT)\")"},"112":{"varMapping":{"__isSmartRef__":true,"id":113},"source":"function beLineView() {  // this.beLineView()\n    // For puttin in a list, eg\n    // coming soon\n}","funcProperties":{"__isSmartRef__":true,"id":114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"113":{"this":{"__isSmartRef__":true,"id":0}},"114":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["view"],"timestamp":"new Date(\"Thu Oct 17 2013 20:52:28 GMT-0700 (PDT)\")"},"115":{"varMapping":{"__isSmartRef__":true,"id":116},"source":"function checkForChanges() {\n    // this ticking script keeps views sync'd with the DB\n    var obj = this.asModel();\n    var dbObj = this.dbRetrieveModel();\n\n    if (this.equalObjects(obj, this.latestModel)) {\n        // nothing has changed in the view (morph)\n        // so check for a change in the database\n        if (this.equalObjects(dbObj, this.latestModel)) return;\n        // The database model has changed, so update this view\n        this.asReadFromModel(dbObj);\n        return\n    }\n    // Something has changed because of an edit in this view\n    // so first check if the database has changed under us\n    if (!this.equalObjects(dbObj, this.latestModel)) {\n        // Later we'll do something more intelligent here...\n        console.log(this.itemName + this.seqNo + \" **conflict**\");\n        console.log(\"   overwriting: \" + dbObj.content);\n    }\n    console.log(this.itemName + this.seqNo + \" changed: \" + obj.content);\n    this.dbStoreModel();\n}","funcProperties":{"__isSmartRef__":true,"id":117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"116":{"this":{"__isSmartRef__":true,"id":0}},"117":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["model"],"timestamp":"new Date(\"Fri Oct 18 2013 00:51:47 GMT-0700 (PDT)\")"},"118":{"varMapping":{"__isSmartRef__":true,"id":119},"source":"function equalObjects(a, b) {\n    // Return true if a and b are 'equal' JS objects\n    // [BTW: is there already a way to do this in JS?]\n    for (var p in a) if (a[p] != b[p]) return false\n    return true;\n}","funcProperties":{"__isSmartRef__":true,"id":120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"119":{"this":{"__isSmartRef__":true,"id":0}},"120":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["model"],"timestamp":"new Date(\"Thu Oct 17 2013 20:56:25 GMT-0700 (PDT)\")"},"121":{"varMapping":{"__isSmartRef__":true,"id":122},"source":"function dbStoreModel() {  // this.dbStoreModel()\n    // Store the model for this view in the database\n    var db = this.dbGetDB();\n    this.timeChanged = new Date(); \n    var updatedModel = this.asModel();\n    db[this.timeStamp] = updatedModel;\n    this.latestModel = updatedModel;\n    return;\n}","funcProperties":{"__isSmartRef__":true,"id":123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"122":{"this":{"__isSmartRef__":true,"id":0}},"123":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["database"],"timestamp":"new Date(\"Thu Oct 17 2013 23:08:35 GMT-0700 (PDT)\")"},"124":{"varMapping":{"__isSmartRef__":true,"id":125},"source":"function dbRetrieveModel() {  // this.dbRetrieveModel()\n    // Return the database model for this view\n    return this.dbGetDB()[this.timeStamp];\n}","funcProperties":{"__isSmartRef__":true,"id":126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"125":{"this":{"__isSmartRef__":true,"id":0}},"126":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["database"],"timestamp":"new Date(\"Thu Oct 17 2013 21:07:15 GMT-0700 (PDT)\")"},"127":{"varMapping":{"__isSmartRef__":true,"id":128},"source":"function dbGetDB() {  // this.dbGetDB()\n    // Currently returns a trivially simple local DB\n    return $world.get('DBmorph').DB;\n}","funcProperties":{"__isSmartRef__":true,"id":129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"128":{"this":{"__isSmartRef__":true,"id":0}},"129":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["database"],"timestamp":"new Date(\"Thu Oct 17 2013 15:01:59 GMT-0700 (PDT)\")"},"130":{"varMapping":{"__isSmartRef__":true,"id":131},"source":"function dbSaveView() {  // this.dbSaveView()\n    // Store this as the default view for this item in the database\n    // Note: this will not update other views open at the time\n    var db = this.dbGetDB();\n    db.views[this.itemName] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"131":{"this":{"__isSmartRef__":true,"id":0}},"132":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["view"],"timestamp":"new Date(\"Thu Oct 17 2013 21:37:39 GMT-0700 (PDT)\")"},"133":{"varMapping":{"__isSmartRef__":true,"id":134},"source":"function asModel() {  \n    // JSON.stringify(this.asModel())\n    \n    // Returns a JS object with field data as properties\n    // in adition to a few fixed properties, this scans the morph\n    // for fields, which are basically widgets that know \"getModelData\"\n    var obj = {itemName: this.itemName,\n        timeStamp: this.timeStamp,\n        seqNo: this.seqNo,\n        authorID: this.authorID,\n        timeChanged: this.timeChanged};\n    this.submorphs.forEach(function(morph) {\n        if (morph.getModelData) obj[morph.name] = morph.getModelData()\n    });\n    return obj\n}","funcProperties":{"__isSmartRef__":true,"id":135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"134":{"this":{"__isSmartRef__":true,"id":0}},"135":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["model"],"timestamp":"new Date(\"Thu Oct 17 2013 23:06:28 GMT-0700 (PDT)\")"},"136":{"varMapping":{"__isSmartRef__":true,"id":137},"source":"function asReadFromModel(obj) {\n    this.itemName = obj.itemName;\n    this.timeStamp = obj.timeStamp;\n    this.seqNo = obj.seqNo;\n    this.authorID = obj.authorID;\n    this.timeChanged = obj.timeChanged;\n    this.latestModel = obj;\n    this.submorphs.forEach(function(morph) {\n        if (morph.setModelData) morph.setModelData(obj[morph.name]);\n    });\n    return this\n}","funcProperties":{"__isSmartRef__":true,"id":138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"137":{"this":{"__isSmartRef__":true,"id":0}},"138":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["model"],"timestamp":"new Date(\"Fri Oct 18 2013 00:21:44 GMT-0700 (PDT)\")"},"139":{"varMapping":{"__isSmartRef__":true,"id":140},"source":"function dbRegister() {\n    this.timeStamp = new Date();\n    this.seqNo = ($world.byoSeqNo || 0) + 1;\n    $world.byoSeqNo = this.seqNo;\n    this.authorID = this.authorID;  // **should come from local state\n    this.dbStoreModel();\n    console.log(this.itemName + this.seqNo + \" created.\");\n}","funcProperties":{"__isSmartRef__":true,"id":141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"140":{"this":{"__isSmartRef__":true,"id":0}},"141":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":["database"],"timestamp":"new Date(\"Thu Oct 17 2013 23:46:40 GMT-0700 (PDT)\")"},"isSimplifiedRegistry":true}}