{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":16},{"__isSmartRef__":true,"id":31},{"__isSmartRef__":true,"id":46},{"__isSmartRef__":true,"id":322}],"scripts":[],"id":"8C08E1C5-318E-43AA-B6FF-4A60C96DBB86","shape":{"__isSmartRef__":true,"id":9424},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Minesweeper","partsBinMetaInfo":{"__isSmartRef__":true,"id":9425},"eventHandler":{"__isSmartRef__":true,"id":9446},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1"],"partTests":{"__isSmartRef__":true,"id":9447},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9452},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(178.0,-8.0)"},"1":{"submorphs":[],"scripts":[],"id":"57692EB3-D337-4024-860E-2A102D74FDCD","shape":{"__isSmartRef__":true,"id":2},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"BombsRemaining","partsBinMetaInfo":{"__isSmartRef__":true,"id":3},"textChunks":[{"__isSmartRef__":true,"id":12}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":14},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":15},"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,6.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(71.0,-14.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(205.7,24.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"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},{"__isSmartRef__":true,"id":11}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"4":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"5":{"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)\")"},"6":{"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)\")"},"7":{"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)\")"},"8":{"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)\")"},"9":{"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)\")"},"10":{"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)\")"},"11":{"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)\")"},"12":{"style":{"__isSmartRef__":true,"id":13},"chunkOwner":{"__isSmartRef__":true,"id":1},"_id":"_16048","storedString":"Bombs Remaining: 10","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"13":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15":{"resizeWidth":true},"16":{"submorphs":[],"scripts":[],"id":"67DADB80-92D3-4769-A16F-1B9D4006ABD6","shape":{"__isSmartRef__":true,"id":17},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":48,"name":"YouLose","partsBinMetaInfo":{"__isSmartRef__":true,"id":18},"textChunks":[{"__isSmartRef__":true,"id":27}],"charsReplaced":"Win","lastFindLoc":7,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":29},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","DAFBEB12-F8F1-4B36-A64C-92E38948E351"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[7,7],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":30},"_PreviousBorderWidth":0,"_Align":"center","owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"_Visible":false,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(67.5,62.5)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(72.0,-9.0)","_TextColor":"Color.rgb(22,13,237)"},"17":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(225,12,12)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(107.7,170.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"18":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":19},{"__isSmartRef__":true,"id":20},{"__isSmartRef__":true,"id":21},{"__isSmartRef__":true,"id":22},{"__isSmartRef__":true,"id":23},{"__isSmartRef__":true,"id":24},{"__isSmartRef__":true,"id":25},{"__isSmartRef__":true,"id":26}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"19":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"20":{"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)\")"},"21":{"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)\")"},"22":{"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)\")"},"23":{"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)\")"},"24":{"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)\")"},"25":{"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)\")"},"26":{"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)\")"},"27":{"style":{"__isSmartRef__":true,"id":28},"morph":{"__isSmartRef__":true,"id":16},"chunkOwner":{"__isSmartRef__":true,"id":16},"storedString":"You Lose","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(22,13,237)"},"29":{"morph":{"__isSmartRef__":true,"id":16},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"30":{"resizeWidth":true},"31":{"submorphs":[],"scripts":[],"id":"DAFBEB12-F8F1-4B36-A64C-92E38948E351","shape":{"__isSmartRef__":true,"id":32},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":48,"name":"YouWin","partsBinMetaInfo":{"__isSmartRef__":true,"id":33},"textChunks":[{"__isSmartRef__":true,"id":42}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":44},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[7,7],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":45},"owner":{"__isSmartRef__":true,"id":0},"_PreviousBorderWidth":0,"_Align":"center","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"_Visible":false,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(87.5,62.5)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(73.0,-10.0)","_TextColor":"Color.rgb(22,13,237)"},"32":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(225,12,12)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(107.7,170.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"33":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":34},{"__isSmartRef__":true,"id":35},{"__isSmartRef__":true,"id":36},{"__isSmartRef__":true,"id":37},{"__isSmartRef__":true,"id":38},{"__isSmartRef__":true,"id":39},{"__isSmartRef__":true,"id":40},{"__isSmartRef__":true,"id":41}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"34":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"35":{"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)\")"},"36":{"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)\")"},"37":{"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)\")"},"38":{"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)\")"},"39":{"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)\")"},"40":{"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)\")"},"41":{"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)\")"},"42":{"style":{"__isSmartRef__":true,"id":43},"morph":{"__isSmartRef__":true,"id":31},"chunkOwner":{"__isSmartRef__":true,"id":31},"storedString":"You Win","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(22,13,237)"},"44":{"morph":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"45":{"resizeWidth":true},"46":{"submorphs":[{"__isSmartRef__":true,"id":47},{"__isSmartRef__":true,"id":53},{"__isSmartRef__":true,"id":233},{"__isSmartRef__":true,"id":256}],"scripts":[],"id":"E4904A77-0496-4F03-B4E4-93D0B8FA25D9","shape":{"__isSmartRef__":true,"id":290},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ControlPanel","partsBinMetaInfo":{"__isSmartRef__":true,"id":291},"eventHandler":{"__isSmartRef__":true,"id":312},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1"],"partTests":{"__isSmartRef__":true,"id":313},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position","distanceToDragEvent"],"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":318},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,267.0)","distanceToDragEvent":"lively.pt(160.0,-23.0)"},"47":{"submorphs":[],"scripts":[],"id":"56AC8EA1-05A3-44B3-ACD2-40E69E6347A4","shape":{"__isSmartRef__":true,"id":48},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":49},"itemList":["Beginner","Intermediate","Expert","Custom"],"selectOnMove":false,"showsHalos":false,"name":"LevelList","partsBinMetaInfo":{"__isSmartRef__":true,"id":50},"derivationIds":[6545,"5EAE7699-D308-4EDF-B821-CD94785475A3"],"selection":"Beginner","owner":{"__isSmartRef__":true,"id":46},"changeTriggered":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"selectedLineNo":0,"attributeConnections":[{"__isSmartRef__":true,"id":51}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"__LivelyClassName__":"lively.morphic.DropDownList","__SourceModuleName__":"Global.lively.morphic.Lists","_Position":"lively.pt(116.0,7.0)","distanceToDragEvent":"lively.pt(62.0,-16.0)"},"48":{"_BorderWidth":0,"__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(103.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"49":{"morph":{"__isSmartRef__":true,"id":47},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"50":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Inputs/","comment":"\"Native\" drop down list","partName":"DropDownList","__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Sep 05 2012 16:01:35 GMT-0700 (PDT)\")"},"51":{"sourceObj":{"__isSmartRef__":true,"id":47},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":46},"targetMethodName":"init","varMapping":{"__isSmartRef__":true,"id":52},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"52":{"source":{"__isSmartRef__":true,"id":47},"target":{"__isSmartRef__":true,"id":46}},"53":{"submorphs":[{"__isSmartRef__":true,"id":54},{"__isSmartRef__":true,"id":101},{"__isSmartRef__":true,"id":148}],"scripts":[],"id":"91D4179C-B594-45C5-9317-296DA3A35A64","shape":{"__isSmartRef__":true,"id":206},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"CustomPanel","partsBinMetaInfo":{"__isSmartRef__":true,"id":207},"eventHandler":{"__isSmartRef__":true,"id":227},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","E4904A77-0496-4F03-B4E4-93D0B8FA25D9"],"partTests":{"__isSmartRef__":true,"id":228},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":46},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(16.0,35.0)","distanceToDragEvent":"lively.pt(134.0,-13.0)"},"54":{"submorphs":[{"__isSmartRef__":true,"id":55},{"__isSmartRef__":true,"id":59}],"scripts":[],"id":"4123AC48-182E-490D-AE90-CA3612F7C719","shape":{"__isSmartRef__":true,"id":74},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"RowBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":75},"eventHandler":{"__isSmartRef__":true,"id":95},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1"],"partTests":{"__isSmartRef__":true,"id":96},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":53},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(5.0,8.0)","distanceToDragEvent":"lively.pt(41.0,-14.0)"},"55":{"submorphs":[],"scripts":[],"id":"5EAE7699-D308-4EDF-B821-CD94785475A3","shape":{"__isSmartRef__":true,"id":56},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":57},"itemList":[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"selectOnMove":false,"showsHalos":false,"name":"RowList","partsBinMetaInfo":{"__isSmartRef__":true,"id":58},"derivationIds":[6545],"owner":{"__isSmartRef__":true,"id":54},"selectedLineNo":2,"selection":10,"changeTriggered":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.DropDownList","__SourceModuleName__":"Global.lively.morphic.Lists","_Position":"lively.pt(5.0,31.0)","distanceToDragEvent":"lively.pt(36.0,-11.0)"},"56":{"_BorderWidth":0,"__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(48.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"57":{"morph":{"__isSmartRef__":true,"id":55},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"58":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Inputs/","comment":"\"Native\" drop down list","partName":"DropDownList","__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Sep 05 2012 16:01:35 GMT-0700 (PDT)\")"},"59":{"submorphs":[],"scripts":[],"id":"861E0E61-5534-416A-84F3-A0F80A63A172","shape":{"__isSmartRef__":true,"id":60},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"RowLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":61},"textChunks":[{"__isSmartRef__":true,"id":70}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":72},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":73},"owner":{"__isSmartRef__":true,"id":54},"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.0,6.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(43.0,-11.0)"},"60":{"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(41.7,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"61":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"62":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"63":{"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)\")"},"64":{"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)\")"},"65":{"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)\")"},"66":{"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)\")"},"67":{"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)\")"},"68":{"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)\")"},"69":{"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)\")"},"70":{"style":{"__isSmartRef__":true,"id":71},"morph":{"__isSmartRef__":true,"id":59},"chunkOwner":{"__isSmartRef__":true,"id":59},"storedString":"Rows","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"71":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"72":{"morph":{"__isSmartRef__":true,"id":59},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"73":{"resizeWidth":true},"74":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"__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(66.0,65.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"75":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":76},{"__isSmartRef__":true,"id":77},{"__isSmartRef__":true,"id":78},{"__isSmartRef__":true,"id":79},{"__isSmartRef__":true,"id":80},{"__isSmartRef__":true,"id":81},{"__isSmartRef__":true,"id":82},{"__isSmartRef__":true,"id":83},{"__isSmartRef__":true,"id":84},{"__isSmartRef__":true,"id":85},{"__isSmartRef__":true,"id":86},{"__isSmartRef__":true,"id":87},{"__isSmartRef__":true,"id":88},{"__isSmartRef__":true,"id":89},{"__isSmartRef__":true,"id":90},{"__isSmartRef__":true,"id":91},{"__isSmartRef__":true,"id":92},{"__isSmartRef__":true,"id":93},{"__isSmartRef__":true,"id":94}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"76":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"77":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"78":{"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)\")"},"79":{"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)\")"},"80":{"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)\")"},"81":{"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)\")"},"82":{"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)\")"},"83":{"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)\")"},"84":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"85":{"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)\")"},"86":{"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)\")"},"87":{"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)\")"},"88":{"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)\")"},"89":{"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)\")"},"90":{"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)\")"},"91":{"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)\")"},"92":{"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)\")"},"93":{"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)\")"},"94":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"95":{"morph":{"__isSmartRef__":true,"id":54},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"96":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":97}},"97":{"test01IsMorph":{"__isSmartRef__":true,"id":98}},"98":{"varMapping":{"__isSmartRef__":true,"id":99},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"99":{"this":{"__isSmartRef__":true,"id":96}},"100":{},"101":{"submorphs":[{"__isSmartRef__":true,"id":102},{"__isSmartRef__":true,"id":106}],"scripts":[],"id":"48DA4E0E-B05B-4948-9C79-CD7054D58752","shape":{"__isSmartRef__":true,"id":121},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ColumnBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":122},"eventHandler":{"__isSmartRef__":true,"id":142},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4123AC48-182E-490D-AE90-CA3612F7C719"],"partTests":{"__isSmartRef__":true,"id":143},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":53},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(65.0,6.0)","distanceToDragEvent":"lively.pt(43.0,-13.0)"},"102":{"submorphs":[],"scripts":[],"id":"EF7653EF-6D30-4C7D-A703-B24029EFF8FD","shape":{"__isSmartRef__":true,"id":103},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":104},"itemList":[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"selectOnMove":false,"showsHalos":false,"name":"ColumnList","partsBinMetaInfo":{"__isSmartRef__":true,"id":105},"derivationIds":[6545,"5EAE7699-D308-4EDF-B821-CD94785475A3"],"owner":{"__isSmartRef__":true,"id":101},"selectedLineNo":0,"selection":8,"changeTriggered":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.DropDownList","__SourceModuleName__":"Global.lively.morphic.Lists","_Position":"lively.pt(5.0,31.0)","distanceToDragEvent":"lively.pt(36.0,-11.0)"},"103":{"_BorderWidth":0,"__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(48.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"104":{"morph":{"__isSmartRef__":true,"id":102},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"105":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Inputs/","comment":"\"Native\" drop down list","partName":"DropDownList","__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Sep 05 2012 16:01:35 GMT-0700 (PDT)\")"},"106":{"submorphs":[],"scripts":[],"id":"E04A8FF1-0F03-439B-A6C6-AE4C3E8EE18D","shape":{"__isSmartRef__":true,"id":107},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"ColumnLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":108},"textChunks":[{"__isSmartRef__":true,"id":117}],"charsReplaced":"Rows","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":119},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","861E0E61-5534-416A-84F3-A0F80A63A172"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[1,1],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":120},"owner":{"__isSmartRef__":true,"id":101},"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(3.0,7.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(32.0,-18.0)"},"107":{"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(41.7,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"108":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":110},{"__isSmartRef__":true,"id":111},{"__isSmartRef__":true,"id":112},{"__isSmartRef__":true,"id":113},{"__isSmartRef__":true,"id":114},{"__isSmartRef__":true,"id":115},{"__isSmartRef__":true,"id":116}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"109":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"110":{"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)\")"},"111":{"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)\")"},"112":{"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)\")"},"113":{"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)\")"},"114":{"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)\")"},"115":{"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)\")"},"116":{"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)\")"},"117":{"style":{"__isSmartRef__":true,"id":118},"morph":{"__isSmartRef__":true,"id":106},"chunkOwner":{"__isSmartRef__":true,"id":106},"storedString":"Columns","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"118":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"119":{"morph":{"__isSmartRef__":true,"id":106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"120":{"resizeWidth":true},"121":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"__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(66.0,65.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"122":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":123},{"__isSmartRef__":true,"id":124},{"__isSmartRef__":true,"id":125},{"__isSmartRef__":true,"id":126},{"__isSmartRef__":true,"id":127},{"__isSmartRef__":true,"id":128},{"__isSmartRef__":true,"id":129},{"__isSmartRef__":true,"id":130},{"__isSmartRef__":true,"id":131},{"__isSmartRef__":true,"id":132},{"__isSmartRef__":true,"id":133},{"__isSmartRef__":true,"id":134},{"__isSmartRef__":true,"id":135},{"__isSmartRef__":true,"id":136},{"__isSmartRef__":true,"id":137},{"__isSmartRef__":true,"id":138},{"__isSmartRef__":true,"id":139},{"__isSmartRef__":true,"id":140},{"__isSmartRef__":true,"id":141}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"123":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"124":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"125":{"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)\")"},"126":{"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)\")"},"127":{"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)\")"},"128":{"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)\")"},"129":{"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)\")"},"130":{"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)\")"},"131":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"132":{"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)\")"},"133":{"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)\")"},"134":{"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)\")"},"135":{"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)\")"},"136":{"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)\")"},"137":{"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)\")"},"138":{"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)\")"},"139":{"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)\")"},"140":{"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)\")"},"141":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"142":{"morph":{"__isSmartRef__":true,"id":101},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"143":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":144}},"144":{"test01IsMorph":{"__isSmartRef__":true,"id":145}},"145":{"varMapping":{"__isSmartRef__":true,"id":146},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"146":{"this":{"__isSmartRef__":true,"id":143}},"147":{},"148":{"submorphs":[{"__isSmartRef__":true,"id":149},{"__isSmartRef__":true,"id":164}],"scripts":[],"id":"33850DE8-DEBE-47E5-8796-E02E9CEA86F9","shape":{"__isSmartRef__":true,"id":179},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"BombBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":180},"eventHandler":{"__isSmartRef__":true,"id":200},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4123AC48-182E-490D-AE90-CA3612F7C719"],"partTests":{"__isSmartRef__":true,"id":201},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":53},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(136.0,6.0)","distanceToDragEvent":"lively.pt(41.0,-15.0)"},"149":{"submorphs":[],"scripts":[],"id":"00572CC6-3F47-4EEB-AF57-3150C7F338D2","shape":{"__isSmartRef__":true,"id":150},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"BombLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":151},"textChunks":[{"__isSmartRef__":true,"id":160}],"charsReplaced":"Rows","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":162},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","861E0E61-5534-416A-84F3-A0F80A63A172"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[2,2],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":163},"owner":{"__isSmartRef__":true,"id":148},"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(8.0,6.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(43.0,-11.0)"},"150":{"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(41.7,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"151":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":152},{"__isSmartRef__":true,"id":153},{"__isSmartRef__":true,"id":154},{"__isSmartRef__":true,"id":155},{"__isSmartRef__":true,"id":156},{"__isSmartRef__":true,"id":157},{"__isSmartRef__":true,"id":158},{"__isSmartRef__":true,"id":159}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"152":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"153":{"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)\")"},"154":{"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)\")"},"155":{"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)\")"},"156":{"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)\")"},"157":{"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)\")"},"158":{"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)\")"},"159":{"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)\")"},"160":{"style":{"__isSmartRef__":true,"id":161},"morph":{"__isSmartRef__":true,"id":149},"chunkOwner":{"__isSmartRef__":true,"id":149},"storedString":"Bombs","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"161":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"162":{"morph":{"__isSmartRef__":true,"id":149},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"163":{"resizeWidth":true},"164":{"submorphs":[],"scripts":[],"id":"AA6B95B2-DEC5-45A8-AA3D-619F6361B479","shape":{"__isSmartRef__":true,"id":165},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"BombField","partsBinMetaInfo":{"__isSmartRef__":true,"id":166},"textChunks":[{"__isSmartRef__":true,"id":175}],"charsReplaced":"7777777777778","lastFindLoc":13,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":177},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","861E0E61-5534-416A-84F3-A0F80A63A172","4C34EC00-1DA8-4520-A1F8-1C21F6D436F0"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":178},"owner":{"__isSmartRef__":true,"id":148},"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(15.0,28.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(28.0,-22.0)"},"165":{"fill":null,"_BorderWidth":1.776,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(35.7,23.6)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"166":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":167},{"__isSmartRef__":true,"id":168},{"__isSmartRef__":true,"id":169},{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":171},{"__isSmartRef__":true,"id":172},{"__isSmartRef__":true,"id":173},{"__isSmartRef__":true,"id":174}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"167":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"168":{"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)\")"},"169":{"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)\")"},"170":{"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)\")"},"171":{"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)\")"},"172":{"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)\")"},"173":{"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)\")"},"174":{"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)\")"},"175":{"style":{"__isSmartRef__":true,"id":176},"chunkOwner":{"__isSmartRef__":true,"id":164},"_id":"_13672","storedString":"59","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"176":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"177":{"morph":{"__isSmartRef__":true,"id":164},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"178":{"resizeWidth":true},"179":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"__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(66.0,65.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"180":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":181},{"__isSmartRef__":true,"id":182},{"__isSmartRef__":true,"id":183},{"__isSmartRef__":true,"id":184},{"__isSmartRef__":true,"id":185},{"__isSmartRef__":true,"id":186},{"__isSmartRef__":true,"id":187},{"__isSmartRef__":true,"id":188},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":190},{"__isSmartRef__":true,"id":191},{"__isSmartRef__":true,"id":192},{"__isSmartRef__":true,"id":193},{"__isSmartRef__":true,"id":194},{"__isSmartRef__":true,"id":195},{"__isSmartRef__":true,"id":196},{"__isSmartRef__":true,"id":197},{"__isSmartRef__":true,"id":198},{"__isSmartRef__":true,"id":199}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"181":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"182":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"183":{"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)\")"},"184":{"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)\")"},"185":{"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)\")"},"186":{"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)\")"},"187":{"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)\")"},"188":{"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)\")"},"189":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"190":{"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)\")"},"191":{"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)\")"},"192":{"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)\")"},"193":{"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)\")"},"194":{"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)\")"},"195":{"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)\")"},"196":{"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)\")"},"197":{"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)\")"},"198":{"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)\")"},"199":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"200":{"morph":{"__isSmartRef__":true,"id":148},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"201":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":202}},"202":{"test01IsMorph":{"__isSmartRef__":true,"id":203}},"203":{"varMapping":{"__isSmartRef__":true,"id":204},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"204":{"this":{"__isSmartRef__":true,"id":201}},"205":{},"206":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__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(204.0,78.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)","_Padding":"lively.rect(0,0,0,0)"},"207":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":209},{"__isSmartRef__":true,"id":210},{"__isSmartRef__":true,"id":211},{"__isSmartRef__":true,"id":212},{"__isSmartRef__":true,"id":213},{"__isSmartRef__":true,"id":214},{"__isSmartRef__":true,"id":215},{"__isSmartRef__":true,"id":216},{"__isSmartRef__":true,"id":217},{"__isSmartRef__":true,"id":218},{"__isSmartRef__":true,"id":219},{"__isSmartRef__":true,"id":220},{"__isSmartRef__":true,"id":221},{"__isSmartRef__":true,"id":222},{"__isSmartRef__":true,"id":223},{"__isSmartRef__":true,"id":224},{"__isSmartRef__":true,"id":225},{"__isSmartRef__":true,"id":226}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"208":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"209":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"210":{"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)\")"},"211":{"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)\")"},"212":{"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)\")"},"213":{"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)\")"},"214":{"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)\")"},"215":{"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)\")"},"216":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"217":{"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)\")"},"218":{"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)\")"},"219":{"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)\")"},"220":{"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)\")"},"221":{"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)\")"},"222":{"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)\")"},"223":{"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)\")"},"224":{"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)\")"},"225":{"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)\")"},"226":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"227":{"morph":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"228":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":229}},"229":{"test01IsMorph":{"__isSmartRef__":true,"id":230}},"230":{"varMapping":{"__isSmartRef__":true,"id":231},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"231":{"this":{"__isSmartRef__":true,"id":228}},"232":{},"233":{"submorphs":[{"__isSmartRef__":true,"id":234}],"scripts":[],"shape":{"__isSmartRef__":true,"id":239},"eventHandler":{"__isSmartRef__":true,"id":240},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D"],"id":"72848B07-8AA2-4105-AA4A-87027372E515","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":234},"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":241}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"PlayGame","partsBinMetaInfo":{"__isSmartRef__":true,"id":243},"pinSpecs":[{"__isSmartRef__":true,"id":251}],"owner":{"__isSmartRef__":true,"id":46},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"_StyleClassNames":["Morph","Button"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":252},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(4.0,6.0)","distanceToDragEvent":"lively.pt(46.0,-18.0)"},"234":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":235},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":236}],"eventHandler":{"__isSmartRef__":true,"id":238},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4"],"id":"562743C2-27A4-47F4-883C-4DCD2C149419","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,"owner":{"__isSmartRef__":true,"id":233},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"235":{"_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(100.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"236":{"style":{"__isSmartRef__":true,"id":237},"chunkOwner":{"__isSmartRef__":true,"id":234},"_id":"_15906","storedString":"Play Game","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"237":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"238":{"morph":{"__isSmartRef__":true,"id":234},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"239":{"_BorderWidth":2.184,"_BorderRadius":13.51,"_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)","_Fill":"Color.rgb(247,246,246)"},"240":{"morph":{"__isSmartRef__":true,"id":233},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"241":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":233},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":242},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"242":{"source":{"__isSmartRef__":true,"id":233},"target":{"__isSmartRef__":true,"id":233}},"243":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs/","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":244},{"__isSmartRef__":true,"id":245},{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":247},{"__isSmartRef__":true,"id":248},{"__isSmartRef__":true,"id":249},{"__isSmartRef__":true,"id":250}],"migrationLevel":7,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:11 GMT-0700 (PDT)\")"},"244":{"author":"Dan","message":"no comment","id":"CFEC4071-14FF-4AEB-A399-197884CD18BF","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 17 2013 10:24:50 GMT-0700 (PDT)\")"},"245":{"author":"Dan","message":"no comment","id":"A594459F-DA9B-49DD-A105-547B3F613CC5","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 17 2013 10:22:38 GMT-0700 (PDT)\")"},"246":{"author":"robertkrahn","message":"no comment","id":"BB2EA501-D9AF-414B-A035-E1487DA6F0FD","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 30 2013 20:36:30 GMT-0700 (PDT)\")"},"247":{"author":"robertkrahn","message":"no comment","id":"811BDE87-D8DD-48BB-97B2-7A3C3F3FAE32","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 30 2013 20:35:59 GMT-0700 (PDT)\")"},"248":{"author":"robertkrahn","message":"test","id":"ACA617B4-0416-4E3C-9F4D-171A40F44F0F","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 30 2013 20:34:25 GMT-0700 (PDT)\")"},"249":{"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 11 2012 13:53:16 GMT-0800 (PST)\")"},"250":{"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 11 2012 13:15:42 GMT-0800 (PST)\")"},"251":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"252":{"doAction":{"__isSmartRef__":true,"id":253}},"253":{"varMapping":{"__isSmartRef__":true,"id":254},"source":"function doAction() {\n    this.get('Board').newGame()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"254":{"this":{"__isSmartRef__":true,"id":233}},"255":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 19:02:21 GMT-0700 (PDT)\")"},"256":{"submorphs":[{"__isSmartRef__":true,"id":257},{"__isSmartRef__":true,"id":262}],"scripts":[],"shape":{"__isSmartRef__":true,"id":269},"id":"D966DD4E-1766-4915-8273-656457B197AB","eventHandler":{"__isSmartRef__":true,"id":270},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":271},"name":"Utilities","partsBinMetaInfo":{"__isSmartRef__":true,"id":272},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":46},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":277},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(111.0,16.0)","distanceToDragEvent":"lively.pt(6.0,-24.0)"},"257":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":258},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192"],"id":"487D539C-B6AC-4844-8BDE-85EF6A3BC36F","droppingEnabled":true,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":259},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":260},"owner":{"__isSmartRef__":true,"id":256},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-12.0,-6.6)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"258":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"259":{"morph":{"__isSmartRef__":true,"id":257},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"260":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":261}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"261":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"262":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":263},"_ClipMode":"visible","derivationIds":["630D4C64-089D-4649-B3EE-A1756BB0516D","0D146DC3-75FA-4C0F-9FE3-18DC1B0F40C1","A0372322-59C5-4BFE-BF60-FA8BA74213E2","1CA36217-5801-48C0-98CE-71CEB5568EA2"],"id":"BE54F391-1641-4E05-8C9D-775E2CE6AB5C","droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":264},"name":"Flag","showsHalos":false,"grabbingEnabled":false,"draggingEnabled":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":265},"owner":{"__isSmartRef__":true,"id":256},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-22.0,-17.6)","distanceToDragEvent":"lively.pt(29.0,-17.0)"},"263":{"_ImageURL":"http://livedoor.blogimg.jp/slosoku/imgs/2/7/27acf538.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"264":{"morph":{"__isSmartRef__":true,"id":262},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"265":{"partName":"Flag","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":266},{"__isSmartRef__":true,"id":267},{"__isSmartRef__":true,"id":268}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:22:28 GMT-0700 (PDT)\")"},"266":{"author":"rick","message":"no comment","id":"A0723160-92C3-4129-B65C-47992B00214F","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:22:34 GMT-0700 (PDT)\")"},"267":{"author":"rick","message":"no comment","id":"707FBBBC-5074-44A7-8E18-53BA0D9D8E4F","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:22:26 GMT-0700 (PDT)\")"},"268":{"author":"rick","message":"no comment","id":"D7034371-2327-4383-A2D5-957A4988516B","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:22:13 GMT-0700 (PDT)\")"},"269":{"_ClipMode":"visible","_BorderWidth":3.184,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-5.0,-5.0)","_Extent":"lively.pt(10.0,10.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(105,116,105)"},"270":{"morph":{"__isSmartRef__":true,"id":256},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"271":{},"272":{"partName":"Utilities","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Rick","comment":"Utilities morph for Minesweeper","changes":[{"__isSmartRef__":true,"id":273},{"__isSmartRef__":true,"id":274},{"__isSmartRef__":true,"id":275},{"__isSmartRef__":true,"id":276}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Mon Aug 18 2014 09:45:43 GMT-0700 (PDT)\")"},"273":{"author":null,"message":"no comment","id":"8081E212-F627-4DBF-A925-E884B7F401F7","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jul 12 2013 12:14:02 GMT-0700 (PDT)\")"},"274":{"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 03 2012 00:08:08 GMT-0700 (PDT)\")"},"275":{"author":"robertkrahn","message":"no comment","id":"EE799F0E-9E4A-4AF8-98F7-DAEF09F6A8DC","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 15 2013 11:22:02 GMT-0800 (PST)\")"},"276":{"__serializedExpressions__":["date"],"author":"rick","message":"no comment","id":"6884CEC0-6292-48B0-99A7-94669BD5D941","date":"new Date(\"Mon Aug 18 2014 09:45:43 GMT-0700 (PDT)\")"},"277":{"crossProduct":{"__isSmartRef__":true,"id":278},"makePoints":{"__isSmartRef__":true,"id":281},"positivePoint":{"__isSmartRef__":true,"id":284},"fixMorph":{"__isSmartRef__":true,"id":287}},"278":{"varMapping":{"__isSmartRef__":true,"id":279},"source":"function crossProduct(aList, anotherList) {\n    var listOfLists = aList.map(function(num) {return this.makePoints(num, anotherList)}, this)\n    return listOfLists.flatten()\n}","funcProperties":{"__isSmartRef__":true,"id":280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"279":{"this":{"__isSmartRef__":true,"id":256}},"280":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:06:11 GMT-0700 (PDT)\")"},"281":{"varMapping":{"__isSmartRef__":true,"id":282},"source":"function makePoints(aNumber, aList) {\n    return aList.map(function(num) {return pt(aNumber, num)})\n    \n}","funcProperties":{"__isSmartRef__":true,"id":283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"282":{"this":{"__isSmartRef__":true,"id":256}},"283":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:06:11 GMT-0700 (PDT)\")"},"284":{"varMapping":{"__isSmartRef__":true,"id":285},"source":"function positivePoint(aPoint) {\n    return aPoint.x >= 0 && aPoint.y >= 0\n    \n}","funcProperties":{"__isSmartRef__":true,"id":286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"285":{"this":{"__isSmartRef__":true,"id":256}},"286":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:06:11 GMT-0700 (PDT)\")"},"287":{"varMapping":{"__isSmartRef__":true,"id":288},"source":"function fixMorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"288":{"this":{"__isSmartRef__":true,"id":256}},"289":{"__serializedExpressions__":["timestamp"],"user":"rick","tags":[],"timestamp":"new Date(\"Mon Aug 18 2014 08:52:08 GMT-0700 (PDT)\")"},"290":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__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(240.0,122.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)","_Padding":"lively.rect(0,0,0,0)"},"291":{"partsSpaceName":"PartsBin/Rick","comment":"Control Panel for Minesweeper","migrationLevel":8,"partName":"ControlPanel","changes":[{"__isSmartRef__":true,"id":292},{"__isSmartRef__":true,"id":293},{"__isSmartRef__":true,"id":294},{"__isSmartRef__":true,"id":295},{"__isSmartRef__":true,"id":296},{"__isSmartRef__":true,"id":297},{"__isSmartRef__":true,"id":298},{"__isSmartRef__":true,"id":299},{"__isSmartRef__":true,"id":300},{"__isSmartRef__":true,"id":301},{"__isSmartRef__":true,"id":302},{"__isSmartRef__":true,"id":303},{"__isSmartRef__":true,"id":304},{"__isSmartRef__":true,"id":305},{"__isSmartRef__":true,"id":306},{"__isSmartRef__":true,"id":307},{"__isSmartRef__":true,"id":308},{"__isSmartRef__":true,"id":309},{"__isSmartRef__":true,"id":310},{"__isSmartRef__":true,"id":311}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Mon Aug 18 2014 09:46:20 GMT-0700 (PDT)\")"},"292":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"293":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"294":{"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)\")"},"295":{"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)\")"},"296":{"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)\")"},"297":{"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)\")"},"298":{"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)\")"},"299":{"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)\")"},"300":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"301":{"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)\")"},"302":{"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)\")"},"303":{"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)\")"},"304":{"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)\")"},"305":{"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)\")"},"306":{"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)\")"},"307":{"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)\")"},"308":{"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)\")"},"309":{"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)\")"},"310":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"311":{"__serializedExpressions__":["date"],"author":"rick","message":"no comment","id":"73582D2D-C32C-4534-AB41-798521AC3194","date":"new Date(\"Mon Aug 18 2014 09:46:19 GMT-0700 (PDT)\")"},"312":{"morph":{"__isSmartRef__":true,"id":46},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"313":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":314}},"314":{"test01IsMorph":{"__isSmartRef__":true,"id":315}},"315":{"varMapping":{"__isSmartRef__":true,"id":316},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"316":{"this":{"__isSmartRef__":true,"id":313}},"317":{},"318":{"init":{"__isSmartRef__":true,"id":319}},"319":{"varMapping":{"__isSmartRef__":true,"id":320},"source":"function init() {\n    var parameters = {};\n    parameters['Beginner'] = {rows:9, columns:9, bombs:10}\n    parameters['Intermediate'] = {rows:16, columns:16, bombs:40}\n    parameters['Expert'] = {rows:20, columns:24, bombs:99}\n    var maxBombs = 668  // Microsoft\n    var maxRatio = 668/720; //ibid\n    var expertRatio = 0.2; // for defaults\n    var customRows = this.get('RowList').getSelection();\n    var customCols = this.get('ColumnList').getSelection();\n    var customBombs = this.get('BombField').getTextString();\n    var totalCustomSquares = customRows * customCols;\n    if (isNaN(customBombs)) {\n        customBombs = Math.round(expertRatio * totalCustomSquares, 0)\n    } else if(customBombs <= 10) {\n        customBombs = 10;\n    } else if (customBombs > maxRatio * totalCustomSquares) {\n        customBombs = Math.round(maxRatio * totalCustomSquares, 0)\n    }\n    if (this.get('LevelList').getSelection() == 'Custom') {\n        this.get('BombField').setTextString(customBombs);\n    }\n    \n    parameters['Custom'] = {\n        rows:customRows, columns: customCols, bombs:customBombs\n    }\n    this.get('Board').init(parameters[this.get('LevelList').getSelection()])\n    this.owner.layoutGame()\n}","funcProperties":{"__isSmartRef__":true,"id":321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"320":{"this":{"__isSmartRef__":true,"id":46}},"321":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 19:45:24 GMT-0700 (PDT)\")"},"322":{"submorphs":[{"__isSmartRef__":true,"id":323},{"__isSmartRef__":true,"id":371},{"__isSmartRef__":true,"id":419},{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":611},{"__isSmartRef__":true,"id":659},{"__isSmartRef__":true,"id":707},{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":995},{"__isSmartRef__":true,"id":947},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":1523},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1187},{"__isSmartRef__":true,"id":1235},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1379},{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1571},{"__isSmartRef__":true,"id":1955},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":2387},{"__isSmartRef__":true,"id":2003},{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2195},{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2435},{"__isSmartRef__":true,"id":2819},{"__isSmartRef__":true,"id":2771},{"__isSmartRef__":true,"id":2723},{"__isSmartRef__":true,"id":2675},{"__isSmartRef__":true,"id":2627},{"__isSmartRef__":true,"id":2579},{"__isSmartRef__":true,"id":2531},{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":3251},{"__isSmartRef__":true,"id":2867},{"__isSmartRef__":true,"id":2915},{"__isSmartRef__":true,"id":2963},{"__isSmartRef__":true,"id":3011},{"__isSmartRef__":true,"id":3059},{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3155},{"__isSmartRef__":true,"id":3203},{"__isSmartRef__":true,"id":3299},{"__isSmartRef__":true,"id":3683},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3587},{"__isSmartRef__":true,"id":3539},{"__isSmartRef__":true,"id":3491},{"__isSmartRef__":true,"id":3443},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":4115},{"__isSmartRef__":true,"id":3731},{"__isSmartRef__":true,"id":3779},{"__isSmartRef__":true,"id":3827},{"__isSmartRef__":true,"id":3875},{"__isSmartRef__":true,"id":3923},{"__isSmartRef__":true,"id":3971},{"__isSmartRef__":true,"id":4019},{"__isSmartRef__":true,"id":4067},{"__isSmartRef__":true,"id":4163}],"scripts":[],"id":"91008ACF-FB3B-40F5-819B-5519ED542585","shape":{"__isSmartRef__":true,"id":9233},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperBoard","partsBinMetaInfo":{"__isSmartRef__":true,"id":9234},"eventHandler":{"__isSmartRef__":true,"id":9256},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1"],"partTests":{"__isSmartRef__":true,"id":9257},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"owner":{"__isSmartRef__":true,"id":0},"attributeConnections":[{"__isSmartRef__":true,"id":9262}],"doNotSerialize":["$$bombsRemaining"],"doNotCopyProperties":["$$bombsRemaining"],"bombsRemaining":10,"originalSquare":{"__isSmartRef__":true,"id":9264},"squareStore":[{"__isSmartRef__":true,"id":323},{"__isSmartRef__":true,"id":371},{"__isSmartRef__":true,"id":419},{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":611},{"__isSmartRef__":true,"id":659},{"__isSmartRef__":true,"id":707},{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":995},{"__isSmartRef__":true,"id":947},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":1523},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1187},{"__isSmartRef__":true,"id":1235},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1379},{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1571},{"__isSmartRef__":true,"id":1955},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":2387},{"__isSmartRef__":true,"id":2003},{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2195},{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2435},{"__isSmartRef__":true,"id":2819},{"__isSmartRef__":true,"id":2771},{"__isSmartRef__":true,"id":2723},{"__isSmartRef__":true,"id":2675},{"__isSmartRef__":true,"id":2627},{"__isSmartRef__":true,"id":2579},{"__isSmartRef__":true,"id":2531},{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":3251},{"__isSmartRef__":true,"id":2867},{"__isSmartRef__":true,"id":2915},{"__isSmartRef__":true,"id":2963},{"__isSmartRef__":true,"id":3011},{"__isSmartRef__":true,"id":3059},{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3155},{"__isSmartRef__":true,"id":3203},{"__isSmartRef__":true,"id":3299},{"__isSmartRef__":true,"id":3683},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3587},{"__isSmartRef__":true,"id":3539},{"__isSmartRef__":true,"id":3491},{"__isSmartRef__":true,"id":3443},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":4115},{"__isSmartRef__":true,"id":3731},{"__isSmartRef__":true,"id":3779},{"__isSmartRef__":true,"id":3827},{"__isSmartRef__":true,"id":3875},{"__isSmartRef__":true,"id":3923},{"__isSmartRef__":true,"id":3971},{"__isSmartRef__":true,"id":4019},{"__isSmartRef__":true,"id":4067},{"__isSmartRef__":true,"id":4163}],"height":9,"width":9,"numBombs":10,"squares":{"__isSmartRef__":true,"id":9374},"utilities":{"__isSmartRef__":true,"id":256},"columns":[0,1,2,3,4,5,6,7,8],"rows":[0,1,2,3,4,5,6,7,8],"__serializedExpressions__":["cells.0","cells.1","cells.2","cells.3","cells.4","cells.5","cells.6","cells.7","cells.8","cells.9","cells.10","cells.11","cells.12","cells.13","cells.14","cells.15","cells.16","cells.17","cells.18","cells.19","cells.20","cells.21","cells.22","cells.23","cells.24","cells.25","cells.26","cells.27","cells.28","cells.29","cells.30","cells.31","cells.32","cells.33","cells.34","cells.35","cells.36","cells.37","cells.38","cells.39","cells.40","cells.41","cells.42","cells.43","cells.44","cells.45","cells.46","cells.47","cells.48","cells.49","cells.50","cells.51","cells.52","cells.53","cells.54","cells.55","cells.56","cells.57","cells.58","cells.59","cells.60","cells.61","cells.62","cells.63","cells.64","cells.65","cells.66","cells.67","cells.68","cells.69","cells.70","cells.71","cells.72","cells.73","cells.74","cells.75","cells.76","cells.77","cells.78","cells.79","cells.80","_Position","distanceToDragEvent","dimension"],"cells":["lively.pt(0.0,0.0)","lively.pt(0.0,1.0)","lively.pt(0.0,2.0)","lively.pt(0.0,3.0)","lively.pt(0.0,4.0)","lively.pt(0.0,5.0)","lively.pt(0.0,6.0)","lively.pt(0.0,7.0)","lively.pt(0.0,8.0)","lively.pt(1.0,0.0)","lively.pt(1.0,1.0)","lively.pt(1.0,2.0)","lively.pt(1.0,3.0)","lively.pt(1.0,4.0)","lively.pt(1.0,5.0)","lively.pt(1.0,6.0)","lively.pt(1.0,7.0)","lively.pt(1.0,8.0)","lively.pt(2.0,0.0)","lively.pt(2.0,1.0)","lively.pt(2.0,2.0)","lively.pt(2.0,3.0)","lively.pt(2.0,4.0)","lively.pt(2.0,5.0)","lively.pt(2.0,6.0)","lively.pt(2.0,7.0)","lively.pt(2.0,8.0)","lively.pt(3.0,0.0)","lively.pt(3.0,1.0)","lively.pt(3.0,2.0)","lively.pt(3.0,3.0)","lively.pt(3.0,4.0)","lively.pt(3.0,5.0)","lively.pt(3.0,6.0)","lively.pt(3.0,7.0)","lively.pt(3.0,8.0)","lively.pt(4.0,0.0)","lively.pt(4.0,1.0)","lively.pt(4.0,2.0)","lively.pt(4.0,3.0)","lively.pt(4.0,4.0)","lively.pt(4.0,5.0)","lively.pt(4.0,6.0)","lively.pt(4.0,7.0)","lively.pt(4.0,8.0)","lively.pt(5.0,0.0)","lively.pt(5.0,1.0)","lively.pt(5.0,2.0)","lively.pt(5.0,3.0)","lively.pt(5.0,4.0)","lively.pt(5.0,5.0)","lively.pt(5.0,6.0)","lively.pt(5.0,7.0)","lively.pt(5.0,8.0)","lively.pt(6.0,0.0)","lively.pt(6.0,1.0)","lively.pt(6.0,2.0)","lively.pt(6.0,3.0)","lively.pt(6.0,4.0)","lively.pt(6.0,5.0)","lively.pt(6.0,6.0)","lively.pt(6.0,7.0)","lively.pt(6.0,8.0)","lively.pt(7.0,0.0)","lively.pt(7.0,1.0)","lively.pt(7.0,2.0)","lively.pt(7.0,3.0)","lively.pt(7.0,4.0)","lively.pt(7.0,5.0)","lively.pt(7.0,6.0)","lively.pt(7.0,7.0)","lively.pt(7.0,8.0)","lively.pt(8.0,0.0)","lively.pt(8.0,1.0)","lively.pt(8.0,2.0)","lively.pt(8.0,3.0)","lively.pt(8.0,4.0)","lively.pt(8.0,5.0)","lively.pt(8.0,6.0)","lively.pt(8.0,7.0)","lively.pt(8.0,8.0)"],"_Rotation":0,"_Scale":1,"bombCounts":10,"draggingEnabled":false,"grabbingEnabled":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9375},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(15.5,33.0)","distanceToDragEvent":"lively.pt(151.0,-17.0)","dimension":"lively.rect(0,0,8,8)"},"323":{"submorphs":[{"__isSmartRef__":true,"id":324}],"scripts":[],"id":"F7D2B1E4-28DF-423E-BBF3-828D763F8B97","shape":{"__isSmartRef__":true,"id":339},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":340},"eventHandler":{"__isSmartRef__":true,"id":360},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":361},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":366},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":324},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":371},{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1043}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9171},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(2.0,2.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(0.0,0.0)"},"324":{"submorphs":[],"scripts":[],"id":"28F29D87-D7B1-47A9-B39B-B508C4BD94F5","shape":{"__isSmartRef__":true,"id":325},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":326},"textChunks":[{"__isSmartRef__":true,"id":335}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":337},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":338},"owner":{"__isSmartRef__":true,"id":323},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"325":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"326":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":327},{"__isSmartRef__":true,"id":328},{"__isSmartRef__":true,"id":329},{"__isSmartRef__":true,"id":330},{"__isSmartRef__":true,"id":331},{"__isSmartRef__":true,"id":332},{"__isSmartRef__":true,"id":333},{"__isSmartRef__":true,"id":334}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"327":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"328":{"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)\")"},"329":{"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)\")"},"330":{"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)\")"},"331":{"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)\")"},"332":{"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)\")"},"333":{"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)\")"},"334":{"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)\")"},"335":{"style":{"__isSmartRef__":true,"id":336},"chunkOwner":{"__isSmartRef__":true,"id":324},"_id":"_16049","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"336":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"337":{"morph":{"__isSmartRef__":true,"id":324},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"338":{"resizeWidth":true},"339":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"340":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":341},{"__isSmartRef__":true,"id":342},{"__isSmartRef__":true,"id":343},{"__isSmartRef__":true,"id":344},{"__isSmartRef__":true,"id":345},{"__isSmartRef__":true,"id":346},{"__isSmartRef__":true,"id":347},{"__isSmartRef__":true,"id":348},{"__isSmartRef__":true,"id":349},{"__isSmartRef__":true,"id":350},{"__isSmartRef__":true,"id":351},{"__isSmartRef__":true,"id":352},{"__isSmartRef__":true,"id":353},{"__isSmartRef__":true,"id":354},{"__isSmartRef__":true,"id":355},{"__isSmartRef__":true,"id":356},{"__isSmartRef__":true,"id":357},{"__isSmartRef__":true,"id":358},{"__isSmartRef__":true,"id":359}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"341":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"342":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"343":{"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)\")"},"344":{"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)\")"},"345":{"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)\")"},"346":{"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)\")"},"347":{"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)\")"},"348":{"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)\")"},"349":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"350":{"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)\")"},"351":{"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)\")"},"352":{"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)\")"},"353":{"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)\")"},"354":{"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)\")"},"355":{"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)\")"},"356":{"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)\")"},"357":{"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)\")"},"358":{"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)\")"},"359":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"360":{"morph":{"__isSmartRef__":true,"id":323},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"361":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":362}},"362":{"test01IsMorph":{"__isSmartRef__":true,"id":363}},"363":{"varMapping":{"__isSmartRef__":true,"id":364},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"364":{"this":{"__isSmartRef__":true,"id":361}},"365":{},"366":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":367},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":368},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":369},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"367":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"368":{"morph":{"__isSmartRef__":true,"id":366},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"369":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":370}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"370":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"371":{"submorphs":[{"__isSmartRef__":true,"id":372}],"scripts":[],"id":"384C4E4B-0DB4-4BDD-96D2-A6CAA9498829","shape":{"__isSmartRef__":true,"id":387},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":388},"eventHandler":{"__isSmartRef__":true,"id":408},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":409},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":414},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":372},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":323},{"__isSmartRef__":true,"id":419},{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":995}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9109},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(2.0,27.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(0.0,1.0)"},"372":{"submorphs":[],"scripts":[],"id":"AE7EAA3A-AEDD-4B1B-9520-78AEE1682CC1","shape":{"__isSmartRef__":true,"id":373},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":374},"textChunks":[{"__isSmartRef__":true,"id":383}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":385},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":386},"owner":{"__isSmartRef__":true,"id":371},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"373":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"374":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":375},{"__isSmartRef__":true,"id":376},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":378},{"__isSmartRef__":true,"id":379},{"__isSmartRef__":true,"id":380},{"__isSmartRef__":true,"id":381},{"__isSmartRef__":true,"id":382}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"375":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"376":{"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)\")"},"377":{"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)\")"},"378":{"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)\")"},"379":{"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)\")"},"380":{"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)\")"},"381":{"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)\")"},"382":{"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)\")"},"383":{"style":{"__isSmartRef__":true,"id":384},"chunkOwner":{"__isSmartRef__":true,"id":372},"_id":"_16050","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"384":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"385":{"morph":{"__isSmartRef__":true,"id":372},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"386":{"resizeWidth":true},"387":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"388":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":389},{"__isSmartRef__":true,"id":390},{"__isSmartRef__":true,"id":391},{"__isSmartRef__":true,"id":392},{"__isSmartRef__":true,"id":393},{"__isSmartRef__":true,"id":394},{"__isSmartRef__":true,"id":395},{"__isSmartRef__":true,"id":396},{"__isSmartRef__":true,"id":397},{"__isSmartRef__":true,"id":398},{"__isSmartRef__":true,"id":399},{"__isSmartRef__":true,"id":400},{"__isSmartRef__":true,"id":401},{"__isSmartRef__":true,"id":402},{"__isSmartRef__":true,"id":403},{"__isSmartRef__":true,"id":404},{"__isSmartRef__":true,"id":405},{"__isSmartRef__":true,"id":406},{"__isSmartRef__":true,"id":407}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"389":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"390":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"391":{"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)\")"},"392":{"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)\")"},"393":{"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)\")"},"394":{"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)\")"},"395":{"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)\")"},"396":{"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)\")"},"397":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"398":{"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)\")"},"399":{"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)\")"},"400":{"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)\")"},"401":{"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)\")"},"402":{"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)\")"},"403":{"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)\")"},"404":{"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)\")"},"405":{"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)\")"},"406":{"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)\")"},"407":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"408":{"morph":{"__isSmartRef__":true,"id":371},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"409":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":410}},"410":{"test01IsMorph":{"__isSmartRef__":true,"id":411}},"411":{"varMapping":{"__isSmartRef__":true,"id":412},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"412":{"this":{"__isSmartRef__":true,"id":409}},"413":{},"414":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":415},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":416},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":417},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"415":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"416":{"morph":{"__isSmartRef__":true,"id":414},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"417":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":418}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"418":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"419":{"submorphs":[{"__isSmartRef__":true,"id":420}],"scripts":[],"id":"19709A25-4E32-4E8F-9280-09AFBC03E60F","shape":{"__isSmartRef__":true,"id":435},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":436},"eventHandler":{"__isSmartRef__":true,"id":456},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":457},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":462},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":420},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":371},{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":995},{"__isSmartRef__":true,"id":947}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9047},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(2.0,52.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(0.0,2.0)"},"420":{"submorphs":[],"scripts":[],"id":"28CFA189-E0BA-4AA2-843A-777810D5D1AB","shape":{"__isSmartRef__":true,"id":421},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":422},"textChunks":[{"__isSmartRef__":true,"id":431}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":433},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":434},"owner":{"__isSmartRef__":true,"id":419},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"421":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"422":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":423},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":425},{"__isSmartRef__":true,"id":426},{"__isSmartRef__":true,"id":427},{"__isSmartRef__":true,"id":428},{"__isSmartRef__":true,"id":429},{"__isSmartRef__":true,"id":430}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"423":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"424":{"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)\")"},"425":{"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)\")"},"426":{"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)\")"},"427":{"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)\")"},"428":{"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)\")"},"429":{"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)\")"},"430":{"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)\")"},"431":{"style":{"__isSmartRef__":true,"id":432},"chunkOwner":{"__isSmartRef__":true,"id":420},"_id":"_16051","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"432":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"433":{"morph":{"__isSmartRef__":true,"id":420},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"434":{"resizeWidth":true},"435":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"436":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":438},{"__isSmartRef__":true,"id":439},{"__isSmartRef__":true,"id":440},{"__isSmartRef__":true,"id":441},{"__isSmartRef__":true,"id":442},{"__isSmartRef__":true,"id":443},{"__isSmartRef__":true,"id":444},{"__isSmartRef__":true,"id":445},{"__isSmartRef__":true,"id":446},{"__isSmartRef__":true,"id":447},{"__isSmartRef__":true,"id":448},{"__isSmartRef__":true,"id":449},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":451},{"__isSmartRef__":true,"id":452},{"__isSmartRef__":true,"id":453},{"__isSmartRef__":true,"id":454},{"__isSmartRef__":true,"id":455}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"437":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"438":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"439":{"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)\")"},"440":{"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)\")"},"441":{"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)\")"},"442":{"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)\")"},"443":{"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)\")"},"444":{"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)\")"},"445":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"446":{"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)\")"},"447":{"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)\")"},"448":{"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)\")"},"449":{"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)\")"},"450":{"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)\")"},"451":{"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)\")"},"452":{"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)\")"},"453":{"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)\")"},"454":{"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)\")"},"455":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"456":{"morph":{"__isSmartRef__":true,"id":419},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"457":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":458}},"458":{"test01IsMorph":{"__isSmartRef__":true,"id":459}},"459":{"varMapping":{"__isSmartRef__":true,"id":460},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"460":{"this":{"__isSmartRef__":true,"id":457}},"461":{},"462":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":463},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":464},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":465},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"463":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"464":{"morph":{"__isSmartRef__":true,"id":462},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"465":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":466}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"466":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"467":{"submorphs":[{"__isSmartRef__":true,"id":468}],"scripts":[],"id":"5C3E42D8-58B2-417B-B334-6CD1CECAC722","shape":{"__isSmartRef__":true,"id":483},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":484},"eventHandler":{"__isSmartRef__":true,"id":504},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":505},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":510},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":468},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":419},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":995},{"__isSmartRef__":true,"id":947},{"__isSmartRef__":true,"id":899}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8985},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(2.0,77.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(0.0,3.0)"},"468":{"submorphs":[],"scripts":[],"id":"DB304D14-D1C7-418D-A647-5FE2A7C702BE","shape":{"__isSmartRef__":true,"id":469},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":470},"textChunks":[{"__isSmartRef__":true,"id":479}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":481},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":482},"owner":{"__isSmartRef__":true,"id":467},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"469":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"470":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":471},{"__isSmartRef__":true,"id":472},{"__isSmartRef__":true,"id":473},{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":475},{"__isSmartRef__":true,"id":476},{"__isSmartRef__":true,"id":477},{"__isSmartRef__":true,"id":478}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"471":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"472":{"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)\")"},"473":{"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)\")"},"474":{"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)\")"},"475":{"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)\")"},"476":{"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)\")"},"477":{"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)\")"},"478":{"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)\")"},"479":{"style":{"__isSmartRef__":true,"id":480},"chunkOwner":{"__isSmartRef__":true,"id":468},"_id":"_16052","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"480":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"481":{"morph":{"__isSmartRef__":true,"id":468},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"482":{"resizeWidth":true},"483":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"484":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":485},{"__isSmartRef__":true,"id":486},{"__isSmartRef__":true,"id":487},{"__isSmartRef__":true,"id":488},{"__isSmartRef__":true,"id":489},{"__isSmartRef__":true,"id":490},{"__isSmartRef__":true,"id":491},{"__isSmartRef__":true,"id":492},{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":494},{"__isSmartRef__":true,"id":495},{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":497},{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":499},{"__isSmartRef__":true,"id":500},{"__isSmartRef__":true,"id":501},{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":503}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"485":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"486":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"487":{"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)\")"},"488":{"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)\")"},"489":{"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)\")"},"490":{"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)\")"},"491":{"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)\")"},"492":{"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)\")"},"493":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"494":{"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)\")"},"495":{"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)\")"},"496":{"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)\")"},"497":{"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)\")"},"498":{"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)\")"},"499":{"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)\")"},"500":{"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)\")"},"501":{"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)\")"},"502":{"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)\")"},"503":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"504":{"morph":{"__isSmartRef__":true,"id":467},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"505":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":506}},"506":{"test01IsMorph":{"__isSmartRef__":true,"id":507}},"507":{"varMapping":{"__isSmartRef__":true,"id":508},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"508":{"this":{"__isSmartRef__":true,"id":505}},"509":{},"510":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":511},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":512},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":513},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"511":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"512":{"morph":{"__isSmartRef__":true,"id":510},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"513":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":514}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"514":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"515":{"submorphs":[{"__isSmartRef__":true,"id":516}],"scripts":[],"id":"838F4F52-0A64-4AC1-B1E4-7D1DAB84C2CF","shape":{"__isSmartRef__":true,"id":531},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":532},"eventHandler":{"__isSmartRef__":true,"id":552},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":553},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":558},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":516},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":947},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":851}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8923},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(2.0,102.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(0.0,4.0)"},"516":{"submorphs":[],"scripts":[],"id":"51E1C08F-E6D5-4939-B84E-328766EA08D7","shape":{"__isSmartRef__":true,"id":517},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":518},"textChunks":[{"__isSmartRef__":true,"id":527}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":529},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":530},"owner":{"__isSmartRef__":true,"id":515},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"517":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"518":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":519},{"__isSmartRef__":true,"id":520},{"__isSmartRef__":true,"id":521},{"__isSmartRef__":true,"id":522},{"__isSmartRef__":true,"id":523},{"__isSmartRef__":true,"id":524},{"__isSmartRef__":true,"id":525},{"__isSmartRef__":true,"id":526}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"519":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"520":{"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)\")"},"521":{"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)\")"},"522":{"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)\")"},"523":{"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)\")"},"524":{"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)\")"},"525":{"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)\")"},"526":{"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)\")"},"527":{"style":{"__isSmartRef__":true,"id":528},"chunkOwner":{"__isSmartRef__":true,"id":516},"_id":"_16053","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"528":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"529":{"morph":{"__isSmartRef__":true,"id":516},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"530":{"resizeWidth":true},"531":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"532":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":533},{"__isSmartRef__":true,"id":534},{"__isSmartRef__":true,"id":535},{"__isSmartRef__":true,"id":536},{"__isSmartRef__":true,"id":537},{"__isSmartRef__":true,"id":538},{"__isSmartRef__":true,"id":539},{"__isSmartRef__":true,"id":540},{"__isSmartRef__":true,"id":541},{"__isSmartRef__":true,"id":542},{"__isSmartRef__":true,"id":543},{"__isSmartRef__":true,"id":544},{"__isSmartRef__":true,"id":545},{"__isSmartRef__":true,"id":546},{"__isSmartRef__":true,"id":547},{"__isSmartRef__":true,"id":548},{"__isSmartRef__":true,"id":549},{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":551}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"533":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"534":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"535":{"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)\")"},"536":{"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)\")"},"537":{"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)\")"},"538":{"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)\")"},"539":{"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)\")"},"540":{"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)\")"},"541":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"542":{"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)\")"},"543":{"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)\")"},"544":{"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)\")"},"545":{"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)\")"},"546":{"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)\")"},"547":{"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)\")"},"548":{"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)\")"},"549":{"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)\")"},"550":{"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)\")"},"551":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"552":{"morph":{"__isSmartRef__":true,"id":515},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"553":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":554}},"554":{"test01IsMorph":{"__isSmartRef__":true,"id":555}},"555":{"varMapping":{"__isSmartRef__":true,"id":556},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"556":{"this":{"__isSmartRef__":true,"id":553}},"557":{},"558":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":559},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":560},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":561},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"559":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"560":{"morph":{"__isSmartRef__":true,"id":558},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"561":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":562}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"562":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"563":{"submorphs":[{"__isSmartRef__":true,"id":564}],"scripts":[],"id":"07650F18-C282-44AE-857A-228DA8E1024A","shape":{"__isSmartRef__":true,"id":579},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":580},"eventHandler":{"__isSmartRef__":true,"id":600},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":601},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":606},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":564},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":611},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":803}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8861},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(2.0,127.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(0.0,5.0)"},"564":{"submorphs":[],"scripts":[],"id":"BE7BB166-E856-4FE0-ABEB-CC0F366BD62F","shape":{"__isSmartRef__":true,"id":565},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":566},"textChunks":[{"__isSmartRef__":true,"id":575}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":577},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":578},"owner":{"__isSmartRef__":true,"id":563},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"565":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"566":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":567},{"__isSmartRef__":true,"id":568},{"__isSmartRef__":true,"id":569},{"__isSmartRef__":true,"id":570},{"__isSmartRef__":true,"id":571},{"__isSmartRef__":true,"id":572},{"__isSmartRef__":true,"id":573},{"__isSmartRef__":true,"id":574}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"567":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"568":{"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)\")"},"569":{"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)\")"},"570":{"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)\")"},"571":{"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)\")"},"572":{"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)\")"},"573":{"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)\")"},"574":{"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)\")"},"575":{"style":{"__isSmartRef__":true,"id":576},"chunkOwner":{"__isSmartRef__":true,"id":564},"_id":"_16054","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"576":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"577":{"morph":{"__isSmartRef__":true,"id":564},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"578":{"resizeWidth":true},"579":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"580":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":581},{"__isSmartRef__":true,"id":582},{"__isSmartRef__":true,"id":583},{"__isSmartRef__":true,"id":584},{"__isSmartRef__":true,"id":585},{"__isSmartRef__":true,"id":586},{"__isSmartRef__":true,"id":587},{"__isSmartRef__":true,"id":588},{"__isSmartRef__":true,"id":589},{"__isSmartRef__":true,"id":590},{"__isSmartRef__":true,"id":591},{"__isSmartRef__":true,"id":592},{"__isSmartRef__":true,"id":593},{"__isSmartRef__":true,"id":594},{"__isSmartRef__":true,"id":595},{"__isSmartRef__":true,"id":596},{"__isSmartRef__":true,"id":597},{"__isSmartRef__":true,"id":598},{"__isSmartRef__":true,"id":599}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"581":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"582":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"583":{"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)\")"},"584":{"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)\")"},"585":{"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)\")"},"586":{"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)\")"},"587":{"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)\")"},"588":{"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)\")"},"589":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"590":{"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)\")"},"591":{"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)\")"},"592":{"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)\")"},"593":{"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)\")"},"594":{"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)\")"},"595":{"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)\")"},"596":{"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)\")"},"597":{"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)\")"},"598":{"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)\")"},"599":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"600":{"morph":{"__isSmartRef__":true,"id":563},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"601":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":602}},"602":{"test01IsMorph":{"__isSmartRef__":true,"id":603}},"603":{"varMapping":{"__isSmartRef__":true,"id":604},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"604":{"this":{"__isSmartRef__":true,"id":601}},"605":{},"606":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":607},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":608},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":609},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"607":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"608":{"morph":{"__isSmartRef__":true,"id":606},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"609":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":610}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"610":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"611":{"submorphs":[{"__isSmartRef__":true,"id":612}],"scripts":[],"id":"45F70D0F-F617-4493-97E2-42D971E210D2","shape":{"__isSmartRef__":true,"id":627},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":628},"eventHandler":{"__isSmartRef__":true,"id":648},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":649},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":654},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":612},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":659},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":755}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8799},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(2.0,152.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(0.0,6.0)"},"612":{"submorphs":[],"scripts":[],"id":"A70065A5-EF94-47DA-8E10-0129D020D234","shape":{"__isSmartRef__":true,"id":613},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":614},"textChunks":[{"__isSmartRef__":true,"id":623}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":625},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":626},"owner":{"__isSmartRef__":true,"id":611},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"613":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"614":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":615},{"__isSmartRef__":true,"id":616},{"__isSmartRef__":true,"id":617},{"__isSmartRef__":true,"id":618},{"__isSmartRef__":true,"id":619},{"__isSmartRef__":true,"id":620},{"__isSmartRef__":true,"id":621},{"__isSmartRef__":true,"id":622}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"615":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"616":{"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)\")"},"617":{"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)\")"},"618":{"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)\")"},"619":{"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)\")"},"620":{"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)\")"},"621":{"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)\")"},"622":{"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)\")"},"623":{"style":{"__isSmartRef__":true,"id":624},"chunkOwner":{"__isSmartRef__":true,"id":612},"_id":"_16055","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"624":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"625":{"morph":{"__isSmartRef__":true,"id":612},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"626":{"resizeWidth":true},"627":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"628":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":629},{"__isSmartRef__":true,"id":630},{"__isSmartRef__":true,"id":631},{"__isSmartRef__":true,"id":632},{"__isSmartRef__":true,"id":633},{"__isSmartRef__":true,"id":634},{"__isSmartRef__":true,"id":635},{"__isSmartRef__":true,"id":636},{"__isSmartRef__":true,"id":637},{"__isSmartRef__":true,"id":638},{"__isSmartRef__":true,"id":639},{"__isSmartRef__":true,"id":640},{"__isSmartRef__":true,"id":641},{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":643},{"__isSmartRef__":true,"id":644},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":646},{"__isSmartRef__":true,"id":647}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"629":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"630":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"631":{"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)\")"},"632":{"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)\")"},"633":{"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)\")"},"634":{"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)\")"},"635":{"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)\")"},"636":{"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)\")"},"637":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"638":{"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)\")"},"639":{"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)\")"},"640":{"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)\")"},"641":{"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)\")"},"642":{"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)\")"},"643":{"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)\")"},"644":{"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)\")"},"645":{"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)\")"},"646":{"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)\")"},"647":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"648":{"morph":{"__isSmartRef__":true,"id":611},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"649":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":650}},"650":{"test01IsMorph":{"__isSmartRef__":true,"id":651}},"651":{"varMapping":{"__isSmartRef__":true,"id":652},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"652":{"this":{"__isSmartRef__":true,"id":649}},"653":{},"654":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":655},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":656},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":657},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"655":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"656":{"morph":{"__isSmartRef__":true,"id":654},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"657":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":658}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"658":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"659":{"submorphs":[{"__isSmartRef__":true,"id":660}],"scripts":[],"id":"4081543A-FB39-40C6-801A-D2611C668EC9","shape":{"__isSmartRef__":true,"id":675},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":676},"eventHandler":{"__isSmartRef__":true,"id":696},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":697},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":702},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":660},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":611},{"__isSmartRef__":true,"id":707},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":1523}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8737},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(2.0,177.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(0.0,7.0)"},"660":{"submorphs":[],"scripts":[],"id":"9E30F84E-883C-4DF7-9C60-3F6700D9CDE8","shape":{"__isSmartRef__":true,"id":661},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":662},"textChunks":[{"__isSmartRef__":true,"id":671}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":673},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":674},"owner":{"__isSmartRef__":true,"id":659},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"661":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"662":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":663},{"__isSmartRef__":true,"id":664},{"__isSmartRef__":true,"id":665},{"__isSmartRef__":true,"id":666},{"__isSmartRef__":true,"id":667},{"__isSmartRef__":true,"id":668},{"__isSmartRef__":true,"id":669},{"__isSmartRef__":true,"id":670}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"663":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"664":{"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)\")"},"665":{"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)\")"},"666":{"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)\")"},"667":{"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)\")"},"668":{"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)\")"},"669":{"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)\")"},"670":{"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)\")"},"671":{"style":{"__isSmartRef__":true,"id":672},"chunkOwner":{"__isSmartRef__":true,"id":660},"_id":"_16056","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"672":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"673":{"morph":{"__isSmartRef__":true,"id":660},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"674":{"resizeWidth":true},"675":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"676":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":677},{"__isSmartRef__":true,"id":678},{"__isSmartRef__":true,"id":679},{"__isSmartRef__":true,"id":680},{"__isSmartRef__":true,"id":681},{"__isSmartRef__":true,"id":682},{"__isSmartRef__":true,"id":683},{"__isSmartRef__":true,"id":684},{"__isSmartRef__":true,"id":685},{"__isSmartRef__":true,"id":686},{"__isSmartRef__":true,"id":687},{"__isSmartRef__":true,"id":688},{"__isSmartRef__":true,"id":689},{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":691},{"__isSmartRef__":true,"id":692},{"__isSmartRef__":true,"id":693},{"__isSmartRef__":true,"id":694},{"__isSmartRef__":true,"id":695}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"677":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"678":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"679":{"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)\")"},"680":{"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)\")"},"681":{"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)\")"},"682":{"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)\")"},"683":{"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)\")"},"684":{"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)\")"},"685":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"686":{"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)\")"},"687":{"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)\")"},"688":{"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)\")"},"689":{"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)\")"},"690":{"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)\")"},"691":{"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)\")"},"692":{"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)\")"},"693":{"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)\")"},"694":{"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)\")"},"695":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"696":{"morph":{"__isSmartRef__":true,"id":659},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"697":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":698}},"698":{"test01IsMorph":{"__isSmartRef__":true,"id":699}},"699":{"varMapping":{"__isSmartRef__":true,"id":700},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"700":{"this":{"__isSmartRef__":true,"id":697}},"701":{},"702":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":703},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":704},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":705},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"703":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"704":{"morph":{"__isSmartRef__":true,"id":702},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"705":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":706}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"706":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"707":{"submorphs":[{"__isSmartRef__":true,"id":708}],"scripts":[],"id":"05C7787E-C7E6-4379-904A-3D930E25A092","shape":{"__isSmartRef__":true,"id":723},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":724},"eventHandler":{"__isSmartRef__":true,"id":744},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":745},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":750},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":708},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":659},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":1523}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8675},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(2.0,202.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(0.0,8.0)"},"708":{"submorphs":[],"scripts":[],"id":"722966BC-BEC3-421A-BFD0-D1932B3EA555","shape":{"__isSmartRef__":true,"id":709},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":710},"textChunks":[{"__isSmartRef__":true,"id":719}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":721},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":722},"owner":{"__isSmartRef__":true,"id":707},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"709":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"710":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":711},{"__isSmartRef__":true,"id":712},{"__isSmartRef__":true,"id":713},{"__isSmartRef__":true,"id":714},{"__isSmartRef__":true,"id":715},{"__isSmartRef__":true,"id":716},{"__isSmartRef__":true,"id":717},{"__isSmartRef__":true,"id":718}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"711":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"712":{"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)\")"},"713":{"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)\")"},"714":{"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)\")"},"715":{"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)\")"},"716":{"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)\")"},"717":{"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)\")"},"718":{"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)\")"},"719":{"style":{"__isSmartRef__":true,"id":720},"chunkOwner":{"__isSmartRef__":true,"id":708},"_id":"_16057","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"720":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"721":{"morph":{"__isSmartRef__":true,"id":708},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"722":{"resizeWidth":true},"723":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"724":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":725},{"__isSmartRef__":true,"id":726},{"__isSmartRef__":true,"id":727},{"__isSmartRef__":true,"id":728},{"__isSmartRef__":true,"id":729},{"__isSmartRef__":true,"id":730},{"__isSmartRef__":true,"id":731},{"__isSmartRef__":true,"id":732},{"__isSmartRef__":true,"id":733},{"__isSmartRef__":true,"id":734},{"__isSmartRef__":true,"id":735},{"__isSmartRef__":true,"id":736},{"__isSmartRef__":true,"id":737},{"__isSmartRef__":true,"id":738},{"__isSmartRef__":true,"id":739},{"__isSmartRef__":true,"id":740},{"__isSmartRef__":true,"id":741},{"__isSmartRef__":true,"id":742},{"__isSmartRef__":true,"id":743}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"725":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"726":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"727":{"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)\")"},"728":{"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)\")"},"729":{"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)\")"},"730":{"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)\")"},"731":{"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)\")"},"732":{"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)\")"},"733":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"734":{"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)\")"},"735":{"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)\")"},"736":{"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)\")"},"737":{"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)\")"},"738":{"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)\")"},"739":{"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)\")"},"740":{"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)\")"},"741":{"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)\")"},"742":{"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)\")"},"743":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"744":{"morph":{"__isSmartRef__":true,"id":707},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"745":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":746}},"746":{"test01IsMorph":{"__isSmartRef__":true,"id":747}},"747":{"varMapping":{"__isSmartRef__":true,"id":748},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"748":{"this":{"__isSmartRef__":true,"id":745}},"749":{},"750":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":751},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":752},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":753},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"751":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"752":{"morph":{"__isSmartRef__":true,"id":750},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"753":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":754}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"754":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"755":{"submorphs":[{"__isSmartRef__":true,"id":756}],"scripts":[],"id":"0796D2B1-275D-4F68-9D58-E91F072F2D61","shape":{"__isSmartRef__":true,"id":771},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":772},"eventHandler":{"__isSmartRef__":true,"id":792},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":793},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":798},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":756},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":611},{"__isSmartRef__":true,"id":659},{"__isSmartRef__":true,"id":707},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":1523},{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1571}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8613},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(27.0,177.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(1.0,7.0)"},"756":{"submorphs":[],"scripts":[],"id":"D9FCE9A3-24CF-43A2-B2A3-EA4806EC2C29","shape":{"__isSmartRef__":true,"id":757},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":758},"textChunks":[{"__isSmartRef__":true,"id":767}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":769},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":770},"owner":{"__isSmartRef__":true,"id":755},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"757":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"758":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":759},{"__isSmartRef__":true,"id":760},{"__isSmartRef__":true,"id":761},{"__isSmartRef__":true,"id":762},{"__isSmartRef__":true,"id":763},{"__isSmartRef__":true,"id":764},{"__isSmartRef__":true,"id":765},{"__isSmartRef__":true,"id":766}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"759":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"760":{"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)\")"},"761":{"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)\")"},"762":{"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)\")"},"763":{"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)\")"},"764":{"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)\")"},"765":{"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)\")"},"766":{"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)\")"},"767":{"style":{"__isSmartRef__":true,"id":768},"chunkOwner":{"__isSmartRef__":true,"id":756},"_id":"_16065","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"768":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"769":{"morph":{"__isSmartRef__":true,"id":756},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"770":{"resizeWidth":true},"771":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"772":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":773},{"__isSmartRef__":true,"id":774},{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":776},{"__isSmartRef__":true,"id":777},{"__isSmartRef__":true,"id":778},{"__isSmartRef__":true,"id":779},{"__isSmartRef__":true,"id":780},{"__isSmartRef__":true,"id":781},{"__isSmartRef__":true,"id":782},{"__isSmartRef__":true,"id":783},{"__isSmartRef__":true,"id":784},{"__isSmartRef__":true,"id":785},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":787},{"__isSmartRef__":true,"id":788},{"__isSmartRef__":true,"id":789},{"__isSmartRef__":true,"id":790},{"__isSmartRef__":true,"id":791}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"773":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"774":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"775":{"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)\")"},"776":{"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)\")"},"777":{"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)\")"},"778":{"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)\")"},"779":{"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)\")"},"780":{"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)\")"},"781":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"782":{"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)\")"},"783":{"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)\")"},"784":{"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)\")"},"785":{"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)\")"},"786":{"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)\")"},"787":{"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)\")"},"788":{"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)\")"},"789":{"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)\")"},"790":{"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)\")"},"791":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"792":{"morph":{"__isSmartRef__":true,"id":755},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"793":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":794}},"794":{"test01IsMorph":{"__isSmartRef__":true,"id":795}},"795":{"varMapping":{"__isSmartRef__":true,"id":796},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"796":{"this":{"__isSmartRef__":true,"id":793}},"797":{},"798":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":799},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":800},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":801},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"799":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"800":{"morph":{"__isSmartRef__":true,"id":798},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"801":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":802}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"802":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"803":{"submorphs":[{"__isSmartRef__":true,"id":804}],"scripts":[],"id":"08AEC63D-2AD0-4AE2-8544-F7129F7C505D","shape":{"__isSmartRef__":true,"id":819},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":820},"eventHandler":{"__isSmartRef__":true,"id":840},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":841},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":846},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":804},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":611},{"__isSmartRef__":true,"id":659},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":1379},{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1475}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8551},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(27.0,152.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(1.0,6.0)"},"804":{"submorphs":[],"scripts":[],"id":"76A24DE7-1C2D-47EE-806A-CB841BBE7CCE","shape":{"__isSmartRef__":true,"id":805},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":806},"textChunks":[{"__isSmartRef__":true,"id":815}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":817},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":818},"owner":{"__isSmartRef__":true,"id":803},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"805":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"806":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":807},{"__isSmartRef__":true,"id":808},{"__isSmartRef__":true,"id":809},{"__isSmartRef__":true,"id":810},{"__isSmartRef__":true,"id":811},{"__isSmartRef__":true,"id":812},{"__isSmartRef__":true,"id":813},{"__isSmartRef__":true,"id":814}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"807":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"808":{"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)\")"},"809":{"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)\")"},"810":{"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)\")"},"811":{"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)\")"},"812":{"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)\")"},"813":{"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)\")"},"814":{"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)\")"},"815":{"style":{"__isSmartRef__":true,"id":816},"chunkOwner":{"__isSmartRef__":true,"id":804},"_id":"_16064","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"816":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"817":{"morph":{"__isSmartRef__":true,"id":804},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"818":{"resizeWidth":true},"819":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"820":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":821},{"__isSmartRef__":true,"id":822},{"__isSmartRef__":true,"id":823},{"__isSmartRef__":true,"id":824},{"__isSmartRef__":true,"id":825},{"__isSmartRef__":true,"id":826},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":828},{"__isSmartRef__":true,"id":829},{"__isSmartRef__":true,"id":830},{"__isSmartRef__":true,"id":831},{"__isSmartRef__":true,"id":832},{"__isSmartRef__":true,"id":833},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":835},{"__isSmartRef__":true,"id":836},{"__isSmartRef__":true,"id":837},{"__isSmartRef__":true,"id":838},{"__isSmartRef__":true,"id":839}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"821":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"822":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"823":{"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)\")"},"824":{"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)\")"},"825":{"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)\")"},"826":{"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)\")"},"827":{"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)\")"},"828":{"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)\")"},"829":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"830":{"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)\")"},"831":{"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)\")"},"832":{"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)\")"},"833":{"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)\")"},"834":{"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)\")"},"835":{"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)\")"},"836":{"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)\")"},"837":{"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)\")"},"838":{"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)\")"},"839":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"840":{"morph":{"__isSmartRef__":true,"id":803},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"841":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":842}},"842":{"test01IsMorph":{"__isSmartRef__":true,"id":843}},"843":{"varMapping":{"__isSmartRef__":true,"id":844},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"844":{"this":{"__isSmartRef__":true,"id":841}},"845":{},"846":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":847},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":848},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":849},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"847":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"848":{"morph":{"__isSmartRef__":true,"id":846},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"849":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":850}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"850":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"851":{"submorphs":[{"__isSmartRef__":true,"id":852}],"scripts":[],"id":"2B870532-1182-494F-9080-66ED729123E8","shape":{"__isSmartRef__":true,"id":867},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":868},"eventHandler":{"__isSmartRef__":true,"id":888},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":889},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":894},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":852},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":611},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1379},{"__isSmartRef__":true,"id":1427}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8489},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(27.0,127.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(1.0,5.0)"},"852":{"submorphs":[],"scripts":[],"id":"846482B6-96DA-4BCE-A426-111EFF3EC1D1","shape":{"__isSmartRef__":true,"id":853},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":854},"textChunks":[{"__isSmartRef__":true,"id":863}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":865},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":866},"owner":{"__isSmartRef__":true,"id":851},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"853":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"854":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":855},{"__isSmartRef__":true,"id":856},{"__isSmartRef__":true,"id":857},{"__isSmartRef__":true,"id":858},{"__isSmartRef__":true,"id":859},{"__isSmartRef__":true,"id":860},{"__isSmartRef__":true,"id":861},{"__isSmartRef__":true,"id":862}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"855":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"856":{"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)\")"},"857":{"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)\")"},"858":{"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)\")"},"859":{"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)\")"},"860":{"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)\")"},"861":{"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)\")"},"862":{"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)\")"},"863":{"style":{"__isSmartRef__":true,"id":864},"chunkOwner":{"__isSmartRef__":true,"id":852},"_id":"_16063","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"864":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"865":{"morph":{"__isSmartRef__":true,"id":852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"866":{"resizeWidth":true},"867":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"868":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":869},{"__isSmartRef__":true,"id":870},{"__isSmartRef__":true,"id":871},{"__isSmartRef__":true,"id":872},{"__isSmartRef__":true,"id":873},{"__isSmartRef__":true,"id":874},{"__isSmartRef__":true,"id":875},{"__isSmartRef__":true,"id":876},{"__isSmartRef__":true,"id":877},{"__isSmartRef__":true,"id":878},{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":880},{"__isSmartRef__":true,"id":881},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":883},{"__isSmartRef__":true,"id":884},{"__isSmartRef__":true,"id":885},{"__isSmartRef__":true,"id":886},{"__isSmartRef__":true,"id":887}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"869":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"870":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"871":{"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)\")"},"872":{"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)\")"},"873":{"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)\")"},"874":{"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)\")"},"875":{"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)\")"},"876":{"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)\")"},"877":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"878":{"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)\")"},"879":{"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)\")"},"880":{"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)\")"},"881":{"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)\")"},"882":{"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)\")"},"883":{"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)\")"},"884":{"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)\")"},"885":{"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)\")"},"886":{"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)\")"},"887":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"888":{"morph":{"__isSmartRef__":true,"id":851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"889":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":890}},"890":{"test01IsMorph":{"__isSmartRef__":true,"id":891}},"891":{"varMapping":{"__isSmartRef__":true,"id":892},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"892":{"this":{"__isSmartRef__":true,"id":889}},"893":{},"894":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":895},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":896},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":897},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"895":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"896":{"morph":{"__isSmartRef__":true,"id":894},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"897":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":898}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"898":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"899":{"submorphs":[{"__isSmartRef__":true,"id":900}],"scripts":[],"id":"334A00ED-FF99-4DFE-BC74-BD1F44D79104","shape":{"__isSmartRef__":true,"id":915},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":916},"eventHandler":{"__isSmartRef__":true,"id":936},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":937},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":942},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":900},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":947},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1379}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8427},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(27.0,102.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(1.0,4.0)"},"900":{"submorphs":[],"scripts":[],"id":"78E60620-D828-47B2-B67D-2CE3120C680E","shape":{"__isSmartRef__":true,"id":901},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":902},"textChunks":[{"__isSmartRef__":true,"id":911}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":913},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":914},"owner":{"__isSmartRef__":true,"id":899},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"901":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"902":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":903},{"__isSmartRef__":true,"id":904},{"__isSmartRef__":true,"id":905},{"__isSmartRef__":true,"id":906},{"__isSmartRef__":true,"id":907},{"__isSmartRef__":true,"id":908},{"__isSmartRef__":true,"id":909},{"__isSmartRef__":true,"id":910}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"903":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"904":{"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)\")"},"905":{"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)\")"},"906":{"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)\")"},"907":{"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)\")"},"908":{"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)\")"},"909":{"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)\")"},"910":{"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)\")"},"911":{"style":{"__isSmartRef__":true,"id":912},"chunkOwner":{"__isSmartRef__":true,"id":900},"_id":"_16062","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"912":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"913":{"morph":{"__isSmartRef__":true,"id":900},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"914":{"resizeWidth":true},"915":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"916":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":917},{"__isSmartRef__":true,"id":918},{"__isSmartRef__":true,"id":919},{"__isSmartRef__":true,"id":920},{"__isSmartRef__":true,"id":921},{"__isSmartRef__":true,"id":922},{"__isSmartRef__":true,"id":923},{"__isSmartRef__":true,"id":924},{"__isSmartRef__":true,"id":925},{"__isSmartRef__":true,"id":926},{"__isSmartRef__":true,"id":927},{"__isSmartRef__":true,"id":928},{"__isSmartRef__":true,"id":929},{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":931},{"__isSmartRef__":true,"id":932},{"__isSmartRef__":true,"id":933},{"__isSmartRef__":true,"id":934},{"__isSmartRef__":true,"id":935}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"917":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"918":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"919":{"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)\")"},"920":{"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)\")"},"921":{"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)\")"},"922":{"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)\")"},"923":{"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)\")"},"924":{"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)\")"},"925":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"926":{"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)\")"},"927":{"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)\")"},"928":{"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)\")"},"929":{"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)\")"},"930":{"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)\")"},"931":{"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)\")"},"932":{"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)\")"},"933":{"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)\")"},"934":{"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)\")"},"935":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"936":{"morph":{"__isSmartRef__":true,"id":899},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"937":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":938}},"938":{"test01IsMorph":{"__isSmartRef__":true,"id":939}},"939":{"varMapping":{"__isSmartRef__":true,"id":940},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"940":{"this":{"__isSmartRef__":true,"id":937}},"941":{},"942":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":943},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":944},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":945},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"943":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"944":{"morph":{"__isSmartRef__":true,"id":942},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"945":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":946}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"946":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"947":{"submorphs":[{"__isSmartRef__":true,"id":948}],"scripts":[],"id":"927BA236-A457-4D8F-92B0-806B49E569E5","shape":{"__isSmartRef__":true,"id":963},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":964},"eventHandler":{"__isSmartRef__":true,"id":984},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":985},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":990},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":948},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":419},{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":995},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":1235},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1331}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8365},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(27.0,77.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(1.0,3.0)"},"948":{"submorphs":[],"scripts":[],"id":"10898186-937E-4357-B135-D048CF072AF9","shape":{"__isSmartRef__":true,"id":949},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":950},"textChunks":[{"__isSmartRef__":true,"id":959}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":961},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":962},"owner":{"__isSmartRef__":true,"id":947},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"949":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"950":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":951},{"__isSmartRef__":true,"id":952},{"__isSmartRef__":true,"id":953},{"__isSmartRef__":true,"id":954},{"__isSmartRef__":true,"id":955},{"__isSmartRef__":true,"id":956},{"__isSmartRef__":true,"id":957},{"__isSmartRef__":true,"id":958}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"951":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"952":{"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)\")"},"953":{"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)\")"},"954":{"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)\")"},"955":{"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)\")"},"956":{"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)\")"},"957":{"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)\")"},"958":{"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)\")"},"959":{"style":{"__isSmartRef__":true,"id":960},"chunkOwner":{"__isSmartRef__":true,"id":948},"_id":"_16061","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"960":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"961":{"morph":{"__isSmartRef__":true,"id":948},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"962":{"resizeWidth":true},"963":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"964":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":965},{"__isSmartRef__":true,"id":966},{"__isSmartRef__":true,"id":967},{"__isSmartRef__":true,"id":968},{"__isSmartRef__":true,"id":969},{"__isSmartRef__":true,"id":970},{"__isSmartRef__":true,"id":971},{"__isSmartRef__":true,"id":972},{"__isSmartRef__":true,"id":973},{"__isSmartRef__":true,"id":974},{"__isSmartRef__":true,"id":975},{"__isSmartRef__":true,"id":976},{"__isSmartRef__":true,"id":977},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":979},{"__isSmartRef__":true,"id":980},{"__isSmartRef__":true,"id":981},{"__isSmartRef__":true,"id":982},{"__isSmartRef__":true,"id":983}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"965":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"966":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"967":{"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)\")"},"968":{"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)\")"},"969":{"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)\")"},"970":{"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)\")"},"971":{"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)\")"},"972":{"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)\")"},"973":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"974":{"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)\")"},"975":{"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)\")"},"976":{"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)\")"},"977":{"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)\")"},"978":{"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)\")"},"979":{"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)\")"},"980":{"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)\")"},"981":{"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)\")"},"982":{"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)\")"},"983":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"984":{"morph":{"__isSmartRef__":true,"id":947},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"985":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":986}},"986":{"test01IsMorph":{"__isSmartRef__":true,"id":987}},"987":{"varMapping":{"__isSmartRef__":true,"id":988},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"988":{"this":{"__isSmartRef__":true,"id":985}},"989":{},"990":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":991},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":992},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":993},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"991":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"992":{"morph":{"__isSmartRef__":true,"id":990},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"993":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":994}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"994":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"995":{"submorphs":[{"__isSmartRef__":true,"id":996}],"scripts":[],"id":"EB1D9038-E10B-4CD0-9D72-A77E7506CF9C","shape":{"__isSmartRef__":true,"id":1011},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1012},"eventHandler":{"__isSmartRef__":true,"id":1032},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1033},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1038},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":996},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":371},{"__isSmartRef__":true,"id":419},{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":947},{"__isSmartRef__":true,"id":1187},{"__isSmartRef__":true,"id":1235},{"__isSmartRef__":true,"id":1283}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8303},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(27.0,52.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(1.0,2.0)"},"996":{"submorphs":[],"scripts":[],"id":"168A96A1-FA1F-42B9-AD0C-26769270F18F","shape":{"__isSmartRef__":true,"id":997},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":998},"textChunks":[{"__isSmartRef__":true,"id":1007}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1009},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1010},"owner":{"__isSmartRef__":true,"id":995},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"997":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"998":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":999},{"__isSmartRef__":true,"id":1000},{"__isSmartRef__":true,"id":1001},{"__isSmartRef__":true,"id":1002},{"__isSmartRef__":true,"id":1003},{"__isSmartRef__":true,"id":1004},{"__isSmartRef__":true,"id":1005},{"__isSmartRef__":true,"id":1006}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"999":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1000":{"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)\")"},"1001":{"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)\")"},"1002":{"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)\")"},"1003":{"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)\")"},"1004":{"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)\")"},"1005":{"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)\")"},"1006":{"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)\")"},"1007":{"style":{"__isSmartRef__":true,"id":1008},"chunkOwner":{"__isSmartRef__":true,"id":996},"_id":"_16060","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1008":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1009":{"morph":{"__isSmartRef__":true,"id":996},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1010":{"resizeWidth":true},"1011":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1012":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1013},{"__isSmartRef__":true,"id":1014},{"__isSmartRef__":true,"id":1015},{"__isSmartRef__":true,"id":1016},{"__isSmartRef__":true,"id":1017},{"__isSmartRef__":true,"id":1018},{"__isSmartRef__":true,"id":1019},{"__isSmartRef__":true,"id":1020},{"__isSmartRef__":true,"id":1021},{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1023},{"__isSmartRef__":true,"id":1024},{"__isSmartRef__":true,"id":1025},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":1027},{"__isSmartRef__":true,"id":1028},{"__isSmartRef__":true,"id":1029},{"__isSmartRef__":true,"id":1030},{"__isSmartRef__":true,"id":1031}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1013":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1014":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1015":{"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)\")"},"1016":{"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)\")"},"1017":{"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)\")"},"1018":{"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)\")"},"1019":{"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)\")"},"1020":{"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)\")"},"1021":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1022":{"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)\")"},"1023":{"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)\")"},"1024":{"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)\")"},"1025":{"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)\")"},"1026":{"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)\")"},"1027":{"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)\")"},"1028":{"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)\")"},"1029":{"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)\")"},"1030":{"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)\")"},"1031":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1032":{"morph":{"__isSmartRef__":true,"id":995},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1033":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1034}},"1034":{"test01IsMorph":{"__isSmartRef__":true,"id":1035}},"1035":{"varMapping":{"__isSmartRef__":true,"id":1036},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1036":{"this":{"__isSmartRef__":true,"id":1033}},"1037":{},"1038":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1039},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1040},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1041},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1039":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1040":{"morph":{"__isSmartRef__":true,"id":1038},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1041":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1042}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1042":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1043":{"submorphs":[{"__isSmartRef__":true,"id":1044}],"scripts":[],"id":"E816E0CF-506C-4AE0-AC77-FD2B22445B86","shape":{"__isSmartRef__":true,"id":1059},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1060},"eventHandler":{"__isSmartRef__":true,"id":1080},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1081},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1086},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1044},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":323},{"__isSmartRef__":true,"id":371},{"__isSmartRef__":true,"id":419},{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":995},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1187},{"__isSmartRef__":true,"id":1235}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8241},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(27.0,27.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(1.0,1.0)"},"1044":{"submorphs":[],"scripts":[],"id":"F25F1F0A-721C-4A13-B4C4-6A2B7BBED1C8","shape":{"__isSmartRef__":true,"id":1045},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1046},"textChunks":[{"__isSmartRef__":true,"id":1055}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1057},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1058},"owner":{"__isSmartRef__":true,"id":1043},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1045":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1046":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1047},{"__isSmartRef__":true,"id":1048},{"__isSmartRef__":true,"id":1049},{"__isSmartRef__":true,"id":1050},{"__isSmartRef__":true,"id":1051},{"__isSmartRef__":true,"id":1052},{"__isSmartRef__":true,"id":1053},{"__isSmartRef__":true,"id":1054}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1047":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1048":{"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)\")"},"1049":{"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)\")"},"1050":{"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)\")"},"1051":{"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)\")"},"1052":{"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)\")"},"1053":{"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)\")"},"1054":{"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)\")"},"1055":{"style":{"__isSmartRef__":true,"id":1056},"chunkOwner":{"__isSmartRef__":true,"id":1044},"_id":"_16059","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1056":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1057":{"morph":{"__isSmartRef__":true,"id":1044},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1058":{"resizeWidth":true},"1059":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1060":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1062},{"__isSmartRef__":true,"id":1063},{"__isSmartRef__":true,"id":1064},{"__isSmartRef__":true,"id":1065},{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1067},{"__isSmartRef__":true,"id":1068},{"__isSmartRef__":true,"id":1069},{"__isSmartRef__":true,"id":1070},{"__isSmartRef__":true,"id":1071},{"__isSmartRef__":true,"id":1072},{"__isSmartRef__":true,"id":1073},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1075},{"__isSmartRef__":true,"id":1076},{"__isSmartRef__":true,"id":1077},{"__isSmartRef__":true,"id":1078},{"__isSmartRef__":true,"id":1079}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1061":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1062":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1063":{"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)\")"},"1064":{"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)\")"},"1065":{"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)\")"},"1066":{"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)\")"},"1067":{"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)\")"},"1068":{"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)\")"},"1069":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1070":{"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)\")"},"1071":{"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)\")"},"1072":{"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)\")"},"1073":{"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)\")"},"1074":{"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)\")"},"1075":{"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)\")"},"1076":{"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)\")"},"1077":{"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)\")"},"1078":{"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)\")"},"1079":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1080":{"morph":{"__isSmartRef__":true,"id":1043},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1081":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1082}},"1082":{"test01IsMorph":{"__isSmartRef__":true,"id":1083}},"1083":{"varMapping":{"__isSmartRef__":true,"id":1084},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1084":{"this":{"__isSmartRef__":true,"id":1081}},"1085":{},"1086":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1087},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1088},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1089},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1087":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1088":{"morph":{"__isSmartRef__":true,"id":1086},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1089":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1090}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1090":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1091":{"submorphs":[{"__isSmartRef__":true,"id":1092}],"scripts":[],"id":"122D2734-F58C-4E01-BD20-C764C48227BD","shape":{"__isSmartRef__":true,"id":1107},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1108},"eventHandler":{"__isSmartRef__":true,"id":1128},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1129},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1134},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1092},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":323},{"__isSmartRef__":true,"id":371},{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1187}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8179},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(27.0,2.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(1.0,0.0)"},"1092":{"submorphs":[],"scripts":[],"id":"F36609AE-500D-45AF-B7CB-396BFF08501D","shape":{"__isSmartRef__":true,"id":1093},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1094},"textChunks":[{"__isSmartRef__":true,"id":1103}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1105},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1106},"owner":{"__isSmartRef__":true,"id":1091},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1093":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1094":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1095},{"__isSmartRef__":true,"id":1096},{"__isSmartRef__":true,"id":1097},{"__isSmartRef__":true,"id":1098},{"__isSmartRef__":true,"id":1099},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1101},{"__isSmartRef__":true,"id":1102}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1095":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1096":{"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)\")"},"1097":{"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)\")"},"1098":{"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)\")"},"1099":{"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)\")"},"1100":{"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)\")"},"1101":{"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)\")"},"1102":{"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)\")"},"1103":{"style":{"__isSmartRef__":true,"id":1104},"chunkOwner":{"__isSmartRef__":true,"id":1092},"_id":"_16058","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1104":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1105":{"morph":{"__isSmartRef__":true,"id":1092},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1106":{"resizeWidth":true},"1107":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1108":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1109},{"__isSmartRef__":true,"id":1110},{"__isSmartRef__":true,"id":1111},{"__isSmartRef__":true,"id":1112},{"__isSmartRef__":true,"id":1113},{"__isSmartRef__":true,"id":1114},{"__isSmartRef__":true,"id":1115},{"__isSmartRef__":true,"id":1116},{"__isSmartRef__":true,"id":1117},{"__isSmartRef__":true,"id":1118},{"__isSmartRef__":true,"id":1119},{"__isSmartRef__":true,"id":1120},{"__isSmartRef__":true,"id":1121},{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1123},{"__isSmartRef__":true,"id":1124},{"__isSmartRef__":true,"id":1125},{"__isSmartRef__":true,"id":1126},{"__isSmartRef__":true,"id":1127}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1109":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1110":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1111":{"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)\")"},"1112":{"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)\")"},"1113":{"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)\")"},"1114":{"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)\")"},"1115":{"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)\")"},"1116":{"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)\")"},"1117":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1118":{"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)\")"},"1119":{"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)\")"},"1120":{"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)\")"},"1121":{"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)\")"},"1122":{"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)\")"},"1123":{"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)\")"},"1124":{"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)\")"},"1125":{"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)\")"},"1126":{"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)\")"},"1127":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1128":{"morph":{"__isSmartRef__":true,"id":1091},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1129":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1130}},"1130":{"test01IsMorph":{"__isSmartRef__":true,"id":1131}},"1131":{"varMapping":{"__isSmartRef__":true,"id":1132},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1132":{"this":{"__isSmartRef__":true,"id":1129}},"1133":{},"1134":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1135},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1136},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1137},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1135":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1136":{"morph":{"__isSmartRef__":true,"id":1134},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1137":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1138}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1138":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1139":{"submorphs":[{"__isSmartRef__":true,"id":1140}],"scripts":[],"id":"C6896CA9-50E2-4E75-8909-E1FF6D1467D1","shape":{"__isSmartRef__":true,"id":1155},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1156},"eventHandler":{"__isSmartRef__":true,"id":1176},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1177},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1182},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1140},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":1187},{"__isSmartRef__":true,"id":1955},{"__isSmartRef__":true,"id":1907}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8117},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(52.0,2.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(2.0,0.0)"},"1140":{"submorphs":[],"scripts":[],"id":"2EF9985E-6773-4CFB-A648-18DC5045FA75","shape":{"__isSmartRef__":true,"id":1141},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1142},"textChunks":[{"__isSmartRef__":true,"id":1151}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1153},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1154},"owner":{"__isSmartRef__":true,"id":1139},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1141":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1142":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1143},{"__isSmartRef__":true,"id":1144},{"__isSmartRef__":true,"id":1145},{"__isSmartRef__":true,"id":1146},{"__isSmartRef__":true,"id":1147},{"__isSmartRef__":true,"id":1148},{"__isSmartRef__":true,"id":1149},{"__isSmartRef__":true,"id":1150}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1143":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1144":{"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)\")"},"1145":{"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)\")"},"1146":{"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)\")"},"1147":{"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)\")"},"1148":{"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)\")"},"1149":{"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)\")"},"1150":{"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)\")"},"1151":{"style":{"__isSmartRef__":true,"id":1152},"chunkOwner":{"__isSmartRef__":true,"id":1140},"_id":"_16067","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1152":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1153":{"morph":{"__isSmartRef__":true,"id":1140},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1154":{"resizeWidth":true},"1155":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1156":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1157},{"__isSmartRef__":true,"id":1158},{"__isSmartRef__":true,"id":1159},{"__isSmartRef__":true,"id":1160},{"__isSmartRef__":true,"id":1161},{"__isSmartRef__":true,"id":1162},{"__isSmartRef__":true,"id":1163},{"__isSmartRef__":true,"id":1164},{"__isSmartRef__":true,"id":1165},{"__isSmartRef__":true,"id":1166},{"__isSmartRef__":true,"id":1167},{"__isSmartRef__":true,"id":1168},{"__isSmartRef__":true,"id":1169},{"__isSmartRef__":true,"id":1170},{"__isSmartRef__":true,"id":1171},{"__isSmartRef__":true,"id":1172},{"__isSmartRef__":true,"id":1173},{"__isSmartRef__":true,"id":1174},{"__isSmartRef__":true,"id":1175}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1157":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1158":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1159":{"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)\")"},"1160":{"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)\")"},"1161":{"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)\")"},"1162":{"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)\")"},"1163":{"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)\")"},"1164":{"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)\")"},"1165":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1166":{"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)\")"},"1167":{"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)\")"},"1168":{"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)\")"},"1169":{"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)\")"},"1170":{"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)\")"},"1171":{"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)\")"},"1172":{"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)\")"},"1173":{"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)\")"},"1174":{"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)\")"},"1175":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1176":{"morph":{"__isSmartRef__":true,"id":1139},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1177":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1178}},"1178":{"test01IsMorph":{"__isSmartRef__":true,"id":1179}},"1179":{"varMapping":{"__isSmartRef__":true,"id":1180},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1180":{"this":{"__isSmartRef__":true,"id":1177}},"1181":{},"1182":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1183},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1184},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1185},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1183":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1184":{"morph":{"__isSmartRef__":true,"id":1182},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1185":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1186}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1186":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1187":{"submorphs":[{"__isSmartRef__":true,"id":1188}],"scripts":[],"id":"1404AF5A-F904-482E-85B8-5A07CA611F3D","shape":{"__isSmartRef__":true,"id":1203},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1204},"eventHandler":{"__isSmartRef__":true,"id":1224},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1225},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1230},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1188},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":995},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1235},{"__isSmartRef__":true,"id":1955},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1859}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8055},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(52.0,27.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(2.0,1.0)"},"1188":{"submorphs":[],"scripts":[],"id":"331520D8-D6A7-4D50-9C06-47FD0392893F","shape":{"__isSmartRef__":true,"id":1189},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1190},"textChunks":[{"__isSmartRef__":true,"id":1199}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1201},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1202},"owner":{"__isSmartRef__":true,"id":1187},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1189":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1190":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1191},{"__isSmartRef__":true,"id":1192},{"__isSmartRef__":true,"id":1193},{"__isSmartRef__":true,"id":1194},{"__isSmartRef__":true,"id":1195},{"__isSmartRef__":true,"id":1196},{"__isSmartRef__":true,"id":1197},{"__isSmartRef__":true,"id":1198}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1191":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1192":{"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)\")"},"1193":{"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)\")"},"1194":{"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)\")"},"1195":{"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)\")"},"1196":{"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)\")"},"1197":{"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)\")"},"1198":{"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)\")"},"1199":{"style":{"__isSmartRef__":true,"id":1200},"chunkOwner":{"__isSmartRef__":true,"id":1188},"_id":"_16068","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1200":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1201":{"morph":{"__isSmartRef__":true,"id":1188},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1202":{"resizeWidth":true},"1203":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1204":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1205},{"__isSmartRef__":true,"id":1206},{"__isSmartRef__":true,"id":1207},{"__isSmartRef__":true,"id":1208},{"__isSmartRef__":true,"id":1209},{"__isSmartRef__":true,"id":1210},{"__isSmartRef__":true,"id":1211},{"__isSmartRef__":true,"id":1212},{"__isSmartRef__":true,"id":1213},{"__isSmartRef__":true,"id":1214},{"__isSmartRef__":true,"id":1215},{"__isSmartRef__":true,"id":1216},{"__isSmartRef__":true,"id":1217},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1219},{"__isSmartRef__":true,"id":1220},{"__isSmartRef__":true,"id":1221},{"__isSmartRef__":true,"id":1222},{"__isSmartRef__":true,"id":1223}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1205":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1206":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1207":{"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)\")"},"1208":{"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)\")"},"1209":{"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)\")"},"1210":{"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)\")"},"1211":{"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)\")"},"1212":{"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)\")"},"1213":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1214":{"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)\")"},"1215":{"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)\")"},"1216":{"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)\")"},"1217":{"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)\")"},"1218":{"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)\")"},"1219":{"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)\")"},"1220":{"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)\")"},"1221":{"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)\")"},"1222":{"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)\")"},"1223":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1224":{"morph":{"__isSmartRef__":true,"id":1187},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1225":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1226}},"1226":{"test01IsMorph":{"__isSmartRef__":true,"id":1227}},"1227":{"varMapping":{"__isSmartRef__":true,"id":1228},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1228":{"this":{"__isSmartRef__":true,"id":1225}},"1229":{},"1230":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1231},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1232},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1233},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1231":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1232":{"morph":{"__isSmartRef__":true,"id":1230},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1233":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1234}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1234":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1235":{"submorphs":[{"__isSmartRef__":true,"id":1236}],"scripts":[],"id":"F11085C6-5CB9-4798-BCCA-B20FD2D380B0","shape":{"__isSmartRef__":true,"id":1251},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1252},"eventHandler":{"__isSmartRef__":true,"id":1272},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1273},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1278},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1236},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":995},{"__isSmartRef__":true,"id":947},{"__isSmartRef__":true,"id":1187},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":1811}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7993},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(52.0,52.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(2.0,2.0)"},"1236":{"submorphs":[],"scripts":[],"id":"DA98588F-D4F9-40CA-8ED2-16F1FE06DF7A","shape":{"__isSmartRef__":true,"id":1237},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1238},"textChunks":[{"__isSmartRef__":true,"id":1247}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1249},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1250},"owner":{"__isSmartRef__":true,"id":1235},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1237":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1238":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1239},{"__isSmartRef__":true,"id":1240},{"__isSmartRef__":true,"id":1241},{"__isSmartRef__":true,"id":1242},{"__isSmartRef__":true,"id":1243},{"__isSmartRef__":true,"id":1244},{"__isSmartRef__":true,"id":1245},{"__isSmartRef__":true,"id":1246}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1239":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1240":{"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)\")"},"1241":{"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)\")"},"1242":{"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)\")"},"1243":{"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)\")"},"1244":{"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)\")"},"1245":{"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)\")"},"1246":{"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)\")"},"1247":{"style":{"__isSmartRef__":true,"id":1248},"chunkOwner":{"__isSmartRef__":true,"id":1236},"_id":"_16069","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1248":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1249":{"morph":{"__isSmartRef__":true,"id":1236},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1250":{"resizeWidth":true},"1251":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1252":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1253},{"__isSmartRef__":true,"id":1254},{"__isSmartRef__":true,"id":1255},{"__isSmartRef__":true,"id":1256},{"__isSmartRef__":true,"id":1257},{"__isSmartRef__":true,"id":1258},{"__isSmartRef__":true,"id":1259},{"__isSmartRef__":true,"id":1260},{"__isSmartRef__":true,"id":1261},{"__isSmartRef__":true,"id":1262},{"__isSmartRef__":true,"id":1263},{"__isSmartRef__":true,"id":1264},{"__isSmartRef__":true,"id":1265},{"__isSmartRef__":true,"id":1266},{"__isSmartRef__":true,"id":1267},{"__isSmartRef__":true,"id":1268},{"__isSmartRef__":true,"id":1269},{"__isSmartRef__":true,"id":1270},{"__isSmartRef__":true,"id":1271}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1253":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1254":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1255":{"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)\")"},"1256":{"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)\")"},"1257":{"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)\")"},"1258":{"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)\")"},"1259":{"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)\")"},"1260":{"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)\")"},"1261":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1262":{"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)\")"},"1263":{"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)\")"},"1264":{"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)\")"},"1265":{"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)\")"},"1266":{"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)\")"},"1267":{"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)\")"},"1268":{"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)\")"},"1269":{"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)\")"},"1270":{"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)\")"},"1271":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1272":{"morph":{"__isSmartRef__":true,"id":1235},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1273":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1274}},"1274":{"test01IsMorph":{"__isSmartRef__":true,"id":1275}},"1275":{"varMapping":{"__isSmartRef__":true,"id":1276},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1276":{"this":{"__isSmartRef__":true,"id":1273}},"1277":{},"1278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1279},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1280},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1281},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1279":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1280":{"morph":{"__isSmartRef__":true,"id":1278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1281":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1282}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1282":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1283":{"submorphs":[{"__isSmartRef__":true,"id":1284}],"scripts":[],"id":"29BC59A4-891E-4E3E-B613-6AC43A68D55A","shape":{"__isSmartRef__":true,"id":1299},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1300},"eventHandler":{"__isSmartRef__":true,"id":1320},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1321},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1326},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1284},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":995},{"__isSmartRef__":true,"id":947},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":1235},{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":1763}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7931},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(52.0,77.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(2.0,3.0)"},"1284":{"submorphs":[],"scripts":[],"id":"8C510831-EA94-42A0-9E68-A0C3DE66BC24","shape":{"__isSmartRef__":true,"id":1285},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1286},"textChunks":[{"__isSmartRef__":true,"id":1295}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1297},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1298},"owner":{"__isSmartRef__":true,"id":1283},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1285":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1286":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1287},{"__isSmartRef__":true,"id":1288},{"__isSmartRef__":true,"id":1289},{"__isSmartRef__":true,"id":1290},{"__isSmartRef__":true,"id":1291},{"__isSmartRef__":true,"id":1292},{"__isSmartRef__":true,"id":1293},{"__isSmartRef__":true,"id":1294}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1287":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1288":{"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)\")"},"1289":{"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)\")"},"1290":{"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)\")"},"1291":{"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)\")"},"1292":{"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)\")"},"1293":{"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)\")"},"1294":{"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)\")"},"1295":{"style":{"__isSmartRef__":true,"id":1296},"chunkOwner":{"__isSmartRef__":true,"id":1284},"_id":"_16070","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1296":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1297":{"morph":{"__isSmartRef__":true,"id":1284},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1298":{"resizeWidth":true},"1299":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1300":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1301},{"__isSmartRef__":true,"id":1302},{"__isSmartRef__":true,"id":1303},{"__isSmartRef__":true,"id":1304},{"__isSmartRef__":true,"id":1305},{"__isSmartRef__":true,"id":1306},{"__isSmartRef__":true,"id":1307},{"__isSmartRef__":true,"id":1308},{"__isSmartRef__":true,"id":1309},{"__isSmartRef__":true,"id":1310},{"__isSmartRef__":true,"id":1311},{"__isSmartRef__":true,"id":1312},{"__isSmartRef__":true,"id":1313},{"__isSmartRef__":true,"id":1314},{"__isSmartRef__":true,"id":1315},{"__isSmartRef__":true,"id":1316},{"__isSmartRef__":true,"id":1317},{"__isSmartRef__":true,"id":1318},{"__isSmartRef__":true,"id":1319}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1301":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1302":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1303":{"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)\")"},"1304":{"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)\")"},"1305":{"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)\")"},"1306":{"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)\")"},"1307":{"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)\")"},"1308":{"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)\")"},"1309":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1310":{"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)\")"},"1311":{"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)\")"},"1312":{"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)\")"},"1313":{"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)\")"},"1314":{"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)\")"},"1315":{"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)\")"},"1316":{"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)\")"},"1317":{"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)\")"},"1318":{"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)\")"},"1319":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1320":{"morph":{"__isSmartRef__":true,"id":1283},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1321":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1322}},"1322":{"test01IsMorph":{"__isSmartRef__":true,"id":1323}},"1323":{"varMapping":{"__isSmartRef__":true,"id":1324},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1324":{"this":{"__isSmartRef__":true,"id":1321}},"1325":{},"1326":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1327},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1328},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1329},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1327":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1328":{"morph":{"__isSmartRef__":true,"id":1326},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1329":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1330}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1330":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1331":{"submorphs":[{"__isSmartRef__":true,"id":1332}],"scripts":[],"id":"9F62551D-BBC2-4D39-B632-313F7AC31FCE","shape":{"__isSmartRef__":true,"id":1347},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1348},"eventHandler":{"__isSmartRef__":true,"id":1368},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1369},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1374},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1332},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":947},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1379},{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":1715}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7869},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(52.0,102.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(2.0,4.0)"},"1332":{"submorphs":[],"scripts":[],"id":"9F099605-EEF6-4350-9D64-B478A067BE14","shape":{"__isSmartRef__":true,"id":1333},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1334},"textChunks":[{"__isSmartRef__":true,"id":1343}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1345},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1346},"owner":{"__isSmartRef__":true,"id":1331},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1333":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1334":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1335},{"__isSmartRef__":true,"id":1336},{"__isSmartRef__":true,"id":1337},{"__isSmartRef__":true,"id":1338},{"__isSmartRef__":true,"id":1339},{"__isSmartRef__":true,"id":1340},{"__isSmartRef__":true,"id":1341},{"__isSmartRef__":true,"id":1342}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1335":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1336":{"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)\")"},"1337":{"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)\")"},"1338":{"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)\")"},"1339":{"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)\")"},"1340":{"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)\")"},"1341":{"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)\")"},"1342":{"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)\")"},"1343":{"style":{"__isSmartRef__":true,"id":1344},"chunkOwner":{"__isSmartRef__":true,"id":1332},"_id":"_16071","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1344":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1345":{"morph":{"__isSmartRef__":true,"id":1332},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1346":{"resizeWidth":true},"1347":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1348":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1349},{"__isSmartRef__":true,"id":1350},{"__isSmartRef__":true,"id":1351},{"__isSmartRef__":true,"id":1352},{"__isSmartRef__":true,"id":1353},{"__isSmartRef__":true,"id":1354},{"__isSmartRef__":true,"id":1355},{"__isSmartRef__":true,"id":1356},{"__isSmartRef__":true,"id":1357},{"__isSmartRef__":true,"id":1358},{"__isSmartRef__":true,"id":1359},{"__isSmartRef__":true,"id":1360},{"__isSmartRef__":true,"id":1361},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1363},{"__isSmartRef__":true,"id":1364},{"__isSmartRef__":true,"id":1365},{"__isSmartRef__":true,"id":1366},{"__isSmartRef__":true,"id":1367}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1349":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1350":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1351":{"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)\")"},"1352":{"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)\")"},"1353":{"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)\")"},"1354":{"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)\")"},"1355":{"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)\")"},"1356":{"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)\")"},"1357":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1358":{"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)\")"},"1359":{"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)\")"},"1360":{"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)\")"},"1361":{"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)\")"},"1362":{"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)\")"},"1363":{"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)\")"},"1364":{"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)\")"},"1365":{"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)\")"},"1366":{"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)\")"},"1367":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1368":{"morph":{"__isSmartRef__":true,"id":1331},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1369":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1370}},"1370":{"test01IsMorph":{"__isSmartRef__":true,"id":1371}},"1371":{"varMapping":{"__isSmartRef__":true,"id":1372},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1372":{"this":{"__isSmartRef__":true,"id":1369}},"1373":{},"1374":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1375},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1376},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1377},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1375":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1376":{"morph":{"__isSmartRef__":true,"id":1374},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1377":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1378}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1378":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1379":{"submorphs":[{"__isSmartRef__":true,"id":1380}],"scripts":[],"id":"36D04504-526E-40D2-AC86-86843F7B9139","shape":{"__isSmartRef__":true,"id":1395},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1396},"eventHandler":{"__isSmartRef__":true,"id":1416},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1417},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1422},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1380},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1667}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7807},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(52.0,127.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(2.0,5.0)"},"1380":{"submorphs":[],"scripts":[],"id":"F612C030-7689-4378-A292-B7AA742291FB","shape":{"__isSmartRef__":true,"id":1381},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1382},"textChunks":[{"__isSmartRef__":true,"id":1391}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1393},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1394},"owner":{"__isSmartRef__":true,"id":1379},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1381":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1382":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1383},{"__isSmartRef__":true,"id":1384},{"__isSmartRef__":true,"id":1385},{"__isSmartRef__":true,"id":1386},{"__isSmartRef__":true,"id":1387},{"__isSmartRef__":true,"id":1388},{"__isSmartRef__":true,"id":1389},{"__isSmartRef__":true,"id":1390}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1383":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1384":{"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)\")"},"1385":{"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)\")"},"1386":{"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)\")"},"1387":{"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)\")"},"1388":{"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)\")"},"1389":{"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)\")"},"1390":{"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)\")"},"1391":{"style":{"__isSmartRef__":true,"id":1392},"chunkOwner":{"__isSmartRef__":true,"id":1380},"_id":"_16072","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1392":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1393":{"morph":{"__isSmartRef__":true,"id":1380},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1394":{"resizeWidth":true},"1395":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1396":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1397},{"__isSmartRef__":true,"id":1398},{"__isSmartRef__":true,"id":1399},{"__isSmartRef__":true,"id":1400},{"__isSmartRef__":true,"id":1401},{"__isSmartRef__":true,"id":1402},{"__isSmartRef__":true,"id":1403},{"__isSmartRef__":true,"id":1404},{"__isSmartRef__":true,"id":1405},{"__isSmartRef__":true,"id":1406},{"__isSmartRef__":true,"id":1407},{"__isSmartRef__":true,"id":1408},{"__isSmartRef__":true,"id":1409},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1411},{"__isSmartRef__":true,"id":1412},{"__isSmartRef__":true,"id":1413},{"__isSmartRef__":true,"id":1414},{"__isSmartRef__":true,"id":1415}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1397":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1398":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1399":{"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)\")"},"1400":{"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)\")"},"1401":{"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)\")"},"1402":{"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)\")"},"1403":{"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)\")"},"1404":{"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)\")"},"1405":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1406":{"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)\")"},"1407":{"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)\")"},"1408":{"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)\")"},"1409":{"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)\")"},"1410":{"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)\")"},"1411":{"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)\")"},"1412":{"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)\")"},"1413":{"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)\")"},"1414":{"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)\")"},"1415":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1416":{"morph":{"__isSmartRef__":true,"id":1379},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1417":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1418}},"1418":{"test01IsMorph":{"__isSmartRef__":true,"id":1419}},"1419":{"varMapping":{"__isSmartRef__":true,"id":1420},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1420":{"this":{"__isSmartRef__":true,"id":1417}},"1421":{},"1422":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1423},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1424},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1425},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1423":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1424":{"morph":{"__isSmartRef__":true,"id":1422},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1425":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1426}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1426":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1427":{"submorphs":[{"__isSmartRef__":true,"id":1428}],"scripts":[],"id":"157BF847-163E-462F-AB44-4D195D277154","shape":{"__isSmartRef__":true,"id":1443},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1444},"eventHandler":{"__isSmartRef__":true,"id":1464},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1465},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1470},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1428},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":1379},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":1619}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7745},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(52.0,152.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(2.0,6.0)"},"1428":{"submorphs":[],"scripts":[],"id":"0A3C4BE8-6A82-44AA-8EBF-86B260A970E3","shape":{"__isSmartRef__":true,"id":1429},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1430},"textChunks":[{"__isSmartRef__":true,"id":1439}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1441},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1442},"owner":{"__isSmartRef__":true,"id":1427},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1429":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1430":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1431},{"__isSmartRef__":true,"id":1432},{"__isSmartRef__":true,"id":1433},{"__isSmartRef__":true,"id":1434},{"__isSmartRef__":true,"id":1435},{"__isSmartRef__":true,"id":1436},{"__isSmartRef__":true,"id":1437},{"__isSmartRef__":true,"id":1438}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1431":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1432":{"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)\")"},"1433":{"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)\")"},"1434":{"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)\")"},"1435":{"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)\")"},"1436":{"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)\")"},"1437":{"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)\")"},"1438":{"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)\")"},"1439":{"style":{"__isSmartRef__":true,"id":1440},"chunkOwner":{"__isSmartRef__":true,"id":1428},"_id":"_16073","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1440":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1441":{"morph":{"__isSmartRef__":true,"id":1428},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1442":{"resizeWidth":true},"1443":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1444":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1445},{"__isSmartRef__":true,"id":1446},{"__isSmartRef__":true,"id":1447},{"__isSmartRef__":true,"id":1448},{"__isSmartRef__":true,"id":1449},{"__isSmartRef__":true,"id":1450},{"__isSmartRef__":true,"id":1451},{"__isSmartRef__":true,"id":1452},{"__isSmartRef__":true,"id":1453},{"__isSmartRef__":true,"id":1454},{"__isSmartRef__":true,"id":1455},{"__isSmartRef__":true,"id":1456},{"__isSmartRef__":true,"id":1457},{"__isSmartRef__":true,"id":1458},{"__isSmartRef__":true,"id":1459},{"__isSmartRef__":true,"id":1460},{"__isSmartRef__":true,"id":1461},{"__isSmartRef__":true,"id":1462},{"__isSmartRef__":true,"id":1463}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1445":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1446":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1447":{"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)\")"},"1448":{"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)\")"},"1449":{"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)\")"},"1450":{"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)\")"},"1451":{"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)\")"},"1452":{"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)\")"},"1453":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1454":{"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)\")"},"1455":{"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)\")"},"1456":{"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)\")"},"1457":{"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)\")"},"1458":{"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)\")"},"1459":{"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)\")"},"1460":{"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)\")"},"1461":{"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)\")"},"1462":{"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)\")"},"1463":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1464":{"morph":{"__isSmartRef__":true,"id":1427},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1465":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1466}},"1466":{"test01IsMorph":{"__isSmartRef__":true,"id":1467}},"1467":{"varMapping":{"__isSmartRef__":true,"id":1468},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1468":{"this":{"__isSmartRef__":true,"id":1465}},"1469":{},"1470":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1471},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1472},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1473},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1471":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1472":{"morph":{"__isSmartRef__":true,"id":1470},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1473":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1474}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1474":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1475":{"submorphs":[{"__isSmartRef__":true,"id":1476}],"scripts":[],"id":"E75BC38C-7A59-41EF-90A7-9BB769DDD1F0","shape":{"__isSmartRef__":true,"id":1491},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1492},"eventHandler":{"__isSmartRef__":true,"id":1512},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1513},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1518},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1476},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":1523},{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1571},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":2387}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7683},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(52.0,177.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(2.0,7.0)"},"1476":{"submorphs":[],"scripts":[],"id":"50523558-2FC9-4FB5-8032-1D5092D69D1A","shape":{"__isSmartRef__":true,"id":1477},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1478},"textChunks":[{"__isSmartRef__":true,"id":1487}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1489},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1490},"owner":{"__isSmartRef__":true,"id":1475},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1477":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1478":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1479},{"__isSmartRef__":true,"id":1480},{"__isSmartRef__":true,"id":1481},{"__isSmartRef__":true,"id":1482},{"__isSmartRef__":true,"id":1483},{"__isSmartRef__":true,"id":1484},{"__isSmartRef__":true,"id":1485},{"__isSmartRef__":true,"id":1486}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1479":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1480":{"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)\")"},"1481":{"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)\")"},"1482":{"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)\")"},"1483":{"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)\")"},"1484":{"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)\")"},"1485":{"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)\")"},"1486":{"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)\")"},"1487":{"style":{"__isSmartRef__":true,"id":1488},"chunkOwner":{"__isSmartRef__":true,"id":1476},"_id":"_16074","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1488":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1489":{"morph":{"__isSmartRef__":true,"id":1476},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1490":{"resizeWidth":true},"1491":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1492":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1493},{"__isSmartRef__":true,"id":1494},{"__isSmartRef__":true,"id":1495},{"__isSmartRef__":true,"id":1496},{"__isSmartRef__":true,"id":1497},{"__isSmartRef__":true,"id":1498},{"__isSmartRef__":true,"id":1499},{"__isSmartRef__":true,"id":1500},{"__isSmartRef__":true,"id":1501},{"__isSmartRef__":true,"id":1502},{"__isSmartRef__":true,"id":1503},{"__isSmartRef__":true,"id":1504},{"__isSmartRef__":true,"id":1505},{"__isSmartRef__":true,"id":1506},{"__isSmartRef__":true,"id":1507},{"__isSmartRef__":true,"id":1508},{"__isSmartRef__":true,"id":1509},{"__isSmartRef__":true,"id":1510},{"__isSmartRef__":true,"id":1511}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1493":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1494":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1495":{"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)\")"},"1496":{"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)\")"},"1497":{"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)\")"},"1498":{"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)\")"},"1499":{"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)\")"},"1500":{"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)\")"},"1501":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1502":{"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)\")"},"1503":{"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)\")"},"1504":{"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)\")"},"1505":{"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)\")"},"1506":{"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)\")"},"1507":{"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)\")"},"1508":{"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)\")"},"1509":{"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)\")"},"1510":{"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)\")"},"1511":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1512":{"morph":{"__isSmartRef__":true,"id":1475},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1513":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1514}},"1514":{"test01IsMorph":{"__isSmartRef__":true,"id":1515}},"1515":{"varMapping":{"__isSmartRef__":true,"id":1516},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1516":{"this":{"__isSmartRef__":true,"id":1513}},"1517":{},"1518":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1519},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1520},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1521},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1519":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1520":{"morph":{"__isSmartRef__":true,"id":1518},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1521":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1522}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1522":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1523":{"submorphs":[{"__isSmartRef__":true,"id":1524}],"scripts":[],"id":"C0EFDF71-7AE7-42E5-B2F4-8853FBCBBB91","shape":{"__isSmartRef__":true,"id":1539},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1540},"eventHandler":{"__isSmartRef__":true,"id":1560},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1561},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1566},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1524},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":659},{"__isSmartRef__":true,"id":707},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1571}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7621},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(27.0,202.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(1.0,8.0)"},"1524":{"submorphs":[],"scripts":[],"id":"29B2A09E-CC20-4A43-91E6-EDDFF18F407A","shape":{"__isSmartRef__":true,"id":1525},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1526},"textChunks":[{"__isSmartRef__":true,"id":1535}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1537},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1538},"owner":{"__isSmartRef__":true,"id":1523},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1525":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1526":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1527},{"__isSmartRef__":true,"id":1528},{"__isSmartRef__":true,"id":1529},{"__isSmartRef__":true,"id":1530},{"__isSmartRef__":true,"id":1531},{"__isSmartRef__":true,"id":1532},{"__isSmartRef__":true,"id":1533},{"__isSmartRef__":true,"id":1534}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1527":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1528":{"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)\")"},"1529":{"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)\")"},"1530":{"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)\")"},"1531":{"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)\")"},"1532":{"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)\")"},"1533":{"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)\")"},"1534":{"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)\")"},"1535":{"style":{"__isSmartRef__":true,"id":1536},"chunkOwner":{"__isSmartRef__":true,"id":1524},"_id":"_16066","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1536":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1537":{"morph":{"__isSmartRef__":true,"id":1524},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1538":{"resizeWidth":true},"1539":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1540":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1541},{"__isSmartRef__":true,"id":1542},{"__isSmartRef__":true,"id":1543},{"__isSmartRef__":true,"id":1544},{"__isSmartRef__":true,"id":1545},{"__isSmartRef__":true,"id":1546},{"__isSmartRef__":true,"id":1547},{"__isSmartRef__":true,"id":1548},{"__isSmartRef__":true,"id":1549},{"__isSmartRef__":true,"id":1550},{"__isSmartRef__":true,"id":1551},{"__isSmartRef__":true,"id":1552},{"__isSmartRef__":true,"id":1553},{"__isSmartRef__":true,"id":1554},{"__isSmartRef__":true,"id":1555},{"__isSmartRef__":true,"id":1556},{"__isSmartRef__":true,"id":1557},{"__isSmartRef__":true,"id":1558},{"__isSmartRef__":true,"id":1559}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1541":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1542":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1543":{"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)\")"},"1544":{"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)\")"},"1545":{"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)\")"},"1546":{"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)\")"},"1547":{"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)\")"},"1548":{"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)\")"},"1549":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1550":{"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)\")"},"1551":{"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)\")"},"1552":{"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)\")"},"1553":{"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)\")"},"1554":{"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)\")"},"1555":{"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)\")"},"1556":{"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)\")"},"1557":{"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)\")"},"1558":{"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)\")"},"1559":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1560":{"morph":{"__isSmartRef__":true,"id":1523},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1561":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1562}},"1562":{"test01IsMorph":{"__isSmartRef__":true,"id":1563}},"1563":{"varMapping":{"__isSmartRef__":true,"id":1564},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1564":{"this":{"__isSmartRef__":true,"id":1561}},"1565":{},"1566":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1567},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1568},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1569},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1567":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1568":{"morph":{"__isSmartRef__":true,"id":1566},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1569":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1570}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1570":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1571":{"submorphs":[{"__isSmartRef__":true,"id":1572}],"scripts":[],"id":"9BA67F0D-67E1-4FC3-B184-956A824E1133","shape":{"__isSmartRef__":true,"id":1587},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1588},"eventHandler":{"__isSmartRef__":true,"id":1608},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1609},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1614},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1572},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":1523},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":2387}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7559},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(52.0,202.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(2.0,8.0)"},"1572":{"submorphs":[],"scripts":[],"id":"DA6E8C11-2307-49FC-AE84-5F636F495E47","shape":{"__isSmartRef__":true,"id":1573},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1574},"textChunks":[{"__isSmartRef__":true,"id":1583}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1585},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1586},"owner":{"__isSmartRef__":true,"id":1571},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1573":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1574":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1575},{"__isSmartRef__":true,"id":1576},{"__isSmartRef__":true,"id":1577},{"__isSmartRef__":true,"id":1578},{"__isSmartRef__":true,"id":1579},{"__isSmartRef__":true,"id":1580},{"__isSmartRef__":true,"id":1581},{"__isSmartRef__":true,"id":1582}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1575":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1576":{"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)\")"},"1577":{"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)\")"},"1578":{"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)\")"},"1579":{"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)\")"},"1580":{"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)\")"},"1581":{"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)\")"},"1582":{"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)\")"},"1583":{"style":{"__isSmartRef__":true,"id":1584},"chunkOwner":{"__isSmartRef__":true,"id":1572},"_id":"_16075","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1584":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1585":{"morph":{"__isSmartRef__":true,"id":1572},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1586":{"resizeWidth":true},"1587":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1588":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1589},{"__isSmartRef__":true,"id":1590},{"__isSmartRef__":true,"id":1591},{"__isSmartRef__":true,"id":1592},{"__isSmartRef__":true,"id":1593},{"__isSmartRef__":true,"id":1594},{"__isSmartRef__":true,"id":1595},{"__isSmartRef__":true,"id":1596},{"__isSmartRef__":true,"id":1597},{"__isSmartRef__":true,"id":1598},{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":1600},{"__isSmartRef__":true,"id":1601},{"__isSmartRef__":true,"id":1602},{"__isSmartRef__":true,"id":1603},{"__isSmartRef__":true,"id":1604},{"__isSmartRef__":true,"id":1605},{"__isSmartRef__":true,"id":1606},{"__isSmartRef__":true,"id":1607}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1589":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1590":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1591":{"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)\")"},"1592":{"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)\")"},"1593":{"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)\")"},"1594":{"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)\")"},"1595":{"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)\")"},"1596":{"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)\")"},"1597":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1598":{"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)\")"},"1599":{"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)\")"},"1600":{"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)\")"},"1601":{"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)\")"},"1602":{"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)\")"},"1603":{"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)\")"},"1604":{"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)\")"},"1605":{"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)\")"},"1606":{"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)\")"},"1607":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1608":{"morph":{"__isSmartRef__":true,"id":1571},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1609":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1610}},"1610":{"test01IsMorph":{"__isSmartRef__":true,"id":1611}},"1611":{"varMapping":{"__isSmartRef__":true,"id":1612},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1612":{"this":{"__isSmartRef__":true,"id":1609}},"1613":{},"1614":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1615},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1616},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1617},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1615":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1616":{"morph":{"__isSmartRef__":true,"id":1614},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1617":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1618}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1618":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1619":{"submorphs":[{"__isSmartRef__":true,"id":1620}],"scripts":[],"id":"F3AE1A83-C9E7-41B6-8E71-77559139AB00","shape":{"__isSmartRef__":true,"id":1635},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1636},"eventHandler":{"__isSmartRef__":true,"id":1656},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1657},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1662},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1620},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1571},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":2387},{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2435}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7497},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(77.0,177.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(3.0,7.0)"},"1620":{"submorphs":[],"scripts":[],"id":"66E8547E-3862-450C-8AB3-7792D97D579B","shape":{"__isSmartRef__":true,"id":1621},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1622},"textChunks":[{"__isSmartRef__":true,"id":1631}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1633},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1634},"owner":{"__isSmartRef__":true,"id":1619},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1621":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1622":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1623},{"__isSmartRef__":true,"id":1624},{"__isSmartRef__":true,"id":1625},{"__isSmartRef__":true,"id":1626},{"__isSmartRef__":true,"id":1627},{"__isSmartRef__":true,"id":1628},{"__isSmartRef__":true,"id":1629},{"__isSmartRef__":true,"id":1630}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1623":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1624":{"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)\")"},"1625":{"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)\")"},"1626":{"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)\")"},"1627":{"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)\")"},"1628":{"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)\")"},"1629":{"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)\")"},"1630":{"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)\")"},"1631":{"style":{"__isSmartRef__":true,"id":1632},"chunkOwner":{"__isSmartRef__":true,"id":1620},"_id":"_16083","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1632":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1633":{"morph":{"__isSmartRef__":true,"id":1620},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1634":{"resizeWidth":true},"1635":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1636":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1637},{"__isSmartRef__":true,"id":1638},{"__isSmartRef__":true,"id":1639},{"__isSmartRef__":true,"id":1640},{"__isSmartRef__":true,"id":1641},{"__isSmartRef__":true,"id":1642},{"__isSmartRef__":true,"id":1643},{"__isSmartRef__":true,"id":1644},{"__isSmartRef__":true,"id":1645},{"__isSmartRef__":true,"id":1646},{"__isSmartRef__":true,"id":1647},{"__isSmartRef__":true,"id":1648},{"__isSmartRef__":true,"id":1649},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":1651},{"__isSmartRef__":true,"id":1652},{"__isSmartRef__":true,"id":1653},{"__isSmartRef__":true,"id":1654},{"__isSmartRef__":true,"id":1655}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1637":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1638":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1639":{"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)\")"},"1640":{"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)\")"},"1641":{"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)\")"},"1642":{"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)\")"},"1643":{"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)\")"},"1644":{"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)\")"},"1645":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1646":{"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)\")"},"1647":{"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)\")"},"1648":{"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)\")"},"1649":{"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)\")"},"1650":{"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)\")"},"1651":{"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)\")"},"1652":{"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)\")"},"1653":{"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)\")"},"1654":{"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)\")"},"1655":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1656":{"morph":{"__isSmartRef__":true,"id":1619},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1657":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1658}},"1658":{"test01IsMorph":{"__isSmartRef__":true,"id":1659}},"1659":{"varMapping":{"__isSmartRef__":true,"id":1660},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1660":{"this":{"__isSmartRef__":true,"id":1657}},"1661":{},"1662":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1663},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1664},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1665},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1663":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1664":{"morph":{"__isSmartRef__":true,"id":1662},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1665":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1666}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1666":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1667":{"submorphs":[{"__isSmartRef__":true,"id":1668}],"scripts":[],"id":"AD77BB4B-BD5F-4386-88DB-83F8146F5647","shape":{"__isSmartRef__":true,"id":1683},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1684},"eventHandler":{"__isSmartRef__":true,"id":1704},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1705},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1710},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1668},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1379},{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2339}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7435},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(77.0,152.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(3.0,6.0)"},"1668":{"submorphs":[],"scripts":[],"id":"0C5BB3E2-5633-4E49-B6F4-827DD6CBFC83","shape":{"__isSmartRef__":true,"id":1669},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1670},"textChunks":[{"__isSmartRef__":true,"id":1679}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1681},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1682},"owner":{"__isSmartRef__":true,"id":1667},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1669":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1670":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1671},{"__isSmartRef__":true,"id":1672},{"__isSmartRef__":true,"id":1673},{"__isSmartRef__":true,"id":1674},{"__isSmartRef__":true,"id":1675},{"__isSmartRef__":true,"id":1676},{"__isSmartRef__":true,"id":1677},{"__isSmartRef__":true,"id":1678}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1671":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1672":{"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)\")"},"1673":{"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)\")"},"1674":{"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)\")"},"1675":{"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)\")"},"1676":{"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)\")"},"1677":{"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)\")"},"1678":{"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)\")"},"1679":{"style":{"__isSmartRef__":true,"id":1680},"chunkOwner":{"__isSmartRef__":true,"id":1668},"_id":"_16082","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1680":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1681":{"morph":{"__isSmartRef__":true,"id":1668},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1682":{"resizeWidth":true},"1683":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1684":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1685},{"__isSmartRef__":true,"id":1686},{"__isSmartRef__":true,"id":1687},{"__isSmartRef__":true,"id":1688},{"__isSmartRef__":true,"id":1689},{"__isSmartRef__":true,"id":1690},{"__isSmartRef__":true,"id":1691},{"__isSmartRef__":true,"id":1692},{"__isSmartRef__":true,"id":1693},{"__isSmartRef__":true,"id":1694},{"__isSmartRef__":true,"id":1695},{"__isSmartRef__":true,"id":1696},{"__isSmartRef__":true,"id":1697},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1699},{"__isSmartRef__":true,"id":1700},{"__isSmartRef__":true,"id":1701},{"__isSmartRef__":true,"id":1702},{"__isSmartRef__":true,"id":1703}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1685":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1686":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1687":{"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)\")"},"1688":{"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)\")"},"1689":{"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)\")"},"1690":{"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)\")"},"1691":{"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)\")"},"1692":{"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)\")"},"1693":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1694":{"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)\")"},"1695":{"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)\")"},"1696":{"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)\")"},"1697":{"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)\")"},"1698":{"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)\")"},"1699":{"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)\")"},"1700":{"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)\")"},"1701":{"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)\")"},"1702":{"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)\")"},"1703":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1704":{"morph":{"__isSmartRef__":true,"id":1667},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1705":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1706}},"1706":{"test01IsMorph":{"__isSmartRef__":true,"id":1707}},"1707":{"varMapping":{"__isSmartRef__":true,"id":1708},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1708":{"this":{"__isSmartRef__":true,"id":1705}},"1709":{},"1710":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1711},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1712},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1713},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1711":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1712":{"morph":{"__isSmartRef__":true,"id":1710},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1713":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1714}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1714":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1715":{"submorphs":[{"__isSmartRef__":true,"id":1716}],"scripts":[],"id":"62EB451B-9FC9-4CB6-A6D1-28C5B350DAD0","shape":{"__isSmartRef__":true,"id":1731},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1732},"eventHandler":{"__isSmartRef__":true,"id":1752},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1753},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1758},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1716},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1379},{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":2195},{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2291}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7373},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(77.0,127.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(3.0,5.0)"},"1716":{"submorphs":[],"scripts":[],"id":"66458C00-E650-4243-8886-478419C7F80E","shape":{"__isSmartRef__":true,"id":1717},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1718},"textChunks":[{"__isSmartRef__":true,"id":1727}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1729},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1730},"owner":{"__isSmartRef__":true,"id":1715},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1717":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1718":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1719},{"__isSmartRef__":true,"id":1720},{"__isSmartRef__":true,"id":1721},{"__isSmartRef__":true,"id":1722},{"__isSmartRef__":true,"id":1723},{"__isSmartRef__":true,"id":1724},{"__isSmartRef__":true,"id":1725},{"__isSmartRef__":true,"id":1726}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1719":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1720":{"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)\")"},"1721":{"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)\")"},"1722":{"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)\")"},"1723":{"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)\")"},"1724":{"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)\")"},"1725":{"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)\")"},"1726":{"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)\")"},"1727":{"style":{"__isSmartRef__":true,"id":1728},"chunkOwner":{"__isSmartRef__":true,"id":1716},"_id":"_16081","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1728":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1729":{"morph":{"__isSmartRef__":true,"id":1716},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1730":{"resizeWidth":true},"1731":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1732":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1733},{"__isSmartRef__":true,"id":1734},{"__isSmartRef__":true,"id":1735},{"__isSmartRef__":true,"id":1736},{"__isSmartRef__":true,"id":1737},{"__isSmartRef__":true,"id":1738},{"__isSmartRef__":true,"id":1739},{"__isSmartRef__":true,"id":1740},{"__isSmartRef__":true,"id":1741},{"__isSmartRef__":true,"id":1742},{"__isSmartRef__":true,"id":1743},{"__isSmartRef__":true,"id":1744},{"__isSmartRef__":true,"id":1745},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":1747},{"__isSmartRef__":true,"id":1748},{"__isSmartRef__":true,"id":1749},{"__isSmartRef__":true,"id":1750},{"__isSmartRef__":true,"id":1751}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1733":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1734":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1735":{"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)\")"},"1736":{"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)\")"},"1737":{"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)\")"},"1738":{"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)\")"},"1739":{"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)\")"},"1740":{"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)\")"},"1741":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1742":{"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)\")"},"1743":{"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)\")"},"1744":{"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)\")"},"1745":{"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)\")"},"1746":{"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)\")"},"1747":{"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)\")"},"1748":{"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)\")"},"1749":{"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)\")"},"1750":{"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)\")"},"1751":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1752":{"morph":{"__isSmartRef__":true,"id":1715},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1753":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1754}},"1754":{"test01IsMorph":{"__isSmartRef__":true,"id":1755}},"1755":{"varMapping":{"__isSmartRef__":true,"id":1756},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1756":{"this":{"__isSmartRef__":true,"id":1753}},"1757":{},"1758":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1759},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1760},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1761},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1759":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1760":{"morph":{"__isSmartRef__":true,"id":1758},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1761":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1762}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1762":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1763":{"submorphs":[{"__isSmartRef__":true,"id":1764}],"scripts":[],"id":"94E164E4-3CAF-49FC-9240-79871CAF0430","shape":{"__isSmartRef__":true,"id":1779},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1780},"eventHandler":{"__isSmartRef__":true,"id":1800},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1801},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1806},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1764},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1379},{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2195},{"__isSmartRef__":true,"id":2243}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7311},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(77.0,102.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(3.0,4.0)"},"1764":{"submorphs":[],"scripts":[],"id":"4420BA9A-5DB5-4E79-ACB2-9E0896523C0E","shape":{"__isSmartRef__":true,"id":1765},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1766},"textChunks":[{"__isSmartRef__":true,"id":1775}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1777},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1778},"owner":{"__isSmartRef__":true,"id":1763},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1765":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1766":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1767},{"__isSmartRef__":true,"id":1768},{"__isSmartRef__":true,"id":1769},{"__isSmartRef__":true,"id":1770},{"__isSmartRef__":true,"id":1771},{"__isSmartRef__":true,"id":1772},{"__isSmartRef__":true,"id":1773},{"__isSmartRef__":true,"id":1774}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1767":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1768":{"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)\")"},"1769":{"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)\")"},"1770":{"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)\")"},"1771":{"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)\")"},"1772":{"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)\")"},"1773":{"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)\")"},"1774":{"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)\")"},"1775":{"style":{"__isSmartRef__":true,"id":1776},"chunkOwner":{"__isSmartRef__":true,"id":1764},"_id":"_16080","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1776":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1777":{"morph":{"__isSmartRef__":true,"id":1764},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1778":{"resizeWidth":true},"1779":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1780":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1781},{"__isSmartRef__":true,"id":1782},{"__isSmartRef__":true,"id":1783},{"__isSmartRef__":true,"id":1784},{"__isSmartRef__":true,"id":1785},{"__isSmartRef__":true,"id":1786},{"__isSmartRef__":true,"id":1787},{"__isSmartRef__":true,"id":1788},{"__isSmartRef__":true,"id":1789},{"__isSmartRef__":true,"id":1790},{"__isSmartRef__":true,"id":1791},{"__isSmartRef__":true,"id":1792},{"__isSmartRef__":true,"id":1793},{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":1795},{"__isSmartRef__":true,"id":1796},{"__isSmartRef__":true,"id":1797},{"__isSmartRef__":true,"id":1798},{"__isSmartRef__":true,"id":1799}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1781":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1782":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1783":{"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)\")"},"1784":{"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)\")"},"1785":{"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)\")"},"1786":{"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)\")"},"1787":{"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)\")"},"1788":{"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)\")"},"1789":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1790":{"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)\")"},"1791":{"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)\")"},"1792":{"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)\")"},"1793":{"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)\")"},"1794":{"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)\")"},"1795":{"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)\")"},"1796":{"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)\")"},"1797":{"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)\")"},"1798":{"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)\")"},"1799":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1800":{"morph":{"__isSmartRef__":true,"id":1763},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1801":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1802}},"1802":{"test01IsMorph":{"__isSmartRef__":true,"id":1803}},"1803":{"varMapping":{"__isSmartRef__":true,"id":1804},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1804":{"this":{"__isSmartRef__":true,"id":1801}},"1805":{},"1806":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1807},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1808},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1809},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1807":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1808":{"morph":{"__isSmartRef__":true,"id":1806},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1809":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1810}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1810":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1811":{"submorphs":[{"__isSmartRef__":true,"id":1812}],"scripts":[],"id":"EF8A4379-F01C-4FAF-9907-E68C975C4606","shape":{"__isSmartRef__":true,"id":1827},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1828},"eventHandler":{"__isSmartRef__":true,"id":1848},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1849},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1854},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1812},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1235},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2195}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7249},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(77.0,77.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(3.0,3.0)"},"1812":{"submorphs":[],"scripts":[],"id":"E2B15E5B-36CE-49ED-BF78-0E40810A14ED","shape":{"__isSmartRef__":true,"id":1813},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1814},"textChunks":[{"__isSmartRef__":true,"id":1823}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1825},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1826},"owner":{"__isSmartRef__":true,"id":1811},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1813":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1814":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1815},{"__isSmartRef__":true,"id":1816},{"__isSmartRef__":true,"id":1817},{"__isSmartRef__":true,"id":1818},{"__isSmartRef__":true,"id":1819},{"__isSmartRef__":true,"id":1820},{"__isSmartRef__":true,"id":1821},{"__isSmartRef__":true,"id":1822}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1815":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1816":{"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)\")"},"1817":{"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)\")"},"1818":{"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)\")"},"1819":{"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)\")"},"1820":{"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)\")"},"1821":{"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)\")"},"1822":{"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)\")"},"1823":{"style":{"__isSmartRef__":true,"id":1824},"chunkOwner":{"__isSmartRef__":true,"id":1812},"_id":"_16079","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1824":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1825":{"morph":{"__isSmartRef__":true,"id":1812},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1826":{"resizeWidth":true},"1827":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1828":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1829},{"__isSmartRef__":true,"id":1830},{"__isSmartRef__":true,"id":1831},{"__isSmartRef__":true,"id":1832},{"__isSmartRef__":true,"id":1833},{"__isSmartRef__":true,"id":1834},{"__isSmartRef__":true,"id":1835},{"__isSmartRef__":true,"id":1836},{"__isSmartRef__":true,"id":1837},{"__isSmartRef__":true,"id":1838},{"__isSmartRef__":true,"id":1839},{"__isSmartRef__":true,"id":1840},{"__isSmartRef__":true,"id":1841},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1843},{"__isSmartRef__":true,"id":1844},{"__isSmartRef__":true,"id":1845},{"__isSmartRef__":true,"id":1846},{"__isSmartRef__":true,"id":1847}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1829":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1830":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1831":{"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)\")"},"1832":{"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)\")"},"1833":{"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)\")"},"1834":{"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)\")"},"1835":{"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)\")"},"1836":{"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)\")"},"1837":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1838":{"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)\")"},"1839":{"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)\")"},"1840":{"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)\")"},"1841":{"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)\")"},"1842":{"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)\")"},"1843":{"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)\")"},"1844":{"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)\")"},"1845":{"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)\")"},"1846":{"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)\")"},"1847":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1848":{"morph":{"__isSmartRef__":true,"id":1811},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1849":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1850}},"1850":{"test01IsMorph":{"__isSmartRef__":true,"id":1851}},"1851":{"varMapping":{"__isSmartRef__":true,"id":1852},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1852":{"this":{"__isSmartRef__":true,"id":1849}},"1853":{},"1854":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1855},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1856},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1857},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1855":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1856":{"morph":{"__isSmartRef__":true,"id":1854},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1857":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1858}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1858":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1859":{"submorphs":[{"__isSmartRef__":true,"id":1860}],"scripts":[],"id":"4E6CAC6A-FC62-45FD-A725-B7C113A9EA0A","shape":{"__isSmartRef__":true,"id":1875},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1876},"eventHandler":{"__isSmartRef__":true,"id":1896},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1897},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1902},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1860},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1187},{"__isSmartRef__":true,"id":1235},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2147}],"neighborCount":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7187},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(77.0,52.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(3.0,2.0)"},"1860":{"submorphs":[],"scripts":[],"id":"1905898A-78DE-425A-A0AD-A33772B1691C","shape":{"__isSmartRef__":true,"id":1861},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1862},"textChunks":[{"__isSmartRef__":true,"id":1871}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1873},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1874},"owner":{"__isSmartRef__":true,"id":1859},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1861":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1862":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1863},{"__isSmartRef__":true,"id":1864},{"__isSmartRef__":true,"id":1865},{"__isSmartRef__":true,"id":1866},{"__isSmartRef__":true,"id":1867},{"__isSmartRef__":true,"id":1868},{"__isSmartRef__":true,"id":1869},{"__isSmartRef__":true,"id":1870}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1863":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1864":{"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)\")"},"1865":{"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)\")"},"1866":{"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)\")"},"1867":{"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)\")"},"1868":{"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)\")"},"1869":{"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)\")"},"1870":{"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)\")"},"1871":{"style":{"__isSmartRef__":true,"id":1872},"chunkOwner":{"__isSmartRef__":true,"id":1860},"_id":"_16078","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1872":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1873":{"morph":{"__isSmartRef__":true,"id":1860},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1874":{"resizeWidth":true},"1875":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1876":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1877},{"__isSmartRef__":true,"id":1878},{"__isSmartRef__":true,"id":1879},{"__isSmartRef__":true,"id":1880},{"__isSmartRef__":true,"id":1881},{"__isSmartRef__":true,"id":1882},{"__isSmartRef__":true,"id":1883},{"__isSmartRef__":true,"id":1884},{"__isSmartRef__":true,"id":1885},{"__isSmartRef__":true,"id":1886},{"__isSmartRef__":true,"id":1887},{"__isSmartRef__":true,"id":1888},{"__isSmartRef__":true,"id":1889},{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":1891},{"__isSmartRef__":true,"id":1892},{"__isSmartRef__":true,"id":1893},{"__isSmartRef__":true,"id":1894},{"__isSmartRef__":true,"id":1895}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1877":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1878":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1879":{"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)\")"},"1880":{"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)\")"},"1881":{"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)\")"},"1882":{"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)\")"},"1883":{"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)\")"},"1884":{"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)\")"},"1885":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1886":{"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)\")"},"1887":{"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)\")"},"1888":{"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)\")"},"1889":{"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)\")"},"1890":{"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)\")"},"1891":{"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)\")"},"1892":{"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)\")"},"1893":{"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)\")"},"1894":{"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)\")"},"1895":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1896":{"morph":{"__isSmartRef__":true,"id":1859},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1897":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1898}},"1898":{"test01IsMorph":{"__isSmartRef__":true,"id":1899}},"1899":{"varMapping":{"__isSmartRef__":true,"id":1900},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1900":{"this":{"__isSmartRef__":true,"id":1897}},"1901":{},"1902":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1903},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1904},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1905},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1903":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1904":{"morph":{"__isSmartRef__":true,"id":1902},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1905":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1906}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1906":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1907":{"submorphs":[{"__isSmartRef__":true,"id":1908}],"scripts":[],"id":"E73839AD-E76A-4FE3-BF7F-09D6E0456ECF","shape":{"__isSmartRef__":true,"id":1923},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1924},"eventHandler":{"__isSmartRef__":true,"id":1944},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1945},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1950},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1908},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1187},{"__isSmartRef__":true,"id":1235},{"__isSmartRef__":true,"id":1955},{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":2003},{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2099}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7125},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(77.0,27.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(3.0,1.0)"},"1908":{"submorphs":[],"scripts":[],"id":"E1A74FCA-B41B-44B2-86F8-F780CB601520","shape":{"__isSmartRef__":true,"id":1909},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1910},"textChunks":[{"__isSmartRef__":true,"id":1919}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1921},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1922},"owner":{"__isSmartRef__":true,"id":1907},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1909":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1910":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1911},{"__isSmartRef__":true,"id":1912},{"__isSmartRef__":true,"id":1913},{"__isSmartRef__":true,"id":1914},{"__isSmartRef__":true,"id":1915},{"__isSmartRef__":true,"id":1916},{"__isSmartRef__":true,"id":1917},{"__isSmartRef__":true,"id":1918}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1911":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1912":{"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)\")"},"1913":{"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)\")"},"1914":{"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)\")"},"1915":{"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)\")"},"1916":{"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)\")"},"1917":{"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)\")"},"1918":{"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)\")"},"1919":{"style":{"__isSmartRef__":true,"id":1920},"chunkOwner":{"__isSmartRef__":true,"id":1908},"_id":"_16077","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1920":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1921":{"morph":{"__isSmartRef__":true,"id":1908},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1922":{"resizeWidth":true},"1923":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1924":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1925},{"__isSmartRef__":true,"id":1926},{"__isSmartRef__":true,"id":1927},{"__isSmartRef__":true,"id":1928},{"__isSmartRef__":true,"id":1929},{"__isSmartRef__":true,"id":1930},{"__isSmartRef__":true,"id":1931},{"__isSmartRef__":true,"id":1932},{"__isSmartRef__":true,"id":1933},{"__isSmartRef__":true,"id":1934},{"__isSmartRef__":true,"id":1935},{"__isSmartRef__":true,"id":1936},{"__isSmartRef__":true,"id":1937},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1939},{"__isSmartRef__":true,"id":1940},{"__isSmartRef__":true,"id":1941},{"__isSmartRef__":true,"id":1942},{"__isSmartRef__":true,"id":1943}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1925":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1926":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1927":{"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)\")"},"1928":{"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)\")"},"1929":{"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)\")"},"1930":{"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)\")"},"1931":{"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)\")"},"1932":{"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)\")"},"1933":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1934":{"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)\")"},"1935":{"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)\")"},"1936":{"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)\")"},"1937":{"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)\")"},"1938":{"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)\")"},"1939":{"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)\")"},"1940":{"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)\")"},"1941":{"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)\")"},"1942":{"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)\")"},"1943":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1944":{"morph":{"__isSmartRef__":true,"id":1907},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1945":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1946}},"1946":{"test01IsMorph":{"__isSmartRef__":true,"id":1947}},"1947":{"varMapping":{"__isSmartRef__":true,"id":1948},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1948":{"this":{"__isSmartRef__":true,"id":1945}},"1949":{},"1950":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1951},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":1952},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1953},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1951":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"1952":{"morph":{"__isSmartRef__":true,"id":1950},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1953":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1954}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"1954":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"1955":{"submorphs":[{"__isSmartRef__":true,"id":1956}],"scripts":[],"id":"2D5302C8-092D-4A63-A03B-B2D2A8575146","shape":{"__isSmartRef__":true,"id":1971},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1972},"eventHandler":{"__isSmartRef__":true,"id":1992},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":1993},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1998},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1956},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1187},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":2003},{"__isSmartRef__":true,"id":2051}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7063},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(77.0,2.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(3.0,0.0)"},"1956":{"submorphs":[],"scripts":[],"id":"750A7815-F527-4231-A67A-54890A58168E","shape":{"__isSmartRef__":true,"id":1957},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":1958},"textChunks":[{"__isSmartRef__":true,"id":1967}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1969},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1970},"owner":{"__isSmartRef__":true,"id":1955},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1957":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1958":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1959},{"__isSmartRef__":true,"id":1960},{"__isSmartRef__":true,"id":1961},{"__isSmartRef__":true,"id":1962},{"__isSmartRef__":true,"id":1963},{"__isSmartRef__":true,"id":1964},{"__isSmartRef__":true,"id":1965},{"__isSmartRef__":true,"id":1966}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1959":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1960":{"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)\")"},"1961":{"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)\")"},"1962":{"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)\")"},"1963":{"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)\")"},"1964":{"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)\")"},"1965":{"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)\")"},"1966":{"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)\")"},"1967":{"style":{"__isSmartRef__":true,"id":1968},"chunkOwner":{"__isSmartRef__":true,"id":1956},"_id":"_16076","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1968":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1969":{"morph":{"__isSmartRef__":true,"id":1956},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1970":{"resizeWidth":true},"1971":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"1972":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1973},{"__isSmartRef__":true,"id":1974},{"__isSmartRef__":true,"id":1975},{"__isSmartRef__":true,"id":1976},{"__isSmartRef__":true,"id":1977},{"__isSmartRef__":true,"id":1978},{"__isSmartRef__":true,"id":1979},{"__isSmartRef__":true,"id":1980},{"__isSmartRef__":true,"id":1981},{"__isSmartRef__":true,"id":1982},{"__isSmartRef__":true,"id":1983},{"__isSmartRef__":true,"id":1984},{"__isSmartRef__":true,"id":1985},{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1987},{"__isSmartRef__":true,"id":1988},{"__isSmartRef__":true,"id":1989},{"__isSmartRef__":true,"id":1990},{"__isSmartRef__":true,"id":1991}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1973":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1974":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"1975":{"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)\")"},"1976":{"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)\")"},"1977":{"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)\")"},"1978":{"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)\")"},"1979":{"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)\")"},"1980":{"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)\")"},"1981":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1982":{"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)\")"},"1983":{"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)\")"},"1984":{"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)\")"},"1985":{"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)\")"},"1986":{"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)\")"},"1987":{"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)\")"},"1988":{"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)\")"},"1989":{"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)\")"},"1990":{"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)\")"},"1991":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"1992":{"morph":{"__isSmartRef__":true,"id":1955},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1993":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1994}},"1994":{"test01IsMorph":{"__isSmartRef__":true,"id":1995}},"1995":{"varMapping":{"__isSmartRef__":true,"id":1996},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1996":{"this":{"__isSmartRef__":true,"id":1993}},"1997":{},"1998":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1999},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2000},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2001},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"1999":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2000":{"morph":{"__isSmartRef__":true,"id":1998},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2001":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2002}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2002":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2003":{"submorphs":[{"__isSmartRef__":true,"id":2004}],"scripts":[],"id":"2F7BB266-8FFA-424E-AD36-1EA5DE092198","shape":{"__isSmartRef__":true,"id":2019},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2020},"eventHandler":{"__isSmartRef__":true,"id":2040},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2041},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2046},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2004},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1955},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2819},{"__isSmartRef__":true,"id":2771}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7001},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(102.0,2.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(4.0,0.0)"},"2004":{"submorphs":[],"scripts":[],"id":"430B1D8C-5562-4AAD-AC91-781413C58EE1","shape":{"__isSmartRef__":true,"id":2005},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2006},"textChunks":[{"__isSmartRef__":true,"id":2015}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2017},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2018},"owner":{"__isSmartRef__":true,"id":2003},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2005":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2006":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2007},{"__isSmartRef__":true,"id":2008},{"__isSmartRef__":true,"id":2009},{"__isSmartRef__":true,"id":2010},{"__isSmartRef__":true,"id":2011},{"__isSmartRef__":true,"id":2012},{"__isSmartRef__":true,"id":2013},{"__isSmartRef__":true,"id":2014}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2007":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2008":{"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)\")"},"2009":{"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)\")"},"2010":{"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)\")"},"2011":{"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)\")"},"2012":{"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)\")"},"2013":{"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)\")"},"2014":{"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)\")"},"2015":{"style":{"__isSmartRef__":true,"id":2016},"chunkOwner":{"__isSmartRef__":true,"id":2004},"_id":"_16085","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2016":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2017":{"morph":{"__isSmartRef__":true,"id":2004},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2018":{"resizeWidth":true},"2019":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2020":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2021},{"__isSmartRef__":true,"id":2022},{"__isSmartRef__":true,"id":2023},{"__isSmartRef__":true,"id":2024},{"__isSmartRef__":true,"id":2025},{"__isSmartRef__":true,"id":2026},{"__isSmartRef__":true,"id":2027},{"__isSmartRef__":true,"id":2028},{"__isSmartRef__":true,"id":2029},{"__isSmartRef__":true,"id":2030},{"__isSmartRef__":true,"id":2031},{"__isSmartRef__":true,"id":2032},{"__isSmartRef__":true,"id":2033},{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2035},{"__isSmartRef__":true,"id":2036},{"__isSmartRef__":true,"id":2037},{"__isSmartRef__":true,"id":2038},{"__isSmartRef__":true,"id":2039}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2021":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2022":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2023":{"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)\")"},"2024":{"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)\")"},"2025":{"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)\")"},"2026":{"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)\")"},"2027":{"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)\")"},"2028":{"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)\")"},"2029":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2030":{"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)\")"},"2031":{"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)\")"},"2032":{"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)\")"},"2033":{"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)\")"},"2034":{"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)\")"},"2035":{"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)\")"},"2036":{"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)\")"},"2037":{"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)\")"},"2038":{"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)\")"},"2039":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2040":{"morph":{"__isSmartRef__":true,"id":2003},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2041":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2042}},"2042":{"test01IsMorph":{"__isSmartRef__":true,"id":2043}},"2043":{"varMapping":{"__isSmartRef__":true,"id":2044},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2044":{"this":{"__isSmartRef__":true,"id":2041}},"2045":{},"2046":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2047},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2048},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2049},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2047":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2048":{"morph":{"__isSmartRef__":true,"id":2046},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2049":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2050}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2050":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2051":{"submorphs":[{"__isSmartRef__":true,"id":2052}],"scripts":[],"id":"58E7326C-A0FC-4520-8B21-24B989D9D7D9","shape":{"__isSmartRef__":true,"id":2067},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2068},"eventHandler":{"__isSmartRef__":true,"id":2088},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2089},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2094},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2052},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1955},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":2003},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2819},{"__isSmartRef__":true,"id":2771},{"__isSmartRef__":true,"id":2723}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6939},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(102.0,27.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(4.0,1.0)"},"2052":{"submorphs":[],"scripts":[],"id":"FA37302B-8FD9-4F47-BF3D-84B10C9F1E25","shape":{"__isSmartRef__":true,"id":2053},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2054},"textChunks":[{"__isSmartRef__":true,"id":2063}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2065},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2066},"owner":{"__isSmartRef__":true,"id":2051},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2053":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2054":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2055},{"__isSmartRef__":true,"id":2056},{"__isSmartRef__":true,"id":2057},{"__isSmartRef__":true,"id":2058},{"__isSmartRef__":true,"id":2059},{"__isSmartRef__":true,"id":2060},{"__isSmartRef__":true,"id":2061},{"__isSmartRef__":true,"id":2062}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2055":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2056":{"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)\")"},"2057":{"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)\")"},"2058":{"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)\")"},"2059":{"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)\")"},"2060":{"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)\")"},"2061":{"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)\")"},"2062":{"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)\")"},"2063":{"style":{"__isSmartRef__":true,"id":2064},"chunkOwner":{"__isSmartRef__":true,"id":2052},"_id":"_16086","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2064":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2065":{"morph":{"__isSmartRef__":true,"id":2052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2066":{"resizeWidth":true},"2067":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2068":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2069},{"__isSmartRef__":true,"id":2070},{"__isSmartRef__":true,"id":2071},{"__isSmartRef__":true,"id":2072},{"__isSmartRef__":true,"id":2073},{"__isSmartRef__":true,"id":2074},{"__isSmartRef__":true,"id":2075},{"__isSmartRef__":true,"id":2076},{"__isSmartRef__":true,"id":2077},{"__isSmartRef__":true,"id":2078},{"__isSmartRef__":true,"id":2079},{"__isSmartRef__":true,"id":2080},{"__isSmartRef__":true,"id":2081},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2083},{"__isSmartRef__":true,"id":2084},{"__isSmartRef__":true,"id":2085},{"__isSmartRef__":true,"id":2086},{"__isSmartRef__":true,"id":2087}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2069":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2070":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2071":{"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)\")"},"2072":{"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)\")"},"2073":{"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)\")"},"2074":{"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)\")"},"2075":{"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)\")"},"2076":{"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)\")"},"2077":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2078":{"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)\")"},"2079":{"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)\")"},"2080":{"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)\")"},"2081":{"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)\")"},"2082":{"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)\")"},"2083":{"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)\")"},"2084":{"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)\")"},"2085":{"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)\")"},"2086":{"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)\")"},"2087":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2088":{"morph":{"__isSmartRef__":true,"id":2051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2089":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2090}},"2090":{"test01IsMorph":{"__isSmartRef__":true,"id":2091}},"2091":{"varMapping":{"__isSmartRef__":true,"id":2092},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2092":{"this":{"__isSmartRef__":true,"id":2089}},"2093":{},"2094":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2095},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2096},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2097},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2095":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2096":{"morph":{"__isSmartRef__":true,"id":2094},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2097":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2098}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2098":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2099":{"submorphs":[{"__isSmartRef__":true,"id":2100}],"scripts":[],"id":"B3BF732A-3C66-4BCA-A54F-764030734049","shape":{"__isSmartRef__":true,"id":2115},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2116},"eventHandler":{"__isSmartRef__":true,"id":2136},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2137},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2142},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2100},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2771},{"__isSmartRef__":true,"id":2723},{"__isSmartRef__":true,"id":2675}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6877},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(102.0,52.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(4.0,2.0)"},"2100":{"submorphs":[],"scripts":[],"id":"CF2E2D69-9950-4EAF-8FEC-E88EA0BEFFD6","shape":{"__isSmartRef__":true,"id":2101},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2102},"textChunks":[{"__isSmartRef__":true,"id":2111}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2113},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2114},"owner":{"__isSmartRef__":true,"id":2099},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2101":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2102":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2103},{"__isSmartRef__":true,"id":2104},{"__isSmartRef__":true,"id":2105},{"__isSmartRef__":true,"id":2106},{"__isSmartRef__":true,"id":2107},{"__isSmartRef__":true,"id":2108},{"__isSmartRef__":true,"id":2109},{"__isSmartRef__":true,"id":2110}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2103":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2104":{"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)\")"},"2105":{"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)\")"},"2106":{"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)\")"},"2107":{"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)\")"},"2108":{"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)\")"},"2109":{"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)\")"},"2110":{"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)\")"},"2111":{"style":{"__isSmartRef__":true,"id":2112},"chunkOwner":{"__isSmartRef__":true,"id":2100},"_id":"_16087","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2112":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2113":{"morph":{"__isSmartRef__":true,"id":2100},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2114":{"resizeWidth":true},"2115":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2116":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2117},{"__isSmartRef__":true,"id":2118},{"__isSmartRef__":true,"id":2119},{"__isSmartRef__":true,"id":2120},{"__isSmartRef__":true,"id":2121},{"__isSmartRef__":true,"id":2122},{"__isSmartRef__":true,"id":2123},{"__isSmartRef__":true,"id":2124},{"__isSmartRef__":true,"id":2125},{"__isSmartRef__":true,"id":2126},{"__isSmartRef__":true,"id":2127},{"__isSmartRef__":true,"id":2128},{"__isSmartRef__":true,"id":2129},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2131},{"__isSmartRef__":true,"id":2132},{"__isSmartRef__":true,"id":2133},{"__isSmartRef__":true,"id":2134},{"__isSmartRef__":true,"id":2135}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2117":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2118":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2119":{"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)\")"},"2120":{"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)\")"},"2121":{"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)\")"},"2122":{"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)\")"},"2123":{"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)\")"},"2124":{"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)\")"},"2125":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2126":{"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)\")"},"2127":{"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)\")"},"2128":{"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)\")"},"2129":{"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)\")"},"2130":{"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)\")"},"2131":{"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)\")"},"2132":{"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)\")"},"2133":{"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)\")"},"2134":{"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)\")"},"2135":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2136":{"morph":{"__isSmartRef__":true,"id":2099},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2137":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2138}},"2138":{"test01IsMorph":{"__isSmartRef__":true,"id":2139}},"2139":{"varMapping":{"__isSmartRef__":true,"id":2140},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2140":{"this":{"__isSmartRef__":true,"id":2137}},"2141":{},"2142":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2143},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2144},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2145},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2143":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2144":{"morph":{"__isSmartRef__":true,"id":2142},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2145":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2146}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2146":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2147":{"submorphs":[{"__isSmartRef__":true,"id":2148}],"scripts":[],"id":"BA1EEA23-1E3A-44EF-9B1B-0BB9142F7921","shape":{"__isSmartRef__":true,"id":2163},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2164},"eventHandler":{"__isSmartRef__":true,"id":2184},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2185},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2190},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2148},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1859},{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2195},{"__isSmartRef__":true,"id":2723},{"__isSmartRef__":true,"id":2675},{"__isSmartRef__":true,"id":2627}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6815},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(102.0,77.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(4.0,3.0)"},"2148":{"submorphs":[],"scripts":[],"id":"ACFF0083-71BA-4019-9AD4-C0714810B69D","shape":{"__isSmartRef__":true,"id":2149},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2150},"textChunks":[{"__isSmartRef__":true,"id":2159}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2161},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2162},"owner":{"__isSmartRef__":true,"id":2147},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2149":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2150":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2151},{"__isSmartRef__":true,"id":2152},{"__isSmartRef__":true,"id":2153},{"__isSmartRef__":true,"id":2154},{"__isSmartRef__":true,"id":2155},{"__isSmartRef__":true,"id":2156},{"__isSmartRef__":true,"id":2157},{"__isSmartRef__":true,"id":2158}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2151":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2152":{"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)\")"},"2153":{"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)\")"},"2154":{"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)\")"},"2155":{"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)\")"},"2156":{"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)\")"},"2157":{"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)\")"},"2158":{"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)\")"},"2159":{"style":{"__isSmartRef__":true,"id":2160},"chunkOwner":{"__isSmartRef__":true,"id":2148},"_id":"_16088","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2160":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2161":{"morph":{"__isSmartRef__":true,"id":2148},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2162":{"resizeWidth":true},"2163":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2164":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2165},{"__isSmartRef__":true,"id":2166},{"__isSmartRef__":true,"id":2167},{"__isSmartRef__":true,"id":2168},{"__isSmartRef__":true,"id":2169},{"__isSmartRef__":true,"id":2170},{"__isSmartRef__":true,"id":2171},{"__isSmartRef__":true,"id":2172},{"__isSmartRef__":true,"id":2173},{"__isSmartRef__":true,"id":2174},{"__isSmartRef__":true,"id":2175},{"__isSmartRef__":true,"id":2176},{"__isSmartRef__":true,"id":2177},{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2179},{"__isSmartRef__":true,"id":2180},{"__isSmartRef__":true,"id":2181},{"__isSmartRef__":true,"id":2182},{"__isSmartRef__":true,"id":2183}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2165":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2166":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2167":{"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)\")"},"2168":{"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)\")"},"2169":{"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)\")"},"2170":{"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)\")"},"2171":{"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)\")"},"2172":{"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)\")"},"2173":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2174":{"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)\")"},"2175":{"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)\")"},"2176":{"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)\")"},"2177":{"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)\")"},"2178":{"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)\")"},"2179":{"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)\")"},"2180":{"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)\")"},"2181":{"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)\")"},"2182":{"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)\")"},"2183":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2184":{"morph":{"__isSmartRef__":true,"id":2147},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2185":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2186}},"2186":{"test01IsMorph":{"__isSmartRef__":true,"id":2187}},"2187":{"varMapping":{"__isSmartRef__":true,"id":2188},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2188":{"this":{"__isSmartRef__":true,"id":2185}},"2189":{},"2190":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2191},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2192},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2193},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2191":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2192":{"morph":{"__isSmartRef__":true,"id":2190},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2193":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2194}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2194":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2195":{"submorphs":[{"__isSmartRef__":true,"id":2196}],"scripts":[],"id":"CAEBEDF0-966C-49D7-B8CB-C863574D56FC","shape":{"__isSmartRef__":true,"id":2211},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2212},"eventHandler":{"__isSmartRef__":true,"id":2232},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2233},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2238},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2196},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1811},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2675},{"__isSmartRef__":true,"id":2627},{"__isSmartRef__":true,"id":2579}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6753},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(102.0,102.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(4.0,4.0)"},"2196":{"submorphs":[],"scripts":[],"id":"E33AD5AE-F71D-435B-A04B-473D60673988","shape":{"__isSmartRef__":true,"id":2197},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2198},"textChunks":[{"__isSmartRef__":true,"id":2207}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2209},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2210},"owner":{"__isSmartRef__":true,"id":2195},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2197":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2198":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2199},{"__isSmartRef__":true,"id":2200},{"__isSmartRef__":true,"id":2201},{"__isSmartRef__":true,"id":2202},{"__isSmartRef__":true,"id":2203},{"__isSmartRef__":true,"id":2204},{"__isSmartRef__":true,"id":2205},{"__isSmartRef__":true,"id":2206}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2199":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2200":{"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)\")"},"2201":{"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)\")"},"2202":{"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)\")"},"2203":{"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)\")"},"2204":{"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)\")"},"2205":{"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)\")"},"2206":{"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)\")"},"2207":{"style":{"__isSmartRef__":true,"id":2208},"chunkOwner":{"__isSmartRef__":true,"id":2196},"_id":"_16089","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2208":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2209":{"morph":{"__isSmartRef__":true,"id":2196},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2210":{"resizeWidth":true},"2211":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2212":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2213},{"__isSmartRef__":true,"id":2214},{"__isSmartRef__":true,"id":2215},{"__isSmartRef__":true,"id":2216},{"__isSmartRef__":true,"id":2217},{"__isSmartRef__":true,"id":2218},{"__isSmartRef__":true,"id":2219},{"__isSmartRef__":true,"id":2220},{"__isSmartRef__":true,"id":2221},{"__isSmartRef__":true,"id":2222},{"__isSmartRef__":true,"id":2223},{"__isSmartRef__":true,"id":2224},{"__isSmartRef__":true,"id":2225},{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2227},{"__isSmartRef__":true,"id":2228},{"__isSmartRef__":true,"id":2229},{"__isSmartRef__":true,"id":2230},{"__isSmartRef__":true,"id":2231}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2213":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2214":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2215":{"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)\")"},"2216":{"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)\")"},"2217":{"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)\")"},"2218":{"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)\")"},"2219":{"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)\")"},"2220":{"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)\")"},"2221":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2222":{"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)\")"},"2223":{"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)\")"},"2224":{"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)\")"},"2225":{"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)\")"},"2226":{"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)\")"},"2227":{"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)\")"},"2228":{"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)\")"},"2229":{"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)\")"},"2230":{"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)\")"},"2231":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2232":{"morph":{"__isSmartRef__":true,"id":2195},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2233":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2234}},"2234":{"test01IsMorph":{"__isSmartRef__":true,"id":2235}},"2235":{"varMapping":{"__isSmartRef__":true,"id":2236},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2236":{"this":{"__isSmartRef__":true,"id":2233}},"2237":{},"2238":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2239},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2240},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2241},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2239":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2240":{"morph":{"__isSmartRef__":true,"id":2238},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2241":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2242}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2242":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2243":{"submorphs":[{"__isSmartRef__":true,"id":2244}],"scripts":[],"id":"6E60796B-ED31-437E-A887-862A20B50B48","shape":{"__isSmartRef__":true,"id":2259},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2260},"eventHandler":{"__isSmartRef__":true,"id":2280},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2281},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2286},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2244},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":2195},{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2627},{"__isSmartRef__":true,"id":2579},{"__isSmartRef__":true,"id":2531}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6691},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(102.0,127.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(4.0,5.0)"},"2244":{"submorphs":[],"scripts":[],"id":"F76D1E64-7108-423F-BB53-E7529F2B2ECF","shape":{"__isSmartRef__":true,"id":2245},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2246},"textChunks":[{"__isSmartRef__":true,"id":2255}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2257},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2258},"owner":{"__isSmartRef__":true,"id":2243},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2245":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2246":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2247},{"__isSmartRef__":true,"id":2248},{"__isSmartRef__":true,"id":2249},{"__isSmartRef__":true,"id":2250},{"__isSmartRef__":true,"id":2251},{"__isSmartRef__":true,"id":2252},{"__isSmartRef__":true,"id":2253},{"__isSmartRef__":true,"id":2254}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2247":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2248":{"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)\")"},"2249":{"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)\")"},"2250":{"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)\")"},"2251":{"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)\")"},"2252":{"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)\")"},"2253":{"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)\")"},"2254":{"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)\")"},"2255":{"style":{"__isSmartRef__":true,"id":2256},"chunkOwner":{"__isSmartRef__":true,"id":2244},"_id":"_16090","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2256":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2257":{"morph":{"__isSmartRef__":true,"id":2244},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2258":{"resizeWidth":true},"2259":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2260":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2261},{"__isSmartRef__":true,"id":2262},{"__isSmartRef__":true,"id":2263},{"__isSmartRef__":true,"id":2264},{"__isSmartRef__":true,"id":2265},{"__isSmartRef__":true,"id":2266},{"__isSmartRef__":true,"id":2267},{"__isSmartRef__":true,"id":2268},{"__isSmartRef__":true,"id":2269},{"__isSmartRef__":true,"id":2270},{"__isSmartRef__":true,"id":2271},{"__isSmartRef__":true,"id":2272},{"__isSmartRef__":true,"id":2273},{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2275},{"__isSmartRef__":true,"id":2276},{"__isSmartRef__":true,"id":2277},{"__isSmartRef__":true,"id":2278},{"__isSmartRef__":true,"id":2279}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2261":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2262":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2263":{"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)\")"},"2264":{"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)\")"},"2265":{"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)\")"},"2266":{"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)\")"},"2267":{"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)\")"},"2268":{"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)\")"},"2269":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2270":{"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)\")"},"2271":{"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)\")"},"2272":{"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)\")"},"2273":{"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)\")"},"2274":{"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)\")"},"2275":{"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)\")"},"2276":{"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)\")"},"2277":{"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)\")"},"2278":{"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)\")"},"2279":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2280":{"morph":{"__isSmartRef__":true,"id":2243},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2281":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2282}},"2282":{"test01IsMorph":{"__isSmartRef__":true,"id":2283}},"2283":{"varMapping":{"__isSmartRef__":true,"id":2284},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2284":{"this":{"__isSmartRef__":true,"id":2281}},"2285":{},"2286":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2287},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2288},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2289},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2287":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2288":{"morph":{"__isSmartRef__":true,"id":2286},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2289":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2290}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2290":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2291":{"submorphs":[{"__isSmartRef__":true,"id":2292}],"scripts":[],"id":"16AD9E2D-AA9A-4D28-982E-A9FD14391818","shape":{"__isSmartRef__":true,"id":2307},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2308},"eventHandler":{"__isSmartRef__":true,"id":2328},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2329},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2334},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2292},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2579},{"__isSmartRef__":true,"id":2531},{"__isSmartRef__":true,"id":2483}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6629},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(102.0,152.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(4.0,6.0)"},"2292":{"submorphs":[],"scripts":[],"id":"75159141-883D-424E-8DA3-6AC29347BED0","shape":{"__isSmartRef__":true,"id":2293},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2294},"textChunks":[{"__isSmartRef__":true,"id":2303}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2305},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2306},"owner":{"__isSmartRef__":true,"id":2291},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2293":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2294":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2295},{"__isSmartRef__":true,"id":2296},{"__isSmartRef__":true,"id":2297},{"__isSmartRef__":true,"id":2298},{"__isSmartRef__":true,"id":2299},{"__isSmartRef__":true,"id":2300},{"__isSmartRef__":true,"id":2301},{"__isSmartRef__":true,"id":2302}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2295":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2296":{"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)\")"},"2297":{"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)\")"},"2298":{"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)\")"},"2299":{"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)\")"},"2300":{"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)\")"},"2301":{"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)\")"},"2302":{"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)\")"},"2303":{"style":{"__isSmartRef__":true,"id":2304},"chunkOwner":{"__isSmartRef__":true,"id":2292},"_id":"_16091","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2304":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2305":{"morph":{"__isSmartRef__":true,"id":2292},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2306":{"resizeWidth":true},"2307":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2308":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2309},{"__isSmartRef__":true,"id":2310},{"__isSmartRef__":true,"id":2311},{"__isSmartRef__":true,"id":2312},{"__isSmartRef__":true,"id":2313},{"__isSmartRef__":true,"id":2314},{"__isSmartRef__":true,"id":2315},{"__isSmartRef__":true,"id":2316},{"__isSmartRef__":true,"id":2317},{"__isSmartRef__":true,"id":2318},{"__isSmartRef__":true,"id":2319},{"__isSmartRef__":true,"id":2320},{"__isSmartRef__":true,"id":2321},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2323},{"__isSmartRef__":true,"id":2324},{"__isSmartRef__":true,"id":2325},{"__isSmartRef__":true,"id":2326},{"__isSmartRef__":true,"id":2327}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2309":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2310":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2311":{"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)\")"},"2312":{"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)\")"},"2313":{"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)\")"},"2314":{"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)\")"},"2315":{"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)\")"},"2316":{"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)\")"},"2317":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2318":{"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)\")"},"2319":{"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)\")"},"2320":{"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)\")"},"2321":{"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)\")"},"2322":{"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)\")"},"2323":{"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)\")"},"2324":{"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)\")"},"2325":{"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)\")"},"2326":{"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)\")"},"2327":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2328":{"morph":{"__isSmartRef__":true,"id":2291},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2329":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2330}},"2330":{"test01IsMorph":{"__isSmartRef__":true,"id":2331}},"2331":{"varMapping":{"__isSmartRef__":true,"id":2332},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2332":{"this":{"__isSmartRef__":true,"id":2329}},"2333":{},"2334":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2335},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2336},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2337},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2335":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2336":{"morph":{"__isSmartRef__":true,"id":2334},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2337":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2338}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2338":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2339":{"submorphs":[{"__isSmartRef__":true,"id":2340}],"scripts":[],"id":"F7EEB062-6F2B-4D23-9AA8-10B55733E4E9","shape":{"__isSmartRef__":true,"id":2355},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2356},"eventHandler":{"__isSmartRef__":true,"id":2376},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2377},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2382},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2340},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":2387},{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2435},{"__isSmartRef__":true,"id":2531},{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":3251}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6567},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(102.0,177.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(4.0,7.0)"},"2340":{"submorphs":[],"scripts":[],"id":"0F31BCC6-187B-4548-8B02-03F695E6CC8C","shape":{"__isSmartRef__":true,"id":2341},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2342},"textChunks":[{"__isSmartRef__":true,"id":2351}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2353},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2354},"owner":{"__isSmartRef__":true,"id":2339},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2341":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2342":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2343},{"__isSmartRef__":true,"id":2344},{"__isSmartRef__":true,"id":2345},{"__isSmartRef__":true,"id":2346},{"__isSmartRef__":true,"id":2347},{"__isSmartRef__":true,"id":2348},{"__isSmartRef__":true,"id":2349},{"__isSmartRef__":true,"id":2350}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2343":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2344":{"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)\")"},"2345":{"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)\")"},"2346":{"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)\")"},"2347":{"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)\")"},"2348":{"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)\")"},"2349":{"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)\")"},"2350":{"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)\")"},"2351":{"style":{"__isSmartRef__":true,"id":2352},"chunkOwner":{"__isSmartRef__":true,"id":2340},"_id":"_16092","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2352":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2353":{"morph":{"__isSmartRef__":true,"id":2340},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2354":{"resizeWidth":true},"2355":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2356":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2357},{"__isSmartRef__":true,"id":2358},{"__isSmartRef__":true,"id":2359},{"__isSmartRef__":true,"id":2360},{"__isSmartRef__":true,"id":2361},{"__isSmartRef__":true,"id":2362},{"__isSmartRef__":true,"id":2363},{"__isSmartRef__":true,"id":2364},{"__isSmartRef__":true,"id":2365},{"__isSmartRef__":true,"id":2366},{"__isSmartRef__":true,"id":2367},{"__isSmartRef__":true,"id":2368},{"__isSmartRef__":true,"id":2369},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2371},{"__isSmartRef__":true,"id":2372},{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":2374},{"__isSmartRef__":true,"id":2375}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2357":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2358":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2359":{"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)\")"},"2360":{"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)\")"},"2361":{"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)\")"},"2362":{"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)\")"},"2363":{"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)\")"},"2364":{"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)\")"},"2365":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2366":{"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)\")"},"2367":{"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)\")"},"2368":{"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)\")"},"2369":{"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)\")"},"2370":{"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)\")"},"2371":{"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)\")"},"2372":{"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)\")"},"2373":{"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)\")"},"2374":{"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)\")"},"2375":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2376":{"morph":{"__isSmartRef__":true,"id":2339},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2377":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2378}},"2378":{"test01IsMorph":{"__isSmartRef__":true,"id":2379}},"2379":{"varMapping":{"__isSmartRef__":true,"id":2380},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2380":{"this":{"__isSmartRef__":true,"id":2377}},"2381":{},"2382":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2383},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2384},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2385},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2383":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2384":{"morph":{"__isSmartRef__":true,"id":2382},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2385":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2386}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2386":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2387":{"submorphs":[{"__isSmartRef__":true,"id":2388}],"scripts":[],"id":"6AA4BDC1-DFA4-4F55-8817-2E9B209C9943","shape":{"__isSmartRef__":true,"id":2403},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2404},"eventHandler":{"__isSmartRef__":true,"id":2424},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2425},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2430},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2388},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":1571},{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2435}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6505},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(77.0,202.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(3.0,8.0)"},"2388":{"submorphs":[],"scripts":[],"id":"C73F9944-D9D0-4AB7-811B-365A49644EE0","shape":{"__isSmartRef__":true,"id":2389},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2390},"textChunks":[{"__isSmartRef__":true,"id":2399}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2401},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2402},"owner":{"__isSmartRef__":true,"id":2387},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2389":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2390":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2391},{"__isSmartRef__":true,"id":2392},{"__isSmartRef__":true,"id":2393},{"__isSmartRef__":true,"id":2394},{"__isSmartRef__":true,"id":2395},{"__isSmartRef__":true,"id":2396},{"__isSmartRef__":true,"id":2397},{"__isSmartRef__":true,"id":2398}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2391":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2392":{"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)\")"},"2393":{"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)\")"},"2394":{"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)\")"},"2395":{"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)\")"},"2396":{"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)\")"},"2397":{"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)\")"},"2398":{"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)\")"},"2399":{"style":{"__isSmartRef__":true,"id":2400},"chunkOwner":{"__isSmartRef__":true,"id":2388},"_id":"_16084","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2400":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2401":{"morph":{"__isSmartRef__":true,"id":2388},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2402":{"resizeWidth":true},"2403":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2404":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2405},{"__isSmartRef__":true,"id":2406},{"__isSmartRef__":true,"id":2407},{"__isSmartRef__":true,"id":2408},{"__isSmartRef__":true,"id":2409},{"__isSmartRef__":true,"id":2410},{"__isSmartRef__":true,"id":2411},{"__isSmartRef__":true,"id":2412},{"__isSmartRef__":true,"id":2413},{"__isSmartRef__":true,"id":2414},{"__isSmartRef__":true,"id":2415},{"__isSmartRef__":true,"id":2416},{"__isSmartRef__":true,"id":2417},{"__isSmartRef__":true,"id":2418},{"__isSmartRef__":true,"id":2419},{"__isSmartRef__":true,"id":2420},{"__isSmartRef__":true,"id":2421},{"__isSmartRef__":true,"id":2422},{"__isSmartRef__":true,"id":2423}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2405":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2406":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2407":{"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)\")"},"2408":{"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)\")"},"2409":{"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)\")"},"2410":{"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)\")"},"2411":{"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)\")"},"2412":{"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)\")"},"2413":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2414":{"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)\")"},"2415":{"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)\")"},"2416":{"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)\")"},"2417":{"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)\")"},"2418":{"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)\")"},"2419":{"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)\")"},"2420":{"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)\")"},"2421":{"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)\")"},"2422":{"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)\")"},"2423":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2424":{"morph":{"__isSmartRef__":true,"id":2387},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2425":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2426}},"2426":{"test01IsMorph":{"__isSmartRef__":true,"id":2427}},"2427":{"varMapping":{"__isSmartRef__":true,"id":2428},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2428":{"this":{"__isSmartRef__":true,"id":2425}},"2429":{},"2430":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2431},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2432},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2433},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2431":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2432":{"morph":{"__isSmartRef__":true,"id":2430},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2433":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2434}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2434":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2435":{"submorphs":[{"__isSmartRef__":true,"id":2436}],"scripts":[],"id":"B2E24007-0C9E-4B0C-98E6-C9BADCD4F2B1","shape":{"__isSmartRef__":true,"id":2451},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2452},"eventHandler":{"__isSmartRef__":true,"id":2472},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2473},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2478},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2436},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":1619},{"__isSmartRef__":true,"id":2387},{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":3251}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6443},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(102.0,202.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(4.0,8.0)"},"2436":{"submorphs":[],"scripts":[],"id":"01B5CEBC-0191-44B0-8137-35CEEBE16697","shape":{"__isSmartRef__":true,"id":2437},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2438},"textChunks":[{"__isSmartRef__":true,"id":2447}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2449},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2450},"owner":{"__isSmartRef__":true,"id":2435},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2437":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2438":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2440},{"__isSmartRef__":true,"id":2441},{"__isSmartRef__":true,"id":2442},{"__isSmartRef__":true,"id":2443},{"__isSmartRef__":true,"id":2444},{"__isSmartRef__":true,"id":2445},{"__isSmartRef__":true,"id":2446}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2439":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2440":{"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)\")"},"2441":{"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)\")"},"2442":{"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)\")"},"2443":{"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)\")"},"2444":{"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)\")"},"2445":{"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)\")"},"2446":{"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)\")"},"2447":{"style":{"__isSmartRef__":true,"id":2448},"chunkOwner":{"__isSmartRef__":true,"id":2436},"_id":"_16093","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2448":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2449":{"morph":{"__isSmartRef__":true,"id":2436},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2450":{"resizeWidth":true},"2451":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2452":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2453},{"__isSmartRef__":true,"id":2454},{"__isSmartRef__":true,"id":2455},{"__isSmartRef__":true,"id":2456},{"__isSmartRef__":true,"id":2457},{"__isSmartRef__":true,"id":2458},{"__isSmartRef__":true,"id":2459},{"__isSmartRef__":true,"id":2460},{"__isSmartRef__":true,"id":2461},{"__isSmartRef__":true,"id":2462},{"__isSmartRef__":true,"id":2463},{"__isSmartRef__":true,"id":2464},{"__isSmartRef__":true,"id":2465},{"__isSmartRef__":true,"id":2466},{"__isSmartRef__":true,"id":2467},{"__isSmartRef__":true,"id":2468},{"__isSmartRef__":true,"id":2469},{"__isSmartRef__":true,"id":2470},{"__isSmartRef__":true,"id":2471}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2453":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2454":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2455":{"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)\")"},"2456":{"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)\")"},"2457":{"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)\")"},"2458":{"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)\")"},"2459":{"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)\")"},"2460":{"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)\")"},"2461":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2462":{"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)\")"},"2463":{"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)\")"},"2464":{"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)\")"},"2465":{"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)\")"},"2466":{"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)\")"},"2467":{"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)\")"},"2468":{"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)\")"},"2469":{"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)\")"},"2470":{"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)\")"},"2471":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2472":{"morph":{"__isSmartRef__":true,"id":2435},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2473":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2474}},"2474":{"test01IsMorph":{"__isSmartRef__":true,"id":2475}},"2475":{"varMapping":{"__isSmartRef__":true,"id":2476},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2476":{"this":{"__isSmartRef__":true,"id":2473}},"2477":{},"2478":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2479},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2480},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2481},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2479":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2480":{"morph":{"__isSmartRef__":true,"id":2478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2481":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2482}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2482":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2483":{"submorphs":[{"__isSmartRef__":true,"id":2484}],"scripts":[],"id":"D1F74F48-1CB5-4649-B189-F680CE35B502","shape":{"__isSmartRef__":true,"id":2499},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2500},"eventHandler":{"__isSmartRef__":true,"id":2520},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2521},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2526},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2484},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2435},{"__isSmartRef__":true,"id":2531},{"__isSmartRef__":true,"id":3251},{"__isSmartRef__":true,"id":3155},{"__isSmartRef__":true,"id":3203},{"__isSmartRef__":true,"id":3299}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6381},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(127.0,177.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(5.0,7.0)"},"2484":{"submorphs":[],"scripts":[],"id":"9689A1B4-DB38-48E8-962D-2DD2F175A104","shape":{"__isSmartRef__":true,"id":2485},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2486},"textChunks":[{"__isSmartRef__":true,"id":2495}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2497},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2498},"owner":{"__isSmartRef__":true,"id":2483},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2485":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2486":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2487},{"__isSmartRef__":true,"id":2488},{"__isSmartRef__":true,"id":2489},{"__isSmartRef__":true,"id":2490},{"__isSmartRef__":true,"id":2491},{"__isSmartRef__":true,"id":2492},{"__isSmartRef__":true,"id":2493},{"__isSmartRef__":true,"id":2494}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2487":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2488":{"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)\")"},"2489":{"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)\")"},"2490":{"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)\")"},"2491":{"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)\")"},"2492":{"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)\")"},"2493":{"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)\")"},"2494":{"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)\")"},"2495":{"style":{"__isSmartRef__":true,"id":2496},"chunkOwner":{"__isSmartRef__":true,"id":2484},"_id":"_16101","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2496":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2497":{"morph":{"__isSmartRef__":true,"id":2484},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2498":{"resizeWidth":true},"2499":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2500":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2501},{"__isSmartRef__":true,"id":2502},{"__isSmartRef__":true,"id":2503},{"__isSmartRef__":true,"id":2504},{"__isSmartRef__":true,"id":2505},{"__isSmartRef__":true,"id":2506},{"__isSmartRef__":true,"id":2507},{"__isSmartRef__":true,"id":2508},{"__isSmartRef__":true,"id":2509},{"__isSmartRef__":true,"id":2510},{"__isSmartRef__":true,"id":2511},{"__isSmartRef__":true,"id":2512},{"__isSmartRef__":true,"id":2513},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":2515},{"__isSmartRef__":true,"id":2516},{"__isSmartRef__":true,"id":2517},{"__isSmartRef__":true,"id":2518},{"__isSmartRef__":true,"id":2519}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2501":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2502":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2503":{"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)\")"},"2504":{"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)\")"},"2505":{"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)\")"},"2506":{"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)\")"},"2507":{"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)\")"},"2508":{"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)\")"},"2509":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2510":{"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)\")"},"2511":{"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)\")"},"2512":{"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)\")"},"2513":{"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)\")"},"2514":{"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)\")"},"2515":{"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)\")"},"2516":{"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)\")"},"2517":{"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)\")"},"2518":{"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)\")"},"2519":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2520":{"morph":{"__isSmartRef__":true,"id":2483},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2521":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2522}},"2522":{"test01IsMorph":{"__isSmartRef__":true,"id":2523}},"2523":{"varMapping":{"__isSmartRef__":true,"id":2524},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2524":{"this":{"__isSmartRef__":true,"id":2521}},"2525":{},"2526":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2527},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2528},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2529},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2527":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2528":{"morph":{"__isSmartRef__":true,"id":2526},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2529":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2530}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2530":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2531":{"submorphs":[{"__isSmartRef__":true,"id":2532}],"scripts":[],"id":"F70ED856-799E-4FBB-83AC-639EA1E9D7F7","shape":{"__isSmartRef__":true,"id":2547},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2548},"eventHandler":{"__isSmartRef__":true,"id":2568},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2569},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2574},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2532},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2579},{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3155},{"__isSmartRef__":true,"id":3203}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6319},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(127.0,152.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(5.0,6.0)"},"2532":{"submorphs":[],"scripts":[],"id":"4B486A38-527E-4C32-BE0F-E8B1A964943D","shape":{"__isSmartRef__":true,"id":2533},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2534},"textChunks":[{"__isSmartRef__":true,"id":2543}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2545},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2546},"owner":{"__isSmartRef__":true,"id":2531},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2533":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2534":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2535},{"__isSmartRef__":true,"id":2536},{"__isSmartRef__":true,"id":2537},{"__isSmartRef__":true,"id":2538},{"__isSmartRef__":true,"id":2539},{"__isSmartRef__":true,"id":2540},{"__isSmartRef__":true,"id":2541},{"__isSmartRef__":true,"id":2542}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2535":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2536":{"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)\")"},"2537":{"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)\")"},"2538":{"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)\")"},"2539":{"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)\")"},"2540":{"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)\")"},"2541":{"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)\")"},"2542":{"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)\")"},"2543":{"style":{"__isSmartRef__":true,"id":2544},"chunkOwner":{"__isSmartRef__":true,"id":2532},"_id":"_16100","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2544":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2545":{"morph":{"__isSmartRef__":true,"id":2532},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2546":{"resizeWidth":true},"2547":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2548":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2549},{"__isSmartRef__":true,"id":2550},{"__isSmartRef__":true,"id":2551},{"__isSmartRef__":true,"id":2552},{"__isSmartRef__":true,"id":2553},{"__isSmartRef__":true,"id":2554},{"__isSmartRef__":true,"id":2555},{"__isSmartRef__":true,"id":2556},{"__isSmartRef__":true,"id":2557},{"__isSmartRef__":true,"id":2558},{"__isSmartRef__":true,"id":2559},{"__isSmartRef__":true,"id":2560},{"__isSmartRef__":true,"id":2561},{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":2563},{"__isSmartRef__":true,"id":2564},{"__isSmartRef__":true,"id":2565},{"__isSmartRef__":true,"id":2566},{"__isSmartRef__":true,"id":2567}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2549":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2550":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2551":{"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)\")"},"2552":{"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)\")"},"2553":{"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)\")"},"2554":{"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)\")"},"2555":{"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)\")"},"2556":{"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)\")"},"2557":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2558":{"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)\")"},"2559":{"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)\")"},"2560":{"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)\")"},"2561":{"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)\")"},"2562":{"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)\")"},"2563":{"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)\")"},"2564":{"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)\")"},"2565":{"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)\")"},"2566":{"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)\")"},"2567":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2568":{"morph":{"__isSmartRef__":true,"id":2531},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2569":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2570}},"2570":{"test01IsMorph":{"__isSmartRef__":true,"id":2571}},"2571":{"varMapping":{"__isSmartRef__":true,"id":2572},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2572":{"this":{"__isSmartRef__":true,"id":2569}},"2573":{},"2574":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2575},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2576},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2577},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2575":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2576":{"morph":{"__isSmartRef__":true,"id":2574},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2577":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2578}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2578":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2579":{"submorphs":[{"__isSmartRef__":true,"id":2580}],"scripts":[],"id":"A4A2E4AB-FEEC-44AC-8446-A67B502B4C61","shape":{"__isSmartRef__":true,"id":2595},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2596},"eventHandler":{"__isSmartRef__":true,"id":2616},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2617},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2622},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2580},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2195},{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2627},{"__isSmartRef__":true,"id":2531},{"__isSmartRef__":true,"id":3059},{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3155}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6257},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(127.0,127.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(5.0,5.0)"},"2580":{"submorphs":[],"scripts":[],"id":"D5FBFCA2-C0D7-46B1-BF75-0C9E865746AF","shape":{"__isSmartRef__":true,"id":2581},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2582},"textChunks":[{"__isSmartRef__":true,"id":2591}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2593},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2594},"owner":{"__isSmartRef__":true,"id":2579},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2581":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2582":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2583},{"__isSmartRef__":true,"id":2584},{"__isSmartRef__":true,"id":2585},{"__isSmartRef__":true,"id":2586},{"__isSmartRef__":true,"id":2587},{"__isSmartRef__":true,"id":2588},{"__isSmartRef__":true,"id":2589},{"__isSmartRef__":true,"id":2590}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2583":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2584":{"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)\")"},"2585":{"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)\")"},"2586":{"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)\")"},"2587":{"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)\")"},"2588":{"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)\")"},"2589":{"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)\")"},"2590":{"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)\")"},"2591":{"style":{"__isSmartRef__":true,"id":2592},"chunkOwner":{"__isSmartRef__":true,"id":2580},"_id":"_16099","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2592":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2593":{"morph":{"__isSmartRef__":true,"id":2580},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2594":{"resizeWidth":true},"2595":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2596":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2597},{"__isSmartRef__":true,"id":2598},{"__isSmartRef__":true,"id":2599},{"__isSmartRef__":true,"id":2600},{"__isSmartRef__":true,"id":2601},{"__isSmartRef__":true,"id":2602},{"__isSmartRef__":true,"id":2603},{"__isSmartRef__":true,"id":2604},{"__isSmartRef__":true,"id":2605},{"__isSmartRef__":true,"id":2606},{"__isSmartRef__":true,"id":2607},{"__isSmartRef__":true,"id":2608},{"__isSmartRef__":true,"id":2609},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2611},{"__isSmartRef__":true,"id":2612},{"__isSmartRef__":true,"id":2613},{"__isSmartRef__":true,"id":2614},{"__isSmartRef__":true,"id":2615}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2597":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2598":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2599":{"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)\")"},"2600":{"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)\")"},"2601":{"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)\")"},"2602":{"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)\")"},"2603":{"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)\")"},"2604":{"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)\")"},"2605":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2606":{"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)\")"},"2607":{"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)\")"},"2608":{"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)\")"},"2609":{"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)\")"},"2610":{"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)\")"},"2611":{"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)\")"},"2612":{"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)\")"},"2613":{"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)\")"},"2614":{"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)\")"},"2615":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2616":{"morph":{"__isSmartRef__":true,"id":2579},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2617":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2618}},"2618":{"test01IsMorph":{"__isSmartRef__":true,"id":2619}},"2619":{"varMapping":{"__isSmartRef__":true,"id":2620},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2620":{"this":{"__isSmartRef__":true,"id":2617}},"2621":{},"2622":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2623},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2624},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2625},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2623":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2624":{"morph":{"__isSmartRef__":true,"id":2622},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2625":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2626}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2626":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2627":{"submorphs":[{"__isSmartRef__":true,"id":2628}],"scripts":[],"id":"B9C8A384-0992-4375-B9E7-F3AF621BB16C","shape":{"__isSmartRef__":true,"id":2643},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2644},"eventHandler":{"__isSmartRef__":true,"id":2664},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2665},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2670},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2628},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2195},{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2675},{"__isSmartRef__":true,"id":2579},{"__isSmartRef__":true,"id":3011},{"__isSmartRef__":true,"id":3059},{"__isSmartRef__":true,"id":3107}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6195},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(127.0,102.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(5.0,4.0)"},"2628":{"submorphs":[],"scripts":[],"id":"048963FA-A1D9-47BA-B681-1240A6F5BB03","shape":{"__isSmartRef__":true,"id":2629},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2630},"textChunks":[{"__isSmartRef__":true,"id":2639}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2641},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2642},"owner":{"__isSmartRef__":true,"id":2627},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2629":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2630":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2631},{"__isSmartRef__":true,"id":2632},{"__isSmartRef__":true,"id":2633},{"__isSmartRef__":true,"id":2634},{"__isSmartRef__":true,"id":2635},{"__isSmartRef__":true,"id":2636},{"__isSmartRef__":true,"id":2637},{"__isSmartRef__":true,"id":2638}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2631":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2632":{"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)\")"},"2633":{"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)\")"},"2634":{"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)\")"},"2635":{"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)\")"},"2636":{"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)\")"},"2637":{"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)\")"},"2638":{"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)\")"},"2639":{"style":{"__isSmartRef__":true,"id":2640},"chunkOwner":{"__isSmartRef__":true,"id":2628},"_id":"_16098","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2640":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2641":{"morph":{"__isSmartRef__":true,"id":2628},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2642":{"resizeWidth":true},"2643":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2644":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2645},{"__isSmartRef__":true,"id":2646},{"__isSmartRef__":true,"id":2647},{"__isSmartRef__":true,"id":2648},{"__isSmartRef__":true,"id":2649},{"__isSmartRef__":true,"id":2650},{"__isSmartRef__":true,"id":2651},{"__isSmartRef__":true,"id":2652},{"__isSmartRef__":true,"id":2653},{"__isSmartRef__":true,"id":2654},{"__isSmartRef__":true,"id":2655},{"__isSmartRef__":true,"id":2656},{"__isSmartRef__":true,"id":2657},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2659},{"__isSmartRef__":true,"id":2660},{"__isSmartRef__":true,"id":2661},{"__isSmartRef__":true,"id":2662},{"__isSmartRef__":true,"id":2663}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2645":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2646":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2647":{"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)\")"},"2648":{"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)\")"},"2649":{"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)\")"},"2650":{"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)\")"},"2651":{"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)\")"},"2652":{"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)\")"},"2653":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2654":{"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)\")"},"2655":{"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)\")"},"2656":{"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)\")"},"2657":{"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)\")"},"2658":{"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)\")"},"2659":{"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)\")"},"2660":{"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)\")"},"2661":{"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)\")"},"2662":{"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)\")"},"2663":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2664":{"morph":{"__isSmartRef__":true,"id":2627},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2665":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2666}},"2666":{"test01IsMorph":{"__isSmartRef__":true,"id":2667}},"2667":{"varMapping":{"__isSmartRef__":true,"id":2668},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2668":{"this":{"__isSmartRef__":true,"id":2665}},"2669":{},"2670":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2671},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2672},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2673},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2671":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2672":{"morph":{"__isSmartRef__":true,"id":2670},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2673":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2674}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2674":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2675":{"submorphs":[{"__isSmartRef__":true,"id":2676}],"scripts":[],"id":"A77885E7-C495-4A94-B89F-4BA603A5050C","shape":{"__isSmartRef__":true,"id":2691},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2692},"eventHandler":{"__isSmartRef__":true,"id":2712},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2713},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2718},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2676},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2195},{"__isSmartRef__":true,"id":2723},{"__isSmartRef__":true,"id":2627},{"__isSmartRef__":true,"id":2963},{"__isSmartRef__":true,"id":3011},{"__isSmartRef__":true,"id":3059}],"neighborCount":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6133},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(127.0,77.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(5.0,3.0)"},"2676":{"submorphs":[],"scripts":[],"id":"6D436030-C4EA-4F82-BC3C-5D4C783933C0","shape":{"__isSmartRef__":true,"id":2677},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2678},"textChunks":[{"__isSmartRef__":true,"id":2687}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2689},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2690},"owner":{"__isSmartRef__":true,"id":2675},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2677":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2678":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2679},{"__isSmartRef__":true,"id":2680},{"__isSmartRef__":true,"id":2681},{"__isSmartRef__":true,"id":2682},{"__isSmartRef__":true,"id":2683},{"__isSmartRef__":true,"id":2684},{"__isSmartRef__":true,"id":2685},{"__isSmartRef__":true,"id":2686}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2679":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2680":{"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)\")"},"2681":{"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)\")"},"2682":{"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)\")"},"2683":{"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)\")"},"2684":{"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)\")"},"2685":{"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)\")"},"2686":{"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)\")"},"2687":{"style":{"__isSmartRef__":true,"id":2688},"chunkOwner":{"__isSmartRef__":true,"id":2676},"_id":"_16097","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2688":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2689":{"morph":{"__isSmartRef__":true,"id":2676},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2690":{"resizeWidth":true},"2691":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2692":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2693},{"__isSmartRef__":true,"id":2694},{"__isSmartRef__":true,"id":2695},{"__isSmartRef__":true,"id":2696},{"__isSmartRef__":true,"id":2697},{"__isSmartRef__":true,"id":2698},{"__isSmartRef__":true,"id":2699},{"__isSmartRef__":true,"id":2700},{"__isSmartRef__":true,"id":2701},{"__isSmartRef__":true,"id":2702},{"__isSmartRef__":true,"id":2703},{"__isSmartRef__":true,"id":2704},{"__isSmartRef__":true,"id":2705},{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2707},{"__isSmartRef__":true,"id":2708},{"__isSmartRef__":true,"id":2709},{"__isSmartRef__":true,"id":2710},{"__isSmartRef__":true,"id":2711}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2693":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2694":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2695":{"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)\")"},"2696":{"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)\")"},"2697":{"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)\")"},"2698":{"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)\")"},"2699":{"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)\")"},"2700":{"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)\")"},"2701":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2702":{"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)\")"},"2703":{"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)\")"},"2704":{"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)\")"},"2705":{"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)\")"},"2706":{"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)\")"},"2707":{"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)\")"},"2708":{"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)\")"},"2709":{"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)\")"},"2710":{"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)\")"},"2711":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2712":{"morph":{"__isSmartRef__":true,"id":2675},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2713":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2714}},"2714":{"test01IsMorph":{"__isSmartRef__":true,"id":2715}},"2715":{"varMapping":{"__isSmartRef__":true,"id":2716},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2716":{"this":{"__isSmartRef__":true,"id":2713}},"2717":{},"2718":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2719},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2720},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2721},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2719":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2720":{"morph":{"__isSmartRef__":true,"id":2718},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2721":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2722}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2722":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2723":{"submorphs":[{"__isSmartRef__":true,"id":2724}],"scripts":[],"id":"B98B320C-2680-43D6-9819-760A3AB65817","shape":{"__isSmartRef__":true,"id":2739},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2740},"eventHandler":{"__isSmartRef__":true,"id":2760},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2761},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2766},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2724},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2771},{"__isSmartRef__":true,"id":2675},{"__isSmartRef__":true,"id":2915},{"__isSmartRef__":true,"id":2963},{"__isSmartRef__":true,"id":3011}],"neighborCount":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6071},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(127.0,52.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(5.0,2.0)"},"2724":{"submorphs":[],"scripts":[],"id":"20C898DA-1FF0-4CFB-8FA3-0AAD4281B3F6","shape":{"__isSmartRef__":true,"id":2725},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2726},"textChunks":[{"__isSmartRef__":true,"id":2735}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2737},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2738},"owner":{"__isSmartRef__":true,"id":2723},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2725":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2726":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2727},{"__isSmartRef__":true,"id":2728},{"__isSmartRef__":true,"id":2729},{"__isSmartRef__":true,"id":2730},{"__isSmartRef__":true,"id":2731},{"__isSmartRef__":true,"id":2732},{"__isSmartRef__":true,"id":2733},{"__isSmartRef__":true,"id":2734}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2727":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2728":{"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)\")"},"2729":{"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)\")"},"2730":{"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)\")"},"2731":{"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)\")"},"2732":{"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)\")"},"2733":{"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)\")"},"2734":{"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)\")"},"2735":{"style":{"__isSmartRef__":true,"id":2736},"chunkOwner":{"__isSmartRef__":true,"id":2724},"_id":"_16096","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2736":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2737":{"morph":{"__isSmartRef__":true,"id":2724},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2738":{"resizeWidth":true},"2739":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2740":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2741},{"__isSmartRef__":true,"id":2742},{"__isSmartRef__":true,"id":2743},{"__isSmartRef__":true,"id":2744},{"__isSmartRef__":true,"id":2745},{"__isSmartRef__":true,"id":2746},{"__isSmartRef__":true,"id":2747},{"__isSmartRef__":true,"id":2748},{"__isSmartRef__":true,"id":2749},{"__isSmartRef__":true,"id":2750},{"__isSmartRef__":true,"id":2751},{"__isSmartRef__":true,"id":2752},{"__isSmartRef__":true,"id":2753},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2755},{"__isSmartRef__":true,"id":2756},{"__isSmartRef__":true,"id":2757},{"__isSmartRef__":true,"id":2758},{"__isSmartRef__":true,"id":2759}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2741":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2742":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2743":{"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)\")"},"2744":{"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)\")"},"2745":{"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)\")"},"2746":{"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)\")"},"2747":{"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)\")"},"2748":{"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)\")"},"2749":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2750":{"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)\")"},"2751":{"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)\")"},"2752":{"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)\")"},"2753":{"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)\")"},"2754":{"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)\")"},"2755":{"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)\")"},"2756":{"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)\")"},"2757":{"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)\")"},"2758":{"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)\")"},"2759":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2760":{"morph":{"__isSmartRef__":true,"id":2723},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2761":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2762}},"2762":{"test01IsMorph":{"__isSmartRef__":true,"id":2763}},"2763":{"varMapping":{"__isSmartRef__":true,"id":2764},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2764":{"this":{"__isSmartRef__":true,"id":2761}},"2765":{},"2766":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2767},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2768},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2769},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2767":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2768":{"morph":{"__isSmartRef__":true,"id":2766},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2769":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2770}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2770":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2771":{"submorphs":[{"__isSmartRef__":true,"id":2772}],"scripts":[],"id":"A26869F2-AA4A-458D-B529-8C6E9C0F4061","shape":{"__isSmartRef__":true,"id":2787},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2788},"eventHandler":{"__isSmartRef__":true,"id":2808},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2809},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2814},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2772},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2003},{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2819},{"__isSmartRef__":true,"id":2723},{"__isSmartRef__":true,"id":2867},{"__isSmartRef__":true,"id":2915},{"__isSmartRef__":true,"id":2963}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6009},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(127.0,27.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(5.0,1.0)"},"2772":{"submorphs":[],"scripts":[],"id":"647874F7-5373-4154-B25F-83BB5F88B70C","shape":{"__isSmartRef__":true,"id":2773},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2774},"textChunks":[{"__isSmartRef__":true,"id":2783}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2785},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2786},"owner":{"__isSmartRef__":true,"id":2771},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2773":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2774":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2775},{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":2777},{"__isSmartRef__":true,"id":2778},{"__isSmartRef__":true,"id":2779},{"__isSmartRef__":true,"id":2780},{"__isSmartRef__":true,"id":2781},{"__isSmartRef__":true,"id":2782}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2775":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2776":{"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)\")"},"2777":{"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)\")"},"2778":{"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)\")"},"2779":{"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)\")"},"2780":{"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)\")"},"2781":{"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)\")"},"2782":{"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)\")"},"2783":{"style":{"__isSmartRef__":true,"id":2784},"chunkOwner":{"__isSmartRef__":true,"id":2772},"_id":"_16095","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2784":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2785":{"morph":{"__isSmartRef__":true,"id":2772},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2786":{"resizeWidth":true},"2787":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2788":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2789},{"__isSmartRef__":true,"id":2790},{"__isSmartRef__":true,"id":2791},{"__isSmartRef__":true,"id":2792},{"__isSmartRef__":true,"id":2793},{"__isSmartRef__":true,"id":2794},{"__isSmartRef__":true,"id":2795},{"__isSmartRef__":true,"id":2796},{"__isSmartRef__":true,"id":2797},{"__isSmartRef__":true,"id":2798},{"__isSmartRef__":true,"id":2799},{"__isSmartRef__":true,"id":2800},{"__isSmartRef__":true,"id":2801},{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2803},{"__isSmartRef__":true,"id":2804},{"__isSmartRef__":true,"id":2805},{"__isSmartRef__":true,"id":2806},{"__isSmartRef__":true,"id":2807}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2789":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2790":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2791":{"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)\")"},"2792":{"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)\")"},"2793":{"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)\")"},"2794":{"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)\")"},"2795":{"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)\")"},"2796":{"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)\")"},"2797":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2798":{"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)\")"},"2799":{"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)\")"},"2800":{"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)\")"},"2801":{"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)\")"},"2802":{"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)\")"},"2803":{"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)\")"},"2804":{"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)\")"},"2805":{"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)\")"},"2806":{"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)\")"},"2807":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2808":{"morph":{"__isSmartRef__":true,"id":2771},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2809":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2810}},"2810":{"test01IsMorph":{"__isSmartRef__":true,"id":2811}},"2811":{"varMapping":{"__isSmartRef__":true,"id":2812},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2812":{"this":{"__isSmartRef__":true,"id":2809}},"2813":{},"2814":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2815},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2816},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2817},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2815":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2816":{"morph":{"__isSmartRef__":true,"id":2814},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2817":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2818}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2818":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2819":{"submorphs":[{"__isSmartRef__":true,"id":2820}],"scripts":[],"id":"5D60D490-D6EA-4ACC-9811-49B9BA8391DC","shape":{"__isSmartRef__":true,"id":2835},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2836},"eventHandler":{"__isSmartRef__":true,"id":2856},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2857},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2862},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2820},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2003},{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2771},{"__isSmartRef__":true,"id":2867},{"__isSmartRef__":true,"id":2915}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5947},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(127.0,2.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(5.0,0.0)"},"2820":{"submorphs":[],"scripts":[],"id":"CED8DCCB-4296-4F11-96F6-873DBE377063","shape":{"__isSmartRef__":true,"id":2821},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2822},"textChunks":[{"__isSmartRef__":true,"id":2831}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2833},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2834},"owner":{"__isSmartRef__":true,"id":2819},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2821":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2822":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2823},{"__isSmartRef__":true,"id":2824},{"__isSmartRef__":true,"id":2825},{"__isSmartRef__":true,"id":2826},{"__isSmartRef__":true,"id":2827},{"__isSmartRef__":true,"id":2828},{"__isSmartRef__":true,"id":2829},{"__isSmartRef__":true,"id":2830}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2823":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2824":{"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)\")"},"2825":{"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)\")"},"2826":{"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)\")"},"2827":{"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)\")"},"2828":{"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)\")"},"2829":{"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)\")"},"2830":{"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)\")"},"2831":{"style":{"__isSmartRef__":true,"id":2832},"chunkOwner":{"__isSmartRef__":true,"id":2820},"_id":"_16094","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2832":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2833":{"morph":{"__isSmartRef__":true,"id":2820},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2834":{"resizeWidth":true},"2835":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2836":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2837},{"__isSmartRef__":true,"id":2838},{"__isSmartRef__":true,"id":2839},{"__isSmartRef__":true,"id":2840},{"__isSmartRef__":true,"id":2841},{"__isSmartRef__":true,"id":2842},{"__isSmartRef__":true,"id":2843},{"__isSmartRef__":true,"id":2844},{"__isSmartRef__":true,"id":2845},{"__isSmartRef__":true,"id":2846},{"__isSmartRef__":true,"id":2847},{"__isSmartRef__":true,"id":2848},{"__isSmartRef__":true,"id":2849},{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2851},{"__isSmartRef__":true,"id":2852},{"__isSmartRef__":true,"id":2853},{"__isSmartRef__":true,"id":2854},{"__isSmartRef__":true,"id":2855}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2837":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2838":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2839":{"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)\")"},"2840":{"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)\")"},"2841":{"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)\")"},"2842":{"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)\")"},"2843":{"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)\")"},"2844":{"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)\")"},"2845":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2846":{"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)\")"},"2847":{"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)\")"},"2848":{"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)\")"},"2849":{"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)\")"},"2850":{"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)\")"},"2851":{"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)\")"},"2852":{"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)\")"},"2853":{"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)\")"},"2854":{"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)\")"},"2855":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2856":{"morph":{"__isSmartRef__":true,"id":2819},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2857":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2858}},"2858":{"test01IsMorph":{"__isSmartRef__":true,"id":2859}},"2859":{"varMapping":{"__isSmartRef__":true,"id":2860},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2860":{"this":{"__isSmartRef__":true,"id":2857}},"2861":{},"2862":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2863},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2864},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2865},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2863":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2864":{"morph":{"__isSmartRef__":true,"id":2862},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2865":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2866}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2866":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2867":{"submorphs":[{"__isSmartRef__":true,"id":2868}],"scripts":[],"id":"42D62B82-2FB8-491F-9902-85AF451F4BD1","shape":{"__isSmartRef__":true,"id":2883},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2884},"eventHandler":{"__isSmartRef__":true,"id":2904},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2905},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2910},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2868},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2819},{"__isSmartRef__":true,"id":2771},{"__isSmartRef__":true,"id":2915},{"__isSmartRef__":true,"id":3683},{"__isSmartRef__":true,"id":3635}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5885},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(152.0,2.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(6.0,0.0)"},"2868":{"submorphs":[],"scripts":[],"id":"842BBD70-A2FB-4F71-AF5F-7BC7FC13A123","shape":{"__isSmartRef__":true,"id":2869},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2870},"textChunks":[{"__isSmartRef__":true,"id":2879}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2881},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2882},"owner":{"__isSmartRef__":true,"id":2867},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2869":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2870":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2871},{"__isSmartRef__":true,"id":2872},{"__isSmartRef__":true,"id":2873},{"__isSmartRef__":true,"id":2874},{"__isSmartRef__":true,"id":2875},{"__isSmartRef__":true,"id":2876},{"__isSmartRef__":true,"id":2877},{"__isSmartRef__":true,"id":2878}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2871":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2872":{"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)\")"},"2873":{"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)\")"},"2874":{"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)\")"},"2875":{"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)\")"},"2876":{"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)\")"},"2877":{"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)\")"},"2878":{"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)\")"},"2879":{"style":{"__isSmartRef__":true,"id":2880},"chunkOwner":{"__isSmartRef__":true,"id":2868},"_id":"_16103","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2880":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2881":{"morph":{"__isSmartRef__":true,"id":2868},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2882":{"resizeWidth":true},"2883":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2884":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2885},{"__isSmartRef__":true,"id":2886},{"__isSmartRef__":true,"id":2887},{"__isSmartRef__":true,"id":2888},{"__isSmartRef__":true,"id":2889},{"__isSmartRef__":true,"id":2890},{"__isSmartRef__":true,"id":2891},{"__isSmartRef__":true,"id":2892},{"__isSmartRef__":true,"id":2893},{"__isSmartRef__":true,"id":2894},{"__isSmartRef__":true,"id":2895},{"__isSmartRef__":true,"id":2896},{"__isSmartRef__":true,"id":2897},{"__isSmartRef__":true,"id":2898},{"__isSmartRef__":true,"id":2899},{"__isSmartRef__":true,"id":2900},{"__isSmartRef__":true,"id":2901},{"__isSmartRef__":true,"id":2902},{"__isSmartRef__":true,"id":2903}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2885":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2886":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2887":{"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)\")"},"2888":{"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)\")"},"2889":{"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)\")"},"2890":{"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)\")"},"2891":{"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)\")"},"2892":{"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)\")"},"2893":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2894":{"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)\")"},"2895":{"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)\")"},"2896":{"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)\")"},"2897":{"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)\")"},"2898":{"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)\")"},"2899":{"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)\")"},"2900":{"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)\")"},"2901":{"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)\")"},"2902":{"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)\")"},"2903":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2904":{"morph":{"__isSmartRef__":true,"id":2867},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2905":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2906}},"2906":{"test01IsMorph":{"__isSmartRef__":true,"id":2907}},"2907":{"varMapping":{"__isSmartRef__":true,"id":2908},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2908":{"this":{"__isSmartRef__":true,"id":2905}},"2909":{},"2910":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2911},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2912},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2913},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2911":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2912":{"morph":{"__isSmartRef__":true,"id":2910},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2913":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2914}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2914":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2915":{"submorphs":[{"__isSmartRef__":true,"id":2916}],"scripts":[],"id":"B0AE248D-D78B-466F-8094-1518D15D0C1B","shape":{"__isSmartRef__":true,"id":2931},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2932},"eventHandler":{"__isSmartRef__":true,"id":2952},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":2953},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2958},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2916},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2819},{"__isSmartRef__":true,"id":2771},{"__isSmartRef__":true,"id":2723},{"__isSmartRef__":true,"id":2867},{"__isSmartRef__":true,"id":2963},{"__isSmartRef__":true,"id":3683},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3587}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5823},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(152.0,27.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(6.0,1.0)"},"2916":{"submorphs":[],"scripts":[],"id":"6FB9BF95-9DAA-4C20-8F36-336495AAA851","shape":{"__isSmartRef__":true,"id":2917},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2918},"textChunks":[{"__isSmartRef__":true,"id":2927}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2929},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2930},"owner":{"__isSmartRef__":true,"id":2915},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2917":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2918":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2919},{"__isSmartRef__":true,"id":2920},{"__isSmartRef__":true,"id":2921},{"__isSmartRef__":true,"id":2922},{"__isSmartRef__":true,"id":2923},{"__isSmartRef__":true,"id":2924},{"__isSmartRef__":true,"id":2925},{"__isSmartRef__":true,"id":2926}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2919":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2920":{"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)\")"},"2921":{"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)\")"},"2922":{"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)\")"},"2923":{"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)\")"},"2924":{"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)\")"},"2925":{"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)\")"},"2926":{"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)\")"},"2927":{"style":{"__isSmartRef__":true,"id":2928},"chunkOwner":{"__isSmartRef__":true,"id":2916},"_id":"_16104","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2928":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2929":{"morph":{"__isSmartRef__":true,"id":2916},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2930":{"resizeWidth":true},"2931":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2932":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2933},{"__isSmartRef__":true,"id":2934},{"__isSmartRef__":true,"id":2935},{"__isSmartRef__":true,"id":2936},{"__isSmartRef__":true,"id":2937},{"__isSmartRef__":true,"id":2938},{"__isSmartRef__":true,"id":2939},{"__isSmartRef__":true,"id":2940},{"__isSmartRef__":true,"id":2941},{"__isSmartRef__":true,"id":2942},{"__isSmartRef__":true,"id":2943},{"__isSmartRef__":true,"id":2944},{"__isSmartRef__":true,"id":2945},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":2947},{"__isSmartRef__":true,"id":2948},{"__isSmartRef__":true,"id":2949},{"__isSmartRef__":true,"id":2950},{"__isSmartRef__":true,"id":2951}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2933":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2934":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2935":{"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)\")"},"2936":{"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)\")"},"2937":{"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)\")"},"2938":{"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)\")"},"2939":{"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)\")"},"2940":{"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)\")"},"2941":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2942":{"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)\")"},"2943":{"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)\")"},"2944":{"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)\")"},"2945":{"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)\")"},"2946":{"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)\")"},"2947":{"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)\")"},"2948":{"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)\")"},"2949":{"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)\")"},"2950":{"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)\")"},"2951":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"2952":{"morph":{"__isSmartRef__":true,"id":2915},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2953":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2954}},"2954":{"test01IsMorph":{"__isSmartRef__":true,"id":2955}},"2955":{"varMapping":{"__isSmartRef__":true,"id":2956},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2956":{"this":{"__isSmartRef__":true,"id":2953}},"2957":{},"2958":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2959},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":2960},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2961},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"2959":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"2960":{"morph":{"__isSmartRef__":true,"id":2958},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2961":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2962}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"2962":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"2963":{"submorphs":[{"__isSmartRef__":true,"id":2964}],"scripts":[],"id":"7FE79CE0-01B1-48D9-98D6-ED29899945F0","shape":{"__isSmartRef__":true,"id":2979},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2980},"eventHandler":{"__isSmartRef__":true,"id":3000},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3001},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3006},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2964},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2771},{"__isSmartRef__":true,"id":2723},{"__isSmartRef__":true,"id":2675},{"__isSmartRef__":true,"id":2915},{"__isSmartRef__":true,"id":3011},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3587},{"__isSmartRef__":true,"id":3539}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5761},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(152.0,52.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(6.0,2.0)"},"2964":{"submorphs":[],"scripts":[],"id":"3CC513A0-26B8-42B7-93F7-2935BC0CC631","shape":{"__isSmartRef__":true,"id":2965},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":2966},"textChunks":[{"__isSmartRef__":true,"id":2975}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2977},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":2978},"owner":{"__isSmartRef__":true,"id":2963},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"2965":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2966":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2967},{"__isSmartRef__":true,"id":2968},{"__isSmartRef__":true,"id":2969},{"__isSmartRef__":true,"id":2970},{"__isSmartRef__":true,"id":2971},{"__isSmartRef__":true,"id":2972},{"__isSmartRef__":true,"id":2973},{"__isSmartRef__":true,"id":2974}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2967":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"2968":{"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)\")"},"2969":{"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)\")"},"2970":{"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)\")"},"2971":{"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)\")"},"2972":{"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)\")"},"2973":{"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)\")"},"2974":{"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)\")"},"2975":{"style":{"__isSmartRef__":true,"id":2976},"chunkOwner":{"__isSmartRef__":true,"id":2964},"_id":"_16105","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2976":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2977":{"morph":{"__isSmartRef__":true,"id":2964},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2978":{"resizeWidth":true},"2979":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"2980":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2981},{"__isSmartRef__":true,"id":2982},{"__isSmartRef__":true,"id":2983},{"__isSmartRef__":true,"id":2984},{"__isSmartRef__":true,"id":2985},{"__isSmartRef__":true,"id":2986},{"__isSmartRef__":true,"id":2987},{"__isSmartRef__":true,"id":2988},{"__isSmartRef__":true,"id":2989},{"__isSmartRef__":true,"id":2990},{"__isSmartRef__":true,"id":2991},{"__isSmartRef__":true,"id":2992},{"__isSmartRef__":true,"id":2993},{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":2995},{"__isSmartRef__":true,"id":2996},{"__isSmartRef__":true,"id":2997},{"__isSmartRef__":true,"id":2998},{"__isSmartRef__":true,"id":2999}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2981":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2982":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"2983":{"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)\")"},"2984":{"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)\")"},"2985":{"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)\")"},"2986":{"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)\")"},"2987":{"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)\")"},"2988":{"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)\")"},"2989":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2990":{"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)\")"},"2991":{"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)\")"},"2992":{"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)\")"},"2993":{"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)\")"},"2994":{"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)\")"},"2995":{"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)\")"},"2996":{"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)\")"},"2997":{"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)\")"},"2998":{"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)\")"},"2999":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3000":{"morph":{"__isSmartRef__":true,"id":2963},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3001":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3002}},"3002":{"test01IsMorph":{"__isSmartRef__":true,"id":3003}},"3003":{"varMapping":{"__isSmartRef__":true,"id":3004},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3004":{"this":{"__isSmartRef__":true,"id":3001}},"3005":{},"3006":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3007},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3008},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3009},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3007":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3008":{"morph":{"__isSmartRef__":true,"id":3006},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3009":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3010}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3010":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3011":{"submorphs":[{"__isSmartRef__":true,"id":3012}],"scripts":[],"id":"F5029A0C-0DB1-4BCE-8041-B0808FE80758","shape":{"__isSmartRef__":true,"id":3027},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3028},"eventHandler":{"__isSmartRef__":true,"id":3048},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3049},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3054},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3012},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2723},{"__isSmartRef__":true,"id":2675},{"__isSmartRef__":true,"id":2627},{"__isSmartRef__":true,"id":2963},{"__isSmartRef__":true,"id":3059},{"__isSmartRef__":true,"id":3587},{"__isSmartRef__":true,"id":3539},{"__isSmartRef__":true,"id":3491}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5699},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(152.0,77.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(6.0,3.0)"},"3012":{"submorphs":[],"scripts":[],"id":"8507A584-6CF6-42C4-A390-2F4FD26B6263","shape":{"__isSmartRef__":true,"id":3013},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3014},"textChunks":[{"__isSmartRef__":true,"id":3023}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3025},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3026},"owner":{"__isSmartRef__":true,"id":3011},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3013":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3014":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3015},{"__isSmartRef__":true,"id":3016},{"__isSmartRef__":true,"id":3017},{"__isSmartRef__":true,"id":3018},{"__isSmartRef__":true,"id":3019},{"__isSmartRef__":true,"id":3020},{"__isSmartRef__":true,"id":3021},{"__isSmartRef__":true,"id":3022}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3015":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3016":{"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)\")"},"3017":{"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)\")"},"3018":{"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)\")"},"3019":{"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)\")"},"3020":{"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)\")"},"3021":{"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)\")"},"3022":{"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)\")"},"3023":{"style":{"__isSmartRef__":true,"id":3024},"chunkOwner":{"__isSmartRef__":true,"id":3012},"_id":"_16106","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3024":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3025":{"morph":{"__isSmartRef__":true,"id":3012},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3026":{"resizeWidth":true},"3027":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3028":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3029},{"__isSmartRef__":true,"id":3030},{"__isSmartRef__":true,"id":3031},{"__isSmartRef__":true,"id":3032},{"__isSmartRef__":true,"id":3033},{"__isSmartRef__":true,"id":3034},{"__isSmartRef__":true,"id":3035},{"__isSmartRef__":true,"id":3036},{"__isSmartRef__":true,"id":3037},{"__isSmartRef__":true,"id":3038},{"__isSmartRef__":true,"id":3039},{"__isSmartRef__":true,"id":3040},{"__isSmartRef__":true,"id":3041},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3043},{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":3045},{"__isSmartRef__":true,"id":3046},{"__isSmartRef__":true,"id":3047}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3029":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3030":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3031":{"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)\")"},"3032":{"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)\")"},"3033":{"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)\")"},"3034":{"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)\")"},"3035":{"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)\")"},"3036":{"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)\")"},"3037":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3038":{"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)\")"},"3039":{"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)\")"},"3040":{"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)\")"},"3041":{"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)\")"},"3042":{"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)\")"},"3043":{"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)\")"},"3044":{"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)\")"},"3045":{"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)\")"},"3046":{"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)\")"},"3047":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3048":{"morph":{"__isSmartRef__":true,"id":3011},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3049":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3050}},"3050":{"test01IsMorph":{"__isSmartRef__":true,"id":3051}},"3051":{"varMapping":{"__isSmartRef__":true,"id":3052},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3052":{"this":{"__isSmartRef__":true,"id":3049}},"3053":{},"3054":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3055},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3056},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3057},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3055":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3056":{"morph":{"__isSmartRef__":true,"id":3054},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3057":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3058}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3058":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3059":{"submorphs":[{"__isSmartRef__":true,"id":3060}],"scripts":[],"id":"8E09F669-A7D5-4567-B6A9-00409F59319A","shape":{"__isSmartRef__":true,"id":3075},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3076},"eventHandler":{"__isSmartRef__":true,"id":3096},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3097},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3102},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3060},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2675},{"__isSmartRef__":true,"id":2627},{"__isSmartRef__":true,"id":2579},{"__isSmartRef__":true,"id":3011},{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3539},{"__isSmartRef__":true,"id":3491},{"__isSmartRef__":true,"id":3443}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5637},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(152.0,102.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(6.0,4.0)"},"3060":{"submorphs":[],"scripts":[],"id":"8BCEB355-24F8-4D2D-A655-897B834F2820","shape":{"__isSmartRef__":true,"id":3061},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3062},"textChunks":[{"__isSmartRef__":true,"id":3071}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3073},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3074},"owner":{"__isSmartRef__":true,"id":3059},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3061":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3062":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3063},{"__isSmartRef__":true,"id":3064},{"__isSmartRef__":true,"id":3065},{"__isSmartRef__":true,"id":3066},{"__isSmartRef__":true,"id":3067},{"__isSmartRef__":true,"id":3068},{"__isSmartRef__":true,"id":3069},{"__isSmartRef__":true,"id":3070}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3063":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3064":{"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)\")"},"3065":{"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)\")"},"3066":{"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)\")"},"3067":{"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)\")"},"3068":{"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)\")"},"3069":{"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)\")"},"3070":{"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)\")"},"3071":{"style":{"__isSmartRef__":true,"id":3072},"chunkOwner":{"__isSmartRef__":true,"id":3060},"_id":"_16107","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3072":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3073":{"morph":{"__isSmartRef__":true,"id":3060},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3074":{"resizeWidth":true},"3075":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3076":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3077},{"__isSmartRef__":true,"id":3078},{"__isSmartRef__":true,"id":3079},{"__isSmartRef__":true,"id":3080},{"__isSmartRef__":true,"id":3081},{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":3083},{"__isSmartRef__":true,"id":3084},{"__isSmartRef__":true,"id":3085},{"__isSmartRef__":true,"id":3086},{"__isSmartRef__":true,"id":3087},{"__isSmartRef__":true,"id":3088},{"__isSmartRef__":true,"id":3089},{"__isSmartRef__":true,"id":3090},{"__isSmartRef__":true,"id":3091},{"__isSmartRef__":true,"id":3092},{"__isSmartRef__":true,"id":3093},{"__isSmartRef__":true,"id":3094},{"__isSmartRef__":true,"id":3095}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3077":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3078":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3079":{"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)\")"},"3080":{"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)\")"},"3081":{"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)\")"},"3082":{"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)\")"},"3083":{"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)\")"},"3084":{"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)\")"},"3085":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3086":{"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)\")"},"3087":{"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)\")"},"3088":{"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)\")"},"3089":{"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)\")"},"3090":{"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)\")"},"3091":{"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)\")"},"3092":{"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)\")"},"3093":{"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)\")"},"3094":{"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)\")"},"3095":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3096":{"morph":{"__isSmartRef__":true,"id":3059},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3097":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3098}},"3098":{"test01IsMorph":{"__isSmartRef__":true,"id":3099}},"3099":{"varMapping":{"__isSmartRef__":true,"id":3100},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3100":{"this":{"__isSmartRef__":true,"id":3097}},"3101":{},"3102":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3103},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3104},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3105},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3103":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3104":{"morph":{"__isSmartRef__":true,"id":3102},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3105":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3106}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3106":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3107":{"submorphs":[{"__isSmartRef__":true,"id":3108}],"scripts":[],"id":"65C39A53-15BA-44D2-BEF0-A923E6424A61","shape":{"__isSmartRef__":true,"id":3123},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3124},"eventHandler":{"__isSmartRef__":true,"id":3144},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3145},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3150},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3108},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2627},{"__isSmartRef__":true,"id":2579},{"__isSmartRef__":true,"id":2531},{"__isSmartRef__":true,"id":3059},{"__isSmartRef__":true,"id":3155},{"__isSmartRef__":true,"id":3491},{"__isSmartRef__":true,"id":3443},{"__isSmartRef__":true,"id":3395}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5575},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(152.0,127.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(6.0,5.0)"},"3108":{"submorphs":[],"scripts":[],"id":"0F927300-B2B9-4E81-81C1-1F6696414AFE","shape":{"__isSmartRef__":true,"id":3109},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3110},"textChunks":[{"__isSmartRef__":true,"id":3119}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3121},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3122},"owner":{"__isSmartRef__":true,"id":3107},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3109":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3110":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3111},{"__isSmartRef__":true,"id":3112},{"__isSmartRef__":true,"id":3113},{"__isSmartRef__":true,"id":3114},{"__isSmartRef__":true,"id":3115},{"__isSmartRef__":true,"id":3116},{"__isSmartRef__":true,"id":3117},{"__isSmartRef__":true,"id":3118}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3111":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3112":{"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)\")"},"3113":{"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)\")"},"3114":{"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)\")"},"3115":{"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)\")"},"3116":{"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)\")"},"3117":{"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)\")"},"3118":{"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)\")"},"3119":{"style":{"__isSmartRef__":true,"id":3120},"chunkOwner":{"__isSmartRef__":true,"id":3108},"_id":"_16108","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3120":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3121":{"morph":{"__isSmartRef__":true,"id":3108},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3122":{"resizeWidth":true},"3123":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3124":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3125},{"__isSmartRef__":true,"id":3126},{"__isSmartRef__":true,"id":3127},{"__isSmartRef__":true,"id":3128},{"__isSmartRef__":true,"id":3129},{"__isSmartRef__":true,"id":3130},{"__isSmartRef__":true,"id":3131},{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":3133},{"__isSmartRef__":true,"id":3134},{"__isSmartRef__":true,"id":3135},{"__isSmartRef__":true,"id":3136},{"__isSmartRef__":true,"id":3137},{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3139},{"__isSmartRef__":true,"id":3140},{"__isSmartRef__":true,"id":3141},{"__isSmartRef__":true,"id":3142},{"__isSmartRef__":true,"id":3143}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3125":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3126":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3127":{"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)\")"},"3128":{"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)\")"},"3129":{"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)\")"},"3130":{"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)\")"},"3131":{"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)\")"},"3132":{"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)\")"},"3133":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3134":{"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)\")"},"3135":{"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)\")"},"3136":{"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)\")"},"3137":{"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)\")"},"3138":{"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)\")"},"3139":{"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)\")"},"3140":{"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)\")"},"3141":{"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)\")"},"3142":{"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)\")"},"3143":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3144":{"morph":{"__isSmartRef__":true,"id":3107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3145":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3146}},"3146":{"test01IsMorph":{"__isSmartRef__":true,"id":3147}},"3147":{"varMapping":{"__isSmartRef__":true,"id":3148},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3148":{"this":{"__isSmartRef__":true,"id":3145}},"3149":{},"3150":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3151},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3152},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3153},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3151":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3152":{"morph":{"__isSmartRef__":true,"id":3150},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3153":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3154}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3154":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3155":{"submorphs":[{"__isSmartRef__":true,"id":3156}],"scripts":[],"id":"A2E2EDFB-2049-4064-9685-C087660BFF18","shape":{"__isSmartRef__":true,"id":3171},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3172},"eventHandler":{"__isSmartRef__":true,"id":3192},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3193},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3198},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3156},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2579},{"__isSmartRef__":true,"id":2531},{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3203},{"__isSmartRef__":true,"id":3443},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3347}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5513},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(152.0,152.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(6.0,6.0)"},"3156":{"submorphs":[],"scripts":[],"id":"B03733E1-2152-4C26-800E-7946A5020970","shape":{"__isSmartRef__":true,"id":3157},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3158},"textChunks":[{"__isSmartRef__":true,"id":3167}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3169},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3170},"owner":{"__isSmartRef__":true,"id":3155},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3157":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3158":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3159},{"__isSmartRef__":true,"id":3160},{"__isSmartRef__":true,"id":3161},{"__isSmartRef__":true,"id":3162},{"__isSmartRef__":true,"id":3163},{"__isSmartRef__":true,"id":3164},{"__isSmartRef__":true,"id":3165},{"__isSmartRef__":true,"id":3166}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3159":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3160":{"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)\")"},"3161":{"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)\")"},"3162":{"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)\")"},"3163":{"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)\")"},"3164":{"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)\")"},"3165":{"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)\")"},"3166":{"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)\")"},"3167":{"style":{"__isSmartRef__":true,"id":3168},"chunkOwner":{"__isSmartRef__":true,"id":3156},"_id":"_16109","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3168":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3169":{"morph":{"__isSmartRef__":true,"id":3156},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3170":{"resizeWidth":true},"3171":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3172":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3173},{"__isSmartRef__":true,"id":3174},{"__isSmartRef__":true,"id":3175},{"__isSmartRef__":true,"id":3176},{"__isSmartRef__":true,"id":3177},{"__isSmartRef__":true,"id":3178},{"__isSmartRef__":true,"id":3179},{"__isSmartRef__":true,"id":3180},{"__isSmartRef__":true,"id":3181},{"__isSmartRef__":true,"id":3182},{"__isSmartRef__":true,"id":3183},{"__isSmartRef__":true,"id":3184},{"__isSmartRef__":true,"id":3185},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3187},{"__isSmartRef__":true,"id":3188},{"__isSmartRef__":true,"id":3189},{"__isSmartRef__":true,"id":3190},{"__isSmartRef__":true,"id":3191}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3173":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3174":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3175":{"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)\")"},"3176":{"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)\")"},"3177":{"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)\")"},"3178":{"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)\")"},"3179":{"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)\")"},"3180":{"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)\")"},"3181":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3182":{"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)\")"},"3183":{"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)\")"},"3184":{"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)\")"},"3185":{"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)\")"},"3186":{"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)\")"},"3187":{"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)\")"},"3188":{"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)\")"},"3189":{"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)\")"},"3190":{"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)\")"},"3191":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3192":{"morph":{"__isSmartRef__":true,"id":3155},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3193":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3194}},"3194":{"test01IsMorph":{"__isSmartRef__":true,"id":3195}},"3195":{"varMapping":{"__isSmartRef__":true,"id":3196},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3196":{"this":{"__isSmartRef__":true,"id":3193}},"3197":{},"3198":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3199},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3200},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3201},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3199":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3200":{"morph":{"__isSmartRef__":true,"id":3198},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3201":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3202}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3202":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3203":{"submorphs":[{"__isSmartRef__":true,"id":3204}],"scripts":[],"id":"4DD94323-5BD0-4816-BFE4-38594C3442F8","shape":{"__isSmartRef__":true,"id":3219},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3220},"eventHandler":{"__isSmartRef__":true,"id":3240},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3241},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3246},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3204},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2531},{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":3251},{"__isSmartRef__":true,"id":3155},{"__isSmartRef__":true,"id":3299},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":4115}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5451},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(152.0,177.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(6.0,7.0)"},"3204":{"submorphs":[],"scripts":[],"id":"1AF4CBE0-FC54-43BA-92E9-E5919B6CC4D9","shape":{"__isSmartRef__":true,"id":3205},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3206},"textChunks":[{"__isSmartRef__":true,"id":3215}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3217},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3218},"owner":{"__isSmartRef__":true,"id":3203},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3205":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3206":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3207},{"__isSmartRef__":true,"id":3208},{"__isSmartRef__":true,"id":3209},{"__isSmartRef__":true,"id":3210},{"__isSmartRef__":true,"id":3211},{"__isSmartRef__":true,"id":3212},{"__isSmartRef__":true,"id":3213},{"__isSmartRef__":true,"id":3214}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3207":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3208":{"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)\")"},"3209":{"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)\")"},"3210":{"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)\")"},"3211":{"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)\")"},"3212":{"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)\")"},"3213":{"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)\")"},"3214":{"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)\")"},"3215":{"style":{"__isSmartRef__":true,"id":3216},"chunkOwner":{"__isSmartRef__":true,"id":3204},"_id":"_16110","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3216":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3217":{"morph":{"__isSmartRef__":true,"id":3204},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3218":{"resizeWidth":true},"3219":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3220":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3221},{"__isSmartRef__":true,"id":3222},{"__isSmartRef__":true,"id":3223},{"__isSmartRef__":true,"id":3224},{"__isSmartRef__":true,"id":3225},{"__isSmartRef__":true,"id":3226},{"__isSmartRef__":true,"id":3227},{"__isSmartRef__":true,"id":3228},{"__isSmartRef__":true,"id":3229},{"__isSmartRef__":true,"id":3230},{"__isSmartRef__":true,"id":3231},{"__isSmartRef__":true,"id":3232},{"__isSmartRef__":true,"id":3233},{"__isSmartRef__":true,"id":3234},{"__isSmartRef__":true,"id":3235},{"__isSmartRef__":true,"id":3236},{"__isSmartRef__":true,"id":3237},{"__isSmartRef__":true,"id":3238},{"__isSmartRef__":true,"id":3239}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3221":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3222":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3223":{"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)\")"},"3224":{"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)\")"},"3225":{"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)\")"},"3226":{"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)\")"},"3227":{"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)\")"},"3228":{"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)\")"},"3229":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3230":{"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)\")"},"3231":{"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)\")"},"3232":{"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)\")"},"3233":{"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)\")"},"3234":{"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)\")"},"3235":{"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)\")"},"3236":{"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)\")"},"3237":{"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)\")"},"3238":{"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)\")"},"3239":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3240":{"morph":{"__isSmartRef__":true,"id":3203},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3241":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3242}},"3242":{"test01IsMorph":{"__isSmartRef__":true,"id":3243}},"3243":{"varMapping":{"__isSmartRef__":true,"id":3244},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3244":{"this":{"__isSmartRef__":true,"id":3241}},"3245":{},"3246":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3247},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3248},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3249},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3247":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3248":{"morph":{"__isSmartRef__":true,"id":3246},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3249":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3250}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3250":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3251":{"submorphs":[{"__isSmartRef__":true,"id":3252}],"scripts":[],"id":"63079D3A-1D53-4623-B918-F78D50BEC986","shape":{"__isSmartRef__":true,"id":3267},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3268},"eventHandler":{"__isSmartRef__":true,"id":3288},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3289},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3294},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3252},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2435},{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":3203},{"__isSmartRef__":true,"id":3299}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5389},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(127.0,202.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(5.0,8.0)"},"3252":{"submorphs":[],"scripts":[],"id":"4D99DF4D-8390-421C-81BE-7A9B493BB8D6","shape":{"__isSmartRef__":true,"id":3253},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3254},"textChunks":[{"__isSmartRef__":true,"id":3263}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3265},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3266},"owner":{"__isSmartRef__":true,"id":3251},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3253":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3254":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3255},{"__isSmartRef__":true,"id":3256},{"__isSmartRef__":true,"id":3257},{"__isSmartRef__":true,"id":3258},{"__isSmartRef__":true,"id":3259},{"__isSmartRef__":true,"id":3260},{"__isSmartRef__":true,"id":3261},{"__isSmartRef__":true,"id":3262}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3255":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3256":{"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)\")"},"3257":{"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)\")"},"3258":{"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)\")"},"3259":{"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)\")"},"3260":{"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)\")"},"3261":{"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)\")"},"3262":{"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)\")"},"3263":{"style":{"__isSmartRef__":true,"id":3264},"chunkOwner":{"__isSmartRef__":true,"id":3252},"_id":"_16102","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3264":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3265":{"morph":{"__isSmartRef__":true,"id":3252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3266":{"resizeWidth":true},"3267":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3268":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3269},{"__isSmartRef__":true,"id":3270},{"__isSmartRef__":true,"id":3271},{"__isSmartRef__":true,"id":3272},{"__isSmartRef__":true,"id":3273},{"__isSmartRef__":true,"id":3274},{"__isSmartRef__":true,"id":3275},{"__isSmartRef__":true,"id":3276},{"__isSmartRef__":true,"id":3277},{"__isSmartRef__":true,"id":3278},{"__isSmartRef__":true,"id":3279},{"__isSmartRef__":true,"id":3280},{"__isSmartRef__":true,"id":3281},{"__isSmartRef__":true,"id":3282},{"__isSmartRef__":true,"id":3283},{"__isSmartRef__":true,"id":3284},{"__isSmartRef__":true,"id":3285},{"__isSmartRef__":true,"id":3286},{"__isSmartRef__":true,"id":3287}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3269":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3270":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3271":{"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)\")"},"3272":{"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)\")"},"3273":{"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)\")"},"3274":{"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)\")"},"3275":{"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)\")"},"3276":{"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)\")"},"3277":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3278":{"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)\")"},"3279":{"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)\")"},"3280":{"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)\")"},"3281":{"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)\")"},"3282":{"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)\")"},"3283":{"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)\")"},"3284":{"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)\")"},"3285":{"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)\")"},"3286":{"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)\")"},"3287":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3288":{"morph":{"__isSmartRef__":true,"id":3251},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3289":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3290}},"3290":{"test01IsMorph":{"__isSmartRef__":true,"id":3291}},"3291":{"varMapping":{"__isSmartRef__":true,"id":3292},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3292":{"this":{"__isSmartRef__":true,"id":3289}},"3293":{},"3294":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3295},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3296},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3297},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3295":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3296":{"morph":{"__isSmartRef__":true,"id":3294},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3297":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3298}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3298":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3299":{"submorphs":[{"__isSmartRef__":true,"id":3300}],"scripts":[],"id":"B6DA34D0-5A70-444F-BBDD-6A6796870863","shape":{"__isSmartRef__":true,"id":3315},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3316},"eventHandler":{"__isSmartRef__":true,"id":3336},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3337},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3342},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3300},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":3251},{"__isSmartRef__":true,"id":3203},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":4115}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5327},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(152.0,202.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(6.0,8.0)"},"3300":{"submorphs":[],"scripts":[],"id":"FE1908D1-B7F5-464C-B18F-68577BE8B23E","shape":{"__isSmartRef__":true,"id":3301},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3302},"textChunks":[{"__isSmartRef__":true,"id":3311}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3313},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3314},"owner":{"__isSmartRef__":true,"id":3299},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3301":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3302":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3303},{"__isSmartRef__":true,"id":3304},{"__isSmartRef__":true,"id":3305},{"__isSmartRef__":true,"id":3306},{"__isSmartRef__":true,"id":3307},{"__isSmartRef__":true,"id":3308},{"__isSmartRef__":true,"id":3309},{"__isSmartRef__":true,"id":3310}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3303":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3304":{"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)\")"},"3305":{"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)\")"},"3306":{"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)\")"},"3307":{"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)\")"},"3308":{"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)\")"},"3309":{"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)\")"},"3310":{"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)\")"},"3311":{"style":{"__isSmartRef__":true,"id":3312},"chunkOwner":{"__isSmartRef__":true,"id":3300},"_id":"_16111","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3312":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3313":{"morph":{"__isSmartRef__":true,"id":3300},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3314":{"resizeWidth":true},"3315":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3316":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3317},{"__isSmartRef__":true,"id":3318},{"__isSmartRef__":true,"id":3319},{"__isSmartRef__":true,"id":3320},{"__isSmartRef__":true,"id":3321},{"__isSmartRef__":true,"id":3322},{"__isSmartRef__":true,"id":3323},{"__isSmartRef__":true,"id":3324},{"__isSmartRef__":true,"id":3325},{"__isSmartRef__":true,"id":3326},{"__isSmartRef__":true,"id":3327},{"__isSmartRef__":true,"id":3328},{"__isSmartRef__":true,"id":3329},{"__isSmartRef__":true,"id":3330},{"__isSmartRef__":true,"id":3331},{"__isSmartRef__":true,"id":3332},{"__isSmartRef__":true,"id":3333},{"__isSmartRef__":true,"id":3334},{"__isSmartRef__":true,"id":3335}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3317":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3318":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3319":{"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)\")"},"3320":{"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)\")"},"3321":{"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)\")"},"3322":{"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)\")"},"3323":{"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)\")"},"3324":{"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)\")"},"3325":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3326":{"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)\")"},"3327":{"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)\")"},"3328":{"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)\")"},"3329":{"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)\")"},"3330":{"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)\")"},"3331":{"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)\")"},"3332":{"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)\")"},"3333":{"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)\")"},"3334":{"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)\")"},"3335":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3336":{"morph":{"__isSmartRef__":true,"id":3299},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3337":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3338}},"3338":{"test01IsMorph":{"__isSmartRef__":true,"id":3339}},"3339":{"varMapping":{"__isSmartRef__":true,"id":3340},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3340":{"this":{"__isSmartRef__":true,"id":3337}},"3341":{},"3342":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3343},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3344},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3345},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3343":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3344":{"morph":{"__isSmartRef__":true,"id":3342},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3345":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3346}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3346":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3347":{"submorphs":[{"__isSmartRef__":true,"id":3348}],"scripts":[],"id":"88A410D0-D689-4708-AAF7-68A2ECA404ED","shape":{"__isSmartRef__":true,"id":3363},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3364},"eventHandler":{"__isSmartRef__":true,"id":3384},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3385},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3390},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3348},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3155},{"__isSmartRef__":true,"id":3203},{"__isSmartRef__":true,"id":3299},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":4115},{"__isSmartRef__":true,"id":4019},{"__isSmartRef__":true,"id":4067},{"__isSmartRef__":true,"id":4163}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5265},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(177.0,177.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(7.0,7.0)"},"3348":{"submorphs":[],"scripts":[],"id":"EB415812-A640-4E08-A1F9-4D9E1305A2B4","shape":{"__isSmartRef__":true,"id":3349},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3350},"textChunks":[{"__isSmartRef__":true,"id":3359}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3361},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3362},"owner":{"__isSmartRef__":true,"id":3347},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3349":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3350":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3351},{"__isSmartRef__":true,"id":3352},{"__isSmartRef__":true,"id":3353},{"__isSmartRef__":true,"id":3354},{"__isSmartRef__":true,"id":3355},{"__isSmartRef__":true,"id":3356},{"__isSmartRef__":true,"id":3357},{"__isSmartRef__":true,"id":3358}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3351":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3352":{"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)\")"},"3353":{"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)\")"},"3354":{"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)\")"},"3355":{"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)\")"},"3356":{"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)\")"},"3357":{"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)\")"},"3358":{"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)\")"},"3359":{"style":{"__isSmartRef__":true,"id":3360},"chunkOwner":{"__isSmartRef__":true,"id":3348},"_id":"_16119","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3360":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3361":{"morph":{"__isSmartRef__":true,"id":3348},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3362":{"resizeWidth":true},"3363":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3364":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3365},{"__isSmartRef__":true,"id":3366},{"__isSmartRef__":true,"id":3367},{"__isSmartRef__":true,"id":3368},{"__isSmartRef__":true,"id":3369},{"__isSmartRef__":true,"id":3370},{"__isSmartRef__":true,"id":3371},{"__isSmartRef__":true,"id":3372},{"__isSmartRef__":true,"id":3373},{"__isSmartRef__":true,"id":3374},{"__isSmartRef__":true,"id":3375},{"__isSmartRef__":true,"id":3376},{"__isSmartRef__":true,"id":3377},{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":3379},{"__isSmartRef__":true,"id":3380},{"__isSmartRef__":true,"id":3381},{"__isSmartRef__":true,"id":3382},{"__isSmartRef__":true,"id":3383}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3365":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3366":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3367":{"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)\")"},"3368":{"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)\")"},"3369":{"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)\")"},"3370":{"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)\")"},"3371":{"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)\")"},"3372":{"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)\")"},"3373":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3374":{"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)\")"},"3375":{"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)\")"},"3376":{"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)\")"},"3377":{"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)\")"},"3378":{"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)\")"},"3379":{"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)\")"},"3380":{"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)\")"},"3381":{"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)\")"},"3382":{"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)\")"},"3383":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3384":{"morph":{"__isSmartRef__":true,"id":3347},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3385":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3386}},"3386":{"test01IsMorph":{"__isSmartRef__":true,"id":3387}},"3387":{"varMapping":{"__isSmartRef__":true,"id":3388},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3388":{"this":{"__isSmartRef__":true,"id":3385}},"3389":{},"3390":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3391},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3392},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3393},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3391":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3392":{"morph":{"__isSmartRef__":true,"id":3390},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3393":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3394}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3394":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3395":{"submorphs":[{"__isSmartRef__":true,"id":3396}],"scripts":[],"id":"8F18FD29-E5CF-4206-B905-04845B41CAF5","shape":{"__isSmartRef__":true,"id":3411},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3412},"eventHandler":{"__isSmartRef__":true,"id":3432},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3433},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3438},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3396},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3155},{"__isSmartRef__":true,"id":3203},{"__isSmartRef__":true,"id":3443},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":3971},{"__isSmartRef__":true,"id":4019},{"__isSmartRef__":true,"id":4067}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5203},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(177.0,152.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(7.0,6.0)"},"3396":{"submorphs":[],"scripts":[],"id":"4B57A07C-6D1A-4762-9830-45E26CCBF2FF","shape":{"__isSmartRef__":true,"id":3397},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3398},"textChunks":[{"__isSmartRef__":true,"id":3407}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3409},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3410},"owner":{"__isSmartRef__":true,"id":3395},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3397":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3398":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3399},{"__isSmartRef__":true,"id":3400},{"__isSmartRef__":true,"id":3401},{"__isSmartRef__":true,"id":3402},{"__isSmartRef__":true,"id":3403},{"__isSmartRef__":true,"id":3404},{"__isSmartRef__":true,"id":3405},{"__isSmartRef__":true,"id":3406}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3399":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3400":{"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)\")"},"3401":{"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)\")"},"3402":{"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)\")"},"3403":{"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)\")"},"3404":{"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)\")"},"3405":{"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)\")"},"3406":{"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)\")"},"3407":{"style":{"__isSmartRef__":true,"id":3408},"chunkOwner":{"__isSmartRef__":true,"id":3396},"_id":"_16118","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3408":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3409":{"morph":{"__isSmartRef__":true,"id":3396},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3410":{"resizeWidth":true},"3411":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3412":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3413},{"__isSmartRef__":true,"id":3414},{"__isSmartRef__":true,"id":3415},{"__isSmartRef__":true,"id":3416},{"__isSmartRef__":true,"id":3417},{"__isSmartRef__":true,"id":3418},{"__isSmartRef__":true,"id":3419},{"__isSmartRef__":true,"id":3420},{"__isSmartRef__":true,"id":3421},{"__isSmartRef__":true,"id":3422},{"__isSmartRef__":true,"id":3423},{"__isSmartRef__":true,"id":3424},{"__isSmartRef__":true,"id":3425},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3427},{"__isSmartRef__":true,"id":3428},{"__isSmartRef__":true,"id":3429},{"__isSmartRef__":true,"id":3430},{"__isSmartRef__":true,"id":3431}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3413":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3414":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3415":{"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)\")"},"3416":{"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)\")"},"3417":{"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)\")"},"3418":{"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)\")"},"3419":{"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)\")"},"3420":{"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)\")"},"3421":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3422":{"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)\")"},"3423":{"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)\")"},"3424":{"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)\")"},"3425":{"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)\")"},"3426":{"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)\")"},"3427":{"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)\")"},"3428":{"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)\")"},"3429":{"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)\")"},"3430":{"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)\")"},"3431":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3432":{"morph":{"__isSmartRef__":true,"id":3395},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3433":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3434}},"3434":{"test01IsMorph":{"__isSmartRef__":true,"id":3435}},"3435":{"varMapping":{"__isSmartRef__":true,"id":3436},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3436":{"this":{"__isSmartRef__":true,"id":3433}},"3437":{},"3438":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3439},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3440},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3441},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3439":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3440":{"morph":{"__isSmartRef__":true,"id":3438},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3441":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3442}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3442":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3443":{"submorphs":[{"__isSmartRef__":true,"id":3444}],"scripts":[],"id":"5BF9A773-E519-4E57-9B76-4AB58CFF1AE0","shape":{"__isSmartRef__":true,"id":3459},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3460},"eventHandler":{"__isSmartRef__":true,"id":3480},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3481},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3486},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3444},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3059},{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3155},{"__isSmartRef__":true,"id":3491},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3923},{"__isSmartRef__":true,"id":3971},{"__isSmartRef__":true,"id":4019}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5141},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(177.0,127.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(7.0,5.0)"},"3444":{"submorphs":[],"scripts":[],"id":"D25A5F16-A488-4518-8E39-81A88E2C641D","shape":{"__isSmartRef__":true,"id":3445},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3446},"textChunks":[{"__isSmartRef__":true,"id":3455}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3457},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3458},"owner":{"__isSmartRef__":true,"id":3443},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3445":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3446":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3447},{"__isSmartRef__":true,"id":3448},{"__isSmartRef__":true,"id":3449},{"__isSmartRef__":true,"id":3450},{"__isSmartRef__":true,"id":3451},{"__isSmartRef__":true,"id":3452},{"__isSmartRef__":true,"id":3453},{"__isSmartRef__":true,"id":3454}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3447":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3448":{"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)\")"},"3449":{"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)\")"},"3450":{"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)\")"},"3451":{"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)\")"},"3452":{"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)\")"},"3453":{"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)\")"},"3454":{"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)\")"},"3455":{"style":{"__isSmartRef__":true,"id":3456},"chunkOwner":{"__isSmartRef__":true,"id":3444},"_id":"_16117","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3456":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3457":{"morph":{"__isSmartRef__":true,"id":3444},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3458":{"resizeWidth":true},"3459":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3460":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3461},{"__isSmartRef__":true,"id":3462},{"__isSmartRef__":true,"id":3463},{"__isSmartRef__":true,"id":3464},{"__isSmartRef__":true,"id":3465},{"__isSmartRef__":true,"id":3466},{"__isSmartRef__":true,"id":3467},{"__isSmartRef__":true,"id":3468},{"__isSmartRef__":true,"id":3469},{"__isSmartRef__":true,"id":3470},{"__isSmartRef__":true,"id":3471},{"__isSmartRef__":true,"id":3472},{"__isSmartRef__":true,"id":3473},{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3475},{"__isSmartRef__":true,"id":3476},{"__isSmartRef__":true,"id":3477},{"__isSmartRef__":true,"id":3478},{"__isSmartRef__":true,"id":3479}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3461":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3462":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3463":{"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)\")"},"3464":{"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)\")"},"3465":{"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)\")"},"3466":{"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)\")"},"3467":{"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)\")"},"3468":{"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)\")"},"3469":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3470":{"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)\")"},"3471":{"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)\")"},"3472":{"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)\")"},"3473":{"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)\")"},"3474":{"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)\")"},"3475":{"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)\")"},"3476":{"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)\")"},"3477":{"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)\")"},"3478":{"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)\")"},"3479":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3480":{"morph":{"__isSmartRef__":true,"id":3443},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3481":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3482}},"3482":{"test01IsMorph":{"__isSmartRef__":true,"id":3483}},"3483":{"varMapping":{"__isSmartRef__":true,"id":3484},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3484":{"this":{"__isSmartRef__":true,"id":3481}},"3485":{},"3486":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3487},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3488},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3489},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3487":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3488":{"morph":{"__isSmartRef__":true,"id":3486},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3489":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3490}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3490":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3491":{"submorphs":[{"__isSmartRef__":true,"id":3492}],"scripts":[],"id":"431108CB-ED82-460C-A31B-2A1EFF44E4BE","shape":{"__isSmartRef__":true,"id":3507},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3508},"eventHandler":{"__isSmartRef__":true,"id":3528},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3529},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3534},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3492},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3011},{"__isSmartRef__":true,"id":3059},{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3539},{"__isSmartRef__":true,"id":3443},{"__isSmartRef__":true,"id":3875},{"__isSmartRef__":true,"id":3923},{"__isSmartRef__":true,"id":3971}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5079},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(177.0,102.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(7.0,4.0)"},"3492":{"submorphs":[],"scripts":[],"id":"D0332ADA-2AD1-4059-831B-8D6228C02D41","shape":{"__isSmartRef__":true,"id":3493},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3494},"textChunks":[{"__isSmartRef__":true,"id":3503}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3505},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3506},"owner":{"__isSmartRef__":true,"id":3491},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3493":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3494":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3495},{"__isSmartRef__":true,"id":3496},{"__isSmartRef__":true,"id":3497},{"__isSmartRef__":true,"id":3498},{"__isSmartRef__":true,"id":3499},{"__isSmartRef__":true,"id":3500},{"__isSmartRef__":true,"id":3501},{"__isSmartRef__":true,"id":3502}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3495":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3496":{"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)\")"},"3497":{"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)\")"},"3498":{"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)\")"},"3499":{"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)\")"},"3500":{"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)\")"},"3501":{"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)\")"},"3502":{"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)\")"},"3503":{"style":{"__isSmartRef__":true,"id":3504},"chunkOwner":{"__isSmartRef__":true,"id":3492},"_id":"_16116","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3504":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3505":{"morph":{"__isSmartRef__":true,"id":3492},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3506":{"resizeWidth":true},"3507":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3508":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3509},{"__isSmartRef__":true,"id":3510},{"__isSmartRef__":true,"id":3511},{"__isSmartRef__":true,"id":3512},{"__isSmartRef__":true,"id":3513},{"__isSmartRef__":true,"id":3514},{"__isSmartRef__":true,"id":3515},{"__isSmartRef__":true,"id":3516},{"__isSmartRef__":true,"id":3517},{"__isSmartRef__":true,"id":3518},{"__isSmartRef__":true,"id":3519},{"__isSmartRef__":true,"id":3520},{"__isSmartRef__":true,"id":3521},{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3523},{"__isSmartRef__":true,"id":3524},{"__isSmartRef__":true,"id":3525},{"__isSmartRef__":true,"id":3526},{"__isSmartRef__":true,"id":3527}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3509":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3510":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3511":{"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)\")"},"3512":{"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)\")"},"3513":{"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)\")"},"3514":{"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)\")"},"3515":{"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)\")"},"3516":{"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)\")"},"3517":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3518":{"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)\")"},"3519":{"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)\")"},"3520":{"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)\")"},"3521":{"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)\")"},"3522":{"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)\")"},"3523":{"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)\")"},"3524":{"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)\")"},"3525":{"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)\")"},"3526":{"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)\")"},"3527":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3528":{"morph":{"__isSmartRef__":true,"id":3491},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3529":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3530}},"3530":{"test01IsMorph":{"__isSmartRef__":true,"id":3531}},"3531":{"varMapping":{"__isSmartRef__":true,"id":3532},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3532":{"this":{"__isSmartRef__":true,"id":3529}},"3533":{},"3534":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3535},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3536},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3537},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3535":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3536":{"morph":{"__isSmartRef__":true,"id":3534},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3537":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3538}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3538":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3539":{"submorphs":[{"__isSmartRef__":true,"id":3540}],"scripts":[],"id":"31E7E1BA-C9DE-4758-B553-3A3777638A42","shape":{"__isSmartRef__":true,"id":3555},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3556},"eventHandler":{"__isSmartRef__":true,"id":3576},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3577},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3582},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3540},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2963},{"__isSmartRef__":true,"id":3011},{"__isSmartRef__":true,"id":3059},{"__isSmartRef__":true,"id":3587},{"__isSmartRef__":true,"id":3491},{"__isSmartRef__":true,"id":3827},{"__isSmartRef__":true,"id":3875},{"__isSmartRef__":true,"id":3923}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5017},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(177.0,77.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(7.0,3.0)"},"3540":{"submorphs":[],"scripts":[],"id":"95A22568-15A5-4ADF-8A52-FAF3B7B5AABF","shape":{"__isSmartRef__":true,"id":3541},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3542},"textChunks":[{"__isSmartRef__":true,"id":3551}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3553},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3554},"owner":{"__isSmartRef__":true,"id":3539},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3541":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3542":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3543},{"__isSmartRef__":true,"id":3544},{"__isSmartRef__":true,"id":3545},{"__isSmartRef__":true,"id":3546},{"__isSmartRef__":true,"id":3547},{"__isSmartRef__":true,"id":3548},{"__isSmartRef__":true,"id":3549},{"__isSmartRef__":true,"id":3550}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3543":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3544":{"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)\")"},"3545":{"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)\")"},"3546":{"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)\")"},"3547":{"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)\")"},"3548":{"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)\")"},"3549":{"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)\")"},"3550":{"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)\")"},"3551":{"style":{"__isSmartRef__":true,"id":3552},"chunkOwner":{"__isSmartRef__":true,"id":3540},"_id":"_16115","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3552":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3553":{"morph":{"__isSmartRef__":true,"id":3540},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3554":{"resizeWidth":true},"3555":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3556":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3557},{"__isSmartRef__":true,"id":3558},{"__isSmartRef__":true,"id":3559},{"__isSmartRef__":true,"id":3560},{"__isSmartRef__":true,"id":3561},{"__isSmartRef__":true,"id":3562},{"__isSmartRef__":true,"id":3563},{"__isSmartRef__":true,"id":3564},{"__isSmartRef__":true,"id":3565},{"__isSmartRef__":true,"id":3566},{"__isSmartRef__":true,"id":3567},{"__isSmartRef__":true,"id":3568},{"__isSmartRef__":true,"id":3569},{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3571},{"__isSmartRef__":true,"id":3572},{"__isSmartRef__":true,"id":3573},{"__isSmartRef__":true,"id":3574},{"__isSmartRef__":true,"id":3575}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3557":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3558":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3559":{"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)\")"},"3560":{"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)\")"},"3561":{"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)\")"},"3562":{"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)\")"},"3563":{"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)\")"},"3564":{"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)\")"},"3565":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3566":{"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)\")"},"3567":{"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)\")"},"3568":{"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)\")"},"3569":{"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)\")"},"3570":{"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)\")"},"3571":{"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)\")"},"3572":{"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)\")"},"3573":{"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)\")"},"3574":{"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)\")"},"3575":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3576":{"morph":{"__isSmartRef__":true,"id":3539},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3577":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3578}},"3578":{"test01IsMorph":{"__isSmartRef__":true,"id":3579}},"3579":{"varMapping":{"__isSmartRef__":true,"id":3580},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3580":{"this":{"__isSmartRef__":true,"id":3577}},"3581":{},"3582":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3583},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3584},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3585},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3583":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3584":{"morph":{"__isSmartRef__":true,"id":3582},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3585":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3586}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3586":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3587":{"submorphs":[{"__isSmartRef__":true,"id":3588}],"scripts":[],"id":"43ADB129-00EC-49F8-93CD-83A66AB288E9","shape":{"__isSmartRef__":true,"id":3603},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3604},"eventHandler":{"__isSmartRef__":true,"id":3624},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3625},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3630},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3588},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2915},{"__isSmartRef__":true,"id":2963},{"__isSmartRef__":true,"id":3011},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3539},{"__isSmartRef__":true,"id":3779},{"__isSmartRef__":true,"id":3827},{"__isSmartRef__":true,"id":3875}],"neighborCount":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4955},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(177.0,52.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(7.0,2.0)"},"3588":{"submorphs":[],"scripts":[],"id":"BA3702FB-540B-4A77-BAFF-A4D01B712969","shape":{"__isSmartRef__":true,"id":3589},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3590},"textChunks":[{"__isSmartRef__":true,"id":3599}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3601},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3602},"owner":{"__isSmartRef__":true,"id":3587},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3589":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3590":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3591},{"__isSmartRef__":true,"id":3592},{"__isSmartRef__":true,"id":3593},{"__isSmartRef__":true,"id":3594},{"__isSmartRef__":true,"id":3595},{"__isSmartRef__":true,"id":3596},{"__isSmartRef__":true,"id":3597},{"__isSmartRef__":true,"id":3598}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3591":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3592":{"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)\")"},"3593":{"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)\")"},"3594":{"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)\")"},"3595":{"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)\")"},"3596":{"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)\")"},"3597":{"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)\")"},"3598":{"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)\")"},"3599":{"style":{"__isSmartRef__":true,"id":3600},"chunkOwner":{"__isSmartRef__":true,"id":3588},"_id":"_16114","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3600":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3601":{"morph":{"__isSmartRef__":true,"id":3588},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3602":{"resizeWidth":true},"3603":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3604":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3605},{"__isSmartRef__":true,"id":3606},{"__isSmartRef__":true,"id":3607},{"__isSmartRef__":true,"id":3608},{"__isSmartRef__":true,"id":3609},{"__isSmartRef__":true,"id":3610},{"__isSmartRef__":true,"id":3611},{"__isSmartRef__":true,"id":3612},{"__isSmartRef__":true,"id":3613},{"__isSmartRef__":true,"id":3614},{"__isSmartRef__":true,"id":3615},{"__isSmartRef__":true,"id":3616},{"__isSmartRef__":true,"id":3617},{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3619},{"__isSmartRef__":true,"id":3620},{"__isSmartRef__":true,"id":3621},{"__isSmartRef__":true,"id":3622},{"__isSmartRef__":true,"id":3623}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3605":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3606":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3607":{"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)\")"},"3608":{"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)\")"},"3609":{"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)\")"},"3610":{"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)\")"},"3611":{"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)\")"},"3612":{"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)\")"},"3613":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3614":{"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)\")"},"3615":{"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)\")"},"3616":{"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)\")"},"3617":{"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)\")"},"3618":{"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)\")"},"3619":{"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)\")"},"3620":{"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)\")"},"3621":{"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)\")"},"3622":{"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)\")"},"3623":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3624":{"morph":{"__isSmartRef__":true,"id":3587},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3625":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3626}},"3626":{"test01IsMorph":{"__isSmartRef__":true,"id":3627}},"3627":{"varMapping":{"__isSmartRef__":true,"id":3628},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3628":{"this":{"__isSmartRef__":true,"id":3625}},"3629":{},"3630":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3631},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3632},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3633},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3631":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3632":{"morph":{"__isSmartRef__":true,"id":3630},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3633":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3634}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3634":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3635":{"submorphs":[{"__isSmartRef__":true,"id":3636}],"scripts":[],"id":"22DCC1A2-0F5F-43D6-85E3-1A9BF131A049","shape":{"__isSmartRef__":true,"id":3651},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3652},"eventHandler":{"__isSmartRef__":true,"id":3672},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3673},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3678},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3636},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2867},{"__isSmartRef__":true,"id":2915},{"__isSmartRef__":true,"id":2963},{"__isSmartRef__":true,"id":3683},{"__isSmartRef__":true,"id":3587},{"__isSmartRef__":true,"id":3731},{"__isSmartRef__":true,"id":3779},{"__isSmartRef__":true,"id":3827}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4893},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(177.0,27.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(7.0,1.0)"},"3636":{"submorphs":[],"scripts":[],"id":"B7D3C491-74D3-4906-A124-D2FF0A5071C8","shape":{"__isSmartRef__":true,"id":3637},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3638},"textChunks":[{"__isSmartRef__":true,"id":3647}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3649},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3650},"owner":{"__isSmartRef__":true,"id":3635},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3637":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3638":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3639},{"__isSmartRef__":true,"id":3640},{"__isSmartRef__":true,"id":3641},{"__isSmartRef__":true,"id":3642},{"__isSmartRef__":true,"id":3643},{"__isSmartRef__":true,"id":3644},{"__isSmartRef__":true,"id":3645},{"__isSmartRef__":true,"id":3646}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3639":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3640":{"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)\")"},"3641":{"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)\")"},"3642":{"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)\")"},"3643":{"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)\")"},"3644":{"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)\")"},"3645":{"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)\")"},"3646":{"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)\")"},"3647":{"style":{"__isSmartRef__":true,"id":3648},"chunkOwner":{"__isSmartRef__":true,"id":3636},"_id":"_16113","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3648":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3649":{"morph":{"__isSmartRef__":true,"id":3636},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3650":{"resizeWidth":true},"3651":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3652":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":3654},{"__isSmartRef__":true,"id":3655},{"__isSmartRef__":true,"id":3656},{"__isSmartRef__":true,"id":3657},{"__isSmartRef__":true,"id":3658},{"__isSmartRef__":true,"id":3659},{"__isSmartRef__":true,"id":3660},{"__isSmartRef__":true,"id":3661},{"__isSmartRef__":true,"id":3662},{"__isSmartRef__":true,"id":3663},{"__isSmartRef__":true,"id":3664},{"__isSmartRef__":true,"id":3665},{"__isSmartRef__":true,"id":3666},{"__isSmartRef__":true,"id":3667},{"__isSmartRef__":true,"id":3668},{"__isSmartRef__":true,"id":3669},{"__isSmartRef__":true,"id":3670},{"__isSmartRef__":true,"id":3671}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3653":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3654":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3655":{"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)\")"},"3656":{"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)\")"},"3657":{"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)\")"},"3658":{"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)\")"},"3659":{"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)\")"},"3660":{"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)\")"},"3661":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3662":{"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)\")"},"3663":{"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)\")"},"3664":{"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)\")"},"3665":{"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)\")"},"3666":{"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)\")"},"3667":{"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)\")"},"3668":{"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)\")"},"3669":{"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)\")"},"3670":{"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)\")"},"3671":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3672":{"morph":{"__isSmartRef__":true,"id":3635},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3673":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3674}},"3674":{"test01IsMorph":{"__isSmartRef__":true,"id":3675}},"3675":{"varMapping":{"__isSmartRef__":true,"id":3676},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3676":{"this":{"__isSmartRef__":true,"id":3673}},"3677":{},"3678":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3679},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3680},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3681},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3679":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3680":{"morph":{"__isSmartRef__":true,"id":3678},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3681":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3682}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3682":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3683":{"submorphs":[{"__isSmartRef__":true,"id":3684}],"scripts":[],"id":"FA422CE9-8292-4568-887B-209EEBEA5A30","shape":{"__isSmartRef__":true,"id":3699},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3700},"eventHandler":{"__isSmartRef__":true,"id":3720},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3721},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3726},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3684},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":2867},{"__isSmartRef__":true,"id":2915},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3731},{"__isSmartRef__":true,"id":3779}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4831},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(177.0,2.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(7.0,0.0)"},"3684":{"submorphs":[],"scripts":[],"id":"21AC1097-393D-475E-AA12-67CB28D7D1EF","shape":{"__isSmartRef__":true,"id":3685},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3686},"textChunks":[{"__isSmartRef__":true,"id":3695}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3697},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3698},"owner":{"__isSmartRef__":true,"id":3683},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3685":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3686":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3687},{"__isSmartRef__":true,"id":3688},{"__isSmartRef__":true,"id":3689},{"__isSmartRef__":true,"id":3690},{"__isSmartRef__":true,"id":3691},{"__isSmartRef__":true,"id":3692},{"__isSmartRef__":true,"id":3693},{"__isSmartRef__":true,"id":3694}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3687":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3688":{"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)\")"},"3689":{"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)\")"},"3690":{"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)\")"},"3691":{"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)\")"},"3692":{"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)\")"},"3693":{"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)\")"},"3694":{"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)\")"},"3695":{"style":{"__isSmartRef__":true,"id":3696},"chunkOwner":{"__isSmartRef__":true,"id":3684},"_id":"_16112","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3696":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3697":{"morph":{"__isSmartRef__":true,"id":3684},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3698":{"resizeWidth":true},"3699":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3700":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3701},{"__isSmartRef__":true,"id":3702},{"__isSmartRef__":true,"id":3703},{"__isSmartRef__":true,"id":3704},{"__isSmartRef__":true,"id":3705},{"__isSmartRef__":true,"id":3706},{"__isSmartRef__":true,"id":3707},{"__isSmartRef__":true,"id":3708},{"__isSmartRef__":true,"id":3709},{"__isSmartRef__":true,"id":3710},{"__isSmartRef__":true,"id":3711},{"__isSmartRef__":true,"id":3712},{"__isSmartRef__":true,"id":3713},{"__isSmartRef__":true,"id":3714},{"__isSmartRef__":true,"id":3715},{"__isSmartRef__":true,"id":3716},{"__isSmartRef__":true,"id":3717},{"__isSmartRef__":true,"id":3718},{"__isSmartRef__":true,"id":3719}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3701":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3702":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3703":{"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)\")"},"3704":{"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)\")"},"3705":{"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)\")"},"3706":{"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)\")"},"3707":{"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)\")"},"3708":{"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)\")"},"3709":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3710":{"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)\")"},"3711":{"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)\")"},"3712":{"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)\")"},"3713":{"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)\")"},"3714":{"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)\")"},"3715":{"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)\")"},"3716":{"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)\")"},"3717":{"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)\")"},"3718":{"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)\")"},"3719":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3720":{"morph":{"__isSmartRef__":true,"id":3683},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3721":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3722}},"3722":{"test01IsMorph":{"__isSmartRef__":true,"id":3723}},"3723":{"varMapping":{"__isSmartRef__":true,"id":3724},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3724":{"this":{"__isSmartRef__":true,"id":3721}},"3725":{},"3726":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3727},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3728},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3729},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3727":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3728":{"morph":{"__isSmartRef__":true,"id":3726},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3729":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3730}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3730":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3731":{"submorphs":[{"__isSmartRef__":true,"id":3732}],"scripts":[],"id":"8F8A915E-1D8C-4943-9810-87266CD937D9","shape":{"__isSmartRef__":true,"id":3747},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3748},"eventHandler":{"__isSmartRef__":true,"id":3768},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3769},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3774},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3732},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3683},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3779}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4769},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(202.0,2.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(8.0,0.0)"},"3732":{"submorphs":[],"scripts":[],"id":"4E4806C1-1789-44B5-B8F4-68604236092F","shape":{"__isSmartRef__":true,"id":3733},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3734},"textChunks":[{"__isSmartRef__":true,"id":3743}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3745},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3746},"owner":{"__isSmartRef__":true,"id":3731},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3733":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3734":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3735},{"__isSmartRef__":true,"id":3736},{"__isSmartRef__":true,"id":3737},{"__isSmartRef__":true,"id":3738},{"__isSmartRef__":true,"id":3739},{"__isSmartRef__":true,"id":3740},{"__isSmartRef__":true,"id":3741},{"__isSmartRef__":true,"id":3742}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3735":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3736":{"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)\")"},"3737":{"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)\")"},"3738":{"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)\")"},"3739":{"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)\")"},"3740":{"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)\")"},"3741":{"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)\")"},"3742":{"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)\")"},"3743":{"style":{"__isSmartRef__":true,"id":3744},"chunkOwner":{"__isSmartRef__":true,"id":3732},"_id":"_16121","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3744":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3745":{"morph":{"__isSmartRef__":true,"id":3732},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3746":{"resizeWidth":true},"3747":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3748":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3749},{"__isSmartRef__":true,"id":3750},{"__isSmartRef__":true,"id":3751},{"__isSmartRef__":true,"id":3752},{"__isSmartRef__":true,"id":3753},{"__isSmartRef__":true,"id":3754},{"__isSmartRef__":true,"id":3755},{"__isSmartRef__":true,"id":3756},{"__isSmartRef__":true,"id":3757},{"__isSmartRef__":true,"id":3758},{"__isSmartRef__":true,"id":3759},{"__isSmartRef__":true,"id":3760},{"__isSmartRef__":true,"id":3761},{"__isSmartRef__":true,"id":3762},{"__isSmartRef__":true,"id":3763},{"__isSmartRef__":true,"id":3764},{"__isSmartRef__":true,"id":3765},{"__isSmartRef__":true,"id":3766},{"__isSmartRef__":true,"id":3767}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3749":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3750":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3751":{"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)\")"},"3752":{"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)\")"},"3753":{"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)\")"},"3754":{"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)\")"},"3755":{"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)\")"},"3756":{"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)\")"},"3757":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3758":{"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)\")"},"3759":{"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)\")"},"3760":{"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)\")"},"3761":{"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)\")"},"3762":{"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)\")"},"3763":{"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)\")"},"3764":{"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)\")"},"3765":{"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)\")"},"3766":{"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)\")"},"3767":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3768":{"morph":{"__isSmartRef__":true,"id":3731},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3769":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3770}},"3770":{"test01IsMorph":{"__isSmartRef__":true,"id":3771}},"3771":{"varMapping":{"__isSmartRef__":true,"id":3772},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3772":{"this":{"__isSmartRef__":true,"id":3769}},"3773":{},"3774":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3775},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3776},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3777},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3775":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3776":{"morph":{"__isSmartRef__":true,"id":3774},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3777":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3778}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3778":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3779":{"submorphs":[{"__isSmartRef__":true,"id":3780}],"scripts":[],"id":"996A0278-5E63-41B0-861A-953D2B5504D7","shape":{"__isSmartRef__":true,"id":3795},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3796},"eventHandler":{"__isSmartRef__":true,"id":3816},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3817},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3822},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3780},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3683},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3587},{"__isSmartRef__":true,"id":3731},{"__isSmartRef__":true,"id":3827}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4707},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(202.0,27.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(8.0,1.0)"},"3780":{"submorphs":[],"scripts":[],"id":"202F3A9B-6714-4E68-A5EB-88A0964EF3DB","shape":{"__isSmartRef__":true,"id":3781},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3782},"textChunks":[{"__isSmartRef__":true,"id":3791}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3793},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3794},"owner":{"__isSmartRef__":true,"id":3779},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3781":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3782":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3783},{"__isSmartRef__":true,"id":3784},{"__isSmartRef__":true,"id":3785},{"__isSmartRef__":true,"id":3786},{"__isSmartRef__":true,"id":3787},{"__isSmartRef__":true,"id":3788},{"__isSmartRef__":true,"id":3789},{"__isSmartRef__":true,"id":3790}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3783":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3784":{"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)\")"},"3785":{"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)\")"},"3786":{"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)\")"},"3787":{"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)\")"},"3788":{"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)\")"},"3789":{"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)\")"},"3790":{"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)\")"},"3791":{"style":{"__isSmartRef__":true,"id":3792},"chunkOwner":{"__isSmartRef__":true,"id":3780},"_id":"_16122","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3792":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3793":{"morph":{"__isSmartRef__":true,"id":3780},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3794":{"resizeWidth":true},"3795":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3796":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3797},{"__isSmartRef__":true,"id":3798},{"__isSmartRef__":true,"id":3799},{"__isSmartRef__":true,"id":3800},{"__isSmartRef__":true,"id":3801},{"__isSmartRef__":true,"id":3802},{"__isSmartRef__":true,"id":3803},{"__isSmartRef__":true,"id":3804},{"__isSmartRef__":true,"id":3805},{"__isSmartRef__":true,"id":3806},{"__isSmartRef__":true,"id":3807},{"__isSmartRef__":true,"id":3808},{"__isSmartRef__":true,"id":3809},{"__isSmartRef__":true,"id":3810},{"__isSmartRef__":true,"id":3811},{"__isSmartRef__":true,"id":3812},{"__isSmartRef__":true,"id":3813},{"__isSmartRef__":true,"id":3814},{"__isSmartRef__":true,"id":3815}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3797":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3798":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3799":{"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)\")"},"3800":{"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)\")"},"3801":{"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)\")"},"3802":{"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)\")"},"3803":{"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)\")"},"3804":{"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)\")"},"3805":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3806":{"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)\")"},"3807":{"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)\")"},"3808":{"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)\")"},"3809":{"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)\")"},"3810":{"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)\")"},"3811":{"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)\")"},"3812":{"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)\")"},"3813":{"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)\")"},"3814":{"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)\")"},"3815":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3816":{"morph":{"__isSmartRef__":true,"id":3779},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3817":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3818}},"3818":{"test01IsMorph":{"__isSmartRef__":true,"id":3819}},"3819":{"varMapping":{"__isSmartRef__":true,"id":3820},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3820":{"this":{"__isSmartRef__":true,"id":3817}},"3821":{},"3822":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3823},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3824},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3825},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3823":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3824":{"morph":{"__isSmartRef__":true,"id":3822},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3825":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3826}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3826":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3827":{"submorphs":[{"__isSmartRef__":true,"id":3828}],"scripts":[],"id":"A47B0DBE-D2D1-4562-B177-971F76F904B0","shape":{"__isSmartRef__":true,"id":3843},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3844},"eventHandler":{"__isSmartRef__":true,"id":3864},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3865},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3870},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3828},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3587},{"__isSmartRef__":true,"id":3539},{"__isSmartRef__":true,"id":3779},{"__isSmartRef__":true,"id":3875}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4645},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(202.0,52.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(8.0,2.0)"},"3828":{"submorphs":[],"scripts":[],"id":"C172EC14-320E-4B75-828B-26FFDDF2E9B7","shape":{"__isSmartRef__":true,"id":3829},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3830},"textChunks":[{"__isSmartRef__":true,"id":3839}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3841},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3842},"owner":{"__isSmartRef__":true,"id":3827},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3829":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3830":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3831},{"__isSmartRef__":true,"id":3832},{"__isSmartRef__":true,"id":3833},{"__isSmartRef__":true,"id":3834},{"__isSmartRef__":true,"id":3835},{"__isSmartRef__":true,"id":3836},{"__isSmartRef__":true,"id":3837},{"__isSmartRef__":true,"id":3838}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3831":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3832":{"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)\")"},"3833":{"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)\")"},"3834":{"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)\")"},"3835":{"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)\")"},"3836":{"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)\")"},"3837":{"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)\")"},"3838":{"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)\")"},"3839":{"style":{"__isSmartRef__":true,"id":3840},"chunkOwner":{"__isSmartRef__":true,"id":3828},"_id":"_16123","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3840":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3841":{"morph":{"__isSmartRef__":true,"id":3828},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3842":{"resizeWidth":true},"3843":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3844":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3845},{"__isSmartRef__":true,"id":3846},{"__isSmartRef__":true,"id":3847},{"__isSmartRef__":true,"id":3848},{"__isSmartRef__":true,"id":3849},{"__isSmartRef__":true,"id":3850},{"__isSmartRef__":true,"id":3851},{"__isSmartRef__":true,"id":3852},{"__isSmartRef__":true,"id":3853},{"__isSmartRef__":true,"id":3854},{"__isSmartRef__":true,"id":3855},{"__isSmartRef__":true,"id":3856},{"__isSmartRef__":true,"id":3857},{"__isSmartRef__":true,"id":3858},{"__isSmartRef__":true,"id":3859},{"__isSmartRef__":true,"id":3860},{"__isSmartRef__":true,"id":3861},{"__isSmartRef__":true,"id":3862},{"__isSmartRef__":true,"id":3863}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3845":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3846":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3847":{"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)\")"},"3848":{"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)\")"},"3849":{"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)\")"},"3850":{"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)\")"},"3851":{"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)\")"},"3852":{"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)\")"},"3853":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3854":{"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)\")"},"3855":{"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)\")"},"3856":{"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)\")"},"3857":{"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)\")"},"3858":{"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)\")"},"3859":{"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)\")"},"3860":{"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)\")"},"3861":{"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)\")"},"3862":{"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)\")"},"3863":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3864":{"morph":{"__isSmartRef__":true,"id":3827},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3865":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3866}},"3866":{"test01IsMorph":{"__isSmartRef__":true,"id":3867}},"3867":{"varMapping":{"__isSmartRef__":true,"id":3868},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3868":{"this":{"__isSmartRef__":true,"id":3865}},"3869":{},"3870":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3871},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3872},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3873},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3871":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3872":{"morph":{"__isSmartRef__":true,"id":3870},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3873":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3874}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3874":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3875":{"submorphs":[{"__isSmartRef__":true,"id":3876}],"scripts":[],"id":"D60ED849-9B63-41E5-B85E-42A03036BED7","shape":{"__isSmartRef__":true,"id":3891},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3892},"eventHandler":{"__isSmartRef__":true,"id":3912},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3913},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3918},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3876},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3587},{"__isSmartRef__":true,"id":3539},{"__isSmartRef__":true,"id":3491},{"__isSmartRef__":true,"id":3827},{"__isSmartRef__":true,"id":3923}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4583},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(202.0,77.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(8.0,3.0)"},"3876":{"submorphs":[],"scripts":[],"id":"5A14BD08-638F-4C9B-A32F-4D8AC5BDEAA1","shape":{"__isSmartRef__":true,"id":3877},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3878},"textChunks":[{"__isSmartRef__":true,"id":3887}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3889},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3890},"owner":{"__isSmartRef__":true,"id":3875},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3877":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3878":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3879},{"__isSmartRef__":true,"id":3880},{"__isSmartRef__":true,"id":3881},{"__isSmartRef__":true,"id":3882},{"__isSmartRef__":true,"id":3883},{"__isSmartRef__":true,"id":3884},{"__isSmartRef__":true,"id":3885},{"__isSmartRef__":true,"id":3886}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3879":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3880":{"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)\")"},"3881":{"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)\")"},"3882":{"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)\")"},"3883":{"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)\")"},"3884":{"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)\")"},"3885":{"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)\")"},"3886":{"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)\")"},"3887":{"style":{"__isSmartRef__":true,"id":3888},"chunkOwner":{"__isSmartRef__":true,"id":3876},"_id":"_16124","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3888":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3889":{"morph":{"__isSmartRef__":true,"id":3876},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3890":{"resizeWidth":true},"3891":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3892":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3893},{"__isSmartRef__":true,"id":3894},{"__isSmartRef__":true,"id":3895},{"__isSmartRef__":true,"id":3896},{"__isSmartRef__":true,"id":3897},{"__isSmartRef__":true,"id":3898},{"__isSmartRef__":true,"id":3899},{"__isSmartRef__":true,"id":3900},{"__isSmartRef__":true,"id":3901},{"__isSmartRef__":true,"id":3902},{"__isSmartRef__":true,"id":3903},{"__isSmartRef__":true,"id":3904},{"__isSmartRef__":true,"id":3905},{"__isSmartRef__":true,"id":3906},{"__isSmartRef__":true,"id":3907},{"__isSmartRef__":true,"id":3908},{"__isSmartRef__":true,"id":3909},{"__isSmartRef__":true,"id":3910},{"__isSmartRef__":true,"id":3911}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3893":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3894":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3895":{"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)\")"},"3896":{"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)\")"},"3897":{"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)\")"},"3898":{"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)\")"},"3899":{"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)\")"},"3900":{"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)\")"},"3901":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3902":{"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)\")"},"3903":{"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)\")"},"3904":{"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)\")"},"3905":{"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)\")"},"3906":{"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)\")"},"3907":{"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)\")"},"3908":{"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)\")"},"3909":{"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)\")"},"3910":{"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)\")"},"3911":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3912":{"morph":{"__isSmartRef__":true,"id":3875},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3913":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3914}},"3914":{"test01IsMorph":{"__isSmartRef__":true,"id":3915}},"3915":{"varMapping":{"__isSmartRef__":true,"id":3916},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3916":{"this":{"__isSmartRef__":true,"id":3913}},"3917":{},"3918":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3919},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3920},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3921},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3919":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3920":{"morph":{"__isSmartRef__":true,"id":3918},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3921":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3922}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3922":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3923":{"submorphs":[{"__isSmartRef__":true,"id":3924}],"scripts":[],"id":"730FEB19-7069-4A51-8C14-9E1950299D0D","shape":{"__isSmartRef__":true,"id":3939},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3940},"eventHandler":{"__isSmartRef__":true,"id":3960},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":3961},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3966},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3924},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3539},{"__isSmartRef__":true,"id":3491},{"__isSmartRef__":true,"id":3443},{"__isSmartRef__":true,"id":3875},{"__isSmartRef__":true,"id":3971}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4521},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(202.0,102.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(8.0,4.0)"},"3924":{"submorphs":[],"scripts":[],"id":"F58129F0-A36A-44F3-AF96-FDD873460212","shape":{"__isSmartRef__":true,"id":3925},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3926},"textChunks":[{"__isSmartRef__":true,"id":3935}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3937},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3938},"owner":{"__isSmartRef__":true,"id":3923},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3925":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3926":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3927},{"__isSmartRef__":true,"id":3928},{"__isSmartRef__":true,"id":3929},{"__isSmartRef__":true,"id":3930},{"__isSmartRef__":true,"id":3931},{"__isSmartRef__":true,"id":3932},{"__isSmartRef__":true,"id":3933},{"__isSmartRef__":true,"id":3934}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3927":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3928":{"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)\")"},"3929":{"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)\")"},"3930":{"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)\")"},"3931":{"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)\")"},"3932":{"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)\")"},"3933":{"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)\")"},"3934":{"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)\")"},"3935":{"style":{"__isSmartRef__":true,"id":3936},"chunkOwner":{"__isSmartRef__":true,"id":3924},"_id":"_16125","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3936":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3937":{"morph":{"__isSmartRef__":true,"id":3924},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3938":{"resizeWidth":true},"3939":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3940":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3941},{"__isSmartRef__":true,"id":3942},{"__isSmartRef__":true,"id":3943},{"__isSmartRef__":true,"id":3944},{"__isSmartRef__":true,"id":3945},{"__isSmartRef__":true,"id":3946},{"__isSmartRef__":true,"id":3947},{"__isSmartRef__":true,"id":3948},{"__isSmartRef__":true,"id":3949},{"__isSmartRef__":true,"id":3950},{"__isSmartRef__":true,"id":3951},{"__isSmartRef__":true,"id":3952},{"__isSmartRef__":true,"id":3953},{"__isSmartRef__":true,"id":3954},{"__isSmartRef__":true,"id":3955},{"__isSmartRef__":true,"id":3956},{"__isSmartRef__":true,"id":3957},{"__isSmartRef__":true,"id":3958},{"__isSmartRef__":true,"id":3959}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3941":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3942":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3943":{"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)\")"},"3944":{"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)\")"},"3945":{"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)\")"},"3946":{"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)\")"},"3947":{"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)\")"},"3948":{"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)\")"},"3949":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3950":{"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)\")"},"3951":{"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)\")"},"3952":{"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)\")"},"3953":{"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)\")"},"3954":{"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)\")"},"3955":{"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)\")"},"3956":{"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)\")"},"3957":{"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)\")"},"3958":{"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)\")"},"3959":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"3960":{"morph":{"__isSmartRef__":true,"id":3923},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3961":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3962}},"3962":{"test01IsMorph":{"__isSmartRef__":true,"id":3963}},"3963":{"varMapping":{"__isSmartRef__":true,"id":3964},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3964":{"this":{"__isSmartRef__":true,"id":3961}},"3965":{},"3966":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3967},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":3968},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3969},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"3967":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"3968":{"morph":{"__isSmartRef__":true,"id":3966},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3969":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3970}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"3970":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"3971":{"submorphs":[{"__isSmartRef__":true,"id":3972}],"scripts":[],"id":"ADAC0234-92F2-4E31-9537-E3263B9A3449","shape":{"__isSmartRef__":true,"id":3987},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3988},"eventHandler":{"__isSmartRef__":true,"id":4008},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":4009},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":4014},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3972},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3491},{"__isSmartRef__":true,"id":3443},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3923},{"__isSmartRef__":true,"id":4019}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4459},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(202.0,127.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(8.0,5.0)"},"3972":{"submorphs":[],"scripts":[],"id":"ECD7D32F-BB87-4321-A380-38451F1A4FE2","shape":{"__isSmartRef__":true,"id":3973},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":3974},"textChunks":[{"__isSmartRef__":true,"id":3983}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3985},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":3986},"owner":{"__isSmartRef__":true,"id":3971},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"3973":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3974":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3975},{"__isSmartRef__":true,"id":3976},{"__isSmartRef__":true,"id":3977},{"__isSmartRef__":true,"id":3978},{"__isSmartRef__":true,"id":3979},{"__isSmartRef__":true,"id":3980},{"__isSmartRef__":true,"id":3981},{"__isSmartRef__":true,"id":3982}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3975":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"3976":{"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)\")"},"3977":{"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)\")"},"3978":{"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)\")"},"3979":{"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)\")"},"3980":{"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)\")"},"3981":{"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)\")"},"3982":{"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)\")"},"3983":{"style":{"__isSmartRef__":true,"id":3984},"chunkOwner":{"__isSmartRef__":true,"id":3972},"_id":"_16126","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3984":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3985":{"morph":{"__isSmartRef__":true,"id":3972},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3986":{"resizeWidth":true},"3987":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"3988":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3989},{"__isSmartRef__":true,"id":3990},{"__isSmartRef__":true,"id":3991},{"__isSmartRef__":true,"id":3992},{"__isSmartRef__":true,"id":3993},{"__isSmartRef__":true,"id":3994},{"__isSmartRef__":true,"id":3995},{"__isSmartRef__":true,"id":3996},{"__isSmartRef__":true,"id":3997},{"__isSmartRef__":true,"id":3998},{"__isSmartRef__":true,"id":3999},{"__isSmartRef__":true,"id":4000},{"__isSmartRef__":true,"id":4001},{"__isSmartRef__":true,"id":4002},{"__isSmartRef__":true,"id":4003},{"__isSmartRef__":true,"id":4004},{"__isSmartRef__":true,"id":4005},{"__isSmartRef__":true,"id":4006},{"__isSmartRef__":true,"id":4007}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3989":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3990":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"3991":{"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)\")"},"3992":{"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)\")"},"3993":{"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)\")"},"3994":{"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)\")"},"3995":{"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)\")"},"3996":{"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)\")"},"3997":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3998":{"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)\")"},"3999":{"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)\")"},"4000":{"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)\")"},"4001":{"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)\")"},"4002":{"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)\")"},"4003":{"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)\")"},"4004":{"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)\")"},"4005":{"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)\")"},"4006":{"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)\")"},"4007":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"4008":{"morph":{"__isSmartRef__":true,"id":3971},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4009":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4010}},"4010":{"test01IsMorph":{"__isSmartRef__":true,"id":4011}},"4011":{"varMapping":{"__isSmartRef__":true,"id":4012},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4012":{"this":{"__isSmartRef__":true,"id":4009}},"4013":{},"4014":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4015},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":4016},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4017},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"4015":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"4016":{"morph":{"__isSmartRef__":true,"id":4014},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4017":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4018}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"4018":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"4019":{"submorphs":[{"__isSmartRef__":true,"id":4020}],"scripts":[],"id":"B930F1E3-D040-45C3-B8E3-E2D3A612D312","shape":{"__isSmartRef__":true,"id":4035},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4036},"eventHandler":{"__isSmartRef__":true,"id":4056},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":4057},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":4062},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":4020},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3443},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":3971},{"__isSmartRef__":true,"id":4067}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4397},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(202.0,152.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(8.0,6.0)"},"4020":{"submorphs":[],"scripts":[],"id":"9C46AD42-225F-47BD-ABB0-B5AAAE5AA6BB","shape":{"__isSmartRef__":true,"id":4021},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":4022},"textChunks":[{"__isSmartRef__":true,"id":4031}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4033},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":4034},"owner":{"__isSmartRef__":true,"id":4019},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"4021":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4022":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4023},{"__isSmartRef__":true,"id":4024},{"__isSmartRef__":true,"id":4025},{"__isSmartRef__":true,"id":4026},{"__isSmartRef__":true,"id":4027},{"__isSmartRef__":true,"id":4028},{"__isSmartRef__":true,"id":4029},{"__isSmartRef__":true,"id":4030}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"4023":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"4024":{"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)\")"},"4025":{"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)\")"},"4026":{"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)\")"},"4027":{"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)\")"},"4028":{"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)\")"},"4029":{"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)\")"},"4030":{"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)\")"},"4031":{"style":{"__isSmartRef__":true,"id":4032},"chunkOwner":{"__isSmartRef__":true,"id":4020},"_id":"_16127","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4032":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4033":{"morph":{"__isSmartRef__":true,"id":4020},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4034":{"resizeWidth":true},"4035":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"4036":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4037},{"__isSmartRef__":true,"id":4038},{"__isSmartRef__":true,"id":4039},{"__isSmartRef__":true,"id":4040},{"__isSmartRef__":true,"id":4041},{"__isSmartRef__":true,"id":4042},{"__isSmartRef__":true,"id":4043},{"__isSmartRef__":true,"id":4044},{"__isSmartRef__":true,"id":4045},{"__isSmartRef__":true,"id":4046},{"__isSmartRef__":true,"id":4047},{"__isSmartRef__":true,"id":4048},{"__isSmartRef__":true,"id":4049},{"__isSmartRef__":true,"id":4050},{"__isSmartRef__":true,"id":4051},{"__isSmartRef__":true,"id":4052},{"__isSmartRef__":true,"id":4053},{"__isSmartRef__":true,"id":4054},{"__isSmartRef__":true,"id":4055}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4037":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4038":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"4039":{"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)\")"},"4040":{"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)\")"},"4041":{"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)\")"},"4042":{"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)\")"},"4043":{"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)\")"},"4044":{"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)\")"},"4045":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"4046":{"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)\")"},"4047":{"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)\")"},"4048":{"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)\")"},"4049":{"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)\")"},"4050":{"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)\")"},"4051":{"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)\")"},"4052":{"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)\")"},"4053":{"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)\")"},"4054":{"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)\")"},"4055":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"4056":{"morph":{"__isSmartRef__":true,"id":4019},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4057":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4058}},"4058":{"test01IsMorph":{"__isSmartRef__":true,"id":4059}},"4059":{"varMapping":{"__isSmartRef__":true,"id":4060},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4060":{"this":{"__isSmartRef__":true,"id":4057}},"4061":{},"4062":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4063},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":4064},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4065},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"4063":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"4064":{"morph":{"__isSmartRef__":true,"id":4062},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4065":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4066}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"4066":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"4067":{"submorphs":[{"__isSmartRef__":true,"id":4068}],"scripts":[],"id":"90E843A3-F98E-437C-9604-7BF078AF77C7","shape":{"__isSmartRef__":true,"id":4083},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4084},"eventHandler":{"__isSmartRef__":true,"id":4104},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":4105},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":4110},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":4068},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":4115},{"__isSmartRef__":true,"id":4019},{"__isSmartRef__":true,"id":4163}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4335},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(202.0,177.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(8.0,7.0)"},"4068":{"submorphs":[],"scripts":[],"id":"14DEA65D-3BBE-4B21-B606-878652B14277","shape":{"__isSmartRef__":true,"id":4069},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":4070},"textChunks":[{"__isSmartRef__":true,"id":4079}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4081},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":4082},"owner":{"__isSmartRef__":true,"id":4067},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"4069":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4070":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4071},{"__isSmartRef__":true,"id":4072},{"__isSmartRef__":true,"id":4073},{"__isSmartRef__":true,"id":4074},{"__isSmartRef__":true,"id":4075},{"__isSmartRef__":true,"id":4076},{"__isSmartRef__":true,"id":4077},{"__isSmartRef__":true,"id":4078}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"4071":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"4072":{"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)\")"},"4073":{"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)\")"},"4074":{"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)\")"},"4075":{"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)\")"},"4076":{"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)\")"},"4077":{"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)\")"},"4078":{"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)\")"},"4079":{"style":{"__isSmartRef__":true,"id":4080},"chunkOwner":{"__isSmartRef__":true,"id":4068},"_id":"_16128","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4080":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4081":{"morph":{"__isSmartRef__":true,"id":4068},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4082":{"resizeWidth":true},"4083":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"4084":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4085},{"__isSmartRef__":true,"id":4086},{"__isSmartRef__":true,"id":4087},{"__isSmartRef__":true,"id":4088},{"__isSmartRef__":true,"id":4089},{"__isSmartRef__":true,"id":4090},{"__isSmartRef__":true,"id":4091},{"__isSmartRef__":true,"id":4092},{"__isSmartRef__":true,"id":4093},{"__isSmartRef__":true,"id":4094},{"__isSmartRef__":true,"id":4095},{"__isSmartRef__":true,"id":4096},{"__isSmartRef__":true,"id":4097},{"__isSmartRef__":true,"id":4098},{"__isSmartRef__":true,"id":4099},{"__isSmartRef__":true,"id":4100},{"__isSmartRef__":true,"id":4101},{"__isSmartRef__":true,"id":4102},{"__isSmartRef__":true,"id":4103}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4085":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4086":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"4087":{"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)\")"},"4088":{"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)\")"},"4089":{"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)\")"},"4090":{"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)\")"},"4091":{"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)\")"},"4092":{"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)\")"},"4093":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"4094":{"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)\")"},"4095":{"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)\")"},"4096":{"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)\")"},"4097":{"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)\")"},"4098":{"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)\")"},"4099":{"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)\")"},"4100":{"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)\")"},"4101":{"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)\")"},"4102":{"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)\")"},"4103":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"4104":{"morph":{"__isSmartRef__":true,"id":4067},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4105":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4106}},"4106":{"test01IsMorph":{"__isSmartRef__":true,"id":4107}},"4107":{"varMapping":{"__isSmartRef__":true,"id":4108},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4108":{"this":{"__isSmartRef__":true,"id":4105}},"4109":{},"4110":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4111},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":4112},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4113},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"4111":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"4112":{"morph":{"__isSmartRef__":true,"id":4110},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4113":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4114}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"4114":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"4115":{"submorphs":[{"__isSmartRef__":true,"id":4116}],"scripts":[],"id":"99D50B87-E544-4E42-8E97-601EE45076B2","shape":{"__isSmartRef__":true,"id":4131},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4132},"eventHandler":{"__isSmartRef__":true,"id":4152},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":4153},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":4158},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":4116},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3203},{"__isSmartRef__":true,"id":3299},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":4067},{"__isSmartRef__":true,"id":4163}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4273},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(177.0,202.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(7.0,8.0)"},"4116":{"submorphs":[],"scripts":[],"id":"9CA533A4-DB44-4143-AB77-25C1B85B7B23","shape":{"__isSmartRef__":true,"id":4117},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":4118},"textChunks":[{"__isSmartRef__":true,"id":4127}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4129},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":4130},"owner":{"__isSmartRef__":true,"id":4115},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"4117":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4118":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4119},{"__isSmartRef__":true,"id":4120},{"__isSmartRef__":true,"id":4121},{"__isSmartRef__":true,"id":4122},{"__isSmartRef__":true,"id":4123},{"__isSmartRef__":true,"id":4124},{"__isSmartRef__":true,"id":4125},{"__isSmartRef__":true,"id":4126}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"4119":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"4120":{"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)\")"},"4121":{"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)\")"},"4122":{"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)\")"},"4123":{"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)\")"},"4124":{"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)\")"},"4125":{"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)\")"},"4126":{"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)\")"},"4127":{"style":{"__isSmartRef__":true,"id":4128},"chunkOwner":{"__isSmartRef__":true,"id":4116},"_id":"_16120","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4128":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4129":{"morph":{"__isSmartRef__":true,"id":4116},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4130":{"resizeWidth":true},"4131":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"4132":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4133},{"__isSmartRef__":true,"id":4134},{"__isSmartRef__":true,"id":4135},{"__isSmartRef__":true,"id":4136},{"__isSmartRef__":true,"id":4137},{"__isSmartRef__":true,"id":4138},{"__isSmartRef__":true,"id":4139},{"__isSmartRef__":true,"id":4140},{"__isSmartRef__":true,"id":4141},{"__isSmartRef__":true,"id":4142},{"__isSmartRef__":true,"id":4143},{"__isSmartRef__":true,"id":4144},{"__isSmartRef__":true,"id":4145},{"__isSmartRef__":true,"id":4146},{"__isSmartRef__":true,"id":4147},{"__isSmartRef__":true,"id":4148},{"__isSmartRef__":true,"id":4149},{"__isSmartRef__":true,"id":4150},{"__isSmartRef__":true,"id":4151}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4133":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4134":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"4135":{"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)\")"},"4136":{"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)\")"},"4137":{"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)\")"},"4138":{"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)\")"},"4139":{"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)\")"},"4140":{"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)\")"},"4141":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"4142":{"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)\")"},"4143":{"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)\")"},"4144":{"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)\")"},"4145":{"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)\")"},"4146":{"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)\")"},"4147":{"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)\")"},"4148":{"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)\")"},"4149":{"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)\")"},"4150":{"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)\")"},"4151":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"4152":{"morph":{"__isSmartRef__":true,"id":4115},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4153":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4154}},"4154":{"test01IsMorph":{"__isSmartRef__":true,"id":4155}},"4155":{"varMapping":{"__isSmartRef__":true,"id":4156},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4156":{"this":{"__isSmartRef__":true,"id":4153}},"4157":{},"4158":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4159},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":4160},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4161},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"4159":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"4160":{"morph":{"__isSmartRef__":true,"id":4158},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4161":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4162}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"4162":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"4163":{"submorphs":[{"__isSmartRef__":true,"id":4164}],"scripts":[],"id":"E8894348-E587-4EEA-8012-3898EABE07A5","shape":{"__isSmartRef__":true,"id":4179},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4180},"eventHandler":{"__isSmartRef__":true,"id":4200},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D","ECD1BDB7-B392-48C8-8AE0-8239540C4665"],"partTests":{"__isSmartRef__":true,"id":4201},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":4206},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":4164},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":322},"neighbors":[{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":4115},{"__isSmartRef__":true,"id":4067}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4211},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(202.0,202.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)","coordinates":"lively.pt(8.0,8.0)"},"4164":{"submorphs":[],"scripts":[],"id":"D33FCACE-D934-48BE-A98A-D47AC0B6CEB2","shape":{"__isSmartRef__":true,"id":4165},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":4166},"textChunks":[{"__isSmartRef__":true,"id":4175}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4177},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D","B6D05680-8C11-491F-A71C-0F0593F50D35"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":4178},"owner":{"__isSmartRef__":true,"id":4163},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","draggingEnabled":false,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"4165":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"4166":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4167},{"__isSmartRef__":true,"id":4168},{"__isSmartRef__":true,"id":4169},{"__isSmartRef__":true,"id":4170},{"__isSmartRef__":true,"id":4171},{"__isSmartRef__":true,"id":4172},{"__isSmartRef__":true,"id":4173},{"__isSmartRef__":true,"id":4174}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"4167":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"4168":{"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)\")"},"4169":{"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)\")"},"4170":{"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)\")"},"4171":{"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)\")"},"4172":{"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)\")"},"4173":{"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)\")"},"4174":{"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)\")"},"4175":{"style":{"__isSmartRef__":true,"id":4176},"chunkOwner":{"__isSmartRef__":true,"id":4164},"_id":"_16129","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4176":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4177":{"morph":{"__isSmartRef__":true,"id":4164},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4178":{"resizeWidth":true},"4179":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"4180":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4181},{"__isSmartRef__":true,"id":4182},{"__isSmartRef__":true,"id":4183},{"__isSmartRef__":true,"id":4184},{"__isSmartRef__":true,"id":4185},{"__isSmartRef__":true,"id":4186},{"__isSmartRef__":true,"id":4187},{"__isSmartRef__":true,"id":4188},{"__isSmartRef__":true,"id":4189},{"__isSmartRef__":true,"id":4190},{"__isSmartRef__":true,"id":4191},{"__isSmartRef__":true,"id":4192},{"__isSmartRef__":true,"id":4193},{"__isSmartRef__":true,"id":4194},{"__isSmartRef__":true,"id":4195},{"__isSmartRef__":true,"id":4196},{"__isSmartRef__":true,"id":4197},{"__isSmartRef__":true,"id":4198},{"__isSmartRef__":true,"id":4199}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4181":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4182":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"4183":{"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)\")"},"4184":{"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)\")"},"4185":{"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)\")"},"4186":{"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)\")"},"4187":{"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)\")"},"4188":{"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)\")"},"4189":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"4190":{"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)\")"},"4191":{"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)\")"},"4192":{"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)\")"},"4193":{"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)\")"},"4194":{"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)\")"},"4195":{"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)\")"},"4196":{"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)\")"},"4197":{"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)\")"},"4198":{"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)\")"},"4199":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"4200":{"morph":{"__isSmartRef__":true,"id":4163},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4201":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4202}},"4202":{"test01IsMorph":{"__isSmartRef__":true,"id":4203}},"4203":{"varMapping":{"__isSmartRef__":true,"id":4204},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4204":{"this":{"__isSmartRef__":true,"id":4201}},"4205":{},"4206":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4207},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":4208},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4209},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"4207":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"4208":{"morph":{"__isSmartRef__":true,"id":4206},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4209":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4210}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"4210":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"4211":{"addBomb":{"__isSmartRef__":true,"id":4212},"clearFlag":{"__isSmartRef__":true,"id":4215},"countNeighborBombs":{"__isSmartRef__":true,"id":4218},"fixSubmorph":{"__isSmartRef__":true,"id":4221},"initAppearance":{"__isSmartRef__":true,"id":4224},"initMorphs":{"__isSmartRef__":true,"id":4227},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4230},"isClosed":{"__isSmartRef__":true,"id":4233},"neighborPoints":{"__isSmartRef__":true,"id":4236},"onMouseDown":{"__isSmartRef__":true,"id":4239},"restoreGameAppearance":{"__isSmartRef__":true,"id":4246},"reveal":{"__isSmartRef__":true,"id":4249},"setCoordinates":{"__isSmartRef__":true,"id":4252},"showBomb":{"__isSmartRef__":true,"id":4255},"showDebugState":{"__isSmartRef__":true,"id":4258},"showFlag":{"__isSmartRef__":true,"id":4261},"showState":{"__isSmartRef__":true,"id":4264},"copyImageMorph":{"__isSmartRef__":true,"id":4267},"prepareToPublish":{"__isSmartRef__":true,"id":4270}},"4212":{"varMapping":{"__isSmartRef__":true,"id":4213},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4213":{"this":{"__isSmartRef__":true,"id":4163}},"4214":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4215":{"varMapping":{"__isSmartRef__":true,"id":4216},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4216":{"this":{"__isSmartRef__":true,"id":4163}},"4217":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4218":{"varMapping":{"__isSmartRef__":true,"id":4219},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4219":{"this":{"__isSmartRef__":true,"id":4163}},"4220":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4221":{"varMapping":{"__isSmartRef__":true,"id":4222},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4222":{"this":{"__isSmartRef__":true,"id":4163}},"4223":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4224":{"varMapping":{"__isSmartRef__":true,"id":4225},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4225":{"this":{"__isSmartRef__":true,"id":4163}},"4226":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4227":{"varMapping":{"__isSmartRef__":true,"id":4228},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4228":{"this":{"__isSmartRef__":true,"id":4163}},"4229":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4230":{"varMapping":{"__isSmartRef__":true,"id":4231},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4231":{"this":{"__isSmartRef__":true,"id":4163}},"4232":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4233":{"varMapping":{"__isSmartRef__":true,"id":4234},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4234":{"this":{"__isSmartRef__":true,"id":4163}},"4235":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4236":{"varMapping":{"__isSmartRef__":true,"id":4237},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4237":{"this":{"__isSmartRef__":true,"id":4163}},"4238":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4239":{"varMapping":{"__isSmartRef__":true,"id":4240},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4240":{"this":{"__isSmartRef__":true,"id":4163},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4241}},"4241":{"$super":{"__isSmartRef__":true,"id":4242}},"4242":{"varMapping":{"__isSmartRef__":true,"id":4243},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4243":{"obj":{"__isSmartRef__":true,"id":4163},"name":"onMouseDown"},"4244":{},"4245":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4246":{"varMapping":{"__isSmartRef__":true,"id":4247},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4247":{"this":{"__isSmartRef__":true,"id":4163}},"4248":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4249":{"varMapping":{"__isSmartRef__":true,"id":4250},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4250":{"this":{"__isSmartRef__":true,"id":4163}},"4251":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4252":{"varMapping":{"__isSmartRef__":true,"id":4253},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4253":{"this":{"__isSmartRef__":true,"id":4163}},"4254":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4255":{"varMapping":{"__isSmartRef__":true,"id":4256},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4256":{"this":{"__isSmartRef__":true,"id":4163}},"4257":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4258":{"varMapping":{"__isSmartRef__":true,"id":4259},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4259":{"this":{"__isSmartRef__":true,"id":4163}},"4260":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4261":{"varMapping":{"__isSmartRef__":true,"id":4262},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4262":{"this":{"__isSmartRef__":true,"id":4163}},"4263":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4264":{"varMapping":{"__isSmartRef__":true,"id":4265},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4265":{"this":{"__isSmartRef__":true,"id":4163}},"4266":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4267":{"varMapping":{"__isSmartRef__":true,"id":4268},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4268":{"this":{"__isSmartRef__":true,"id":4163}},"4269":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4270":{"varMapping":{"__isSmartRef__":true,"id":4271},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4271":{"this":{"__isSmartRef__":true,"id":4163}},"4272":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4273":{"addBomb":{"__isSmartRef__":true,"id":4274},"clearFlag":{"__isSmartRef__":true,"id":4277},"countNeighborBombs":{"__isSmartRef__":true,"id":4280},"fixSubmorph":{"__isSmartRef__":true,"id":4283},"initAppearance":{"__isSmartRef__":true,"id":4286},"initMorphs":{"__isSmartRef__":true,"id":4289},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4292},"isClosed":{"__isSmartRef__":true,"id":4295},"neighborPoints":{"__isSmartRef__":true,"id":4298},"onMouseDown":{"__isSmartRef__":true,"id":4301},"restoreGameAppearance":{"__isSmartRef__":true,"id":4308},"reveal":{"__isSmartRef__":true,"id":4311},"setCoordinates":{"__isSmartRef__":true,"id":4314},"showBomb":{"__isSmartRef__":true,"id":4317},"showDebugState":{"__isSmartRef__":true,"id":4320},"showFlag":{"__isSmartRef__":true,"id":4323},"showState":{"__isSmartRef__":true,"id":4326},"copyImageMorph":{"__isSmartRef__":true,"id":4329},"prepareToPublish":{"__isSmartRef__":true,"id":4332}},"4274":{"varMapping":{"__isSmartRef__":true,"id":4275},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4275":{"this":{"__isSmartRef__":true,"id":4115}},"4276":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4277":{"varMapping":{"__isSmartRef__":true,"id":4278},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4278":{"this":{"__isSmartRef__":true,"id":4115}},"4279":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4280":{"varMapping":{"__isSmartRef__":true,"id":4281},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4281":{"this":{"__isSmartRef__":true,"id":4115}},"4282":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4283":{"varMapping":{"__isSmartRef__":true,"id":4284},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4284":{"this":{"__isSmartRef__":true,"id":4115}},"4285":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4286":{"varMapping":{"__isSmartRef__":true,"id":4287},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4287":{"this":{"__isSmartRef__":true,"id":4115}},"4288":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4289":{"varMapping":{"__isSmartRef__":true,"id":4290},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4290":{"this":{"__isSmartRef__":true,"id":4115}},"4291":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4292":{"varMapping":{"__isSmartRef__":true,"id":4293},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4293":{"this":{"__isSmartRef__":true,"id":4115}},"4294":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4295":{"varMapping":{"__isSmartRef__":true,"id":4296},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4296":{"this":{"__isSmartRef__":true,"id":4115}},"4297":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4298":{"varMapping":{"__isSmartRef__":true,"id":4299},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4299":{"this":{"__isSmartRef__":true,"id":4115}},"4300":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4301":{"varMapping":{"__isSmartRef__":true,"id":4302},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4302":{"this":{"__isSmartRef__":true,"id":4115},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4303}},"4303":{"$super":{"__isSmartRef__":true,"id":4304}},"4304":{"varMapping":{"__isSmartRef__":true,"id":4305},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4305":{"obj":{"__isSmartRef__":true,"id":4115},"name":"onMouseDown"},"4306":{},"4307":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4308":{"varMapping":{"__isSmartRef__":true,"id":4309},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4309":{"this":{"__isSmartRef__":true,"id":4115}},"4310":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4311":{"varMapping":{"__isSmartRef__":true,"id":4312},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4312":{"this":{"__isSmartRef__":true,"id":4115}},"4313":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4314":{"varMapping":{"__isSmartRef__":true,"id":4315},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4315":{"this":{"__isSmartRef__":true,"id":4115}},"4316":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4317":{"varMapping":{"__isSmartRef__":true,"id":4318},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4318":{"this":{"__isSmartRef__":true,"id":4115}},"4319":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4320":{"varMapping":{"__isSmartRef__":true,"id":4321},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4321":{"this":{"__isSmartRef__":true,"id":4115}},"4322":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4323":{"varMapping":{"__isSmartRef__":true,"id":4324},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4324":{"this":{"__isSmartRef__":true,"id":4115}},"4325":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4326":{"varMapping":{"__isSmartRef__":true,"id":4327},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4327":{"this":{"__isSmartRef__":true,"id":4115}},"4328":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4329":{"varMapping":{"__isSmartRef__":true,"id":4330},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4330":{"this":{"__isSmartRef__":true,"id":4115}},"4331":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4332":{"varMapping":{"__isSmartRef__":true,"id":4333},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4333":{"this":{"__isSmartRef__":true,"id":4115}},"4334":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4335":{"addBomb":{"__isSmartRef__":true,"id":4336},"clearFlag":{"__isSmartRef__":true,"id":4339},"countNeighborBombs":{"__isSmartRef__":true,"id":4342},"fixSubmorph":{"__isSmartRef__":true,"id":4345},"initAppearance":{"__isSmartRef__":true,"id":4348},"initMorphs":{"__isSmartRef__":true,"id":4351},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4354},"isClosed":{"__isSmartRef__":true,"id":4357},"neighborPoints":{"__isSmartRef__":true,"id":4360},"onMouseDown":{"__isSmartRef__":true,"id":4363},"restoreGameAppearance":{"__isSmartRef__":true,"id":4370},"reveal":{"__isSmartRef__":true,"id":4373},"setCoordinates":{"__isSmartRef__":true,"id":4376},"showBomb":{"__isSmartRef__":true,"id":4379},"showDebugState":{"__isSmartRef__":true,"id":4382},"showFlag":{"__isSmartRef__":true,"id":4385},"showState":{"__isSmartRef__":true,"id":4388},"copyImageMorph":{"__isSmartRef__":true,"id":4391},"prepareToPublish":{"__isSmartRef__":true,"id":4394}},"4336":{"varMapping":{"__isSmartRef__":true,"id":4337},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4337":{"this":{"__isSmartRef__":true,"id":4067}},"4338":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4339":{"varMapping":{"__isSmartRef__":true,"id":4340},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4340":{"this":{"__isSmartRef__":true,"id":4067}},"4341":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4342":{"varMapping":{"__isSmartRef__":true,"id":4343},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4343":{"this":{"__isSmartRef__":true,"id":4067}},"4344":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4345":{"varMapping":{"__isSmartRef__":true,"id":4346},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4346":{"this":{"__isSmartRef__":true,"id":4067}},"4347":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4348":{"varMapping":{"__isSmartRef__":true,"id":4349},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4349":{"this":{"__isSmartRef__":true,"id":4067}},"4350":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4351":{"varMapping":{"__isSmartRef__":true,"id":4352},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4352":{"this":{"__isSmartRef__":true,"id":4067}},"4353":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4354":{"varMapping":{"__isSmartRef__":true,"id":4355},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4355":{"this":{"__isSmartRef__":true,"id":4067}},"4356":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4357":{"varMapping":{"__isSmartRef__":true,"id":4358},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4358":{"this":{"__isSmartRef__":true,"id":4067}},"4359":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4360":{"varMapping":{"__isSmartRef__":true,"id":4361},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4361":{"this":{"__isSmartRef__":true,"id":4067}},"4362":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4363":{"varMapping":{"__isSmartRef__":true,"id":4364},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4364":{"this":{"__isSmartRef__":true,"id":4067},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4365}},"4365":{"$super":{"__isSmartRef__":true,"id":4366}},"4366":{"varMapping":{"__isSmartRef__":true,"id":4367},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4367":{"obj":{"__isSmartRef__":true,"id":4067},"name":"onMouseDown"},"4368":{},"4369":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4370":{"varMapping":{"__isSmartRef__":true,"id":4371},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4371":{"this":{"__isSmartRef__":true,"id":4067}},"4372":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4373":{"varMapping":{"__isSmartRef__":true,"id":4374},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4374":{"this":{"__isSmartRef__":true,"id":4067}},"4375":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4376":{"varMapping":{"__isSmartRef__":true,"id":4377},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4377":{"this":{"__isSmartRef__":true,"id":4067}},"4378":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4379":{"varMapping":{"__isSmartRef__":true,"id":4380},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4380":{"this":{"__isSmartRef__":true,"id":4067}},"4381":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4382":{"varMapping":{"__isSmartRef__":true,"id":4383},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4383":{"this":{"__isSmartRef__":true,"id":4067}},"4384":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4385":{"varMapping":{"__isSmartRef__":true,"id":4386},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4386":{"this":{"__isSmartRef__":true,"id":4067}},"4387":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4388":{"varMapping":{"__isSmartRef__":true,"id":4389},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4389":{"this":{"__isSmartRef__":true,"id":4067}},"4390":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4391":{"varMapping":{"__isSmartRef__":true,"id":4392},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4392":{"this":{"__isSmartRef__":true,"id":4067}},"4393":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4394":{"varMapping":{"__isSmartRef__":true,"id":4395},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4395":{"this":{"__isSmartRef__":true,"id":4067}},"4396":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4397":{"addBomb":{"__isSmartRef__":true,"id":4398},"clearFlag":{"__isSmartRef__":true,"id":4401},"countNeighborBombs":{"__isSmartRef__":true,"id":4404},"fixSubmorph":{"__isSmartRef__":true,"id":4407},"initAppearance":{"__isSmartRef__":true,"id":4410},"initMorphs":{"__isSmartRef__":true,"id":4413},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4416},"isClosed":{"__isSmartRef__":true,"id":4419},"neighborPoints":{"__isSmartRef__":true,"id":4422},"onMouseDown":{"__isSmartRef__":true,"id":4425},"restoreGameAppearance":{"__isSmartRef__":true,"id":4432},"reveal":{"__isSmartRef__":true,"id":4435},"setCoordinates":{"__isSmartRef__":true,"id":4438},"showBomb":{"__isSmartRef__":true,"id":4441},"showDebugState":{"__isSmartRef__":true,"id":4444},"showFlag":{"__isSmartRef__":true,"id":4447},"showState":{"__isSmartRef__":true,"id":4450},"copyImageMorph":{"__isSmartRef__":true,"id":4453},"prepareToPublish":{"__isSmartRef__":true,"id":4456}},"4398":{"varMapping":{"__isSmartRef__":true,"id":4399},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4399":{"this":{"__isSmartRef__":true,"id":4019}},"4400":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4401":{"varMapping":{"__isSmartRef__":true,"id":4402},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4402":{"this":{"__isSmartRef__":true,"id":4019}},"4403":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4404":{"varMapping":{"__isSmartRef__":true,"id":4405},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4405":{"this":{"__isSmartRef__":true,"id":4019}},"4406":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4407":{"varMapping":{"__isSmartRef__":true,"id":4408},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4408":{"this":{"__isSmartRef__":true,"id":4019}},"4409":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4410":{"varMapping":{"__isSmartRef__":true,"id":4411},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4411":{"this":{"__isSmartRef__":true,"id":4019}},"4412":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4413":{"varMapping":{"__isSmartRef__":true,"id":4414},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4414":{"this":{"__isSmartRef__":true,"id":4019}},"4415":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4416":{"varMapping":{"__isSmartRef__":true,"id":4417},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4417":{"this":{"__isSmartRef__":true,"id":4019}},"4418":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4419":{"varMapping":{"__isSmartRef__":true,"id":4420},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4420":{"this":{"__isSmartRef__":true,"id":4019}},"4421":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4422":{"varMapping":{"__isSmartRef__":true,"id":4423},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4423":{"this":{"__isSmartRef__":true,"id":4019}},"4424":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4425":{"varMapping":{"__isSmartRef__":true,"id":4426},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4426":{"this":{"__isSmartRef__":true,"id":4019},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4427}},"4427":{"$super":{"__isSmartRef__":true,"id":4428}},"4428":{"varMapping":{"__isSmartRef__":true,"id":4429},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4429":{"obj":{"__isSmartRef__":true,"id":4019},"name":"onMouseDown"},"4430":{},"4431":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4432":{"varMapping":{"__isSmartRef__":true,"id":4433},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4433":{"this":{"__isSmartRef__":true,"id":4019}},"4434":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4435":{"varMapping":{"__isSmartRef__":true,"id":4436},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4436":{"this":{"__isSmartRef__":true,"id":4019}},"4437":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4438":{"varMapping":{"__isSmartRef__":true,"id":4439},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4439":{"this":{"__isSmartRef__":true,"id":4019}},"4440":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4441":{"varMapping":{"__isSmartRef__":true,"id":4442},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4442":{"this":{"__isSmartRef__":true,"id":4019}},"4443":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4444":{"varMapping":{"__isSmartRef__":true,"id":4445},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4445":{"this":{"__isSmartRef__":true,"id":4019}},"4446":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4447":{"varMapping":{"__isSmartRef__":true,"id":4448},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4448":{"this":{"__isSmartRef__":true,"id":4019}},"4449":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4450":{"varMapping":{"__isSmartRef__":true,"id":4451},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4451":{"this":{"__isSmartRef__":true,"id":4019}},"4452":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4453":{"varMapping":{"__isSmartRef__":true,"id":4454},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4454":{"this":{"__isSmartRef__":true,"id":4019}},"4455":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4456":{"varMapping":{"__isSmartRef__":true,"id":4457},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4457":{"this":{"__isSmartRef__":true,"id":4019}},"4458":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4459":{"addBomb":{"__isSmartRef__":true,"id":4460},"clearFlag":{"__isSmartRef__":true,"id":4463},"countNeighborBombs":{"__isSmartRef__":true,"id":4466},"fixSubmorph":{"__isSmartRef__":true,"id":4469},"initAppearance":{"__isSmartRef__":true,"id":4472},"initMorphs":{"__isSmartRef__":true,"id":4475},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4478},"isClosed":{"__isSmartRef__":true,"id":4481},"neighborPoints":{"__isSmartRef__":true,"id":4484},"onMouseDown":{"__isSmartRef__":true,"id":4487},"restoreGameAppearance":{"__isSmartRef__":true,"id":4494},"reveal":{"__isSmartRef__":true,"id":4497},"setCoordinates":{"__isSmartRef__":true,"id":4500},"showBomb":{"__isSmartRef__":true,"id":4503},"showDebugState":{"__isSmartRef__":true,"id":4506},"showFlag":{"__isSmartRef__":true,"id":4509},"showState":{"__isSmartRef__":true,"id":4512},"copyImageMorph":{"__isSmartRef__":true,"id":4515},"prepareToPublish":{"__isSmartRef__":true,"id":4518}},"4460":{"varMapping":{"__isSmartRef__":true,"id":4461},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4461":{"this":{"__isSmartRef__":true,"id":3971}},"4462":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4463":{"varMapping":{"__isSmartRef__":true,"id":4464},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4464":{"this":{"__isSmartRef__":true,"id":3971}},"4465":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4466":{"varMapping":{"__isSmartRef__":true,"id":4467},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4467":{"this":{"__isSmartRef__":true,"id":3971}},"4468":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4469":{"varMapping":{"__isSmartRef__":true,"id":4470},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4470":{"this":{"__isSmartRef__":true,"id":3971}},"4471":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4472":{"varMapping":{"__isSmartRef__":true,"id":4473},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4473":{"this":{"__isSmartRef__":true,"id":3971}},"4474":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4475":{"varMapping":{"__isSmartRef__":true,"id":4476},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4476":{"this":{"__isSmartRef__":true,"id":3971}},"4477":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4478":{"varMapping":{"__isSmartRef__":true,"id":4479},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4479":{"this":{"__isSmartRef__":true,"id":3971}},"4480":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4481":{"varMapping":{"__isSmartRef__":true,"id":4482},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4482":{"this":{"__isSmartRef__":true,"id":3971}},"4483":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4484":{"varMapping":{"__isSmartRef__":true,"id":4485},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4485":{"this":{"__isSmartRef__":true,"id":3971}},"4486":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4487":{"varMapping":{"__isSmartRef__":true,"id":4488},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4488":{"this":{"__isSmartRef__":true,"id":3971},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4489}},"4489":{"$super":{"__isSmartRef__":true,"id":4490}},"4490":{"varMapping":{"__isSmartRef__":true,"id":4491},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4491":{"obj":{"__isSmartRef__":true,"id":3971},"name":"onMouseDown"},"4492":{},"4493":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4494":{"varMapping":{"__isSmartRef__":true,"id":4495},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4495":{"this":{"__isSmartRef__":true,"id":3971}},"4496":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4497":{"varMapping":{"__isSmartRef__":true,"id":4498},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4498":{"this":{"__isSmartRef__":true,"id":3971}},"4499":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4500":{"varMapping":{"__isSmartRef__":true,"id":4501},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4501":{"this":{"__isSmartRef__":true,"id":3971}},"4502":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4503":{"varMapping":{"__isSmartRef__":true,"id":4504},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4504":{"this":{"__isSmartRef__":true,"id":3971}},"4505":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4506":{"varMapping":{"__isSmartRef__":true,"id":4507},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4507":{"this":{"__isSmartRef__":true,"id":3971}},"4508":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4509":{"varMapping":{"__isSmartRef__":true,"id":4510},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4510":{"this":{"__isSmartRef__":true,"id":3971}},"4511":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4512":{"varMapping":{"__isSmartRef__":true,"id":4513},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4513":{"this":{"__isSmartRef__":true,"id":3971}},"4514":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4515":{"varMapping":{"__isSmartRef__":true,"id":4516},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4516":{"this":{"__isSmartRef__":true,"id":3971}},"4517":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4518":{"varMapping":{"__isSmartRef__":true,"id":4519},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4519":{"this":{"__isSmartRef__":true,"id":3971}},"4520":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4521":{"addBomb":{"__isSmartRef__":true,"id":4522},"clearFlag":{"__isSmartRef__":true,"id":4525},"countNeighborBombs":{"__isSmartRef__":true,"id":4528},"fixSubmorph":{"__isSmartRef__":true,"id":4531},"initAppearance":{"__isSmartRef__":true,"id":4534},"initMorphs":{"__isSmartRef__":true,"id":4537},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4540},"isClosed":{"__isSmartRef__":true,"id":4543},"neighborPoints":{"__isSmartRef__":true,"id":4546},"onMouseDown":{"__isSmartRef__":true,"id":4549},"restoreGameAppearance":{"__isSmartRef__":true,"id":4556},"reveal":{"__isSmartRef__":true,"id":4559},"setCoordinates":{"__isSmartRef__":true,"id":4562},"showBomb":{"__isSmartRef__":true,"id":4565},"showDebugState":{"__isSmartRef__":true,"id":4568},"showFlag":{"__isSmartRef__":true,"id":4571},"showState":{"__isSmartRef__":true,"id":4574},"copyImageMorph":{"__isSmartRef__":true,"id":4577},"prepareToPublish":{"__isSmartRef__":true,"id":4580}},"4522":{"varMapping":{"__isSmartRef__":true,"id":4523},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4523":{"this":{"__isSmartRef__":true,"id":3923}},"4524":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4525":{"varMapping":{"__isSmartRef__":true,"id":4526},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4526":{"this":{"__isSmartRef__":true,"id":3923}},"4527":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4528":{"varMapping":{"__isSmartRef__":true,"id":4529},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4529":{"this":{"__isSmartRef__":true,"id":3923}},"4530":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4531":{"varMapping":{"__isSmartRef__":true,"id":4532},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4532":{"this":{"__isSmartRef__":true,"id":3923}},"4533":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4534":{"varMapping":{"__isSmartRef__":true,"id":4535},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4535":{"this":{"__isSmartRef__":true,"id":3923}},"4536":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4537":{"varMapping":{"__isSmartRef__":true,"id":4538},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4538":{"this":{"__isSmartRef__":true,"id":3923}},"4539":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4540":{"varMapping":{"__isSmartRef__":true,"id":4541},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4541":{"this":{"__isSmartRef__":true,"id":3923}},"4542":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4543":{"varMapping":{"__isSmartRef__":true,"id":4544},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4544":{"this":{"__isSmartRef__":true,"id":3923}},"4545":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4546":{"varMapping":{"__isSmartRef__":true,"id":4547},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4547":{"this":{"__isSmartRef__":true,"id":3923}},"4548":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4549":{"varMapping":{"__isSmartRef__":true,"id":4550},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4550":{"this":{"__isSmartRef__":true,"id":3923},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4551}},"4551":{"$super":{"__isSmartRef__":true,"id":4552}},"4552":{"varMapping":{"__isSmartRef__":true,"id":4553},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4553":{"obj":{"__isSmartRef__":true,"id":3923},"name":"onMouseDown"},"4554":{},"4555":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4556":{"varMapping":{"__isSmartRef__":true,"id":4557},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4557":{"this":{"__isSmartRef__":true,"id":3923}},"4558":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4559":{"varMapping":{"__isSmartRef__":true,"id":4560},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4560":{"this":{"__isSmartRef__":true,"id":3923}},"4561":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4562":{"varMapping":{"__isSmartRef__":true,"id":4563},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4563":{"this":{"__isSmartRef__":true,"id":3923}},"4564":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4565":{"varMapping":{"__isSmartRef__":true,"id":4566},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4566":{"this":{"__isSmartRef__":true,"id":3923}},"4567":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4568":{"varMapping":{"__isSmartRef__":true,"id":4569},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4569":{"this":{"__isSmartRef__":true,"id":3923}},"4570":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4571":{"varMapping":{"__isSmartRef__":true,"id":4572},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4572":{"this":{"__isSmartRef__":true,"id":3923}},"4573":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4574":{"varMapping":{"__isSmartRef__":true,"id":4575},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4575":{"this":{"__isSmartRef__":true,"id":3923}},"4576":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4577":{"varMapping":{"__isSmartRef__":true,"id":4578},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4578":{"this":{"__isSmartRef__":true,"id":3923}},"4579":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4580":{"varMapping":{"__isSmartRef__":true,"id":4581},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4581":{"this":{"__isSmartRef__":true,"id":3923}},"4582":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4583":{"addBomb":{"__isSmartRef__":true,"id":4584},"clearFlag":{"__isSmartRef__":true,"id":4587},"countNeighborBombs":{"__isSmartRef__":true,"id":4590},"fixSubmorph":{"__isSmartRef__":true,"id":4593},"initAppearance":{"__isSmartRef__":true,"id":4596},"initMorphs":{"__isSmartRef__":true,"id":4599},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4602},"isClosed":{"__isSmartRef__":true,"id":4605},"neighborPoints":{"__isSmartRef__":true,"id":4608},"onMouseDown":{"__isSmartRef__":true,"id":4611},"restoreGameAppearance":{"__isSmartRef__":true,"id":4618},"reveal":{"__isSmartRef__":true,"id":4621},"setCoordinates":{"__isSmartRef__":true,"id":4624},"showBomb":{"__isSmartRef__":true,"id":4627},"showDebugState":{"__isSmartRef__":true,"id":4630},"showFlag":{"__isSmartRef__":true,"id":4633},"showState":{"__isSmartRef__":true,"id":4636},"copyImageMorph":{"__isSmartRef__":true,"id":4639},"prepareToPublish":{"__isSmartRef__":true,"id":4642}},"4584":{"varMapping":{"__isSmartRef__":true,"id":4585},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4585":{"this":{"__isSmartRef__":true,"id":3875}},"4586":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4587":{"varMapping":{"__isSmartRef__":true,"id":4588},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4588":{"this":{"__isSmartRef__":true,"id":3875}},"4589":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4590":{"varMapping":{"__isSmartRef__":true,"id":4591},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4591":{"this":{"__isSmartRef__":true,"id":3875}},"4592":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4593":{"varMapping":{"__isSmartRef__":true,"id":4594},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4594":{"this":{"__isSmartRef__":true,"id":3875}},"4595":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4596":{"varMapping":{"__isSmartRef__":true,"id":4597},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4597":{"this":{"__isSmartRef__":true,"id":3875}},"4598":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4599":{"varMapping":{"__isSmartRef__":true,"id":4600},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4600":{"this":{"__isSmartRef__":true,"id":3875}},"4601":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4602":{"varMapping":{"__isSmartRef__":true,"id":4603},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4603":{"this":{"__isSmartRef__":true,"id":3875}},"4604":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4605":{"varMapping":{"__isSmartRef__":true,"id":4606},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4606":{"this":{"__isSmartRef__":true,"id":3875}},"4607":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4608":{"varMapping":{"__isSmartRef__":true,"id":4609},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4609":{"this":{"__isSmartRef__":true,"id":3875}},"4610":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4611":{"varMapping":{"__isSmartRef__":true,"id":4612},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4612":{"this":{"__isSmartRef__":true,"id":3875},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4613}},"4613":{"$super":{"__isSmartRef__":true,"id":4614}},"4614":{"varMapping":{"__isSmartRef__":true,"id":4615},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4615":{"obj":{"__isSmartRef__":true,"id":3875},"name":"onMouseDown"},"4616":{},"4617":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4618":{"varMapping":{"__isSmartRef__":true,"id":4619},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4619":{"this":{"__isSmartRef__":true,"id":3875}},"4620":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4621":{"varMapping":{"__isSmartRef__":true,"id":4622},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4622":{"this":{"__isSmartRef__":true,"id":3875}},"4623":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4624":{"varMapping":{"__isSmartRef__":true,"id":4625},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4625":{"this":{"__isSmartRef__":true,"id":3875}},"4626":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4627":{"varMapping":{"__isSmartRef__":true,"id":4628},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4628":{"this":{"__isSmartRef__":true,"id":3875}},"4629":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4630":{"varMapping":{"__isSmartRef__":true,"id":4631},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4631":{"this":{"__isSmartRef__":true,"id":3875}},"4632":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4633":{"varMapping":{"__isSmartRef__":true,"id":4634},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4634":{"this":{"__isSmartRef__":true,"id":3875}},"4635":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4636":{"varMapping":{"__isSmartRef__":true,"id":4637},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4637":{"this":{"__isSmartRef__":true,"id":3875}},"4638":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4639":{"varMapping":{"__isSmartRef__":true,"id":4640},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4640":{"this":{"__isSmartRef__":true,"id":3875}},"4641":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4642":{"varMapping":{"__isSmartRef__":true,"id":4643},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4643":{"this":{"__isSmartRef__":true,"id":3875}},"4644":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4645":{"addBomb":{"__isSmartRef__":true,"id":4646},"clearFlag":{"__isSmartRef__":true,"id":4649},"countNeighborBombs":{"__isSmartRef__":true,"id":4652},"fixSubmorph":{"__isSmartRef__":true,"id":4655},"initAppearance":{"__isSmartRef__":true,"id":4658},"initMorphs":{"__isSmartRef__":true,"id":4661},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4664},"isClosed":{"__isSmartRef__":true,"id":4667},"neighborPoints":{"__isSmartRef__":true,"id":4670},"onMouseDown":{"__isSmartRef__":true,"id":4673},"restoreGameAppearance":{"__isSmartRef__":true,"id":4680},"reveal":{"__isSmartRef__":true,"id":4683},"setCoordinates":{"__isSmartRef__":true,"id":4686},"showBomb":{"__isSmartRef__":true,"id":4689},"showDebugState":{"__isSmartRef__":true,"id":4692},"showFlag":{"__isSmartRef__":true,"id":4695},"showState":{"__isSmartRef__":true,"id":4698},"copyImageMorph":{"__isSmartRef__":true,"id":4701},"prepareToPublish":{"__isSmartRef__":true,"id":4704}},"4646":{"varMapping":{"__isSmartRef__":true,"id":4647},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4647":{"this":{"__isSmartRef__":true,"id":3827}},"4648":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4649":{"varMapping":{"__isSmartRef__":true,"id":4650},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4650":{"this":{"__isSmartRef__":true,"id":3827}},"4651":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4652":{"varMapping":{"__isSmartRef__":true,"id":4653},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4653":{"this":{"__isSmartRef__":true,"id":3827}},"4654":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4655":{"varMapping":{"__isSmartRef__":true,"id":4656},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4656":{"this":{"__isSmartRef__":true,"id":3827}},"4657":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4658":{"varMapping":{"__isSmartRef__":true,"id":4659},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4659":{"this":{"__isSmartRef__":true,"id":3827}},"4660":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4661":{"varMapping":{"__isSmartRef__":true,"id":4662},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4662":{"this":{"__isSmartRef__":true,"id":3827}},"4663":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4664":{"varMapping":{"__isSmartRef__":true,"id":4665},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4665":{"this":{"__isSmartRef__":true,"id":3827}},"4666":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4667":{"varMapping":{"__isSmartRef__":true,"id":4668},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4668":{"this":{"__isSmartRef__":true,"id":3827}},"4669":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4670":{"varMapping":{"__isSmartRef__":true,"id":4671},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4671":{"this":{"__isSmartRef__":true,"id":3827}},"4672":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4673":{"varMapping":{"__isSmartRef__":true,"id":4674},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4674":{"this":{"__isSmartRef__":true,"id":3827},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4675}},"4675":{"$super":{"__isSmartRef__":true,"id":4676}},"4676":{"varMapping":{"__isSmartRef__":true,"id":4677},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4677":{"obj":{"__isSmartRef__":true,"id":3827},"name":"onMouseDown"},"4678":{},"4679":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4680":{"varMapping":{"__isSmartRef__":true,"id":4681},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4681":{"this":{"__isSmartRef__":true,"id":3827}},"4682":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4683":{"varMapping":{"__isSmartRef__":true,"id":4684},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4684":{"this":{"__isSmartRef__":true,"id":3827}},"4685":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4686":{"varMapping":{"__isSmartRef__":true,"id":4687},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4687":{"this":{"__isSmartRef__":true,"id":3827}},"4688":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4689":{"varMapping":{"__isSmartRef__":true,"id":4690},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4690":{"this":{"__isSmartRef__":true,"id":3827}},"4691":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4692":{"varMapping":{"__isSmartRef__":true,"id":4693},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4693":{"this":{"__isSmartRef__":true,"id":3827}},"4694":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4695":{"varMapping":{"__isSmartRef__":true,"id":4696},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4696":{"this":{"__isSmartRef__":true,"id":3827}},"4697":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4698":{"varMapping":{"__isSmartRef__":true,"id":4699},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4699":{"this":{"__isSmartRef__":true,"id":3827}},"4700":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4701":{"varMapping":{"__isSmartRef__":true,"id":4702},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4702":{"this":{"__isSmartRef__":true,"id":3827}},"4703":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4704":{"varMapping":{"__isSmartRef__":true,"id":4705},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4705":{"this":{"__isSmartRef__":true,"id":3827}},"4706":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4707":{"addBomb":{"__isSmartRef__":true,"id":4708},"clearFlag":{"__isSmartRef__":true,"id":4711},"countNeighborBombs":{"__isSmartRef__":true,"id":4714},"fixSubmorph":{"__isSmartRef__":true,"id":4717},"initAppearance":{"__isSmartRef__":true,"id":4720},"initMorphs":{"__isSmartRef__":true,"id":4723},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4726},"isClosed":{"__isSmartRef__":true,"id":4729},"neighborPoints":{"__isSmartRef__":true,"id":4732},"onMouseDown":{"__isSmartRef__":true,"id":4735},"restoreGameAppearance":{"__isSmartRef__":true,"id":4742},"reveal":{"__isSmartRef__":true,"id":4745},"setCoordinates":{"__isSmartRef__":true,"id":4748},"showBomb":{"__isSmartRef__":true,"id":4751},"showDebugState":{"__isSmartRef__":true,"id":4754},"showFlag":{"__isSmartRef__":true,"id":4757},"showState":{"__isSmartRef__":true,"id":4760},"copyImageMorph":{"__isSmartRef__":true,"id":4763},"prepareToPublish":{"__isSmartRef__":true,"id":4766}},"4708":{"varMapping":{"__isSmartRef__":true,"id":4709},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4709":{"this":{"__isSmartRef__":true,"id":3779}},"4710":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4711":{"varMapping":{"__isSmartRef__":true,"id":4712},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4712":{"this":{"__isSmartRef__":true,"id":3779}},"4713":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4714":{"varMapping":{"__isSmartRef__":true,"id":4715},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4715":{"this":{"__isSmartRef__":true,"id":3779}},"4716":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4717":{"varMapping":{"__isSmartRef__":true,"id":4718},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4718":{"this":{"__isSmartRef__":true,"id":3779}},"4719":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4720":{"varMapping":{"__isSmartRef__":true,"id":4721},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4721":{"this":{"__isSmartRef__":true,"id":3779}},"4722":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4723":{"varMapping":{"__isSmartRef__":true,"id":4724},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4724":{"this":{"__isSmartRef__":true,"id":3779}},"4725":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4726":{"varMapping":{"__isSmartRef__":true,"id":4727},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4727":{"this":{"__isSmartRef__":true,"id":3779}},"4728":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4729":{"varMapping":{"__isSmartRef__":true,"id":4730},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4730":{"this":{"__isSmartRef__":true,"id":3779}},"4731":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4732":{"varMapping":{"__isSmartRef__":true,"id":4733},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4733":{"this":{"__isSmartRef__":true,"id":3779}},"4734":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4735":{"varMapping":{"__isSmartRef__":true,"id":4736},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4736":{"this":{"__isSmartRef__":true,"id":3779},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4737}},"4737":{"$super":{"__isSmartRef__":true,"id":4738}},"4738":{"varMapping":{"__isSmartRef__":true,"id":4739},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4739":{"obj":{"__isSmartRef__":true,"id":3779},"name":"onMouseDown"},"4740":{},"4741":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4742":{"varMapping":{"__isSmartRef__":true,"id":4743},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4743":{"this":{"__isSmartRef__":true,"id":3779}},"4744":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4745":{"varMapping":{"__isSmartRef__":true,"id":4746},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4746":{"this":{"__isSmartRef__":true,"id":3779}},"4747":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4748":{"varMapping":{"__isSmartRef__":true,"id":4749},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4749":{"this":{"__isSmartRef__":true,"id":3779}},"4750":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4751":{"varMapping":{"__isSmartRef__":true,"id":4752},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4752":{"this":{"__isSmartRef__":true,"id":3779}},"4753":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4754":{"varMapping":{"__isSmartRef__":true,"id":4755},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4755":{"this":{"__isSmartRef__":true,"id":3779}},"4756":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4757":{"varMapping":{"__isSmartRef__":true,"id":4758},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4758":{"this":{"__isSmartRef__":true,"id":3779}},"4759":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4760":{"varMapping":{"__isSmartRef__":true,"id":4761},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4761":{"this":{"__isSmartRef__":true,"id":3779}},"4762":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4763":{"varMapping":{"__isSmartRef__":true,"id":4764},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4764":{"this":{"__isSmartRef__":true,"id":3779}},"4765":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4766":{"varMapping":{"__isSmartRef__":true,"id":4767},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4767":{"this":{"__isSmartRef__":true,"id":3779}},"4768":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4769":{"addBomb":{"__isSmartRef__":true,"id":4770},"clearFlag":{"__isSmartRef__":true,"id":4773},"countNeighborBombs":{"__isSmartRef__":true,"id":4776},"fixSubmorph":{"__isSmartRef__":true,"id":4779},"initAppearance":{"__isSmartRef__":true,"id":4782},"initMorphs":{"__isSmartRef__":true,"id":4785},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4788},"isClosed":{"__isSmartRef__":true,"id":4791},"neighborPoints":{"__isSmartRef__":true,"id":4794},"onMouseDown":{"__isSmartRef__":true,"id":4797},"restoreGameAppearance":{"__isSmartRef__":true,"id":4804},"reveal":{"__isSmartRef__":true,"id":4807},"setCoordinates":{"__isSmartRef__":true,"id":4810},"showBomb":{"__isSmartRef__":true,"id":4813},"showDebugState":{"__isSmartRef__":true,"id":4816},"showFlag":{"__isSmartRef__":true,"id":4819},"showState":{"__isSmartRef__":true,"id":4822},"copyImageMorph":{"__isSmartRef__":true,"id":4825},"prepareToPublish":{"__isSmartRef__":true,"id":4828}},"4770":{"varMapping":{"__isSmartRef__":true,"id":4771},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4771":{"this":{"__isSmartRef__":true,"id":3731}},"4772":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4773":{"varMapping":{"__isSmartRef__":true,"id":4774},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4774":{"this":{"__isSmartRef__":true,"id":3731}},"4775":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4776":{"varMapping":{"__isSmartRef__":true,"id":4777},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4777":{"this":{"__isSmartRef__":true,"id":3731}},"4778":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4779":{"varMapping":{"__isSmartRef__":true,"id":4780},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4780":{"this":{"__isSmartRef__":true,"id":3731}},"4781":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4782":{"varMapping":{"__isSmartRef__":true,"id":4783},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4783":{"this":{"__isSmartRef__":true,"id":3731}},"4784":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4785":{"varMapping":{"__isSmartRef__":true,"id":4786},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4786":{"this":{"__isSmartRef__":true,"id":3731}},"4787":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4788":{"varMapping":{"__isSmartRef__":true,"id":4789},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4789":{"this":{"__isSmartRef__":true,"id":3731}},"4790":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4791":{"varMapping":{"__isSmartRef__":true,"id":4792},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4792":{"this":{"__isSmartRef__":true,"id":3731}},"4793":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4794":{"varMapping":{"__isSmartRef__":true,"id":4795},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4795":{"this":{"__isSmartRef__":true,"id":3731}},"4796":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4797":{"varMapping":{"__isSmartRef__":true,"id":4798},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4798":{"this":{"__isSmartRef__":true,"id":3731},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4799}},"4799":{"$super":{"__isSmartRef__":true,"id":4800}},"4800":{"varMapping":{"__isSmartRef__":true,"id":4801},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4801":{"obj":{"__isSmartRef__":true,"id":3731},"name":"onMouseDown"},"4802":{},"4803":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4804":{"varMapping":{"__isSmartRef__":true,"id":4805},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4805":{"this":{"__isSmartRef__":true,"id":3731}},"4806":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4807":{"varMapping":{"__isSmartRef__":true,"id":4808},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4808":{"this":{"__isSmartRef__":true,"id":3731}},"4809":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4810":{"varMapping":{"__isSmartRef__":true,"id":4811},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4811":{"this":{"__isSmartRef__":true,"id":3731}},"4812":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4813":{"varMapping":{"__isSmartRef__":true,"id":4814},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4814":{"this":{"__isSmartRef__":true,"id":3731}},"4815":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4816":{"varMapping":{"__isSmartRef__":true,"id":4817},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4817":{"this":{"__isSmartRef__":true,"id":3731}},"4818":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4819":{"varMapping":{"__isSmartRef__":true,"id":4820},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4820":{"this":{"__isSmartRef__":true,"id":3731}},"4821":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4822":{"varMapping":{"__isSmartRef__":true,"id":4823},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4823":{"this":{"__isSmartRef__":true,"id":3731}},"4824":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4825":{"varMapping":{"__isSmartRef__":true,"id":4826},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4826":{"this":{"__isSmartRef__":true,"id":3731}},"4827":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4828":{"varMapping":{"__isSmartRef__":true,"id":4829},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4829":{"this":{"__isSmartRef__":true,"id":3731}},"4830":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4831":{"addBomb":{"__isSmartRef__":true,"id":4832},"clearFlag":{"__isSmartRef__":true,"id":4835},"countNeighborBombs":{"__isSmartRef__":true,"id":4838},"fixSubmorph":{"__isSmartRef__":true,"id":4841},"initAppearance":{"__isSmartRef__":true,"id":4844},"initMorphs":{"__isSmartRef__":true,"id":4847},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4850},"isClosed":{"__isSmartRef__":true,"id":4853},"neighborPoints":{"__isSmartRef__":true,"id":4856},"onMouseDown":{"__isSmartRef__":true,"id":4859},"restoreGameAppearance":{"__isSmartRef__":true,"id":4866},"reveal":{"__isSmartRef__":true,"id":4869},"setCoordinates":{"__isSmartRef__":true,"id":4872},"showBomb":{"__isSmartRef__":true,"id":4875},"showDebugState":{"__isSmartRef__":true,"id":4878},"showFlag":{"__isSmartRef__":true,"id":4881},"showState":{"__isSmartRef__":true,"id":4884},"copyImageMorph":{"__isSmartRef__":true,"id":4887},"prepareToPublish":{"__isSmartRef__":true,"id":4890}},"4832":{"varMapping":{"__isSmartRef__":true,"id":4833},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4833":{"this":{"__isSmartRef__":true,"id":3683}},"4834":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4835":{"varMapping":{"__isSmartRef__":true,"id":4836},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4836":{"this":{"__isSmartRef__":true,"id":3683}},"4837":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4838":{"varMapping":{"__isSmartRef__":true,"id":4839},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4839":{"this":{"__isSmartRef__":true,"id":3683}},"4840":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4841":{"varMapping":{"__isSmartRef__":true,"id":4842},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4842":{"this":{"__isSmartRef__":true,"id":3683}},"4843":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4844":{"varMapping":{"__isSmartRef__":true,"id":4845},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4845":{"this":{"__isSmartRef__":true,"id":3683}},"4846":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4847":{"varMapping":{"__isSmartRef__":true,"id":4848},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4848":{"this":{"__isSmartRef__":true,"id":3683}},"4849":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4850":{"varMapping":{"__isSmartRef__":true,"id":4851},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4851":{"this":{"__isSmartRef__":true,"id":3683}},"4852":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4853":{"varMapping":{"__isSmartRef__":true,"id":4854},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4854":{"this":{"__isSmartRef__":true,"id":3683}},"4855":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4856":{"varMapping":{"__isSmartRef__":true,"id":4857},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4857":{"this":{"__isSmartRef__":true,"id":3683}},"4858":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4859":{"varMapping":{"__isSmartRef__":true,"id":4860},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4860":{"this":{"__isSmartRef__":true,"id":3683},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4861}},"4861":{"$super":{"__isSmartRef__":true,"id":4862}},"4862":{"varMapping":{"__isSmartRef__":true,"id":4863},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4863":{"obj":{"__isSmartRef__":true,"id":3683},"name":"onMouseDown"},"4864":{},"4865":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4866":{"varMapping":{"__isSmartRef__":true,"id":4867},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4867":{"this":{"__isSmartRef__":true,"id":3683}},"4868":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4869":{"varMapping":{"__isSmartRef__":true,"id":4870},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4870":{"this":{"__isSmartRef__":true,"id":3683}},"4871":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4872":{"varMapping":{"__isSmartRef__":true,"id":4873},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4873":{"this":{"__isSmartRef__":true,"id":3683}},"4874":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4875":{"varMapping":{"__isSmartRef__":true,"id":4876},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4876":{"this":{"__isSmartRef__":true,"id":3683}},"4877":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4878":{"varMapping":{"__isSmartRef__":true,"id":4879},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4879":{"this":{"__isSmartRef__":true,"id":3683}},"4880":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4881":{"varMapping":{"__isSmartRef__":true,"id":4882},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4882":{"this":{"__isSmartRef__":true,"id":3683}},"4883":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4884":{"varMapping":{"__isSmartRef__":true,"id":4885},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4885":{"this":{"__isSmartRef__":true,"id":3683}},"4886":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4887":{"varMapping":{"__isSmartRef__":true,"id":4888},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4888":{"this":{"__isSmartRef__":true,"id":3683}},"4889":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4890":{"varMapping":{"__isSmartRef__":true,"id":4891},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4891":{"this":{"__isSmartRef__":true,"id":3683}},"4892":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4893":{"addBomb":{"__isSmartRef__":true,"id":4894},"clearFlag":{"__isSmartRef__":true,"id":4897},"countNeighborBombs":{"__isSmartRef__":true,"id":4900},"fixSubmorph":{"__isSmartRef__":true,"id":4903},"initAppearance":{"__isSmartRef__":true,"id":4906},"initMorphs":{"__isSmartRef__":true,"id":4909},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4912},"isClosed":{"__isSmartRef__":true,"id":4915},"neighborPoints":{"__isSmartRef__":true,"id":4918},"onMouseDown":{"__isSmartRef__":true,"id":4921},"restoreGameAppearance":{"__isSmartRef__":true,"id":4928},"reveal":{"__isSmartRef__":true,"id":4931},"setCoordinates":{"__isSmartRef__":true,"id":4934},"showBomb":{"__isSmartRef__":true,"id":4937},"showDebugState":{"__isSmartRef__":true,"id":4940},"showFlag":{"__isSmartRef__":true,"id":4943},"showState":{"__isSmartRef__":true,"id":4946},"copyImageMorph":{"__isSmartRef__":true,"id":4949},"prepareToPublish":{"__isSmartRef__":true,"id":4952}},"4894":{"varMapping":{"__isSmartRef__":true,"id":4895},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4895":{"this":{"__isSmartRef__":true,"id":3635}},"4896":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4897":{"varMapping":{"__isSmartRef__":true,"id":4898},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4898":{"this":{"__isSmartRef__":true,"id":3635}},"4899":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4900":{"varMapping":{"__isSmartRef__":true,"id":4901},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4901":{"this":{"__isSmartRef__":true,"id":3635}},"4902":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4903":{"varMapping":{"__isSmartRef__":true,"id":4904},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4904":{"this":{"__isSmartRef__":true,"id":3635}},"4905":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4906":{"varMapping":{"__isSmartRef__":true,"id":4907},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4907":{"this":{"__isSmartRef__":true,"id":3635}},"4908":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4909":{"varMapping":{"__isSmartRef__":true,"id":4910},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4910":{"this":{"__isSmartRef__":true,"id":3635}},"4911":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4912":{"varMapping":{"__isSmartRef__":true,"id":4913},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4913":{"this":{"__isSmartRef__":true,"id":3635}},"4914":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4915":{"varMapping":{"__isSmartRef__":true,"id":4916},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4916":{"this":{"__isSmartRef__":true,"id":3635}},"4917":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4918":{"varMapping":{"__isSmartRef__":true,"id":4919},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4919":{"this":{"__isSmartRef__":true,"id":3635}},"4920":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4921":{"varMapping":{"__isSmartRef__":true,"id":4922},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4922":{"this":{"__isSmartRef__":true,"id":3635},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4923}},"4923":{"$super":{"__isSmartRef__":true,"id":4924}},"4924":{"varMapping":{"__isSmartRef__":true,"id":4925},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4925":{"obj":{"__isSmartRef__":true,"id":3635},"name":"onMouseDown"},"4926":{},"4927":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4928":{"varMapping":{"__isSmartRef__":true,"id":4929},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4929":{"this":{"__isSmartRef__":true,"id":3635}},"4930":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4931":{"varMapping":{"__isSmartRef__":true,"id":4932},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4932":{"this":{"__isSmartRef__":true,"id":3635}},"4933":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4934":{"varMapping":{"__isSmartRef__":true,"id":4935},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4935":{"this":{"__isSmartRef__":true,"id":3635}},"4936":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4937":{"varMapping":{"__isSmartRef__":true,"id":4938},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4938":{"this":{"__isSmartRef__":true,"id":3635}},"4939":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4940":{"varMapping":{"__isSmartRef__":true,"id":4941},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4941":{"this":{"__isSmartRef__":true,"id":3635}},"4942":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4943":{"varMapping":{"__isSmartRef__":true,"id":4944},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4944":{"this":{"__isSmartRef__":true,"id":3635}},"4945":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4946":{"varMapping":{"__isSmartRef__":true,"id":4947},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4947":{"this":{"__isSmartRef__":true,"id":3635}},"4948":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4949":{"varMapping":{"__isSmartRef__":true,"id":4950},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":4951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4950":{"this":{"__isSmartRef__":true,"id":3635}},"4951":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4952":{"varMapping":{"__isSmartRef__":true,"id":4953},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4953":{"this":{"__isSmartRef__":true,"id":3635}},"4954":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4955":{"addBomb":{"__isSmartRef__":true,"id":4956},"clearFlag":{"__isSmartRef__":true,"id":4959},"countNeighborBombs":{"__isSmartRef__":true,"id":4962},"fixSubmorph":{"__isSmartRef__":true,"id":4965},"initAppearance":{"__isSmartRef__":true,"id":4968},"initMorphs":{"__isSmartRef__":true,"id":4971},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4974},"isClosed":{"__isSmartRef__":true,"id":4977},"neighborPoints":{"__isSmartRef__":true,"id":4980},"onMouseDown":{"__isSmartRef__":true,"id":4983},"restoreGameAppearance":{"__isSmartRef__":true,"id":4990},"reveal":{"__isSmartRef__":true,"id":4993},"setCoordinates":{"__isSmartRef__":true,"id":4996},"showBomb":{"__isSmartRef__":true,"id":4999},"showDebugState":{"__isSmartRef__":true,"id":5002},"showFlag":{"__isSmartRef__":true,"id":5005},"showState":{"__isSmartRef__":true,"id":5008},"copyImageMorph":{"__isSmartRef__":true,"id":5011},"prepareToPublish":{"__isSmartRef__":true,"id":5014}},"4956":{"varMapping":{"__isSmartRef__":true,"id":4957},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4957":{"this":{"__isSmartRef__":true,"id":3587}},"4958":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4959":{"varMapping":{"__isSmartRef__":true,"id":4960},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4960":{"this":{"__isSmartRef__":true,"id":3587}},"4961":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4962":{"varMapping":{"__isSmartRef__":true,"id":4963},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4963":{"this":{"__isSmartRef__":true,"id":3587}},"4964":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4965":{"varMapping":{"__isSmartRef__":true,"id":4966},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4966":{"this":{"__isSmartRef__":true,"id":3587}},"4967":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4968":{"varMapping":{"__isSmartRef__":true,"id":4969},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4969":{"this":{"__isSmartRef__":true,"id":3587}},"4970":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4971":{"varMapping":{"__isSmartRef__":true,"id":4972},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4972":{"this":{"__isSmartRef__":true,"id":3587}},"4973":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4974":{"varMapping":{"__isSmartRef__":true,"id":4975},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4975":{"this":{"__isSmartRef__":true,"id":3587}},"4976":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4977":{"varMapping":{"__isSmartRef__":true,"id":4978},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4978":{"this":{"__isSmartRef__":true,"id":3587}},"4979":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4980":{"varMapping":{"__isSmartRef__":true,"id":4981},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":4982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4981":{"this":{"__isSmartRef__":true,"id":3587}},"4982":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4983":{"varMapping":{"__isSmartRef__":true,"id":4984},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4984":{"this":{"__isSmartRef__":true,"id":3587},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4985}},"4985":{"$super":{"__isSmartRef__":true,"id":4986}},"4986":{"varMapping":{"__isSmartRef__":true,"id":4987},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":4988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4987":{"obj":{"__isSmartRef__":true,"id":3587},"name":"onMouseDown"},"4988":{},"4989":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4990":{"varMapping":{"__isSmartRef__":true,"id":4991},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":4992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4991":{"this":{"__isSmartRef__":true,"id":3587}},"4992":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4993":{"varMapping":{"__isSmartRef__":true,"id":4994},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":4995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4994":{"this":{"__isSmartRef__":true,"id":3587}},"4995":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4996":{"varMapping":{"__isSmartRef__":true,"id":4997},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4997":{"this":{"__isSmartRef__":true,"id":3587}},"4998":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4999":{"varMapping":{"__isSmartRef__":true,"id":5000},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5000":{"this":{"__isSmartRef__":true,"id":3587}},"5001":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5002":{"varMapping":{"__isSmartRef__":true,"id":5003},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5003":{"this":{"__isSmartRef__":true,"id":3587}},"5004":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5005":{"varMapping":{"__isSmartRef__":true,"id":5006},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5006":{"this":{"__isSmartRef__":true,"id":3587}},"5007":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5008":{"varMapping":{"__isSmartRef__":true,"id":5009},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5009":{"this":{"__isSmartRef__":true,"id":3587}},"5010":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5011":{"varMapping":{"__isSmartRef__":true,"id":5012},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5012":{"this":{"__isSmartRef__":true,"id":3587}},"5013":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5014":{"varMapping":{"__isSmartRef__":true,"id":5015},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5015":{"this":{"__isSmartRef__":true,"id":3587}},"5016":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5017":{"addBomb":{"__isSmartRef__":true,"id":5018},"clearFlag":{"__isSmartRef__":true,"id":5021},"countNeighborBombs":{"__isSmartRef__":true,"id":5024},"fixSubmorph":{"__isSmartRef__":true,"id":5027},"initAppearance":{"__isSmartRef__":true,"id":5030},"initMorphs":{"__isSmartRef__":true,"id":5033},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5036},"isClosed":{"__isSmartRef__":true,"id":5039},"neighborPoints":{"__isSmartRef__":true,"id":5042},"onMouseDown":{"__isSmartRef__":true,"id":5045},"restoreGameAppearance":{"__isSmartRef__":true,"id":5052},"reveal":{"__isSmartRef__":true,"id":5055},"setCoordinates":{"__isSmartRef__":true,"id":5058},"showBomb":{"__isSmartRef__":true,"id":5061},"showDebugState":{"__isSmartRef__":true,"id":5064},"showFlag":{"__isSmartRef__":true,"id":5067},"showState":{"__isSmartRef__":true,"id":5070},"copyImageMorph":{"__isSmartRef__":true,"id":5073},"prepareToPublish":{"__isSmartRef__":true,"id":5076}},"5018":{"varMapping":{"__isSmartRef__":true,"id":5019},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5019":{"this":{"__isSmartRef__":true,"id":3539}},"5020":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5021":{"varMapping":{"__isSmartRef__":true,"id":5022},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5022":{"this":{"__isSmartRef__":true,"id":3539}},"5023":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5024":{"varMapping":{"__isSmartRef__":true,"id":5025},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5025":{"this":{"__isSmartRef__":true,"id":3539}},"5026":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5027":{"varMapping":{"__isSmartRef__":true,"id":5028},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5028":{"this":{"__isSmartRef__":true,"id":3539}},"5029":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5030":{"varMapping":{"__isSmartRef__":true,"id":5031},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5031":{"this":{"__isSmartRef__":true,"id":3539}},"5032":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5033":{"varMapping":{"__isSmartRef__":true,"id":5034},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5034":{"this":{"__isSmartRef__":true,"id":3539}},"5035":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5036":{"varMapping":{"__isSmartRef__":true,"id":5037},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5037":{"this":{"__isSmartRef__":true,"id":3539}},"5038":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5039":{"varMapping":{"__isSmartRef__":true,"id":5040},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5040":{"this":{"__isSmartRef__":true,"id":3539}},"5041":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5042":{"varMapping":{"__isSmartRef__":true,"id":5043},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5043":{"this":{"__isSmartRef__":true,"id":3539}},"5044":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5045":{"varMapping":{"__isSmartRef__":true,"id":5046},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5046":{"this":{"__isSmartRef__":true,"id":3539},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5047}},"5047":{"$super":{"__isSmartRef__":true,"id":5048}},"5048":{"varMapping":{"__isSmartRef__":true,"id":5049},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5049":{"obj":{"__isSmartRef__":true,"id":3539},"name":"onMouseDown"},"5050":{},"5051":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5052":{"varMapping":{"__isSmartRef__":true,"id":5053},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5053":{"this":{"__isSmartRef__":true,"id":3539}},"5054":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5055":{"varMapping":{"__isSmartRef__":true,"id":5056},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5056":{"this":{"__isSmartRef__":true,"id":3539}},"5057":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5058":{"varMapping":{"__isSmartRef__":true,"id":5059},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5059":{"this":{"__isSmartRef__":true,"id":3539}},"5060":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5061":{"varMapping":{"__isSmartRef__":true,"id":5062},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5062":{"this":{"__isSmartRef__":true,"id":3539}},"5063":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5064":{"varMapping":{"__isSmartRef__":true,"id":5065},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5065":{"this":{"__isSmartRef__":true,"id":3539}},"5066":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5067":{"varMapping":{"__isSmartRef__":true,"id":5068},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5068":{"this":{"__isSmartRef__":true,"id":3539}},"5069":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5070":{"varMapping":{"__isSmartRef__":true,"id":5071},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5071":{"this":{"__isSmartRef__":true,"id":3539}},"5072":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5073":{"varMapping":{"__isSmartRef__":true,"id":5074},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5074":{"this":{"__isSmartRef__":true,"id":3539}},"5075":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5076":{"varMapping":{"__isSmartRef__":true,"id":5077},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5077":{"this":{"__isSmartRef__":true,"id":3539}},"5078":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5079":{"addBomb":{"__isSmartRef__":true,"id":5080},"clearFlag":{"__isSmartRef__":true,"id":5083},"countNeighborBombs":{"__isSmartRef__":true,"id":5086},"fixSubmorph":{"__isSmartRef__":true,"id":5089},"initAppearance":{"__isSmartRef__":true,"id":5092},"initMorphs":{"__isSmartRef__":true,"id":5095},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5098},"isClosed":{"__isSmartRef__":true,"id":5101},"neighborPoints":{"__isSmartRef__":true,"id":5104},"onMouseDown":{"__isSmartRef__":true,"id":5107},"restoreGameAppearance":{"__isSmartRef__":true,"id":5114},"reveal":{"__isSmartRef__":true,"id":5117},"setCoordinates":{"__isSmartRef__":true,"id":5120},"showBomb":{"__isSmartRef__":true,"id":5123},"showDebugState":{"__isSmartRef__":true,"id":5126},"showFlag":{"__isSmartRef__":true,"id":5129},"showState":{"__isSmartRef__":true,"id":5132},"copyImageMorph":{"__isSmartRef__":true,"id":5135},"prepareToPublish":{"__isSmartRef__":true,"id":5138}},"5080":{"varMapping":{"__isSmartRef__":true,"id":5081},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5081":{"this":{"__isSmartRef__":true,"id":3491}},"5082":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5083":{"varMapping":{"__isSmartRef__":true,"id":5084},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5084":{"this":{"__isSmartRef__":true,"id":3491}},"5085":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5086":{"varMapping":{"__isSmartRef__":true,"id":5087},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5087":{"this":{"__isSmartRef__":true,"id":3491}},"5088":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5089":{"varMapping":{"__isSmartRef__":true,"id":5090},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5090":{"this":{"__isSmartRef__":true,"id":3491}},"5091":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5092":{"varMapping":{"__isSmartRef__":true,"id":5093},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5093":{"this":{"__isSmartRef__":true,"id":3491}},"5094":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5095":{"varMapping":{"__isSmartRef__":true,"id":5096},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5096":{"this":{"__isSmartRef__":true,"id":3491}},"5097":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5098":{"varMapping":{"__isSmartRef__":true,"id":5099},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5099":{"this":{"__isSmartRef__":true,"id":3491}},"5100":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5101":{"varMapping":{"__isSmartRef__":true,"id":5102},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5102":{"this":{"__isSmartRef__":true,"id":3491}},"5103":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5104":{"varMapping":{"__isSmartRef__":true,"id":5105},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5105":{"this":{"__isSmartRef__":true,"id":3491}},"5106":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5107":{"varMapping":{"__isSmartRef__":true,"id":5108},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5108":{"this":{"__isSmartRef__":true,"id":3491},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5109}},"5109":{"$super":{"__isSmartRef__":true,"id":5110}},"5110":{"varMapping":{"__isSmartRef__":true,"id":5111},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5111":{"obj":{"__isSmartRef__":true,"id":3491},"name":"onMouseDown"},"5112":{},"5113":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5114":{"varMapping":{"__isSmartRef__":true,"id":5115},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5115":{"this":{"__isSmartRef__":true,"id":3491}},"5116":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5117":{"varMapping":{"__isSmartRef__":true,"id":5118},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5118":{"this":{"__isSmartRef__":true,"id":3491}},"5119":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5120":{"varMapping":{"__isSmartRef__":true,"id":5121},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5121":{"this":{"__isSmartRef__":true,"id":3491}},"5122":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5123":{"varMapping":{"__isSmartRef__":true,"id":5124},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5124":{"this":{"__isSmartRef__":true,"id":3491}},"5125":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5126":{"varMapping":{"__isSmartRef__":true,"id":5127},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5127":{"this":{"__isSmartRef__":true,"id":3491}},"5128":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5129":{"varMapping":{"__isSmartRef__":true,"id":5130},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5130":{"this":{"__isSmartRef__":true,"id":3491}},"5131":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5132":{"varMapping":{"__isSmartRef__":true,"id":5133},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5133":{"this":{"__isSmartRef__":true,"id":3491}},"5134":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5135":{"varMapping":{"__isSmartRef__":true,"id":5136},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5136":{"this":{"__isSmartRef__":true,"id":3491}},"5137":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5138":{"varMapping":{"__isSmartRef__":true,"id":5139},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5139":{"this":{"__isSmartRef__":true,"id":3491}},"5140":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5141":{"addBomb":{"__isSmartRef__":true,"id":5142},"clearFlag":{"__isSmartRef__":true,"id":5145},"countNeighborBombs":{"__isSmartRef__":true,"id":5148},"fixSubmorph":{"__isSmartRef__":true,"id":5151},"initAppearance":{"__isSmartRef__":true,"id":5154},"initMorphs":{"__isSmartRef__":true,"id":5157},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5160},"isClosed":{"__isSmartRef__":true,"id":5163},"neighborPoints":{"__isSmartRef__":true,"id":5166},"onMouseDown":{"__isSmartRef__":true,"id":5169},"restoreGameAppearance":{"__isSmartRef__":true,"id":5176},"reveal":{"__isSmartRef__":true,"id":5179},"setCoordinates":{"__isSmartRef__":true,"id":5182},"showBomb":{"__isSmartRef__":true,"id":5185},"showDebugState":{"__isSmartRef__":true,"id":5188},"showFlag":{"__isSmartRef__":true,"id":5191},"showState":{"__isSmartRef__":true,"id":5194},"copyImageMorph":{"__isSmartRef__":true,"id":5197},"prepareToPublish":{"__isSmartRef__":true,"id":5200}},"5142":{"varMapping":{"__isSmartRef__":true,"id":5143},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5143":{"this":{"__isSmartRef__":true,"id":3443}},"5144":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5145":{"varMapping":{"__isSmartRef__":true,"id":5146},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5146":{"this":{"__isSmartRef__":true,"id":3443}},"5147":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5148":{"varMapping":{"__isSmartRef__":true,"id":5149},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5149":{"this":{"__isSmartRef__":true,"id":3443}},"5150":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5151":{"varMapping":{"__isSmartRef__":true,"id":5152},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5152":{"this":{"__isSmartRef__":true,"id":3443}},"5153":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5154":{"varMapping":{"__isSmartRef__":true,"id":5155},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5155":{"this":{"__isSmartRef__":true,"id":3443}},"5156":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5157":{"varMapping":{"__isSmartRef__":true,"id":5158},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5158":{"this":{"__isSmartRef__":true,"id":3443}},"5159":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5160":{"varMapping":{"__isSmartRef__":true,"id":5161},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5161":{"this":{"__isSmartRef__":true,"id":3443}},"5162":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5163":{"varMapping":{"__isSmartRef__":true,"id":5164},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5164":{"this":{"__isSmartRef__":true,"id":3443}},"5165":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5166":{"varMapping":{"__isSmartRef__":true,"id":5167},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5167":{"this":{"__isSmartRef__":true,"id":3443}},"5168":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5169":{"varMapping":{"__isSmartRef__":true,"id":5170},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5170":{"this":{"__isSmartRef__":true,"id":3443},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5171}},"5171":{"$super":{"__isSmartRef__":true,"id":5172}},"5172":{"varMapping":{"__isSmartRef__":true,"id":5173},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5173":{"obj":{"__isSmartRef__":true,"id":3443},"name":"onMouseDown"},"5174":{},"5175":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5176":{"varMapping":{"__isSmartRef__":true,"id":5177},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5177":{"this":{"__isSmartRef__":true,"id":3443}},"5178":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5179":{"varMapping":{"__isSmartRef__":true,"id":5180},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5180":{"this":{"__isSmartRef__":true,"id":3443}},"5181":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5182":{"varMapping":{"__isSmartRef__":true,"id":5183},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5183":{"this":{"__isSmartRef__":true,"id":3443}},"5184":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5185":{"varMapping":{"__isSmartRef__":true,"id":5186},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5186":{"this":{"__isSmartRef__":true,"id":3443}},"5187":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5188":{"varMapping":{"__isSmartRef__":true,"id":5189},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5189":{"this":{"__isSmartRef__":true,"id":3443}},"5190":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5191":{"varMapping":{"__isSmartRef__":true,"id":5192},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5192":{"this":{"__isSmartRef__":true,"id":3443}},"5193":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5194":{"varMapping":{"__isSmartRef__":true,"id":5195},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5195":{"this":{"__isSmartRef__":true,"id":3443}},"5196":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5197":{"varMapping":{"__isSmartRef__":true,"id":5198},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5198":{"this":{"__isSmartRef__":true,"id":3443}},"5199":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5200":{"varMapping":{"__isSmartRef__":true,"id":5201},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5201":{"this":{"__isSmartRef__":true,"id":3443}},"5202":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5203":{"addBomb":{"__isSmartRef__":true,"id":5204},"clearFlag":{"__isSmartRef__":true,"id":5207},"countNeighborBombs":{"__isSmartRef__":true,"id":5210},"fixSubmorph":{"__isSmartRef__":true,"id":5213},"initAppearance":{"__isSmartRef__":true,"id":5216},"initMorphs":{"__isSmartRef__":true,"id":5219},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5222},"isClosed":{"__isSmartRef__":true,"id":5225},"neighborPoints":{"__isSmartRef__":true,"id":5228},"onMouseDown":{"__isSmartRef__":true,"id":5231},"restoreGameAppearance":{"__isSmartRef__":true,"id":5238},"reveal":{"__isSmartRef__":true,"id":5241},"setCoordinates":{"__isSmartRef__":true,"id":5244},"showBomb":{"__isSmartRef__":true,"id":5247},"showDebugState":{"__isSmartRef__":true,"id":5250},"showFlag":{"__isSmartRef__":true,"id":5253},"showState":{"__isSmartRef__":true,"id":5256},"copyImageMorph":{"__isSmartRef__":true,"id":5259},"prepareToPublish":{"__isSmartRef__":true,"id":5262}},"5204":{"varMapping":{"__isSmartRef__":true,"id":5205},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5205":{"this":{"__isSmartRef__":true,"id":3395}},"5206":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5207":{"varMapping":{"__isSmartRef__":true,"id":5208},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5208":{"this":{"__isSmartRef__":true,"id":3395}},"5209":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5210":{"varMapping":{"__isSmartRef__":true,"id":5211},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5211":{"this":{"__isSmartRef__":true,"id":3395}},"5212":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5213":{"varMapping":{"__isSmartRef__":true,"id":5214},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5214":{"this":{"__isSmartRef__":true,"id":3395}},"5215":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5216":{"varMapping":{"__isSmartRef__":true,"id":5217},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5217":{"this":{"__isSmartRef__":true,"id":3395}},"5218":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5219":{"varMapping":{"__isSmartRef__":true,"id":5220},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5220":{"this":{"__isSmartRef__":true,"id":3395}},"5221":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5222":{"varMapping":{"__isSmartRef__":true,"id":5223},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5223":{"this":{"__isSmartRef__":true,"id":3395}},"5224":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5225":{"varMapping":{"__isSmartRef__":true,"id":5226},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5226":{"this":{"__isSmartRef__":true,"id":3395}},"5227":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5228":{"varMapping":{"__isSmartRef__":true,"id":5229},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5229":{"this":{"__isSmartRef__":true,"id":3395}},"5230":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5231":{"varMapping":{"__isSmartRef__":true,"id":5232},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5232":{"this":{"__isSmartRef__":true,"id":3395},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5233}},"5233":{"$super":{"__isSmartRef__":true,"id":5234}},"5234":{"varMapping":{"__isSmartRef__":true,"id":5235},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5235":{"obj":{"__isSmartRef__":true,"id":3395},"name":"onMouseDown"},"5236":{},"5237":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5238":{"varMapping":{"__isSmartRef__":true,"id":5239},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5239":{"this":{"__isSmartRef__":true,"id":3395}},"5240":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5241":{"varMapping":{"__isSmartRef__":true,"id":5242},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5242":{"this":{"__isSmartRef__":true,"id":3395}},"5243":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5244":{"varMapping":{"__isSmartRef__":true,"id":5245},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5245":{"this":{"__isSmartRef__":true,"id":3395}},"5246":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5247":{"varMapping":{"__isSmartRef__":true,"id":5248},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5248":{"this":{"__isSmartRef__":true,"id":3395}},"5249":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5250":{"varMapping":{"__isSmartRef__":true,"id":5251},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5251":{"this":{"__isSmartRef__":true,"id":3395}},"5252":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5253":{"varMapping":{"__isSmartRef__":true,"id":5254},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5254":{"this":{"__isSmartRef__":true,"id":3395}},"5255":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5256":{"varMapping":{"__isSmartRef__":true,"id":5257},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5257":{"this":{"__isSmartRef__":true,"id":3395}},"5258":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5259":{"varMapping":{"__isSmartRef__":true,"id":5260},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5260":{"this":{"__isSmartRef__":true,"id":3395}},"5261":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5262":{"varMapping":{"__isSmartRef__":true,"id":5263},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5263":{"this":{"__isSmartRef__":true,"id":3395}},"5264":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5265":{"addBomb":{"__isSmartRef__":true,"id":5266},"clearFlag":{"__isSmartRef__":true,"id":5269},"countNeighborBombs":{"__isSmartRef__":true,"id":5272},"fixSubmorph":{"__isSmartRef__":true,"id":5275},"initAppearance":{"__isSmartRef__":true,"id":5278},"initMorphs":{"__isSmartRef__":true,"id":5281},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5284},"isClosed":{"__isSmartRef__":true,"id":5287},"neighborPoints":{"__isSmartRef__":true,"id":5290},"onMouseDown":{"__isSmartRef__":true,"id":5293},"restoreGameAppearance":{"__isSmartRef__":true,"id":5300},"reveal":{"__isSmartRef__":true,"id":5303},"setCoordinates":{"__isSmartRef__":true,"id":5306},"showBomb":{"__isSmartRef__":true,"id":5309},"showDebugState":{"__isSmartRef__":true,"id":5312},"showFlag":{"__isSmartRef__":true,"id":5315},"showState":{"__isSmartRef__":true,"id":5318},"copyImageMorph":{"__isSmartRef__":true,"id":5321},"prepareToPublish":{"__isSmartRef__":true,"id":5324}},"5266":{"varMapping":{"__isSmartRef__":true,"id":5267},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5267":{"this":{"__isSmartRef__":true,"id":3347}},"5268":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5269":{"varMapping":{"__isSmartRef__":true,"id":5270},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5270":{"this":{"__isSmartRef__":true,"id":3347}},"5271":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5272":{"varMapping":{"__isSmartRef__":true,"id":5273},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5273":{"this":{"__isSmartRef__":true,"id":3347}},"5274":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5275":{"varMapping":{"__isSmartRef__":true,"id":5276},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5276":{"this":{"__isSmartRef__":true,"id":3347}},"5277":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5278":{"varMapping":{"__isSmartRef__":true,"id":5279},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5279":{"this":{"__isSmartRef__":true,"id":3347}},"5280":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5281":{"varMapping":{"__isSmartRef__":true,"id":5282},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5282":{"this":{"__isSmartRef__":true,"id":3347}},"5283":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5284":{"varMapping":{"__isSmartRef__":true,"id":5285},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5285":{"this":{"__isSmartRef__":true,"id":3347}},"5286":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5287":{"varMapping":{"__isSmartRef__":true,"id":5288},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5288":{"this":{"__isSmartRef__":true,"id":3347}},"5289":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5290":{"varMapping":{"__isSmartRef__":true,"id":5291},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5291":{"this":{"__isSmartRef__":true,"id":3347}},"5292":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5293":{"varMapping":{"__isSmartRef__":true,"id":5294},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5294":{"this":{"__isSmartRef__":true,"id":3347},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5295}},"5295":{"$super":{"__isSmartRef__":true,"id":5296}},"5296":{"varMapping":{"__isSmartRef__":true,"id":5297},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5297":{"obj":{"__isSmartRef__":true,"id":3347},"name":"onMouseDown"},"5298":{},"5299":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5300":{"varMapping":{"__isSmartRef__":true,"id":5301},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5301":{"this":{"__isSmartRef__":true,"id":3347}},"5302":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5303":{"varMapping":{"__isSmartRef__":true,"id":5304},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5304":{"this":{"__isSmartRef__":true,"id":3347}},"5305":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5306":{"varMapping":{"__isSmartRef__":true,"id":5307},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5307":{"this":{"__isSmartRef__":true,"id":3347}},"5308":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5309":{"varMapping":{"__isSmartRef__":true,"id":5310},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5310":{"this":{"__isSmartRef__":true,"id":3347}},"5311":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5312":{"varMapping":{"__isSmartRef__":true,"id":5313},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5313":{"this":{"__isSmartRef__":true,"id":3347}},"5314":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5315":{"varMapping":{"__isSmartRef__":true,"id":5316},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5316":{"this":{"__isSmartRef__":true,"id":3347}},"5317":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5318":{"varMapping":{"__isSmartRef__":true,"id":5319},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5319":{"this":{"__isSmartRef__":true,"id":3347}},"5320":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5321":{"varMapping":{"__isSmartRef__":true,"id":5322},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5322":{"this":{"__isSmartRef__":true,"id":3347}},"5323":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5324":{"varMapping":{"__isSmartRef__":true,"id":5325},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5325":{"this":{"__isSmartRef__":true,"id":3347}},"5326":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5327":{"addBomb":{"__isSmartRef__":true,"id":5328},"clearFlag":{"__isSmartRef__":true,"id":5331},"countNeighborBombs":{"__isSmartRef__":true,"id":5334},"fixSubmorph":{"__isSmartRef__":true,"id":5337},"initAppearance":{"__isSmartRef__":true,"id":5340},"initMorphs":{"__isSmartRef__":true,"id":5343},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5346},"isClosed":{"__isSmartRef__":true,"id":5349},"neighborPoints":{"__isSmartRef__":true,"id":5352},"onMouseDown":{"__isSmartRef__":true,"id":5355},"restoreGameAppearance":{"__isSmartRef__":true,"id":5362},"reveal":{"__isSmartRef__":true,"id":5365},"setCoordinates":{"__isSmartRef__":true,"id":5368},"showBomb":{"__isSmartRef__":true,"id":5371},"showDebugState":{"__isSmartRef__":true,"id":5374},"showFlag":{"__isSmartRef__":true,"id":5377},"showState":{"__isSmartRef__":true,"id":5380},"copyImageMorph":{"__isSmartRef__":true,"id":5383},"prepareToPublish":{"__isSmartRef__":true,"id":5386}},"5328":{"varMapping":{"__isSmartRef__":true,"id":5329},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5329":{"this":{"__isSmartRef__":true,"id":3299}},"5330":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5331":{"varMapping":{"__isSmartRef__":true,"id":5332},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5332":{"this":{"__isSmartRef__":true,"id":3299}},"5333":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5334":{"varMapping":{"__isSmartRef__":true,"id":5335},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5335":{"this":{"__isSmartRef__":true,"id":3299}},"5336":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5337":{"varMapping":{"__isSmartRef__":true,"id":5338},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5338":{"this":{"__isSmartRef__":true,"id":3299}},"5339":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5340":{"varMapping":{"__isSmartRef__":true,"id":5341},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5341":{"this":{"__isSmartRef__":true,"id":3299}},"5342":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5343":{"varMapping":{"__isSmartRef__":true,"id":5344},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5344":{"this":{"__isSmartRef__":true,"id":3299}},"5345":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5346":{"varMapping":{"__isSmartRef__":true,"id":5347},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5347":{"this":{"__isSmartRef__":true,"id":3299}},"5348":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5349":{"varMapping":{"__isSmartRef__":true,"id":5350},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5350":{"this":{"__isSmartRef__":true,"id":3299}},"5351":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5352":{"varMapping":{"__isSmartRef__":true,"id":5353},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5353":{"this":{"__isSmartRef__":true,"id":3299}},"5354":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5355":{"varMapping":{"__isSmartRef__":true,"id":5356},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5356":{"this":{"__isSmartRef__":true,"id":3299},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5357}},"5357":{"$super":{"__isSmartRef__":true,"id":5358}},"5358":{"varMapping":{"__isSmartRef__":true,"id":5359},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5359":{"obj":{"__isSmartRef__":true,"id":3299},"name":"onMouseDown"},"5360":{},"5361":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5362":{"varMapping":{"__isSmartRef__":true,"id":5363},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5363":{"this":{"__isSmartRef__":true,"id":3299}},"5364":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5365":{"varMapping":{"__isSmartRef__":true,"id":5366},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5366":{"this":{"__isSmartRef__":true,"id":3299}},"5367":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5368":{"varMapping":{"__isSmartRef__":true,"id":5369},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5369":{"this":{"__isSmartRef__":true,"id":3299}},"5370":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5371":{"varMapping":{"__isSmartRef__":true,"id":5372},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5372":{"this":{"__isSmartRef__":true,"id":3299}},"5373":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5374":{"varMapping":{"__isSmartRef__":true,"id":5375},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5375":{"this":{"__isSmartRef__":true,"id":3299}},"5376":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5377":{"varMapping":{"__isSmartRef__":true,"id":5378},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5378":{"this":{"__isSmartRef__":true,"id":3299}},"5379":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5380":{"varMapping":{"__isSmartRef__":true,"id":5381},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5381":{"this":{"__isSmartRef__":true,"id":3299}},"5382":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5383":{"varMapping":{"__isSmartRef__":true,"id":5384},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5384":{"this":{"__isSmartRef__":true,"id":3299}},"5385":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5386":{"varMapping":{"__isSmartRef__":true,"id":5387},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5387":{"this":{"__isSmartRef__":true,"id":3299}},"5388":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5389":{"addBomb":{"__isSmartRef__":true,"id":5390},"clearFlag":{"__isSmartRef__":true,"id":5393},"countNeighborBombs":{"__isSmartRef__":true,"id":5396},"fixSubmorph":{"__isSmartRef__":true,"id":5399},"initAppearance":{"__isSmartRef__":true,"id":5402},"initMorphs":{"__isSmartRef__":true,"id":5405},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5408},"isClosed":{"__isSmartRef__":true,"id":5411},"neighborPoints":{"__isSmartRef__":true,"id":5414},"onMouseDown":{"__isSmartRef__":true,"id":5417},"restoreGameAppearance":{"__isSmartRef__":true,"id":5424},"reveal":{"__isSmartRef__":true,"id":5427},"setCoordinates":{"__isSmartRef__":true,"id":5430},"showBomb":{"__isSmartRef__":true,"id":5433},"showDebugState":{"__isSmartRef__":true,"id":5436},"showFlag":{"__isSmartRef__":true,"id":5439},"showState":{"__isSmartRef__":true,"id":5442},"copyImageMorph":{"__isSmartRef__":true,"id":5445},"prepareToPublish":{"__isSmartRef__":true,"id":5448}},"5390":{"varMapping":{"__isSmartRef__":true,"id":5391},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5391":{"this":{"__isSmartRef__":true,"id":3251}},"5392":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5393":{"varMapping":{"__isSmartRef__":true,"id":5394},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5394":{"this":{"__isSmartRef__":true,"id":3251}},"5395":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5396":{"varMapping":{"__isSmartRef__":true,"id":5397},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5397":{"this":{"__isSmartRef__":true,"id":3251}},"5398":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5399":{"varMapping":{"__isSmartRef__":true,"id":5400},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5400":{"this":{"__isSmartRef__":true,"id":3251}},"5401":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5402":{"varMapping":{"__isSmartRef__":true,"id":5403},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5403":{"this":{"__isSmartRef__":true,"id":3251}},"5404":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5405":{"varMapping":{"__isSmartRef__":true,"id":5406},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5406":{"this":{"__isSmartRef__":true,"id":3251}},"5407":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5408":{"varMapping":{"__isSmartRef__":true,"id":5409},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5409":{"this":{"__isSmartRef__":true,"id":3251}},"5410":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5411":{"varMapping":{"__isSmartRef__":true,"id":5412},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5412":{"this":{"__isSmartRef__":true,"id":3251}},"5413":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5414":{"varMapping":{"__isSmartRef__":true,"id":5415},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5415":{"this":{"__isSmartRef__":true,"id":3251}},"5416":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5417":{"varMapping":{"__isSmartRef__":true,"id":5418},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5418":{"this":{"__isSmartRef__":true,"id":3251},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5419}},"5419":{"$super":{"__isSmartRef__":true,"id":5420}},"5420":{"varMapping":{"__isSmartRef__":true,"id":5421},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5421":{"obj":{"__isSmartRef__":true,"id":3251},"name":"onMouseDown"},"5422":{},"5423":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5424":{"varMapping":{"__isSmartRef__":true,"id":5425},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5425":{"this":{"__isSmartRef__":true,"id":3251}},"5426":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5427":{"varMapping":{"__isSmartRef__":true,"id":5428},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5428":{"this":{"__isSmartRef__":true,"id":3251}},"5429":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5430":{"varMapping":{"__isSmartRef__":true,"id":5431},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5431":{"this":{"__isSmartRef__":true,"id":3251}},"5432":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5433":{"varMapping":{"__isSmartRef__":true,"id":5434},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5434":{"this":{"__isSmartRef__":true,"id":3251}},"5435":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5436":{"varMapping":{"__isSmartRef__":true,"id":5437},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5437":{"this":{"__isSmartRef__":true,"id":3251}},"5438":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5439":{"varMapping":{"__isSmartRef__":true,"id":5440},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5440":{"this":{"__isSmartRef__":true,"id":3251}},"5441":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5442":{"varMapping":{"__isSmartRef__":true,"id":5443},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5443":{"this":{"__isSmartRef__":true,"id":3251}},"5444":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5445":{"varMapping":{"__isSmartRef__":true,"id":5446},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5446":{"this":{"__isSmartRef__":true,"id":3251}},"5447":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5448":{"varMapping":{"__isSmartRef__":true,"id":5449},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5449":{"this":{"__isSmartRef__":true,"id":3251}},"5450":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5451":{"addBomb":{"__isSmartRef__":true,"id":5452},"clearFlag":{"__isSmartRef__":true,"id":5455},"countNeighborBombs":{"__isSmartRef__":true,"id":5458},"fixSubmorph":{"__isSmartRef__":true,"id":5461},"initAppearance":{"__isSmartRef__":true,"id":5464},"initMorphs":{"__isSmartRef__":true,"id":5467},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5470},"isClosed":{"__isSmartRef__":true,"id":5473},"neighborPoints":{"__isSmartRef__":true,"id":5476},"onMouseDown":{"__isSmartRef__":true,"id":5479},"restoreGameAppearance":{"__isSmartRef__":true,"id":5486},"reveal":{"__isSmartRef__":true,"id":5489},"setCoordinates":{"__isSmartRef__":true,"id":5492},"showBomb":{"__isSmartRef__":true,"id":5495},"showDebugState":{"__isSmartRef__":true,"id":5498},"showFlag":{"__isSmartRef__":true,"id":5501},"showState":{"__isSmartRef__":true,"id":5504},"copyImageMorph":{"__isSmartRef__":true,"id":5507},"prepareToPublish":{"__isSmartRef__":true,"id":5510}},"5452":{"varMapping":{"__isSmartRef__":true,"id":5453},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5453":{"this":{"__isSmartRef__":true,"id":3203}},"5454":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5455":{"varMapping":{"__isSmartRef__":true,"id":5456},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5456":{"this":{"__isSmartRef__":true,"id":3203}},"5457":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5458":{"varMapping":{"__isSmartRef__":true,"id":5459},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5459":{"this":{"__isSmartRef__":true,"id":3203}},"5460":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5461":{"varMapping":{"__isSmartRef__":true,"id":5462},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5462":{"this":{"__isSmartRef__":true,"id":3203}},"5463":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5464":{"varMapping":{"__isSmartRef__":true,"id":5465},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5465":{"this":{"__isSmartRef__":true,"id":3203}},"5466":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5467":{"varMapping":{"__isSmartRef__":true,"id":5468},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5468":{"this":{"__isSmartRef__":true,"id":3203}},"5469":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5470":{"varMapping":{"__isSmartRef__":true,"id":5471},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5471":{"this":{"__isSmartRef__":true,"id":3203}},"5472":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5473":{"varMapping":{"__isSmartRef__":true,"id":5474},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5474":{"this":{"__isSmartRef__":true,"id":3203}},"5475":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5476":{"varMapping":{"__isSmartRef__":true,"id":5477},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5477":{"this":{"__isSmartRef__":true,"id":3203}},"5478":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5479":{"varMapping":{"__isSmartRef__":true,"id":5480},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5480":{"this":{"__isSmartRef__":true,"id":3203},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5481}},"5481":{"$super":{"__isSmartRef__":true,"id":5482}},"5482":{"varMapping":{"__isSmartRef__":true,"id":5483},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5483":{"obj":{"__isSmartRef__":true,"id":3203},"name":"onMouseDown"},"5484":{},"5485":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5486":{"varMapping":{"__isSmartRef__":true,"id":5487},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5487":{"this":{"__isSmartRef__":true,"id":3203}},"5488":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5489":{"varMapping":{"__isSmartRef__":true,"id":5490},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5490":{"this":{"__isSmartRef__":true,"id":3203}},"5491":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5492":{"varMapping":{"__isSmartRef__":true,"id":5493},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5493":{"this":{"__isSmartRef__":true,"id":3203}},"5494":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5495":{"varMapping":{"__isSmartRef__":true,"id":5496},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5496":{"this":{"__isSmartRef__":true,"id":3203}},"5497":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5498":{"varMapping":{"__isSmartRef__":true,"id":5499},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5499":{"this":{"__isSmartRef__":true,"id":3203}},"5500":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5501":{"varMapping":{"__isSmartRef__":true,"id":5502},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5502":{"this":{"__isSmartRef__":true,"id":3203}},"5503":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5504":{"varMapping":{"__isSmartRef__":true,"id":5505},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5505":{"this":{"__isSmartRef__":true,"id":3203}},"5506":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5507":{"varMapping":{"__isSmartRef__":true,"id":5508},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5508":{"this":{"__isSmartRef__":true,"id":3203}},"5509":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5510":{"varMapping":{"__isSmartRef__":true,"id":5511},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5511":{"this":{"__isSmartRef__":true,"id":3203}},"5512":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5513":{"addBomb":{"__isSmartRef__":true,"id":5514},"clearFlag":{"__isSmartRef__":true,"id":5517},"countNeighborBombs":{"__isSmartRef__":true,"id":5520},"fixSubmorph":{"__isSmartRef__":true,"id":5523},"initAppearance":{"__isSmartRef__":true,"id":5526},"initMorphs":{"__isSmartRef__":true,"id":5529},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5532},"isClosed":{"__isSmartRef__":true,"id":5535},"neighborPoints":{"__isSmartRef__":true,"id":5538},"onMouseDown":{"__isSmartRef__":true,"id":5541},"restoreGameAppearance":{"__isSmartRef__":true,"id":5548},"reveal":{"__isSmartRef__":true,"id":5551},"setCoordinates":{"__isSmartRef__":true,"id":5554},"showBomb":{"__isSmartRef__":true,"id":5557},"showDebugState":{"__isSmartRef__":true,"id":5560},"showFlag":{"__isSmartRef__":true,"id":5563},"showState":{"__isSmartRef__":true,"id":5566},"copyImageMorph":{"__isSmartRef__":true,"id":5569},"prepareToPublish":{"__isSmartRef__":true,"id":5572}},"5514":{"varMapping":{"__isSmartRef__":true,"id":5515},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5515":{"this":{"__isSmartRef__":true,"id":3155}},"5516":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5517":{"varMapping":{"__isSmartRef__":true,"id":5518},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5518":{"this":{"__isSmartRef__":true,"id":3155}},"5519":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5520":{"varMapping":{"__isSmartRef__":true,"id":5521},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5521":{"this":{"__isSmartRef__":true,"id":3155}},"5522":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5523":{"varMapping":{"__isSmartRef__":true,"id":5524},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5524":{"this":{"__isSmartRef__":true,"id":3155}},"5525":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5526":{"varMapping":{"__isSmartRef__":true,"id":5527},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5527":{"this":{"__isSmartRef__":true,"id":3155}},"5528":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5529":{"varMapping":{"__isSmartRef__":true,"id":5530},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5530":{"this":{"__isSmartRef__":true,"id":3155}},"5531":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5532":{"varMapping":{"__isSmartRef__":true,"id":5533},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5533":{"this":{"__isSmartRef__":true,"id":3155}},"5534":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5535":{"varMapping":{"__isSmartRef__":true,"id":5536},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5536":{"this":{"__isSmartRef__":true,"id":3155}},"5537":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5538":{"varMapping":{"__isSmartRef__":true,"id":5539},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5539":{"this":{"__isSmartRef__":true,"id":3155}},"5540":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5541":{"varMapping":{"__isSmartRef__":true,"id":5542},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5542":{"this":{"__isSmartRef__":true,"id":3155},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5543}},"5543":{"$super":{"__isSmartRef__":true,"id":5544}},"5544":{"varMapping":{"__isSmartRef__":true,"id":5545},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5545":{"obj":{"__isSmartRef__":true,"id":3155},"name":"onMouseDown"},"5546":{},"5547":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5548":{"varMapping":{"__isSmartRef__":true,"id":5549},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5549":{"this":{"__isSmartRef__":true,"id":3155}},"5550":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5551":{"varMapping":{"__isSmartRef__":true,"id":5552},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5552":{"this":{"__isSmartRef__":true,"id":3155}},"5553":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5554":{"varMapping":{"__isSmartRef__":true,"id":5555},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5555":{"this":{"__isSmartRef__":true,"id":3155}},"5556":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5557":{"varMapping":{"__isSmartRef__":true,"id":5558},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5558":{"this":{"__isSmartRef__":true,"id":3155}},"5559":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5560":{"varMapping":{"__isSmartRef__":true,"id":5561},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5561":{"this":{"__isSmartRef__":true,"id":3155}},"5562":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5563":{"varMapping":{"__isSmartRef__":true,"id":5564},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5564":{"this":{"__isSmartRef__":true,"id":3155}},"5565":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5566":{"varMapping":{"__isSmartRef__":true,"id":5567},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5567":{"this":{"__isSmartRef__":true,"id":3155}},"5568":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5569":{"varMapping":{"__isSmartRef__":true,"id":5570},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5570":{"this":{"__isSmartRef__":true,"id":3155}},"5571":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5572":{"varMapping":{"__isSmartRef__":true,"id":5573},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5573":{"this":{"__isSmartRef__":true,"id":3155}},"5574":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5575":{"addBomb":{"__isSmartRef__":true,"id":5576},"clearFlag":{"__isSmartRef__":true,"id":5579},"countNeighborBombs":{"__isSmartRef__":true,"id":5582},"fixSubmorph":{"__isSmartRef__":true,"id":5585},"initAppearance":{"__isSmartRef__":true,"id":5588},"initMorphs":{"__isSmartRef__":true,"id":5591},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5594},"isClosed":{"__isSmartRef__":true,"id":5597},"neighborPoints":{"__isSmartRef__":true,"id":5600},"onMouseDown":{"__isSmartRef__":true,"id":5603},"restoreGameAppearance":{"__isSmartRef__":true,"id":5610},"reveal":{"__isSmartRef__":true,"id":5613},"setCoordinates":{"__isSmartRef__":true,"id":5616},"showBomb":{"__isSmartRef__":true,"id":5619},"showDebugState":{"__isSmartRef__":true,"id":5622},"showFlag":{"__isSmartRef__":true,"id":5625},"showState":{"__isSmartRef__":true,"id":5628},"copyImageMorph":{"__isSmartRef__":true,"id":5631},"prepareToPublish":{"__isSmartRef__":true,"id":5634}},"5576":{"varMapping":{"__isSmartRef__":true,"id":5577},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5577":{"this":{"__isSmartRef__":true,"id":3107}},"5578":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5579":{"varMapping":{"__isSmartRef__":true,"id":5580},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5580":{"this":{"__isSmartRef__":true,"id":3107}},"5581":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5582":{"varMapping":{"__isSmartRef__":true,"id":5583},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5583":{"this":{"__isSmartRef__":true,"id":3107}},"5584":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5585":{"varMapping":{"__isSmartRef__":true,"id":5586},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5586":{"this":{"__isSmartRef__":true,"id":3107}},"5587":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5588":{"varMapping":{"__isSmartRef__":true,"id":5589},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5589":{"this":{"__isSmartRef__":true,"id":3107}},"5590":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5591":{"varMapping":{"__isSmartRef__":true,"id":5592},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5592":{"this":{"__isSmartRef__":true,"id":3107}},"5593":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5594":{"varMapping":{"__isSmartRef__":true,"id":5595},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5595":{"this":{"__isSmartRef__":true,"id":3107}},"5596":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5597":{"varMapping":{"__isSmartRef__":true,"id":5598},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5598":{"this":{"__isSmartRef__":true,"id":3107}},"5599":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5600":{"varMapping":{"__isSmartRef__":true,"id":5601},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5601":{"this":{"__isSmartRef__":true,"id":3107}},"5602":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5603":{"varMapping":{"__isSmartRef__":true,"id":5604},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5604":{"this":{"__isSmartRef__":true,"id":3107},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5605}},"5605":{"$super":{"__isSmartRef__":true,"id":5606}},"5606":{"varMapping":{"__isSmartRef__":true,"id":5607},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5607":{"obj":{"__isSmartRef__":true,"id":3107},"name":"onMouseDown"},"5608":{},"5609":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5610":{"varMapping":{"__isSmartRef__":true,"id":5611},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5611":{"this":{"__isSmartRef__":true,"id":3107}},"5612":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5613":{"varMapping":{"__isSmartRef__":true,"id":5614},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5614":{"this":{"__isSmartRef__":true,"id":3107}},"5615":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5616":{"varMapping":{"__isSmartRef__":true,"id":5617},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5617":{"this":{"__isSmartRef__":true,"id":3107}},"5618":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5619":{"varMapping":{"__isSmartRef__":true,"id":5620},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5620":{"this":{"__isSmartRef__":true,"id":3107}},"5621":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5622":{"varMapping":{"__isSmartRef__":true,"id":5623},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5623":{"this":{"__isSmartRef__":true,"id":3107}},"5624":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5625":{"varMapping":{"__isSmartRef__":true,"id":5626},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5626":{"this":{"__isSmartRef__":true,"id":3107}},"5627":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5628":{"varMapping":{"__isSmartRef__":true,"id":5629},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5629":{"this":{"__isSmartRef__":true,"id":3107}},"5630":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5631":{"varMapping":{"__isSmartRef__":true,"id":5632},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5632":{"this":{"__isSmartRef__":true,"id":3107}},"5633":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5634":{"varMapping":{"__isSmartRef__":true,"id":5635},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5635":{"this":{"__isSmartRef__":true,"id":3107}},"5636":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5637":{"addBomb":{"__isSmartRef__":true,"id":5638},"clearFlag":{"__isSmartRef__":true,"id":5641},"countNeighborBombs":{"__isSmartRef__":true,"id":5644},"fixSubmorph":{"__isSmartRef__":true,"id":5647},"initAppearance":{"__isSmartRef__":true,"id":5650},"initMorphs":{"__isSmartRef__":true,"id":5653},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5656},"isClosed":{"__isSmartRef__":true,"id":5659},"neighborPoints":{"__isSmartRef__":true,"id":5662},"onMouseDown":{"__isSmartRef__":true,"id":5665},"restoreGameAppearance":{"__isSmartRef__":true,"id":5672},"reveal":{"__isSmartRef__":true,"id":5675},"setCoordinates":{"__isSmartRef__":true,"id":5678},"showBomb":{"__isSmartRef__":true,"id":5681},"showDebugState":{"__isSmartRef__":true,"id":5684},"showFlag":{"__isSmartRef__":true,"id":5687},"showState":{"__isSmartRef__":true,"id":5690},"copyImageMorph":{"__isSmartRef__":true,"id":5693},"prepareToPublish":{"__isSmartRef__":true,"id":5696}},"5638":{"varMapping":{"__isSmartRef__":true,"id":5639},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5639":{"this":{"__isSmartRef__":true,"id":3059}},"5640":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5641":{"varMapping":{"__isSmartRef__":true,"id":5642},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5642":{"this":{"__isSmartRef__":true,"id":3059}},"5643":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5644":{"varMapping":{"__isSmartRef__":true,"id":5645},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5645":{"this":{"__isSmartRef__":true,"id":3059}},"5646":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5647":{"varMapping":{"__isSmartRef__":true,"id":5648},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5648":{"this":{"__isSmartRef__":true,"id":3059}},"5649":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5650":{"varMapping":{"__isSmartRef__":true,"id":5651},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5651":{"this":{"__isSmartRef__":true,"id":3059}},"5652":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5653":{"varMapping":{"__isSmartRef__":true,"id":5654},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5654":{"this":{"__isSmartRef__":true,"id":3059}},"5655":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5656":{"varMapping":{"__isSmartRef__":true,"id":5657},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5657":{"this":{"__isSmartRef__":true,"id":3059}},"5658":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5659":{"varMapping":{"__isSmartRef__":true,"id":5660},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5660":{"this":{"__isSmartRef__":true,"id":3059}},"5661":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5662":{"varMapping":{"__isSmartRef__":true,"id":5663},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5663":{"this":{"__isSmartRef__":true,"id":3059}},"5664":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5665":{"varMapping":{"__isSmartRef__":true,"id":5666},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5666":{"this":{"__isSmartRef__":true,"id":3059},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5667}},"5667":{"$super":{"__isSmartRef__":true,"id":5668}},"5668":{"varMapping":{"__isSmartRef__":true,"id":5669},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5669":{"obj":{"__isSmartRef__":true,"id":3059},"name":"onMouseDown"},"5670":{},"5671":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5672":{"varMapping":{"__isSmartRef__":true,"id":5673},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5673":{"this":{"__isSmartRef__":true,"id":3059}},"5674":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5675":{"varMapping":{"__isSmartRef__":true,"id":5676},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5676":{"this":{"__isSmartRef__":true,"id":3059}},"5677":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5678":{"varMapping":{"__isSmartRef__":true,"id":5679},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5679":{"this":{"__isSmartRef__":true,"id":3059}},"5680":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5681":{"varMapping":{"__isSmartRef__":true,"id":5682},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5682":{"this":{"__isSmartRef__":true,"id":3059}},"5683":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5684":{"varMapping":{"__isSmartRef__":true,"id":5685},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5685":{"this":{"__isSmartRef__":true,"id":3059}},"5686":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5687":{"varMapping":{"__isSmartRef__":true,"id":5688},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5688":{"this":{"__isSmartRef__":true,"id":3059}},"5689":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5690":{"varMapping":{"__isSmartRef__":true,"id":5691},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5691":{"this":{"__isSmartRef__":true,"id":3059}},"5692":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5693":{"varMapping":{"__isSmartRef__":true,"id":5694},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5694":{"this":{"__isSmartRef__":true,"id":3059}},"5695":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5696":{"varMapping":{"__isSmartRef__":true,"id":5697},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5697":{"this":{"__isSmartRef__":true,"id":3059}},"5698":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5699":{"addBomb":{"__isSmartRef__":true,"id":5700},"clearFlag":{"__isSmartRef__":true,"id":5703},"countNeighborBombs":{"__isSmartRef__":true,"id":5706},"fixSubmorph":{"__isSmartRef__":true,"id":5709},"initAppearance":{"__isSmartRef__":true,"id":5712},"initMorphs":{"__isSmartRef__":true,"id":5715},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5718},"isClosed":{"__isSmartRef__":true,"id":5721},"neighborPoints":{"__isSmartRef__":true,"id":5724},"onMouseDown":{"__isSmartRef__":true,"id":5727},"restoreGameAppearance":{"__isSmartRef__":true,"id":5734},"reveal":{"__isSmartRef__":true,"id":5737},"setCoordinates":{"__isSmartRef__":true,"id":5740},"showBomb":{"__isSmartRef__":true,"id":5743},"showDebugState":{"__isSmartRef__":true,"id":5746},"showFlag":{"__isSmartRef__":true,"id":5749},"showState":{"__isSmartRef__":true,"id":5752},"copyImageMorph":{"__isSmartRef__":true,"id":5755},"prepareToPublish":{"__isSmartRef__":true,"id":5758}},"5700":{"varMapping":{"__isSmartRef__":true,"id":5701},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5701":{"this":{"__isSmartRef__":true,"id":3011}},"5702":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5703":{"varMapping":{"__isSmartRef__":true,"id":5704},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5704":{"this":{"__isSmartRef__":true,"id":3011}},"5705":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5706":{"varMapping":{"__isSmartRef__":true,"id":5707},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5707":{"this":{"__isSmartRef__":true,"id":3011}},"5708":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5709":{"varMapping":{"__isSmartRef__":true,"id":5710},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5710":{"this":{"__isSmartRef__":true,"id":3011}},"5711":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5712":{"varMapping":{"__isSmartRef__":true,"id":5713},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5713":{"this":{"__isSmartRef__":true,"id":3011}},"5714":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5715":{"varMapping":{"__isSmartRef__":true,"id":5716},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5716":{"this":{"__isSmartRef__":true,"id":3011}},"5717":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5718":{"varMapping":{"__isSmartRef__":true,"id":5719},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5719":{"this":{"__isSmartRef__":true,"id":3011}},"5720":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5721":{"varMapping":{"__isSmartRef__":true,"id":5722},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5722":{"this":{"__isSmartRef__":true,"id":3011}},"5723":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5724":{"varMapping":{"__isSmartRef__":true,"id":5725},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5725":{"this":{"__isSmartRef__":true,"id":3011}},"5726":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5727":{"varMapping":{"__isSmartRef__":true,"id":5728},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5728":{"this":{"__isSmartRef__":true,"id":3011},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5729}},"5729":{"$super":{"__isSmartRef__":true,"id":5730}},"5730":{"varMapping":{"__isSmartRef__":true,"id":5731},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5731":{"obj":{"__isSmartRef__":true,"id":3011},"name":"onMouseDown"},"5732":{},"5733":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5734":{"varMapping":{"__isSmartRef__":true,"id":5735},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5735":{"this":{"__isSmartRef__":true,"id":3011}},"5736":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5737":{"varMapping":{"__isSmartRef__":true,"id":5738},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5738":{"this":{"__isSmartRef__":true,"id":3011}},"5739":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5740":{"varMapping":{"__isSmartRef__":true,"id":5741},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5741":{"this":{"__isSmartRef__":true,"id":3011}},"5742":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5743":{"varMapping":{"__isSmartRef__":true,"id":5744},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5744":{"this":{"__isSmartRef__":true,"id":3011}},"5745":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5746":{"varMapping":{"__isSmartRef__":true,"id":5747},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5747":{"this":{"__isSmartRef__":true,"id":3011}},"5748":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5749":{"varMapping":{"__isSmartRef__":true,"id":5750},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5750":{"this":{"__isSmartRef__":true,"id":3011}},"5751":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5752":{"varMapping":{"__isSmartRef__":true,"id":5753},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5753":{"this":{"__isSmartRef__":true,"id":3011}},"5754":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5755":{"varMapping":{"__isSmartRef__":true,"id":5756},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5756":{"this":{"__isSmartRef__":true,"id":3011}},"5757":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5758":{"varMapping":{"__isSmartRef__":true,"id":5759},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5759":{"this":{"__isSmartRef__":true,"id":3011}},"5760":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5761":{"addBomb":{"__isSmartRef__":true,"id":5762},"clearFlag":{"__isSmartRef__":true,"id":5765},"countNeighborBombs":{"__isSmartRef__":true,"id":5768},"fixSubmorph":{"__isSmartRef__":true,"id":5771},"initAppearance":{"__isSmartRef__":true,"id":5774},"initMorphs":{"__isSmartRef__":true,"id":5777},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5780},"isClosed":{"__isSmartRef__":true,"id":5783},"neighborPoints":{"__isSmartRef__":true,"id":5786},"onMouseDown":{"__isSmartRef__":true,"id":5789},"restoreGameAppearance":{"__isSmartRef__":true,"id":5796},"reveal":{"__isSmartRef__":true,"id":5799},"setCoordinates":{"__isSmartRef__":true,"id":5802},"showBomb":{"__isSmartRef__":true,"id":5805},"showDebugState":{"__isSmartRef__":true,"id":5808},"showFlag":{"__isSmartRef__":true,"id":5811},"showState":{"__isSmartRef__":true,"id":5814},"copyImageMorph":{"__isSmartRef__":true,"id":5817},"prepareToPublish":{"__isSmartRef__":true,"id":5820}},"5762":{"varMapping":{"__isSmartRef__":true,"id":5763},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5763":{"this":{"__isSmartRef__":true,"id":2963}},"5764":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5765":{"varMapping":{"__isSmartRef__":true,"id":5766},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5766":{"this":{"__isSmartRef__":true,"id":2963}},"5767":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5768":{"varMapping":{"__isSmartRef__":true,"id":5769},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5769":{"this":{"__isSmartRef__":true,"id":2963}},"5770":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5771":{"varMapping":{"__isSmartRef__":true,"id":5772},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5772":{"this":{"__isSmartRef__":true,"id":2963}},"5773":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5774":{"varMapping":{"__isSmartRef__":true,"id":5775},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5775":{"this":{"__isSmartRef__":true,"id":2963}},"5776":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5777":{"varMapping":{"__isSmartRef__":true,"id":5778},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5778":{"this":{"__isSmartRef__":true,"id":2963}},"5779":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5780":{"varMapping":{"__isSmartRef__":true,"id":5781},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5781":{"this":{"__isSmartRef__":true,"id":2963}},"5782":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5783":{"varMapping":{"__isSmartRef__":true,"id":5784},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5784":{"this":{"__isSmartRef__":true,"id":2963}},"5785":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5786":{"varMapping":{"__isSmartRef__":true,"id":5787},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5787":{"this":{"__isSmartRef__":true,"id":2963}},"5788":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5789":{"varMapping":{"__isSmartRef__":true,"id":5790},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5790":{"this":{"__isSmartRef__":true,"id":2963},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5791}},"5791":{"$super":{"__isSmartRef__":true,"id":5792}},"5792":{"varMapping":{"__isSmartRef__":true,"id":5793},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5793":{"obj":{"__isSmartRef__":true,"id":2963},"name":"onMouseDown"},"5794":{},"5795":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5796":{"varMapping":{"__isSmartRef__":true,"id":5797},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5797":{"this":{"__isSmartRef__":true,"id":2963}},"5798":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5799":{"varMapping":{"__isSmartRef__":true,"id":5800},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5800":{"this":{"__isSmartRef__":true,"id":2963}},"5801":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5802":{"varMapping":{"__isSmartRef__":true,"id":5803},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5803":{"this":{"__isSmartRef__":true,"id":2963}},"5804":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5805":{"varMapping":{"__isSmartRef__":true,"id":5806},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5806":{"this":{"__isSmartRef__":true,"id":2963}},"5807":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5808":{"varMapping":{"__isSmartRef__":true,"id":5809},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5809":{"this":{"__isSmartRef__":true,"id":2963}},"5810":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5811":{"varMapping":{"__isSmartRef__":true,"id":5812},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5812":{"this":{"__isSmartRef__":true,"id":2963}},"5813":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5814":{"varMapping":{"__isSmartRef__":true,"id":5815},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5815":{"this":{"__isSmartRef__":true,"id":2963}},"5816":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5817":{"varMapping":{"__isSmartRef__":true,"id":5818},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5818":{"this":{"__isSmartRef__":true,"id":2963}},"5819":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5820":{"varMapping":{"__isSmartRef__":true,"id":5821},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5821":{"this":{"__isSmartRef__":true,"id":2963}},"5822":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5823":{"addBomb":{"__isSmartRef__":true,"id":5824},"clearFlag":{"__isSmartRef__":true,"id":5827},"countNeighborBombs":{"__isSmartRef__":true,"id":5830},"fixSubmorph":{"__isSmartRef__":true,"id":5833},"initAppearance":{"__isSmartRef__":true,"id":5836},"initMorphs":{"__isSmartRef__":true,"id":5839},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5842},"isClosed":{"__isSmartRef__":true,"id":5845},"neighborPoints":{"__isSmartRef__":true,"id":5848},"onMouseDown":{"__isSmartRef__":true,"id":5851},"restoreGameAppearance":{"__isSmartRef__":true,"id":5858},"reveal":{"__isSmartRef__":true,"id":5861},"setCoordinates":{"__isSmartRef__":true,"id":5864},"showBomb":{"__isSmartRef__":true,"id":5867},"showDebugState":{"__isSmartRef__":true,"id":5870},"showFlag":{"__isSmartRef__":true,"id":5873},"showState":{"__isSmartRef__":true,"id":5876},"copyImageMorph":{"__isSmartRef__":true,"id":5879},"prepareToPublish":{"__isSmartRef__":true,"id":5882}},"5824":{"varMapping":{"__isSmartRef__":true,"id":5825},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5825":{"this":{"__isSmartRef__":true,"id":2915}},"5826":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5827":{"varMapping":{"__isSmartRef__":true,"id":5828},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5828":{"this":{"__isSmartRef__":true,"id":2915}},"5829":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5830":{"varMapping":{"__isSmartRef__":true,"id":5831},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5831":{"this":{"__isSmartRef__":true,"id":2915}},"5832":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5833":{"varMapping":{"__isSmartRef__":true,"id":5834},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5834":{"this":{"__isSmartRef__":true,"id":2915}},"5835":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5836":{"varMapping":{"__isSmartRef__":true,"id":5837},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5837":{"this":{"__isSmartRef__":true,"id":2915}},"5838":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5839":{"varMapping":{"__isSmartRef__":true,"id":5840},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5840":{"this":{"__isSmartRef__":true,"id":2915}},"5841":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5842":{"varMapping":{"__isSmartRef__":true,"id":5843},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5843":{"this":{"__isSmartRef__":true,"id":2915}},"5844":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5845":{"varMapping":{"__isSmartRef__":true,"id":5846},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5846":{"this":{"__isSmartRef__":true,"id":2915}},"5847":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5848":{"varMapping":{"__isSmartRef__":true,"id":5849},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5849":{"this":{"__isSmartRef__":true,"id":2915}},"5850":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5851":{"varMapping":{"__isSmartRef__":true,"id":5852},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5852":{"this":{"__isSmartRef__":true,"id":2915},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5853}},"5853":{"$super":{"__isSmartRef__":true,"id":5854}},"5854":{"varMapping":{"__isSmartRef__":true,"id":5855},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5855":{"obj":{"__isSmartRef__":true,"id":2915},"name":"onMouseDown"},"5856":{},"5857":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5858":{"varMapping":{"__isSmartRef__":true,"id":5859},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5859":{"this":{"__isSmartRef__":true,"id":2915}},"5860":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5861":{"varMapping":{"__isSmartRef__":true,"id":5862},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5862":{"this":{"__isSmartRef__":true,"id":2915}},"5863":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5864":{"varMapping":{"__isSmartRef__":true,"id":5865},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5865":{"this":{"__isSmartRef__":true,"id":2915}},"5866":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5867":{"varMapping":{"__isSmartRef__":true,"id":5868},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5868":{"this":{"__isSmartRef__":true,"id":2915}},"5869":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5870":{"varMapping":{"__isSmartRef__":true,"id":5871},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5871":{"this":{"__isSmartRef__":true,"id":2915}},"5872":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5873":{"varMapping":{"__isSmartRef__":true,"id":5874},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5874":{"this":{"__isSmartRef__":true,"id":2915}},"5875":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5876":{"varMapping":{"__isSmartRef__":true,"id":5877},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5877":{"this":{"__isSmartRef__":true,"id":2915}},"5878":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5879":{"varMapping":{"__isSmartRef__":true,"id":5880},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5880":{"this":{"__isSmartRef__":true,"id":2915}},"5881":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5882":{"varMapping":{"__isSmartRef__":true,"id":5883},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5883":{"this":{"__isSmartRef__":true,"id":2915}},"5884":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5885":{"addBomb":{"__isSmartRef__":true,"id":5886},"clearFlag":{"__isSmartRef__":true,"id":5889},"countNeighborBombs":{"__isSmartRef__":true,"id":5892},"fixSubmorph":{"__isSmartRef__":true,"id":5895},"initAppearance":{"__isSmartRef__":true,"id":5898},"initMorphs":{"__isSmartRef__":true,"id":5901},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5904},"isClosed":{"__isSmartRef__":true,"id":5907},"neighborPoints":{"__isSmartRef__":true,"id":5910},"onMouseDown":{"__isSmartRef__":true,"id":5913},"restoreGameAppearance":{"__isSmartRef__":true,"id":5920},"reveal":{"__isSmartRef__":true,"id":5923},"setCoordinates":{"__isSmartRef__":true,"id":5926},"showBomb":{"__isSmartRef__":true,"id":5929},"showDebugState":{"__isSmartRef__":true,"id":5932},"showFlag":{"__isSmartRef__":true,"id":5935},"showState":{"__isSmartRef__":true,"id":5938},"copyImageMorph":{"__isSmartRef__":true,"id":5941},"prepareToPublish":{"__isSmartRef__":true,"id":5944}},"5886":{"varMapping":{"__isSmartRef__":true,"id":5887},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5887":{"this":{"__isSmartRef__":true,"id":2867}},"5888":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5889":{"varMapping":{"__isSmartRef__":true,"id":5890},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5890":{"this":{"__isSmartRef__":true,"id":2867}},"5891":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5892":{"varMapping":{"__isSmartRef__":true,"id":5893},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5893":{"this":{"__isSmartRef__":true,"id":2867}},"5894":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5895":{"varMapping":{"__isSmartRef__":true,"id":5896},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5896":{"this":{"__isSmartRef__":true,"id":2867}},"5897":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5898":{"varMapping":{"__isSmartRef__":true,"id":5899},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5899":{"this":{"__isSmartRef__":true,"id":2867}},"5900":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5901":{"varMapping":{"__isSmartRef__":true,"id":5902},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5902":{"this":{"__isSmartRef__":true,"id":2867}},"5903":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5904":{"varMapping":{"__isSmartRef__":true,"id":5905},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5905":{"this":{"__isSmartRef__":true,"id":2867}},"5906":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5907":{"varMapping":{"__isSmartRef__":true,"id":5908},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5908":{"this":{"__isSmartRef__":true,"id":2867}},"5909":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5910":{"varMapping":{"__isSmartRef__":true,"id":5911},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5911":{"this":{"__isSmartRef__":true,"id":2867}},"5912":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5913":{"varMapping":{"__isSmartRef__":true,"id":5914},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5914":{"this":{"__isSmartRef__":true,"id":2867},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5915}},"5915":{"$super":{"__isSmartRef__":true,"id":5916}},"5916":{"varMapping":{"__isSmartRef__":true,"id":5917},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5917":{"obj":{"__isSmartRef__":true,"id":2867},"name":"onMouseDown"},"5918":{},"5919":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5920":{"varMapping":{"__isSmartRef__":true,"id":5921},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5921":{"this":{"__isSmartRef__":true,"id":2867}},"5922":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5923":{"varMapping":{"__isSmartRef__":true,"id":5924},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5924":{"this":{"__isSmartRef__":true,"id":2867}},"5925":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5926":{"varMapping":{"__isSmartRef__":true,"id":5927},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5927":{"this":{"__isSmartRef__":true,"id":2867}},"5928":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5929":{"varMapping":{"__isSmartRef__":true,"id":5930},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5930":{"this":{"__isSmartRef__":true,"id":2867}},"5931":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5932":{"varMapping":{"__isSmartRef__":true,"id":5933},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5933":{"this":{"__isSmartRef__":true,"id":2867}},"5934":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5935":{"varMapping":{"__isSmartRef__":true,"id":5936},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5936":{"this":{"__isSmartRef__":true,"id":2867}},"5937":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5938":{"varMapping":{"__isSmartRef__":true,"id":5939},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5939":{"this":{"__isSmartRef__":true,"id":2867}},"5940":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5941":{"varMapping":{"__isSmartRef__":true,"id":5942},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":5943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5942":{"this":{"__isSmartRef__":true,"id":2867}},"5943":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5944":{"varMapping":{"__isSmartRef__":true,"id":5945},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5945":{"this":{"__isSmartRef__":true,"id":2867}},"5946":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5947":{"addBomb":{"__isSmartRef__":true,"id":5948},"clearFlag":{"__isSmartRef__":true,"id":5951},"countNeighborBombs":{"__isSmartRef__":true,"id":5954},"fixSubmorph":{"__isSmartRef__":true,"id":5957},"initAppearance":{"__isSmartRef__":true,"id":5960},"initMorphs":{"__isSmartRef__":true,"id":5963},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5966},"isClosed":{"__isSmartRef__":true,"id":5969},"neighborPoints":{"__isSmartRef__":true,"id":5972},"onMouseDown":{"__isSmartRef__":true,"id":5975},"restoreGameAppearance":{"__isSmartRef__":true,"id":5982},"reveal":{"__isSmartRef__":true,"id":5985},"setCoordinates":{"__isSmartRef__":true,"id":5988},"showBomb":{"__isSmartRef__":true,"id":5991},"showDebugState":{"__isSmartRef__":true,"id":5994},"showFlag":{"__isSmartRef__":true,"id":5997},"showState":{"__isSmartRef__":true,"id":6000},"copyImageMorph":{"__isSmartRef__":true,"id":6003},"prepareToPublish":{"__isSmartRef__":true,"id":6006}},"5948":{"varMapping":{"__isSmartRef__":true,"id":5949},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5949":{"this":{"__isSmartRef__":true,"id":2819}},"5950":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5951":{"varMapping":{"__isSmartRef__":true,"id":5952},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5952":{"this":{"__isSmartRef__":true,"id":2819}},"5953":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5954":{"varMapping":{"__isSmartRef__":true,"id":5955},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5955":{"this":{"__isSmartRef__":true,"id":2819}},"5956":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5957":{"varMapping":{"__isSmartRef__":true,"id":5958},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5958":{"this":{"__isSmartRef__":true,"id":2819}},"5959":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5960":{"varMapping":{"__isSmartRef__":true,"id":5961},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5961":{"this":{"__isSmartRef__":true,"id":2819}},"5962":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5963":{"varMapping":{"__isSmartRef__":true,"id":5964},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5964":{"this":{"__isSmartRef__":true,"id":2819}},"5965":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5966":{"varMapping":{"__isSmartRef__":true,"id":5967},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5967":{"this":{"__isSmartRef__":true,"id":2819}},"5968":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5969":{"varMapping":{"__isSmartRef__":true,"id":5970},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5970":{"this":{"__isSmartRef__":true,"id":2819}},"5971":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5972":{"varMapping":{"__isSmartRef__":true,"id":5973},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":5974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5973":{"this":{"__isSmartRef__":true,"id":2819}},"5974":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5975":{"varMapping":{"__isSmartRef__":true,"id":5976},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5976":{"this":{"__isSmartRef__":true,"id":2819},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5977}},"5977":{"$super":{"__isSmartRef__":true,"id":5978}},"5978":{"varMapping":{"__isSmartRef__":true,"id":5979},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":5980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5979":{"obj":{"__isSmartRef__":true,"id":2819},"name":"onMouseDown"},"5980":{},"5981":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5982":{"varMapping":{"__isSmartRef__":true,"id":5983},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5983":{"this":{"__isSmartRef__":true,"id":2819}},"5984":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5985":{"varMapping":{"__isSmartRef__":true,"id":5986},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":5987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5986":{"this":{"__isSmartRef__":true,"id":2819}},"5987":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5988":{"varMapping":{"__isSmartRef__":true,"id":5989},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5989":{"this":{"__isSmartRef__":true,"id":2819}},"5990":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5991":{"varMapping":{"__isSmartRef__":true,"id":5992},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5992":{"this":{"__isSmartRef__":true,"id":2819}},"5993":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5994":{"varMapping":{"__isSmartRef__":true,"id":5995},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5995":{"this":{"__isSmartRef__":true,"id":2819}},"5996":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5997":{"varMapping":{"__isSmartRef__":true,"id":5998},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":5999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5998":{"this":{"__isSmartRef__":true,"id":2819}},"5999":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6000":{"varMapping":{"__isSmartRef__":true,"id":6001},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6001":{"this":{"__isSmartRef__":true,"id":2819}},"6002":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6003":{"varMapping":{"__isSmartRef__":true,"id":6004},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6004":{"this":{"__isSmartRef__":true,"id":2819}},"6005":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6006":{"varMapping":{"__isSmartRef__":true,"id":6007},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6007":{"this":{"__isSmartRef__":true,"id":2819}},"6008":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6009":{"addBomb":{"__isSmartRef__":true,"id":6010},"clearFlag":{"__isSmartRef__":true,"id":6013},"countNeighborBombs":{"__isSmartRef__":true,"id":6016},"fixSubmorph":{"__isSmartRef__":true,"id":6019},"initAppearance":{"__isSmartRef__":true,"id":6022},"initMorphs":{"__isSmartRef__":true,"id":6025},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6028},"isClosed":{"__isSmartRef__":true,"id":6031},"neighborPoints":{"__isSmartRef__":true,"id":6034},"onMouseDown":{"__isSmartRef__":true,"id":6037},"restoreGameAppearance":{"__isSmartRef__":true,"id":6044},"reveal":{"__isSmartRef__":true,"id":6047},"setCoordinates":{"__isSmartRef__":true,"id":6050},"showBomb":{"__isSmartRef__":true,"id":6053},"showDebugState":{"__isSmartRef__":true,"id":6056},"showFlag":{"__isSmartRef__":true,"id":6059},"showState":{"__isSmartRef__":true,"id":6062},"copyImageMorph":{"__isSmartRef__":true,"id":6065},"prepareToPublish":{"__isSmartRef__":true,"id":6068}},"6010":{"varMapping":{"__isSmartRef__":true,"id":6011},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6011":{"this":{"__isSmartRef__":true,"id":2771}},"6012":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6013":{"varMapping":{"__isSmartRef__":true,"id":6014},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6014":{"this":{"__isSmartRef__":true,"id":2771}},"6015":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6016":{"varMapping":{"__isSmartRef__":true,"id":6017},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6017":{"this":{"__isSmartRef__":true,"id":2771}},"6018":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6019":{"varMapping":{"__isSmartRef__":true,"id":6020},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6020":{"this":{"__isSmartRef__":true,"id":2771}},"6021":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6022":{"varMapping":{"__isSmartRef__":true,"id":6023},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6023":{"this":{"__isSmartRef__":true,"id":2771}},"6024":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6025":{"varMapping":{"__isSmartRef__":true,"id":6026},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6026":{"this":{"__isSmartRef__":true,"id":2771}},"6027":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6028":{"varMapping":{"__isSmartRef__":true,"id":6029},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6029":{"this":{"__isSmartRef__":true,"id":2771}},"6030":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6031":{"varMapping":{"__isSmartRef__":true,"id":6032},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6032":{"this":{"__isSmartRef__":true,"id":2771}},"6033":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6034":{"varMapping":{"__isSmartRef__":true,"id":6035},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6035":{"this":{"__isSmartRef__":true,"id":2771}},"6036":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6037":{"varMapping":{"__isSmartRef__":true,"id":6038},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6038":{"this":{"__isSmartRef__":true,"id":2771},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6039}},"6039":{"$super":{"__isSmartRef__":true,"id":6040}},"6040":{"varMapping":{"__isSmartRef__":true,"id":6041},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6041":{"obj":{"__isSmartRef__":true,"id":2771},"name":"onMouseDown"},"6042":{},"6043":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6044":{"varMapping":{"__isSmartRef__":true,"id":6045},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6045":{"this":{"__isSmartRef__":true,"id":2771}},"6046":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6047":{"varMapping":{"__isSmartRef__":true,"id":6048},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6048":{"this":{"__isSmartRef__":true,"id":2771}},"6049":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6050":{"varMapping":{"__isSmartRef__":true,"id":6051},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6051":{"this":{"__isSmartRef__":true,"id":2771}},"6052":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6053":{"varMapping":{"__isSmartRef__":true,"id":6054},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6054":{"this":{"__isSmartRef__":true,"id":2771}},"6055":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6056":{"varMapping":{"__isSmartRef__":true,"id":6057},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6057":{"this":{"__isSmartRef__":true,"id":2771}},"6058":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6059":{"varMapping":{"__isSmartRef__":true,"id":6060},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6060":{"this":{"__isSmartRef__":true,"id":2771}},"6061":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6062":{"varMapping":{"__isSmartRef__":true,"id":6063},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6063":{"this":{"__isSmartRef__":true,"id":2771}},"6064":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6065":{"varMapping":{"__isSmartRef__":true,"id":6066},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6066":{"this":{"__isSmartRef__":true,"id":2771}},"6067":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6068":{"varMapping":{"__isSmartRef__":true,"id":6069},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6069":{"this":{"__isSmartRef__":true,"id":2771}},"6070":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6071":{"addBomb":{"__isSmartRef__":true,"id":6072},"clearFlag":{"__isSmartRef__":true,"id":6075},"countNeighborBombs":{"__isSmartRef__":true,"id":6078},"fixSubmorph":{"__isSmartRef__":true,"id":6081},"initAppearance":{"__isSmartRef__":true,"id":6084},"initMorphs":{"__isSmartRef__":true,"id":6087},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6090},"isClosed":{"__isSmartRef__":true,"id":6093},"neighborPoints":{"__isSmartRef__":true,"id":6096},"onMouseDown":{"__isSmartRef__":true,"id":6099},"restoreGameAppearance":{"__isSmartRef__":true,"id":6106},"reveal":{"__isSmartRef__":true,"id":6109},"setCoordinates":{"__isSmartRef__":true,"id":6112},"showBomb":{"__isSmartRef__":true,"id":6115},"showDebugState":{"__isSmartRef__":true,"id":6118},"showFlag":{"__isSmartRef__":true,"id":6121},"showState":{"__isSmartRef__":true,"id":6124},"copyImageMorph":{"__isSmartRef__":true,"id":6127},"prepareToPublish":{"__isSmartRef__":true,"id":6130}},"6072":{"varMapping":{"__isSmartRef__":true,"id":6073},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6073":{"this":{"__isSmartRef__":true,"id":2723}},"6074":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6075":{"varMapping":{"__isSmartRef__":true,"id":6076},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6076":{"this":{"__isSmartRef__":true,"id":2723}},"6077":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6078":{"varMapping":{"__isSmartRef__":true,"id":6079},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6079":{"this":{"__isSmartRef__":true,"id":2723}},"6080":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6081":{"varMapping":{"__isSmartRef__":true,"id":6082},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6082":{"this":{"__isSmartRef__":true,"id":2723}},"6083":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6084":{"varMapping":{"__isSmartRef__":true,"id":6085},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6085":{"this":{"__isSmartRef__":true,"id":2723}},"6086":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6087":{"varMapping":{"__isSmartRef__":true,"id":6088},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6088":{"this":{"__isSmartRef__":true,"id":2723}},"6089":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6090":{"varMapping":{"__isSmartRef__":true,"id":6091},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6091":{"this":{"__isSmartRef__":true,"id":2723}},"6092":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6093":{"varMapping":{"__isSmartRef__":true,"id":6094},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6094":{"this":{"__isSmartRef__":true,"id":2723}},"6095":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6096":{"varMapping":{"__isSmartRef__":true,"id":6097},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6097":{"this":{"__isSmartRef__":true,"id":2723}},"6098":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6099":{"varMapping":{"__isSmartRef__":true,"id":6100},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6100":{"this":{"__isSmartRef__":true,"id":2723},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6101}},"6101":{"$super":{"__isSmartRef__":true,"id":6102}},"6102":{"varMapping":{"__isSmartRef__":true,"id":6103},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6103":{"obj":{"__isSmartRef__":true,"id":2723},"name":"onMouseDown"},"6104":{},"6105":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6106":{"varMapping":{"__isSmartRef__":true,"id":6107},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6107":{"this":{"__isSmartRef__":true,"id":2723}},"6108":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6109":{"varMapping":{"__isSmartRef__":true,"id":6110},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6110":{"this":{"__isSmartRef__":true,"id":2723}},"6111":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6112":{"varMapping":{"__isSmartRef__":true,"id":6113},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6113":{"this":{"__isSmartRef__":true,"id":2723}},"6114":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6115":{"varMapping":{"__isSmartRef__":true,"id":6116},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6116":{"this":{"__isSmartRef__":true,"id":2723}},"6117":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6118":{"varMapping":{"__isSmartRef__":true,"id":6119},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6119":{"this":{"__isSmartRef__":true,"id":2723}},"6120":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6121":{"varMapping":{"__isSmartRef__":true,"id":6122},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6122":{"this":{"__isSmartRef__":true,"id":2723}},"6123":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6124":{"varMapping":{"__isSmartRef__":true,"id":6125},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6125":{"this":{"__isSmartRef__":true,"id":2723}},"6126":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6127":{"varMapping":{"__isSmartRef__":true,"id":6128},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6128":{"this":{"__isSmartRef__":true,"id":2723}},"6129":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6130":{"varMapping":{"__isSmartRef__":true,"id":6131},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6131":{"this":{"__isSmartRef__":true,"id":2723}},"6132":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6133":{"addBomb":{"__isSmartRef__":true,"id":6134},"clearFlag":{"__isSmartRef__":true,"id":6137},"countNeighborBombs":{"__isSmartRef__":true,"id":6140},"fixSubmorph":{"__isSmartRef__":true,"id":6143},"initAppearance":{"__isSmartRef__":true,"id":6146},"initMorphs":{"__isSmartRef__":true,"id":6149},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6152},"isClosed":{"__isSmartRef__":true,"id":6155},"neighborPoints":{"__isSmartRef__":true,"id":6158},"onMouseDown":{"__isSmartRef__":true,"id":6161},"restoreGameAppearance":{"__isSmartRef__":true,"id":6168},"reveal":{"__isSmartRef__":true,"id":6171},"setCoordinates":{"__isSmartRef__":true,"id":6174},"showBomb":{"__isSmartRef__":true,"id":6177},"showDebugState":{"__isSmartRef__":true,"id":6180},"showFlag":{"__isSmartRef__":true,"id":6183},"showState":{"__isSmartRef__":true,"id":6186},"copyImageMorph":{"__isSmartRef__":true,"id":6189},"prepareToPublish":{"__isSmartRef__":true,"id":6192}},"6134":{"varMapping":{"__isSmartRef__":true,"id":6135},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6135":{"this":{"__isSmartRef__":true,"id":2675}},"6136":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6137":{"varMapping":{"__isSmartRef__":true,"id":6138},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6138":{"this":{"__isSmartRef__":true,"id":2675}},"6139":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6140":{"varMapping":{"__isSmartRef__":true,"id":6141},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6141":{"this":{"__isSmartRef__":true,"id":2675}},"6142":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6143":{"varMapping":{"__isSmartRef__":true,"id":6144},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6144":{"this":{"__isSmartRef__":true,"id":2675}},"6145":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6146":{"varMapping":{"__isSmartRef__":true,"id":6147},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6147":{"this":{"__isSmartRef__":true,"id":2675}},"6148":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6149":{"varMapping":{"__isSmartRef__":true,"id":6150},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6150":{"this":{"__isSmartRef__":true,"id":2675}},"6151":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6152":{"varMapping":{"__isSmartRef__":true,"id":6153},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6153":{"this":{"__isSmartRef__":true,"id":2675}},"6154":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6155":{"varMapping":{"__isSmartRef__":true,"id":6156},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6156":{"this":{"__isSmartRef__":true,"id":2675}},"6157":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6158":{"varMapping":{"__isSmartRef__":true,"id":6159},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6159":{"this":{"__isSmartRef__":true,"id":2675}},"6160":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6161":{"varMapping":{"__isSmartRef__":true,"id":6162},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6162":{"this":{"__isSmartRef__":true,"id":2675},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6163}},"6163":{"$super":{"__isSmartRef__":true,"id":6164}},"6164":{"varMapping":{"__isSmartRef__":true,"id":6165},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6165":{"obj":{"__isSmartRef__":true,"id":2675},"name":"onMouseDown"},"6166":{},"6167":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6168":{"varMapping":{"__isSmartRef__":true,"id":6169},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6169":{"this":{"__isSmartRef__":true,"id":2675}},"6170":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6171":{"varMapping":{"__isSmartRef__":true,"id":6172},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6172":{"this":{"__isSmartRef__":true,"id":2675}},"6173":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6174":{"varMapping":{"__isSmartRef__":true,"id":6175},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6175":{"this":{"__isSmartRef__":true,"id":2675}},"6176":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6177":{"varMapping":{"__isSmartRef__":true,"id":6178},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6178":{"this":{"__isSmartRef__":true,"id":2675}},"6179":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6180":{"varMapping":{"__isSmartRef__":true,"id":6181},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6181":{"this":{"__isSmartRef__":true,"id":2675}},"6182":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6183":{"varMapping":{"__isSmartRef__":true,"id":6184},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6184":{"this":{"__isSmartRef__":true,"id":2675}},"6185":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6186":{"varMapping":{"__isSmartRef__":true,"id":6187},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6187":{"this":{"__isSmartRef__":true,"id":2675}},"6188":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6189":{"varMapping":{"__isSmartRef__":true,"id":6190},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6190":{"this":{"__isSmartRef__":true,"id":2675}},"6191":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6192":{"varMapping":{"__isSmartRef__":true,"id":6193},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6193":{"this":{"__isSmartRef__":true,"id":2675}},"6194":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6195":{"addBomb":{"__isSmartRef__":true,"id":6196},"clearFlag":{"__isSmartRef__":true,"id":6199},"countNeighborBombs":{"__isSmartRef__":true,"id":6202},"fixSubmorph":{"__isSmartRef__":true,"id":6205},"initAppearance":{"__isSmartRef__":true,"id":6208},"initMorphs":{"__isSmartRef__":true,"id":6211},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6214},"isClosed":{"__isSmartRef__":true,"id":6217},"neighborPoints":{"__isSmartRef__":true,"id":6220},"onMouseDown":{"__isSmartRef__":true,"id":6223},"restoreGameAppearance":{"__isSmartRef__":true,"id":6230},"reveal":{"__isSmartRef__":true,"id":6233},"setCoordinates":{"__isSmartRef__":true,"id":6236},"showBomb":{"__isSmartRef__":true,"id":6239},"showDebugState":{"__isSmartRef__":true,"id":6242},"showFlag":{"__isSmartRef__":true,"id":6245},"showState":{"__isSmartRef__":true,"id":6248},"copyImageMorph":{"__isSmartRef__":true,"id":6251},"prepareToPublish":{"__isSmartRef__":true,"id":6254}},"6196":{"varMapping":{"__isSmartRef__":true,"id":6197},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6197":{"this":{"__isSmartRef__":true,"id":2627}},"6198":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6199":{"varMapping":{"__isSmartRef__":true,"id":6200},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6200":{"this":{"__isSmartRef__":true,"id":2627}},"6201":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6202":{"varMapping":{"__isSmartRef__":true,"id":6203},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6203":{"this":{"__isSmartRef__":true,"id":2627}},"6204":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6205":{"varMapping":{"__isSmartRef__":true,"id":6206},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6206":{"this":{"__isSmartRef__":true,"id":2627}},"6207":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6208":{"varMapping":{"__isSmartRef__":true,"id":6209},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6209":{"this":{"__isSmartRef__":true,"id":2627}},"6210":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6211":{"varMapping":{"__isSmartRef__":true,"id":6212},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6212":{"this":{"__isSmartRef__":true,"id":2627}},"6213":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6214":{"varMapping":{"__isSmartRef__":true,"id":6215},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6215":{"this":{"__isSmartRef__":true,"id":2627}},"6216":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6217":{"varMapping":{"__isSmartRef__":true,"id":6218},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6218":{"this":{"__isSmartRef__":true,"id":2627}},"6219":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6220":{"varMapping":{"__isSmartRef__":true,"id":6221},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6221":{"this":{"__isSmartRef__":true,"id":2627}},"6222":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6223":{"varMapping":{"__isSmartRef__":true,"id":6224},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6224":{"this":{"__isSmartRef__":true,"id":2627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6225}},"6225":{"$super":{"__isSmartRef__":true,"id":6226}},"6226":{"varMapping":{"__isSmartRef__":true,"id":6227},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6227":{"obj":{"__isSmartRef__":true,"id":2627},"name":"onMouseDown"},"6228":{},"6229":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6230":{"varMapping":{"__isSmartRef__":true,"id":6231},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6231":{"this":{"__isSmartRef__":true,"id":2627}},"6232":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6233":{"varMapping":{"__isSmartRef__":true,"id":6234},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6234":{"this":{"__isSmartRef__":true,"id":2627}},"6235":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6236":{"varMapping":{"__isSmartRef__":true,"id":6237},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6237":{"this":{"__isSmartRef__":true,"id":2627}},"6238":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6239":{"varMapping":{"__isSmartRef__":true,"id":6240},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6240":{"this":{"__isSmartRef__":true,"id":2627}},"6241":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6242":{"varMapping":{"__isSmartRef__":true,"id":6243},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6243":{"this":{"__isSmartRef__":true,"id":2627}},"6244":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6245":{"varMapping":{"__isSmartRef__":true,"id":6246},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6246":{"this":{"__isSmartRef__":true,"id":2627}},"6247":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6248":{"varMapping":{"__isSmartRef__":true,"id":6249},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6249":{"this":{"__isSmartRef__":true,"id":2627}},"6250":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6251":{"varMapping":{"__isSmartRef__":true,"id":6252},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6252":{"this":{"__isSmartRef__":true,"id":2627}},"6253":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6254":{"varMapping":{"__isSmartRef__":true,"id":6255},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6255":{"this":{"__isSmartRef__":true,"id":2627}},"6256":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6257":{"addBomb":{"__isSmartRef__":true,"id":6258},"clearFlag":{"__isSmartRef__":true,"id":6261},"countNeighborBombs":{"__isSmartRef__":true,"id":6264},"fixSubmorph":{"__isSmartRef__":true,"id":6267},"initAppearance":{"__isSmartRef__":true,"id":6270},"initMorphs":{"__isSmartRef__":true,"id":6273},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6276},"isClosed":{"__isSmartRef__":true,"id":6279},"neighborPoints":{"__isSmartRef__":true,"id":6282},"onMouseDown":{"__isSmartRef__":true,"id":6285},"restoreGameAppearance":{"__isSmartRef__":true,"id":6292},"reveal":{"__isSmartRef__":true,"id":6295},"setCoordinates":{"__isSmartRef__":true,"id":6298},"showBomb":{"__isSmartRef__":true,"id":6301},"showDebugState":{"__isSmartRef__":true,"id":6304},"showFlag":{"__isSmartRef__":true,"id":6307},"showState":{"__isSmartRef__":true,"id":6310},"copyImageMorph":{"__isSmartRef__":true,"id":6313},"prepareToPublish":{"__isSmartRef__":true,"id":6316}},"6258":{"varMapping":{"__isSmartRef__":true,"id":6259},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6259":{"this":{"__isSmartRef__":true,"id":2579}},"6260":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6261":{"varMapping":{"__isSmartRef__":true,"id":6262},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6262":{"this":{"__isSmartRef__":true,"id":2579}},"6263":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6264":{"varMapping":{"__isSmartRef__":true,"id":6265},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6265":{"this":{"__isSmartRef__":true,"id":2579}},"6266":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6267":{"varMapping":{"__isSmartRef__":true,"id":6268},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6268":{"this":{"__isSmartRef__":true,"id":2579}},"6269":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6270":{"varMapping":{"__isSmartRef__":true,"id":6271},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6271":{"this":{"__isSmartRef__":true,"id":2579}},"6272":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6273":{"varMapping":{"__isSmartRef__":true,"id":6274},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6274":{"this":{"__isSmartRef__":true,"id":2579}},"6275":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6276":{"varMapping":{"__isSmartRef__":true,"id":6277},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6277":{"this":{"__isSmartRef__":true,"id":2579}},"6278":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6279":{"varMapping":{"__isSmartRef__":true,"id":6280},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6280":{"this":{"__isSmartRef__":true,"id":2579}},"6281":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6282":{"varMapping":{"__isSmartRef__":true,"id":6283},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6283":{"this":{"__isSmartRef__":true,"id":2579}},"6284":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6285":{"varMapping":{"__isSmartRef__":true,"id":6286},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6286":{"this":{"__isSmartRef__":true,"id":2579},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6287}},"6287":{"$super":{"__isSmartRef__":true,"id":6288}},"6288":{"varMapping":{"__isSmartRef__":true,"id":6289},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6289":{"obj":{"__isSmartRef__":true,"id":2579},"name":"onMouseDown"},"6290":{},"6291":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6292":{"varMapping":{"__isSmartRef__":true,"id":6293},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6293":{"this":{"__isSmartRef__":true,"id":2579}},"6294":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6295":{"varMapping":{"__isSmartRef__":true,"id":6296},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6296":{"this":{"__isSmartRef__":true,"id":2579}},"6297":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6298":{"varMapping":{"__isSmartRef__":true,"id":6299},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6299":{"this":{"__isSmartRef__":true,"id":2579}},"6300":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6301":{"varMapping":{"__isSmartRef__":true,"id":6302},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6302":{"this":{"__isSmartRef__":true,"id":2579}},"6303":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6304":{"varMapping":{"__isSmartRef__":true,"id":6305},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6305":{"this":{"__isSmartRef__":true,"id":2579}},"6306":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6307":{"varMapping":{"__isSmartRef__":true,"id":6308},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6308":{"this":{"__isSmartRef__":true,"id":2579}},"6309":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6310":{"varMapping":{"__isSmartRef__":true,"id":6311},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6311":{"this":{"__isSmartRef__":true,"id":2579}},"6312":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6313":{"varMapping":{"__isSmartRef__":true,"id":6314},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6314":{"this":{"__isSmartRef__":true,"id":2579}},"6315":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6316":{"varMapping":{"__isSmartRef__":true,"id":6317},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6317":{"this":{"__isSmartRef__":true,"id":2579}},"6318":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6319":{"addBomb":{"__isSmartRef__":true,"id":6320},"clearFlag":{"__isSmartRef__":true,"id":6323},"countNeighborBombs":{"__isSmartRef__":true,"id":6326},"fixSubmorph":{"__isSmartRef__":true,"id":6329},"initAppearance":{"__isSmartRef__":true,"id":6332},"initMorphs":{"__isSmartRef__":true,"id":6335},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6338},"isClosed":{"__isSmartRef__":true,"id":6341},"neighborPoints":{"__isSmartRef__":true,"id":6344},"onMouseDown":{"__isSmartRef__":true,"id":6347},"restoreGameAppearance":{"__isSmartRef__":true,"id":6354},"reveal":{"__isSmartRef__":true,"id":6357},"setCoordinates":{"__isSmartRef__":true,"id":6360},"showBomb":{"__isSmartRef__":true,"id":6363},"showDebugState":{"__isSmartRef__":true,"id":6366},"showFlag":{"__isSmartRef__":true,"id":6369},"showState":{"__isSmartRef__":true,"id":6372},"copyImageMorph":{"__isSmartRef__":true,"id":6375},"prepareToPublish":{"__isSmartRef__":true,"id":6378}},"6320":{"varMapping":{"__isSmartRef__":true,"id":6321},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6321":{"this":{"__isSmartRef__":true,"id":2531}},"6322":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6323":{"varMapping":{"__isSmartRef__":true,"id":6324},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6324":{"this":{"__isSmartRef__":true,"id":2531}},"6325":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6326":{"varMapping":{"__isSmartRef__":true,"id":6327},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6327":{"this":{"__isSmartRef__":true,"id":2531}},"6328":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6329":{"varMapping":{"__isSmartRef__":true,"id":6330},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6330":{"this":{"__isSmartRef__":true,"id":2531}},"6331":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6332":{"varMapping":{"__isSmartRef__":true,"id":6333},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6333":{"this":{"__isSmartRef__":true,"id":2531}},"6334":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6335":{"varMapping":{"__isSmartRef__":true,"id":6336},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6336":{"this":{"__isSmartRef__":true,"id":2531}},"6337":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6338":{"varMapping":{"__isSmartRef__":true,"id":6339},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6339":{"this":{"__isSmartRef__":true,"id":2531}},"6340":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6341":{"varMapping":{"__isSmartRef__":true,"id":6342},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6342":{"this":{"__isSmartRef__":true,"id":2531}},"6343":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6344":{"varMapping":{"__isSmartRef__":true,"id":6345},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6345":{"this":{"__isSmartRef__":true,"id":2531}},"6346":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6347":{"varMapping":{"__isSmartRef__":true,"id":6348},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6348":{"this":{"__isSmartRef__":true,"id":2531},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6349}},"6349":{"$super":{"__isSmartRef__":true,"id":6350}},"6350":{"varMapping":{"__isSmartRef__":true,"id":6351},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6351":{"obj":{"__isSmartRef__":true,"id":2531},"name":"onMouseDown"},"6352":{},"6353":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6354":{"varMapping":{"__isSmartRef__":true,"id":6355},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6355":{"this":{"__isSmartRef__":true,"id":2531}},"6356":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6357":{"varMapping":{"__isSmartRef__":true,"id":6358},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6358":{"this":{"__isSmartRef__":true,"id":2531}},"6359":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6360":{"varMapping":{"__isSmartRef__":true,"id":6361},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6361":{"this":{"__isSmartRef__":true,"id":2531}},"6362":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6363":{"varMapping":{"__isSmartRef__":true,"id":6364},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6364":{"this":{"__isSmartRef__":true,"id":2531}},"6365":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6366":{"varMapping":{"__isSmartRef__":true,"id":6367},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6367":{"this":{"__isSmartRef__":true,"id":2531}},"6368":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6369":{"varMapping":{"__isSmartRef__":true,"id":6370},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6370":{"this":{"__isSmartRef__":true,"id":2531}},"6371":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6372":{"varMapping":{"__isSmartRef__":true,"id":6373},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6373":{"this":{"__isSmartRef__":true,"id":2531}},"6374":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6375":{"varMapping":{"__isSmartRef__":true,"id":6376},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6376":{"this":{"__isSmartRef__":true,"id":2531}},"6377":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6378":{"varMapping":{"__isSmartRef__":true,"id":6379},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6379":{"this":{"__isSmartRef__":true,"id":2531}},"6380":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6381":{"addBomb":{"__isSmartRef__":true,"id":6382},"clearFlag":{"__isSmartRef__":true,"id":6385},"countNeighborBombs":{"__isSmartRef__":true,"id":6388},"fixSubmorph":{"__isSmartRef__":true,"id":6391},"initAppearance":{"__isSmartRef__":true,"id":6394},"initMorphs":{"__isSmartRef__":true,"id":6397},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6400},"isClosed":{"__isSmartRef__":true,"id":6403},"neighborPoints":{"__isSmartRef__":true,"id":6406},"onMouseDown":{"__isSmartRef__":true,"id":6409},"restoreGameAppearance":{"__isSmartRef__":true,"id":6416},"reveal":{"__isSmartRef__":true,"id":6419},"setCoordinates":{"__isSmartRef__":true,"id":6422},"showBomb":{"__isSmartRef__":true,"id":6425},"showDebugState":{"__isSmartRef__":true,"id":6428},"showFlag":{"__isSmartRef__":true,"id":6431},"showState":{"__isSmartRef__":true,"id":6434},"copyImageMorph":{"__isSmartRef__":true,"id":6437},"prepareToPublish":{"__isSmartRef__":true,"id":6440}},"6382":{"varMapping":{"__isSmartRef__":true,"id":6383},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6383":{"this":{"__isSmartRef__":true,"id":2483}},"6384":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6385":{"varMapping":{"__isSmartRef__":true,"id":6386},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6386":{"this":{"__isSmartRef__":true,"id":2483}},"6387":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6388":{"varMapping":{"__isSmartRef__":true,"id":6389},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6389":{"this":{"__isSmartRef__":true,"id":2483}},"6390":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6391":{"varMapping":{"__isSmartRef__":true,"id":6392},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6392":{"this":{"__isSmartRef__":true,"id":2483}},"6393":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6394":{"varMapping":{"__isSmartRef__":true,"id":6395},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6395":{"this":{"__isSmartRef__":true,"id":2483}},"6396":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6397":{"varMapping":{"__isSmartRef__":true,"id":6398},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6398":{"this":{"__isSmartRef__":true,"id":2483}},"6399":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6400":{"varMapping":{"__isSmartRef__":true,"id":6401},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6401":{"this":{"__isSmartRef__":true,"id":2483}},"6402":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6403":{"varMapping":{"__isSmartRef__":true,"id":6404},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6404":{"this":{"__isSmartRef__":true,"id":2483}},"6405":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6406":{"varMapping":{"__isSmartRef__":true,"id":6407},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6407":{"this":{"__isSmartRef__":true,"id":2483}},"6408":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6409":{"varMapping":{"__isSmartRef__":true,"id":6410},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6410":{"this":{"__isSmartRef__":true,"id":2483},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6411}},"6411":{"$super":{"__isSmartRef__":true,"id":6412}},"6412":{"varMapping":{"__isSmartRef__":true,"id":6413},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6413":{"obj":{"__isSmartRef__":true,"id":2483},"name":"onMouseDown"},"6414":{},"6415":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6416":{"varMapping":{"__isSmartRef__":true,"id":6417},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6417":{"this":{"__isSmartRef__":true,"id":2483}},"6418":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6419":{"varMapping":{"__isSmartRef__":true,"id":6420},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6420":{"this":{"__isSmartRef__":true,"id":2483}},"6421":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6422":{"varMapping":{"__isSmartRef__":true,"id":6423},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6423":{"this":{"__isSmartRef__":true,"id":2483}},"6424":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6425":{"varMapping":{"__isSmartRef__":true,"id":6426},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6426":{"this":{"__isSmartRef__":true,"id":2483}},"6427":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6428":{"varMapping":{"__isSmartRef__":true,"id":6429},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6429":{"this":{"__isSmartRef__":true,"id":2483}},"6430":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6431":{"varMapping":{"__isSmartRef__":true,"id":6432},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6432":{"this":{"__isSmartRef__":true,"id":2483}},"6433":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6434":{"varMapping":{"__isSmartRef__":true,"id":6435},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6435":{"this":{"__isSmartRef__":true,"id":2483}},"6436":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6437":{"varMapping":{"__isSmartRef__":true,"id":6438},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6438":{"this":{"__isSmartRef__":true,"id":2483}},"6439":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6440":{"varMapping":{"__isSmartRef__":true,"id":6441},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6441":{"this":{"__isSmartRef__":true,"id":2483}},"6442":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6443":{"addBomb":{"__isSmartRef__":true,"id":6444},"clearFlag":{"__isSmartRef__":true,"id":6447},"countNeighborBombs":{"__isSmartRef__":true,"id":6450},"fixSubmorph":{"__isSmartRef__":true,"id":6453},"initAppearance":{"__isSmartRef__":true,"id":6456},"initMorphs":{"__isSmartRef__":true,"id":6459},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6462},"isClosed":{"__isSmartRef__":true,"id":6465},"neighborPoints":{"__isSmartRef__":true,"id":6468},"onMouseDown":{"__isSmartRef__":true,"id":6471},"restoreGameAppearance":{"__isSmartRef__":true,"id":6478},"reveal":{"__isSmartRef__":true,"id":6481},"setCoordinates":{"__isSmartRef__":true,"id":6484},"showBomb":{"__isSmartRef__":true,"id":6487},"showDebugState":{"__isSmartRef__":true,"id":6490},"showFlag":{"__isSmartRef__":true,"id":6493},"showState":{"__isSmartRef__":true,"id":6496},"copyImageMorph":{"__isSmartRef__":true,"id":6499},"prepareToPublish":{"__isSmartRef__":true,"id":6502}},"6444":{"varMapping":{"__isSmartRef__":true,"id":6445},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6445":{"this":{"__isSmartRef__":true,"id":2435}},"6446":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6447":{"varMapping":{"__isSmartRef__":true,"id":6448},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6448":{"this":{"__isSmartRef__":true,"id":2435}},"6449":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6450":{"varMapping":{"__isSmartRef__":true,"id":6451},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6451":{"this":{"__isSmartRef__":true,"id":2435}},"6452":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6453":{"varMapping":{"__isSmartRef__":true,"id":6454},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6454":{"this":{"__isSmartRef__":true,"id":2435}},"6455":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6456":{"varMapping":{"__isSmartRef__":true,"id":6457},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6457":{"this":{"__isSmartRef__":true,"id":2435}},"6458":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6459":{"varMapping":{"__isSmartRef__":true,"id":6460},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6460":{"this":{"__isSmartRef__":true,"id":2435}},"6461":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6462":{"varMapping":{"__isSmartRef__":true,"id":6463},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6463":{"this":{"__isSmartRef__":true,"id":2435}},"6464":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6465":{"varMapping":{"__isSmartRef__":true,"id":6466},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6466":{"this":{"__isSmartRef__":true,"id":2435}},"6467":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6468":{"varMapping":{"__isSmartRef__":true,"id":6469},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6469":{"this":{"__isSmartRef__":true,"id":2435}},"6470":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6471":{"varMapping":{"__isSmartRef__":true,"id":6472},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6472":{"this":{"__isSmartRef__":true,"id":2435},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6473}},"6473":{"$super":{"__isSmartRef__":true,"id":6474}},"6474":{"varMapping":{"__isSmartRef__":true,"id":6475},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6475":{"obj":{"__isSmartRef__":true,"id":2435},"name":"onMouseDown"},"6476":{},"6477":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6478":{"varMapping":{"__isSmartRef__":true,"id":6479},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6479":{"this":{"__isSmartRef__":true,"id":2435}},"6480":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6481":{"varMapping":{"__isSmartRef__":true,"id":6482},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6482":{"this":{"__isSmartRef__":true,"id":2435}},"6483":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6484":{"varMapping":{"__isSmartRef__":true,"id":6485},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6485":{"this":{"__isSmartRef__":true,"id":2435}},"6486":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6487":{"varMapping":{"__isSmartRef__":true,"id":6488},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6488":{"this":{"__isSmartRef__":true,"id":2435}},"6489":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6490":{"varMapping":{"__isSmartRef__":true,"id":6491},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6491":{"this":{"__isSmartRef__":true,"id":2435}},"6492":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6493":{"varMapping":{"__isSmartRef__":true,"id":6494},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6494":{"this":{"__isSmartRef__":true,"id":2435}},"6495":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6496":{"varMapping":{"__isSmartRef__":true,"id":6497},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6497":{"this":{"__isSmartRef__":true,"id":2435}},"6498":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6499":{"varMapping":{"__isSmartRef__":true,"id":6500},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6500":{"this":{"__isSmartRef__":true,"id":2435}},"6501":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6502":{"varMapping":{"__isSmartRef__":true,"id":6503},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6503":{"this":{"__isSmartRef__":true,"id":2435}},"6504":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6505":{"addBomb":{"__isSmartRef__":true,"id":6506},"clearFlag":{"__isSmartRef__":true,"id":6509},"countNeighborBombs":{"__isSmartRef__":true,"id":6512},"fixSubmorph":{"__isSmartRef__":true,"id":6515},"initAppearance":{"__isSmartRef__":true,"id":6518},"initMorphs":{"__isSmartRef__":true,"id":6521},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6524},"isClosed":{"__isSmartRef__":true,"id":6527},"neighborPoints":{"__isSmartRef__":true,"id":6530},"onMouseDown":{"__isSmartRef__":true,"id":6533},"restoreGameAppearance":{"__isSmartRef__":true,"id":6540},"reveal":{"__isSmartRef__":true,"id":6543},"setCoordinates":{"__isSmartRef__":true,"id":6546},"showBomb":{"__isSmartRef__":true,"id":6549},"showDebugState":{"__isSmartRef__":true,"id":6552},"showFlag":{"__isSmartRef__":true,"id":6555},"showState":{"__isSmartRef__":true,"id":6558},"copyImageMorph":{"__isSmartRef__":true,"id":6561},"prepareToPublish":{"__isSmartRef__":true,"id":6564}},"6506":{"varMapping":{"__isSmartRef__":true,"id":6507},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6507":{"this":{"__isSmartRef__":true,"id":2387}},"6508":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6509":{"varMapping":{"__isSmartRef__":true,"id":6510},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6510":{"this":{"__isSmartRef__":true,"id":2387}},"6511":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6512":{"varMapping":{"__isSmartRef__":true,"id":6513},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6513":{"this":{"__isSmartRef__":true,"id":2387}},"6514":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6515":{"varMapping":{"__isSmartRef__":true,"id":6516},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6516":{"this":{"__isSmartRef__":true,"id":2387}},"6517":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6518":{"varMapping":{"__isSmartRef__":true,"id":6519},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6519":{"this":{"__isSmartRef__":true,"id":2387}},"6520":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6521":{"varMapping":{"__isSmartRef__":true,"id":6522},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6522":{"this":{"__isSmartRef__":true,"id":2387}},"6523":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6524":{"varMapping":{"__isSmartRef__":true,"id":6525},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6525":{"this":{"__isSmartRef__":true,"id":2387}},"6526":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6527":{"varMapping":{"__isSmartRef__":true,"id":6528},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6528":{"this":{"__isSmartRef__":true,"id":2387}},"6529":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6530":{"varMapping":{"__isSmartRef__":true,"id":6531},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6531":{"this":{"__isSmartRef__":true,"id":2387}},"6532":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6533":{"varMapping":{"__isSmartRef__":true,"id":6534},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6534":{"this":{"__isSmartRef__":true,"id":2387},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6535}},"6535":{"$super":{"__isSmartRef__":true,"id":6536}},"6536":{"varMapping":{"__isSmartRef__":true,"id":6537},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6537":{"obj":{"__isSmartRef__":true,"id":2387},"name":"onMouseDown"},"6538":{},"6539":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6540":{"varMapping":{"__isSmartRef__":true,"id":6541},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6541":{"this":{"__isSmartRef__":true,"id":2387}},"6542":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6543":{"varMapping":{"__isSmartRef__":true,"id":6544},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6544":{"this":{"__isSmartRef__":true,"id":2387}},"6545":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6546":{"varMapping":{"__isSmartRef__":true,"id":6547},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6547":{"this":{"__isSmartRef__":true,"id":2387}},"6548":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6549":{"varMapping":{"__isSmartRef__":true,"id":6550},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6550":{"this":{"__isSmartRef__":true,"id":2387}},"6551":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6552":{"varMapping":{"__isSmartRef__":true,"id":6553},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6553":{"this":{"__isSmartRef__":true,"id":2387}},"6554":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6555":{"varMapping":{"__isSmartRef__":true,"id":6556},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6556":{"this":{"__isSmartRef__":true,"id":2387}},"6557":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6558":{"varMapping":{"__isSmartRef__":true,"id":6559},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6559":{"this":{"__isSmartRef__":true,"id":2387}},"6560":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6561":{"varMapping":{"__isSmartRef__":true,"id":6562},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6562":{"this":{"__isSmartRef__":true,"id":2387}},"6563":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6564":{"varMapping":{"__isSmartRef__":true,"id":6565},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6565":{"this":{"__isSmartRef__":true,"id":2387}},"6566":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6567":{"addBomb":{"__isSmartRef__":true,"id":6568},"clearFlag":{"__isSmartRef__":true,"id":6571},"countNeighborBombs":{"__isSmartRef__":true,"id":6574},"fixSubmorph":{"__isSmartRef__":true,"id":6577},"initAppearance":{"__isSmartRef__":true,"id":6580},"initMorphs":{"__isSmartRef__":true,"id":6583},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6586},"isClosed":{"__isSmartRef__":true,"id":6589},"neighborPoints":{"__isSmartRef__":true,"id":6592},"onMouseDown":{"__isSmartRef__":true,"id":6595},"restoreGameAppearance":{"__isSmartRef__":true,"id":6602},"reveal":{"__isSmartRef__":true,"id":6605},"setCoordinates":{"__isSmartRef__":true,"id":6608},"showBomb":{"__isSmartRef__":true,"id":6611},"showDebugState":{"__isSmartRef__":true,"id":6614},"showFlag":{"__isSmartRef__":true,"id":6617},"showState":{"__isSmartRef__":true,"id":6620},"copyImageMorph":{"__isSmartRef__":true,"id":6623},"prepareToPublish":{"__isSmartRef__":true,"id":6626}},"6568":{"varMapping":{"__isSmartRef__":true,"id":6569},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6569":{"this":{"__isSmartRef__":true,"id":2339}},"6570":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6571":{"varMapping":{"__isSmartRef__":true,"id":6572},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6572":{"this":{"__isSmartRef__":true,"id":2339}},"6573":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6574":{"varMapping":{"__isSmartRef__":true,"id":6575},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6575":{"this":{"__isSmartRef__":true,"id":2339}},"6576":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6577":{"varMapping":{"__isSmartRef__":true,"id":6578},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6578":{"this":{"__isSmartRef__":true,"id":2339}},"6579":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6580":{"varMapping":{"__isSmartRef__":true,"id":6581},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6581":{"this":{"__isSmartRef__":true,"id":2339}},"6582":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6583":{"varMapping":{"__isSmartRef__":true,"id":6584},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6584":{"this":{"__isSmartRef__":true,"id":2339}},"6585":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6586":{"varMapping":{"__isSmartRef__":true,"id":6587},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6587":{"this":{"__isSmartRef__":true,"id":2339}},"6588":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6589":{"varMapping":{"__isSmartRef__":true,"id":6590},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6590":{"this":{"__isSmartRef__":true,"id":2339}},"6591":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6592":{"varMapping":{"__isSmartRef__":true,"id":6593},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6593":{"this":{"__isSmartRef__":true,"id":2339}},"6594":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6595":{"varMapping":{"__isSmartRef__":true,"id":6596},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6596":{"this":{"__isSmartRef__":true,"id":2339},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6597}},"6597":{"$super":{"__isSmartRef__":true,"id":6598}},"6598":{"varMapping":{"__isSmartRef__":true,"id":6599},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6599":{"obj":{"__isSmartRef__":true,"id":2339},"name":"onMouseDown"},"6600":{},"6601":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6602":{"varMapping":{"__isSmartRef__":true,"id":6603},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6603":{"this":{"__isSmartRef__":true,"id":2339}},"6604":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6605":{"varMapping":{"__isSmartRef__":true,"id":6606},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6606":{"this":{"__isSmartRef__":true,"id":2339}},"6607":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6608":{"varMapping":{"__isSmartRef__":true,"id":6609},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6609":{"this":{"__isSmartRef__":true,"id":2339}},"6610":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6611":{"varMapping":{"__isSmartRef__":true,"id":6612},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6612":{"this":{"__isSmartRef__":true,"id":2339}},"6613":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6614":{"varMapping":{"__isSmartRef__":true,"id":6615},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6615":{"this":{"__isSmartRef__":true,"id":2339}},"6616":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6617":{"varMapping":{"__isSmartRef__":true,"id":6618},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6618":{"this":{"__isSmartRef__":true,"id":2339}},"6619":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6620":{"varMapping":{"__isSmartRef__":true,"id":6621},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6621":{"this":{"__isSmartRef__":true,"id":2339}},"6622":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6623":{"varMapping":{"__isSmartRef__":true,"id":6624},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6624":{"this":{"__isSmartRef__":true,"id":2339}},"6625":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6626":{"varMapping":{"__isSmartRef__":true,"id":6627},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6627":{"this":{"__isSmartRef__":true,"id":2339}},"6628":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6629":{"addBomb":{"__isSmartRef__":true,"id":6630},"clearFlag":{"__isSmartRef__":true,"id":6633},"countNeighborBombs":{"__isSmartRef__":true,"id":6636},"fixSubmorph":{"__isSmartRef__":true,"id":6639},"initAppearance":{"__isSmartRef__":true,"id":6642},"initMorphs":{"__isSmartRef__":true,"id":6645},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6648},"isClosed":{"__isSmartRef__":true,"id":6651},"neighborPoints":{"__isSmartRef__":true,"id":6654},"onMouseDown":{"__isSmartRef__":true,"id":6657},"restoreGameAppearance":{"__isSmartRef__":true,"id":6664},"reveal":{"__isSmartRef__":true,"id":6667},"setCoordinates":{"__isSmartRef__":true,"id":6670},"showBomb":{"__isSmartRef__":true,"id":6673},"showDebugState":{"__isSmartRef__":true,"id":6676},"showFlag":{"__isSmartRef__":true,"id":6679},"showState":{"__isSmartRef__":true,"id":6682},"copyImageMorph":{"__isSmartRef__":true,"id":6685},"prepareToPublish":{"__isSmartRef__":true,"id":6688}},"6630":{"varMapping":{"__isSmartRef__":true,"id":6631},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6631":{"this":{"__isSmartRef__":true,"id":2291}},"6632":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6633":{"varMapping":{"__isSmartRef__":true,"id":6634},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6634":{"this":{"__isSmartRef__":true,"id":2291}},"6635":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6636":{"varMapping":{"__isSmartRef__":true,"id":6637},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6637":{"this":{"__isSmartRef__":true,"id":2291}},"6638":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6639":{"varMapping":{"__isSmartRef__":true,"id":6640},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6640":{"this":{"__isSmartRef__":true,"id":2291}},"6641":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6642":{"varMapping":{"__isSmartRef__":true,"id":6643},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6643":{"this":{"__isSmartRef__":true,"id":2291}},"6644":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6645":{"varMapping":{"__isSmartRef__":true,"id":6646},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6646":{"this":{"__isSmartRef__":true,"id":2291}},"6647":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6648":{"varMapping":{"__isSmartRef__":true,"id":6649},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6649":{"this":{"__isSmartRef__":true,"id":2291}},"6650":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6651":{"varMapping":{"__isSmartRef__":true,"id":6652},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6652":{"this":{"__isSmartRef__":true,"id":2291}},"6653":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6654":{"varMapping":{"__isSmartRef__":true,"id":6655},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6655":{"this":{"__isSmartRef__":true,"id":2291}},"6656":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6657":{"varMapping":{"__isSmartRef__":true,"id":6658},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6658":{"this":{"__isSmartRef__":true,"id":2291},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6659}},"6659":{"$super":{"__isSmartRef__":true,"id":6660}},"6660":{"varMapping":{"__isSmartRef__":true,"id":6661},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6661":{"obj":{"__isSmartRef__":true,"id":2291},"name":"onMouseDown"},"6662":{},"6663":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6664":{"varMapping":{"__isSmartRef__":true,"id":6665},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6665":{"this":{"__isSmartRef__":true,"id":2291}},"6666":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6667":{"varMapping":{"__isSmartRef__":true,"id":6668},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6668":{"this":{"__isSmartRef__":true,"id":2291}},"6669":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6670":{"varMapping":{"__isSmartRef__":true,"id":6671},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6671":{"this":{"__isSmartRef__":true,"id":2291}},"6672":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6673":{"varMapping":{"__isSmartRef__":true,"id":6674},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6674":{"this":{"__isSmartRef__":true,"id":2291}},"6675":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6676":{"varMapping":{"__isSmartRef__":true,"id":6677},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6677":{"this":{"__isSmartRef__":true,"id":2291}},"6678":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6679":{"varMapping":{"__isSmartRef__":true,"id":6680},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6680":{"this":{"__isSmartRef__":true,"id":2291}},"6681":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6682":{"varMapping":{"__isSmartRef__":true,"id":6683},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6683":{"this":{"__isSmartRef__":true,"id":2291}},"6684":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6685":{"varMapping":{"__isSmartRef__":true,"id":6686},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6686":{"this":{"__isSmartRef__":true,"id":2291}},"6687":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6688":{"varMapping":{"__isSmartRef__":true,"id":6689},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6689":{"this":{"__isSmartRef__":true,"id":2291}},"6690":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6691":{"addBomb":{"__isSmartRef__":true,"id":6692},"clearFlag":{"__isSmartRef__":true,"id":6695},"countNeighborBombs":{"__isSmartRef__":true,"id":6698},"fixSubmorph":{"__isSmartRef__":true,"id":6701},"initAppearance":{"__isSmartRef__":true,"id":6704},"initMorphs":{"__isSmartRef__":true,"id":6707},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6710},"isClosed":{"__isSmartRef__":true,"id":6713},"neighborPoints":{"__isSmartRef__":true,"id":6716},"onMouseDown":{"__isSmartRef__":true,"id":6719},"restoreGameAppearance":{"__isSmartRef__":true,"id":6726},"reveal":{"__isSmartRef__":true,"id":6729},"setCoordinates":{"__isSmartRef__":true,"id":6732},"showBomb":{"__isSmartRef__":true,"id":6735},"showDebugState":{"__isSmartRef__":true,"id":6738},"showFlag":{"__isSmartRef__":true,"id":6741},"showState":{"__isSmartRef__":true,"id":6744},"copyImageMorph":{"__isSmartRef__":true,"id":6747},"prepareToPublish":{"__isSmartRef__":true,"id":6750}},"6692":{"varMapping":{"__isSmartRef__":true,"id":6693},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6693":{"this":{"__isSmartRef__":true,"id":2243}},"6694":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6695":{"varMapping":{"__isSmartRef__":true,"id":6696},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6696":{"this":{"__isSmartRef__":true,"id":2243}},"6697":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6698":{"varMapping":{"__isSmartRef__":true,"id":6699},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6699":{"this":{"__isSmartRef__":true,"id":2243}},"6700":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6701":{"varMapping":{"__isSmartRef__":true,"id":6702},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6702":{"this":{"__isSmartRef__":true,"id":2243}},"6703":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6704":{"varMapping":{"__isSmartRef__":true,"id":6705},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6705":{"this":{"__isSmartRef__":true,"id":2243}},"6706":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6707":{"varMapping":{"__isSmartRef__":true,"id":6708},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6708":{"this":{"__isSmartRef__":true,"id":2243}},"6709":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6710":{"varMapping":{"__isSmartRef__":true,"id":6711},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6711":{"this":{"__isSmartRef__":true,"id":2243}},"6712":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6713":{"varMapping":{"__isSmartRef__":true,"id":6714},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6714":{"this":{"__isSmartRef__":true,"id":2243}},"6715":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6716":{"varMapping":{"__isSmartRef__":true,"id":6717},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6717":{"this":{"__isSmartRef__":true,"id":2243}},"6718":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6719":{"varMapping":{"__isSmartRef__":true,"id":6720},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6720":{"this":{"__isSmartRef__":true,"id":2243},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6721}},"6721":{"$super":{"__isSmartRef__":true,"id":6722}},"6722":{"varMapping":{"__isSmartRef__":true,"id":6723},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6723":{"obj":{"__isSmartRef__":true,"id":2243},"name":"onMouseDown"},"6724":{},"6725":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6726":{"varMapping":{"__isSmartRef__":true,"id":6727},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6727":{"this":{"__isSmartRef__":true,"id":2243}},"6728":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6729":{"varMapping":{"__isSmartRef__":true,"id":6730},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6730":{"this":{"__isSmartRef__":true,"id":2243}},"6731":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6732":{"varMapping":{"__isSmartRef__":true,"id":6733},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6733":{"this":{"__isSmartRef__":true,"id":2243}},"6734":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6735":{"varMapping":{"__isSmartRef__":true,"id":6736},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6736":{"this":{"__isSmartRef__":true,"id":2243}},"6737":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6738":{"varMapping":{"__isSmartRef__":true,"id":6739},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6739":{"this":{"__isSmartRef__":true,"id":2243}},"6740":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6741":{"varMapping":{"__isSmartRef__":true,"id":6742},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6742":{"this":{"__isSmartRef__":true,"id":2243}},"6743":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6744":{"varMapping":{"__isSmartRef__":true,"id":6745},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6745":{"this":{"__isSmartRef__":true,"id":2243}},"6746":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6747":{"varMapping":{"__isSmartRef__":true,"id":6748},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6748":{"this":{"__isSmartRef__":true,"id":2243}},"6749":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6750":{"varMapping":{"__isSmartRef__":true,"id":6751},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6751":{"this":{"__isSmartRef__":true,"id":2243}},"6752":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6753":{"addBomb":{"__isSmartRef__":true,"id":6754},"clearFlag":{"__isSmartRef__":true,"id":6757},"countNeighborBombs":{"__isSmartRef__":true,"id":6760},"fixSubmorph":{"__isSmartRef__":true,"id":6763},"initAppearance":{"__isSmartRef__":true,"id":6766},"initMorphs":{"__isSmartRef__":true,"id":6769},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6772},"isClosed":{"__isSmartRef__":true,"id":6775},"neighborPoints":{"__isSmartRef__":true,"id":6778},"onMouseDown":{"__isSmartRef__":true,"id":6781},"restoreGameAppearance":{"__isSmartRef__":true,"id":6788},"reveal":{"__isSmartRef__":true,"id":6791},"setCoordinates":{"__isSmartRef__":true,"id":6794},"showBomb":{"__isSmartRef__":true,"id":6797},"showDebugState":{"__isSmartRef__":true,"id":6800},"showFlag":{"__isSmartRef__":true,"id":6803},"showState":{"__isSmartRef__":true,"id":6806},"copyImageMorph":{"__isSmartRef__":true,"id":6809},"prepareToPublish":{"__isSmartRef__":true,"id":6812}},"6754":{"varMapping":{"__isSmartRef__":true,"id":6755},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6755":{"this":{"__isSmartRef__":true,"id":2195}},"6756":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6757":{"varMapping":{"__isSmartRef__":true,"id":6758},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6758":{"this":{"__isSmartRef__":true,"id":2195}},"6759":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6760":{"varMapping":{"__isSmartRef__":true,"id":6761},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6761":{"this":{"__isSmartRef__":true,"id":2195}},"6762":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6763":{"varMapping":{"__isSmartRef__":true,"id":6764},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6764":{"this":{"__isSmartRef__":true,"id":2195}},"6765":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6766":{"varMapping":{"__isSmartRef__":true,"id":6767},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6767":{"this":{"__isSmartRef__":true,"id":2195}},"6768":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6769":{"varMapping":{"__isSmartRef__":true,"id":6770},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6770":{"this":{"__isSmartRef__":true,"id":2195}},"6771":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6772":{"varMapping":{"__isSmartRef__":true,"id":6773},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6773":{"this":{"__isSmartRef__":true,"id":2195}},"6774":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6775":{"varMapping":{"__isSmartRef__":true,"id":6776},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6776":{"this":{"__isSmartRef__":true,"id":2195}},"6777":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6778":{"varMapping":{"__isSmartRef__":true,"id":6779},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6779":{"this":{"__isSmartRef__":true,"id":2195}},"6780":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6781":{"varMapping":{"__isSmartRef__":true,"id":6782},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6782":{"this":{"__isSmartRef__":true,"id":2195},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6783}},"6783":{"$super":{"__isSmartRef__":true,"id":6784}},"6784":{"varMapping":{"__isSmartRef__":true,"id":6785},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6785":{"obj":{"__isSmartRef__":true,"id":2195},"name":"onMouseDown"},"6786":{},"6787":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6788":{"varMapping":{"__isSmartRef__":true,"id":6789},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6789":{"this":{"__isSmartRef__":true,"id":2195}},"6790":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6791":{"varMapping":{"__isSmartRef__":true,"id":6792},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6792":{"this":{"__isSmartRef__":true,"id":2195}},"6793":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6794":{"varMapping":{"__isSmartRef__":true,"id":6795},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6795":{"this":{"__isSmartRef__":true,"id":2195}},"6796":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6797":{"varMapping":{"__isSmartRef__":true,"id":6798},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6798":{"this":{"__isSmartRef__":true,"id":2195}},"6799":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6800":{"varMapping":{"__isSmartRef__":true,"id":6801},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6801":{"this":{"__isSmartRef__":true,"id":2195}},"6802":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6803":{"varMapping":{"__isSmartRef__":true,"id":6804},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6804":{"this":{"__isSmartRef__":true,"id":2195}},"6805":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6806":{"varMapping":{"__isSmartRef__":true,"id":6807},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6807":{"this":{"__isSmartRef__":true,"id":2195}},"6808":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6809":{"varMapping":{"__isSmartRef__":true,"id":6810},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6810":{"this":{"__isSmartRef__":true,"id":2195}},"6811":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6812":{"varMapping":{"__isSmartRef__":true,"id":6813},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6813":{"this":{"__isSmartRef__":true,"id":2195}},"6814":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6815":{"addBomb":{"__isSmartRef__":true,"id":6816},"clearFlag":{"__isSmartRef__":true,"id":6819},"countNeighborBombs":{"__isSmartRef__":true,"id":6822},"fixSubmorph":{"__isSmartRef__":true,"id":6825},"initAppearance":{"__isSmartRef__":true,"id":6828},"initMorphs":{"__isSmartRef__":true,"id":6831},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6834},"isClosed":{"__isSmartRef__":true,"id":6837},"neighborPoints":{"__isSmartRef__":true,"id":6840},"onMouseDown":{"__isSmartRef__":true,"id":6843},"restoreGameAppearance":{"__isSmartRef__":true,"id":6850},"reveal":{"__isSmartRef__":true,"id":6853},"setCoordinates":{"__isSmartRef__":true,"id":6856},"showBomb":{"__isSmartRef__":true,"id":6859},"showDebugState":{"__isSmartRef__":true,"id":6862},"showFlag":{"__isSmartRef__":true,"id":6865},"showState":{"__isSmartRef__":true,"id":6868},"copyImageMorph":{"__isSmartRef__":true,"id":6871},"prepareToPublish":{"__isSmartRef__":true,"id":6874}},"6816":{"varMapping":{"__isSmartRef__":true,"id":6817},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6817":{"this":{"__isSmartRef__":true,"id":2147}},"6818":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6819":{"varMapping":{"__isSmartRef__":true,"id":6820},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6820":{"this":{"__isSmartRef__":true,"id":2147}},"6821":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6822":{"varMapping":{"__isSmartRef__":true,"id":6823},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6823":{"this":{"__isSmartRef__":true,"id":2147}},"6824":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6825":{"varMapping":{"__isSmartRef__":true,"id":6826},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6826":{"this":{"__isSmartRef__":true,"id":2147}},"6827":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6828":{"varMapping":{"__isSmartRef__":true,"id":6829},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6829":{"this":{"__isSmartRef__":true,"id":2147}},"6830":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6831":{"varMapping":{"__isSmartRef__":true,"id":6832},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6832":{"this":{"__isSmartRef__":true,"id":2147}},"6833":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6834":{"varMapping":{"__isSmartRef__":true,"id":6835},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6835":{"this":{"__isSmartRef__":true,"id":2147}},"6836":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6837":{"varMapping":{"__isSmartRef__":true,"id":6838},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6838":{"this":{"__isSmartRef__":true,"id":2147}},"6839":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6840":{"varMapping":{"__isSmartRef__":true,"id":6841},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6841":{"this":{"__isSmartRef__":true,"id":2147}},"6842":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6843":{"varMapping":{"__isSmartRef__":true,"id":6844},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6844":{"this":{"__isSmartRef__":true,"id":2147},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6845}},"6845":{"$super":{"__isSmartRef__":true,"id":6846}},"6846":{"varMapping":{"__isSmartRef__":true,"id":6847},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6847":{"obj":{"__isSmartRef__":true,"id":2147},"name":"onMouseDown"},"6848":{},"6849":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6850":{"varMapping":{"__isSmartRef__":true,"id":6851},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6851":{"this":{"__isSmartRef__":true,"id":2147}},"6852":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6853":{"varMapping":{"__isSmartRef__":true,"id":6854},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6854":{"this":{"__isSmartRef__":true,"id":2147}},"6855":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6856":{"varMapping":{"__isSmartRef__":true,"id":6857},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6857":{"this":{"__isSmartRef__":true,"id":2147}},"6858":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6859":{"varMapping":{"__isSmartRef__":true,"id":6860},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6860":{"this":{"__isSmartRef__":true,"id":2147}},"6861":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6862":{"varMapping":{"__isSmartRef__":true,"id":6863},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6863":{"this":{"__isSmartRef__":true,"id":2147}},"6864":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6865":{"varMapping":{"__isSmartRef__":true,"id":6866},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6866":{"this":{"__isSmartRef__":true,"id":2147}},"6867":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6868":{"varMapping":{"__isSmartRef__":true,"id":6869},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6869":{"this":{"__isSmartRef__":true,"id":2147}},"6870":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6871":{"varMapping":{"__isSmartRef__":true,"id":6872},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6872":{"this":{"__isSmartRef__":true,"id":2147}},"6873":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6874":{"varMapping":{"__isSmartRef__":true,"id":6875},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6875":{"this":{"__isSmartRef__":true,"id":2147}},"6876":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6877":{"addBomb":{"__isSmartRef__":true,"id":6878},"clearFlag":{"__isSmartRef__":true,"id":6881},"countNeighborBombs":{"__isSmartRef__":true,"id":6884},"fixSubmorph":{"__isSmartRef__":true,"id":6887},"initAppearance":{"__isSmartRef__":true,"id":6890},"initMorphs":{"__isSmartRef__":true,"id":6893},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6896},"isClosed":{"__isSmartRef__":true,"id":6899},"neighborPoints":{"__isSmartRef__":true,"id":6902},"onMouseDown":{"__isSmartRef__":true,"id":6905},"restoreGameAppearance":{"__isSmartRef__":true,"id":6912},"reveal":{"__isSmartRef__":true,"id":6915},"setCoordinates":{"__isSmartRef__":true,"id":6918},"showBomb":{"__isSmartRef__":true,"id":6921},"showDebugState":{"__isSmartRef__":true,"id":6924},"showFlag":{"__isSmartRef__":true,"id":6927},"showState":{"__isSmartRef__":true,"id":6930},"copyImageMorph":{"__isSmartRef__":true,"id":6933},"prepareToPublish":{"__isSmartRef__":true,"id":6936}},"6878":{"varMapping":{"__isSmartRef__":true,"id":6879},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6879":{"this":{"__isSmartRef__":true,"id":2099}},"6880":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6881":{"varMapping":{"__isSmartRef__":true,"id":6882},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6882":{"this":{"__isSmartRef__":true,"id":2099}},"6883":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6884":{"varMapping":{"__isSmartRef__":true,"id":6885},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6885":{"this":{"__isSmartRef__":true,"id":2099}},"6886":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6887":{"varMapping":{"__isSmartRef__":true,"id":6888},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6888":{"this":{"__isSmartRef__":true,"id":2099}},"6889":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6890":{"varMapping":{"__isSmartRef__":true,"id":6891},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6891":{"this":{"__isSmartRef__":true,"id":2099}},"6892":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6893":{"varMapping":{"__isSmartRef__":true,"id":6894},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6894":{"this":{"__isSmartRef__":true,"id":2099}},"6895":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6896":{"varMapping":{"__isSmartRef__":true,"id":6897},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6897":{"this":{"__isSmartRef__":true,"id":2099}},"6898":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6899":{"varMapping":{"__isSmartRef__":true,"id":6900},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6900":{"this":{"__isSmartRef__":true,"id":2099}},"6901":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6902":{"varMapping":{"__isSmartRef__":true,"id":6903},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6903":{"this":{"__isSmartRef__":true,"id":2099}},"6904":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6905":{"varMapping":{"__isSmartRef__":true,"id":6906},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6906":{"this":{"__isSmartRef__":true,"id":2099},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6907}},"6907":{"$super":{"__isSmartRef__":true,"id":6908}},"6908":{"varMapping":{"__isSmartRef__":true,"id":6909},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6909":{"obj":{"__isSmartRef__":true,"id":2099},"name":"onMouseDown"},"6910":{},"6911":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6912":{"varMapping":{"__isSmartRef__":true,"id":6913},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6913":{"this":{"__isSmartRef__":true,"id":2099}},"6914":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6915":{"varMapping":{"__isSmartRef__":true,"id":6916},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6916":{"this":{"__isSmartRef__":true,"id":2099}},"6917":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6918":{"varMapping":{"__isSmartRef__":true,"id":6919},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6919":{"this":{"__isSmartRef__":true,"id":2099}},"6920":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6921":{"varMapping":{"__isSmartRef__":true,"id":6922},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6922":{"this":{"__isSmartRef__":true,"id":2099}},"6923":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6924":{"varMapping":{"__isSmartRef__":true,"id":6925},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6925":{"this":{"__isSmartRef__":true,"id":2099}},"6926":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6927":{"varMapping":{"__isSmartRef__":true,"id":6928},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6928":{"this":{"__isSmartRef__":true,"id":2099}},"6929":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6930":{"varMapping":{"__isSmartRef__":true,"id":6931},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6931":{"this":{"__isSmartRef__":true,"id":2099}},"6932":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6933":{"varMapping":{"__isSmartRef__":true,"id":6934},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6934":{"this":{"__isSmartRef__":true,"id":2099}},"6935":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6936":{"varMapping":{"__isSmartRef__":true,"id":6937},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6937":{"this":{"__isSmartRef__":true,"id":2099}},"6938":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6939":{"addBomb":{"__isSmartRef__":true,"id":6940},"clearFlag":{"__isSmartRef__":true,"id":6943},"countNeighborBombs":{"__isSmartRef__":true,"id":6946},"fixSubmorph":{"__isSmartRef__":true,"id":6949},"initAppearance":{"__isSmartRef__":true,"id":6952},"initMorphs":{"__isSmartRef__":true,"id":6955},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6958},"isClosed":{"__isSmartRef__":true,"id":6961},"neighborPoints":{"__isSmartRef__":true,"id":6964},"onMouseDown":{"__isSmartRef__":true,"id":6967},"restoreGameAppearance":{"__isSmartRef__":true,"id":6974},"reveal":{"__isSmartRef__":true,"id":6977},"setCoordinates":{"__isSmartRef__":true,"id":6980},"showBomb":{"__isSmartRef__":true,"id":6983},"showDebugState":{"__isSmartRef__":true,"id":6986},"showFlag":{"__isSmartRef__":true,"id":6989},"showState":{"__isSmartRef__":true,"id":6992},"copyImageMorph":{"__isSmartRef__":true,"id":6995},"prepareToPublish":{"__isSmartRef__":true,"id":6998}},"6940":{"varMapping":{"__isSmartRef__":true,"id":6941},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6941":{"this":{"__isSmartRef__":true,"id":2051}},"6942":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6943":{"varMapping":{"__isSmartRef__":true,"id":6944},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6944":{"this":{"__isSmartRef__":true,"id":2051}},"6945":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6946":{"varMapping":{"__isSmartRef__":true,"id":6947},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6947":{"this":{"__isSmartRef__":true,"id":2051}},"6948":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6949":{"varMapping":{"__isSmartRef__":true,"id":6950},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6950":{"this":{"__isSmartRef__":true,"id":2051}},"6951":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6952":{"varMapping":{"__isSmartRef__":true,"id":6953},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6953":{"this":{"__isSmartRef__":true,"id":2051}},"6954":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6955":{"varMapping":{"__isSmartRef__":true,"id":6956},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6956":{"this":{"__isSmartRef__":true,"id":2051}},"6957":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6958":{"varMapping":{"__isSmartRef__":true,"id":6959},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6959":{"this":{"__isSmartRef__":true,"id":2051}},"6960":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6961":{"varMapping":{"__isSmartRef__":true,"id":6962},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6962":{"this":{"__isSmartRef__":true,"id":2051}},"6963":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6964":{"varMapping":{"__isSmartRef__":true,"id":6965},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":6966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6965":{"this":{"__isSmartRef__":true,"id":2051}},"6966":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6967":{"varMapping":{"__isSmartRef__":true,"id":6968},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6968":{"this":{"__isSmartRef__":true,"id":2051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6969}},"6969":{"$super":{"__isSmartRef__":true,"id":6970}},"6970":{"varMapping":{"__isSmartRef__":true,"id":6971},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":6972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6971":{"obj":{"__isSmartRef__":true,"id":2051},"name":"onMouseDown"},"6972":{},"6973":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6974":{"varMapping":{"__isSmartRef__":true,"id":6975},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6975":{"this":{"__isSmartRef__":true,"id":2051}},"6976":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6977":{"varMapping":{"__isSmartRef__":true,"id":6978},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":6979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6978":{"this":{"__isSmartRef__":true,"id":2051}},"6979":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6980":{"varMapping":{"__isSmartRef__":true,"id":6981},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6981":{"this":{"__isSmartRef__":true,"id":2051}},"6982":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6983":{"varMapping":{"__isSmartRef__":true,"id":6984},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6984":{"this":{"__isSmartRef__":true,"id":2051}},"6985":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6986":{"varMapping":{"__isSmartRef__":true,"id":6987},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6987":{"this":{"__isSmartRef__":true,"id":2051}},"6988":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6989":{"varMapping":{"__isSmartRef__":true,"id":6990},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6990":{"this":{"__isSmartRef__":true,"id":2051}},"6991":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6992":{"varMapping":{"__isSmartRef__":true,"id":6993},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":6994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6993":{"this":{"__isSmartRef__":true,"id":2051}},"6994":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6995":{"varMapping":{"__isSmartRef__":true,"id":6996},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":6997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6996":{"this":{"__isSmartRef__":true,"id":2051}},"6997":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6998":{"varMapping":{"__isSmartRef__":true,"id":6999},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6999":{"this":{"__isSmartRef__":true,"id":2051}},"7000":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7001":{"addBomb":{"__isSmartRef__":true,"id":7002},"clearFlag":{"__isSmartRef__":true,"id":7005},"countNeighborBombs":{"__isSmartRef__":true,"id":7008},"fixSubmorph":{"__isSmartRef__":true,"id":7011},"initAppearance":{"__isSmartRef__":true,"id":7014},"initMorphs":{"__isSmartRef__":true,"id":7017},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7020},"isClosed":{"__isSmartRef__":true,"id":7023},"neighborPoints":{"__isSmartRef__":true,"id":7026},"onMouseDown":{"__isSmartRef__":true,"id":7029},"restoreGameAppearance":{"__isSmartRef__":true,"id":7036},"reveal":{"__isSmartRef__":true,"id":7039},"setCoordinates":{"__isSmartRef__":true,"id":7042},"showBomb":{"__isSmartRef__":true,"id":7045},"showDebugState":{"__isSmartRef__":true,"id":7048},"showFlag":{"__isSmartRef__":true,"id":7051},"showState":{"__isSmartRef__":true,"id":7054},"copyImageMorph":{"__isSmartRef__":true,"id":7057},"prepareToPublish":{"__isSmartRef__":true,"id":7060}},"7002":{"varMapping":{"__isSmartRef__":true,"id":7003},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7003":{"this":{"__isSmartRef__":true,"id":2003}},"7004":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7005":{"varMapping":{"__isSmartRef__":true,"id":7006},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7006":{"this":{"__isSmartRef__":true,"id":2003}},"7007":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7008":{"varMapping":{"__isSmartRef__":true,"id":7009},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7009":{"this":{"__isSmartRef__":true,"id":2003}},"7010":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7011":{"varMapping":{"__isSmartRef__":true,"id":7012},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7012":{"this":{"__isSmartRef__":true,"id":2003}},"7013":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7014":{"varMapping":{"__isSmartRef__":true,"id":7015},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7015":{"this":{"__isSmartRef__":true,"id":2003}},"7016":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7017":{"varMapping":{"__isSmartRef__":true,"id":7018},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7018":{"this":{"__isSmartRef__":true,"id":2003}},"7019":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7020":{"varMapping":{"__isSmartRef__":true,"id":7021},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7021":{"this":{"__isSmartRef__":true,"id":2003}},"7022":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7023":{"varMapping":{"__isSmartRef__":true,"id":7024},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7024":{"this":{"__isSmartRef__":true,"id":2003}},"7025":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7026":{"varMapping":{"__isSmartRef__":true,"id":7027},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7027":{"this":{"__isSmartRef__":true,"id":2003}},"7028":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7029":{"varMapping":{"__isSmartRef__":true,"id":7030},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7030":{"this":{"__isSmartRef__":true,"id":2003},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7031}},"7031":{"$super":{"__isSmartRef__":true,"id":7032}},"7032":{"varMapping":{"__isSmartRef__":true,"id":7033},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7033":{"obj":{"__isSmartRef__":true,"id":2003},"name":"onMouseDown"},"7034":{},"7035":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7036":{"varMapping":{"__isSmartRef__":true,"id":7037},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7037":{"this":{"__isSmartRef__":true,"id":2003}},"7038":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7039":{"varMapping":{"__isSmartRef__":true,"id":7040},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7040":{"this":{"__isSmartRef__":true,"id":2003}},"7041":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7042":{"varMapping":{"__isSmartRef__":true,"id":7043},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7043":{"this":{"__isSmartRef__":true,"id":2003}},"7044":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7045":{"varMapping":{"__isSmartRef__":true,"id":7046},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7046":{"this":{"__isSmartRef__":true,"id":2003}},"7047":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7048":{"varMapping":{"__isSmartRef__":true,"id":7049},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7049":{"this":{"__isSmartRef__":true,"id":2003}},"7050":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7051":{"varMapping":{"__isSmartRef__":true,"id":7052},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7052":{"this":{"__isSmartRef__":true,"id":2003}},"7053":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7054":{"varMapping":{"__isSmartRef__":true,"id":7055},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7055":{"this":{"__isSmartRef__":true,"id":2003}},"7056":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7057":{"varMapping":{"__isSmartRef__":true,"id":7058},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7058":{"this":{"__isSmartRef__":true,"id":2003}},"7059":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7060":{"varMapping":{"__isSmartRef__":true,"id":7061},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7061":{"this":{"__isSmartRef__":true,"id":2003}},"7062":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7063":{"addBomb":{"__isSmartRef__":true,"id":7064},"clearFlag":{"__isSmartRef__":true,"id":7067},"countNeighborBombs":{"__isSmartRef__":true,"id":7070},"fixSubmorph":{"__isSmartRef__":true,"id":7073},"initAppearance":{"__isSmartRef__":true,"id":7076},"initMorphs":{"__isSmartRef__":true,"id":7079},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7082},"isClosed":{"__isSmartRef__":true,"id":7085},"neighborPoints":{"__isSmartRef__":true,"id":7088},"onMouseDown":{"__isSmartRef__":true,"id":7091},"restoreGameAppearance":{"__isSmartRef__":true,"id":7098},"reveal":{"__isSmartRef__":true,"id":7101},"setCoordinates":{"__isSmartRef__":true,"id":7104},"showBomb":{"__isSmartRef__":true,"id":7107},"showDebugState":{"__isSmartRef__":true,"id":7110},"showFlag":{"__isSmartRef__":true,"id":7113},"showState":{"__isSmartRef__":true,"id":7116},"copyImageMorph":{"__isSmartRef__":true,"id":7119},"prepareToPublish":{"__isSmartRef__":true,"id":7122}},"7064":{"varMapping":{"__isSmartRef__":true,"id":7065},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7065":{"this":{"__isSmartRef__":true,"id":1955}},"7066":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7067":{"varMapping":{"__isSmartRef__":true,"id":7068},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7068":{"this":{"__isSmartRef__":true,"id":1955}},"7069":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7070":{"varMapping":{"__isSmartRef__":true,"id":7071},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7071":{"this":{"__isSmartRef__":true,"id":1955}},"7072":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7073":{"varMapping":{"__isSmartRef__":true,"id":7074},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7074":{"this":{"__isSmartRef__":true,"id":1955}},"7075":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7076":{"varMapping":{"__isSmartRef__":true,"id":7077},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7077":{"this":{"__isSmartRef__":true,"id":1955}},"7078":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7079":{"varMapping":{"__isSmartRef__":true,"id":7080},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7080":{"this":{"__isSmartRef__":true,"id":1955}},"7081":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7082":{"varMapping":{"__isSmartRef__":true,"id":7083},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7083":{"this":{"__isSmartRef__":true,"id":1955}},"7084":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7085":{"varMapping":{"__isSmartRef__":true,"id":7086},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7086":{"this":{"__isSmartRef__":true,"id":1955}},"7087":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7088":{"varMapping":{"__isSmartRef__":true,"id":7089},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7089":{"this":{"__isSmartRef__":true,"id":1955}},"7090":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7091":{"varMapping":{"__isSmartRef__":true,"id":7092},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7092":{"this":{"__isSmartRef__":true,"id":1955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7093}},"7093":{"$super":{"__isSmartRef__":true,"id":7094}},"7094":{"varMapping":{"__isSmartRef__":true,"id":7095},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7095":{"obj":{"__isSmartRef__":true,"id":1955},"name":"onMouseDown"},"7096":{},"7097":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7098":{"varMapping":{"__isSmartRef__":true,"id":7099},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7099":{"this":{"__isSmartRef__":true,"id":1955}},"7100":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7101":{"varMapping":{"__isSmartRef__":true,"id":7102},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7102":{"this":{"__isSmartRef__":true,"id":1955}},"7103":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7104":{"varMapping":{"__isSmartRef__":true,"id":7105},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7105":{"this":{"__isSmartRef__":true,"id":1955}},"7106":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7107":{"varMapping":{"__isSmartRef__":true,"id":7108},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7108":{"this":{"__isSmartRef__":true,"id":1955}},"7109":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7110":{"varMapping":{"__isSmartRef__":true,"id":7111},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7111":{"this":{"__isSmartRef__":true,"id":1955}},"7112":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7113":{"varMapping":{"__isSmartRef__":true,"id":7114},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7114":{"this":{"__isSmartRef__":true,"id":1955}},"7115":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7116":{"varMapping":{"__isSmartRef__":true,"id":7117},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7117":{"this":{"__isSmartRef__":true,"id":1955}},"7118":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7119":{"varMapping":{"__isSmartRef__":true,"id":7120},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7120":{"this":{"__isSmartRef__":true,"id":1955}},"7121":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7122":{"varMapping":{"__isSmartRef__":true,"id":7123},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7123":{"this":{"__isSmartRef__":true,"id":1955}},"7124":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7125":{"addBomb":{"__isSmartRef__":true,"id":7126},"clearFlag":{"__isSmartRef__":true,"id":7129},"countNeighborBombs":{"__isSmartRef__":true,"id":7132},"fixSubmorph":{"__isSmartRef__":true,"id":7135},"initAppearance":{"__isSmartRef__":true,"id":7138},"initMorphs":{"__isSmartRef__":true,"id":7141},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7144},"isClosed":{"__isSmartRef__":true,"id":7147},"neighborPoints":{"__isSmartRef__":true,"id":7150},"onMouseDown":{"__isSmartRef__":true,"id":7153},"restoreGameAppearance":{"__isSmartRef__":true,"id":7160},"reveal":{"__isSmartRef__":true,"id":7163},"setCoordinates":{"__isSmartRef__":true,"id":7166},"showBomb":{"__isSmartRef__":true,"id":7169},"showDebugState":{"__isSmartRef__":true,"id":7172},"showFlag":{"__isSmartRef__":true,"id":7175},"showState":{"__isSmartRef__":true,"id":7178},"copyImageMorph":{"__isSmartRef__":true,"id":7181},"prepareToPublish":{"__isSmartRef__":true,"id":7184}},"7126":{"varMapping":{"__isSmartRef__":true,"id":7127},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7127":{"this":{"__isSmartRef__":true,"id":1907}},"7128":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7129":{"varMapping":{"__isSmartRef__":true,"id":7130},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7130":{"this":{"__isSmartRef__":true,"id":1907}},"7131":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7132":{"varMapping":{"__isSmartRef__":true,"id":7133},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7133":{"this":{"__isSmartRef__":true,"id":1907}},"7134":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7135":{"varMapping":{"__isSmartRef__":true,"id":7136},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7136":{"this":{"__isSmartRef__":true,"id":1907}},"7137":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7138":{"varMapping":{"__isSmartRef__":true,"id":7139},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7139":{"this":{"__isSmartRef__":true,"id":1907}},"7140":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7141":{"varMapping":{"__isSmartRef__":true,"id":7142},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7142":{"this":{"__isSmartRef__":true,"id":1907}},"7143":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7144":{"varMapping":{"__isSmartRef__":true,"id":7145},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7145":{"this":{"__isSmartRef__":true,"id":1907}},"7146":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7147":{"varMapping":{"__isSmartRef__":true,"id":7148},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7148":{"this":{"__isSmartRef__":true,"id":1907}},"7149":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7150":{"varMapping":{"__isSmartRef__":true,"id":7151},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7151":{"this":{"__isSmartRef__":true,"id":1907}},"7152":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7153":{"varMapping":{"__isSmartRef__":true,"id":7154},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7154":{"this":{"__isSmartRef__":true,"id":1907},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7155}},"7155":{"$super":{"__isSmartRef__":true,"id":7156}},"7156":{"varMapping":{"__isSmartRef__":true,"id":7157},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7157":{"obj":{"__isSmartRef__":true,"id":1907},"name":"onMouseDown"},"7158":{},"7159":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7160":{"varMapping":{"__isSmartRef__":true,"id":7161},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7161":{"this":{"__isSmartRef__":true,"id":1907}},"7162":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7163":{"varMapping":{"__isSmartRef__":true,"id":7164},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7164":{"this":{"__isSmartRef__":true,"id":1907}},"7165":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7166":{"varMapping":{"__isSmartRef__":true,"id":7167},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7167":{"this":{"__isSmartRef__":true,"id":1907}},"7168":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7169":{"varMapping":{"__isSmartRef__":true,"id":7170},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7170":{"this":{"__isSmartRef__":true,"id":1907}},"7171":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7172":{"varMapping":{"__isSmartRef__":true,"id":7173},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7173":{"this":{"__isSmartRef__":true,"id":1907}},"7174":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7175":{"varMapping":{"__isSmartRef__":true,"id":7176},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7176":{"this":{"__isSmartRef__":true,"id":1907}},"7177":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7178":{"varMapping":{"__isSmartRef__":true,"id":7179},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7179":{"this":{"__isSmartRef__":true,"id":1907}},"7180":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7181":{"varMapping":{"__isSmartRef__":true,"id":7182},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7182":{"this":{"__isSmartRef__":true,"id":1907}},"7183":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7184":{"varMapping":{"__isSmartRef__":true,"id":7185},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7185":{"this":{"__isSmartRef__":true,"id":1907}},"7186":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7187":{"addBomb":{"__isSmartRef__":true,"id":7188},"clearFlag":{"__isSmartRef__":true,"id":7191},"countNeighborBombs":{"__isSmartRef__":true,"id":7194},"fixSubmorph":{"__isSmartRef__":true,"id":7197},"initAppearance":{"__isSmartRef__":true,"id":7200},"initMorphs":{"__isSmartRef__":true,"id":7203},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7206},"isClosed":{"__isSmartRef__":true,"id":7209},"neighborPoints":{"__isSmartRef__":true,"id":7212},"onMouseDown":{"__isSmartRef__":true,"id":7215},"restoreGameAppearance":{"__isSmartRef__":true,"id":7222},"reveal":{"__isSmartRef__":true,"id":7225},"setCoordinates":{"__isSmartRef__":true,"id":7228},"showBomb":{"__isSmartRef__":true,"id":7231},"showDebugState":{"__isSmartRef__":true,"id":7234},"showFlag":{"__isSmartRef__":true,"id":7237},"showState":{"__isSmartRef__":true,"id":7240},"copyImageMorph":{"__isSmartRef__":true,"id":7243},"prepareToPublish":{"__isSmartRef__":true,"id":7246}},"7188":{"varMapping":{"__isSmartRef__":true,"id":7189},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7189":{"this":{"__isSmartRef__":true,"id":1859}},"7190":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7191":{"varMapping":{"__isSmartRef__":true,"id":7192},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7192":{"this":{"__isSmartRef__":true,"id":1859}},"7193":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7194":{"varMapping":{"__isSmartRef__":true,"id":7195},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7195":{"this":{"__isSmartRef__":true,"id":1859}},"7196":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7197":{"varMapping":{"__isSmartRef__":true,"id":7198},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7198":{"this":{"__isSmartRef__":true,"id":1859}},"7199":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7200":{"varMapping":{"__isSmartRef__":true,"id":7201},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7201":{"this":{"__isSmartRef__":true,"id":1859}},"7202":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7203":{"varMapping":{"__isSmartRef__":true,"id":7204},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7204":{"this":{"__isSmartRef__":true,"id":1859}},"7205":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7206":{"varMapping":{"__isSmartRef__":true,"id":7207},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7207":{"this":{"__isSmartRef__":true,"id":1859}},"7208":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7209":{"varMapping":{"__isSmartRef__":true,"id":7210},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7210":{"this":{"__isSmartRef__":true,"id":1859}},"7211":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7212":{"varMapping":{"__isSmartRef__":true,"id":7213},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7213":{"this":{"__isSmartRef__":true,"id":1859}},"7214":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7215":{"varMapping":{"__isSmartRef__":true,"id":7216},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7216":{"this":{"__isSmartRef__":true,"id":1859},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7217}},"7217":{"$super":{"__isSmartRef__":true,"id":7218}},"7218":{"varMapping":{"__isSmartRef__":true,"id":7219},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7219":{"obj":{"__isSmartRef__":true,"id":1859},"name":"onMouseDown"},"7220":{},"7221":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7222":{"varMapping":{"__isSmartRef__":true,"id":7223},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7223":{"this":{"__isSmartRef__":true,"id":1859}},"7224":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7225":{"varMapping":{"__isSmartRef__":true,"id":7226},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7226":{"this":{"__isSmartRef__":true,"id":1859}},"7227":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7228":{"varMapping":{"__isSmartRef__":true,"id":7229},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7229":{"this":{"__isSmartRef__":true,"id":1859}},"7230":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7231":{"varMapping":{"__isSmartRef__":true,"id":7232},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7232":{"this":{"__isSmartRef__":true,"id":1859}},"7233":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7234":{"varMapping":{"__isSmartRef__":true,"id":7235},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7235":{"this":{"__isSmartRef__":true,"id":1859}},"7236":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7237":{"varMapping":{"__isSmartRef__":true,"id":7238},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7238":{"this":{"__isSmartRef__":true,"id":1859}},"7239":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7240":{"varMapping":{"__isSmartRef__":true,"id":7241},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7241":{"this":{"__isSmartRef__":true,"id":1859}},"7242":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7243":{"varMapping":{"__isSmartRef__":true,"id":7244},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7244":{"this":{"__isSmartRef__":true,"id":1859}},"7245":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7246":{"varMapping":{"__isSmartRef__":true,"id":7247},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7247":{"this":{"__isSmartRef__":true,"id":1859}},"7248":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7249":{"addBomb":{"__isSmartRef__":true,"id":7250},"clearFlag":{"__isSmartRef__":true,"id":7253},"countNeighborBombs":{"__isSmartRef__":true,"id":7256},"fixSubmorph":{"__isSmartRef__":true,"id":7259},"initAppearance":{"__isSmartRef__":true,"id":7262},"initMorphs":{"__isSmartRef__":true,"id":7265},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7268},"isClosed":{"__isSmartRef__":true,"id":7271},"neighborPoints":{"__isSmartRef__":true,"id":7274},"onMouseDown":{"__isSmartRef__":true,"id":7277},"restoreGameAppearance":{"__isSmartRef__":true,"id":7284},"reveal":{"__isSmartRef__":true,"id":7287},"setCoordinates":{"__isSmartRef__":true,"id":7290},"showBomb":{"__isSmartRef__":true,"id":7293},"showDebugState":{"__isSmartRef__":true,"id":7296},"showFlag":{"__isSmartRef__":true,"id":7299},"showState":{"__isSmartRef__":true,"id":7302},"copyImageMorph":{"__isSmartRef__":true,"id":7305},"prepareToPublish":{"__isSmartRef__":true,"id":7308}},"7250":{"varMapping":{"__isSmartRef__":true,"id":7251},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7251":{"this":{"__isSmartRef__":true,"id":1811}},"7252":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7253":{"varMapping":{"__isSmartRef__":true,"id":7254},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7254":{"this":{"__isSmartRef__":true,"id":1811}},"7255":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7256":{"varMapping":{"__isSmartRef__":true,"id":7257},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7257":{"this":{"__isSmartRef__":true,"id":1811}},"7258":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7259":{"varMapping":{"__isSmartRef__":true,"id":7260},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7260":{"this":{"__isSmartRef__":true,"id":1811}},"7261":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7262":{"varMapping":{"__isSmartRef__":true,"id":7263},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7263":{"this":{"__isSmartRef__":true,"id":1811}},"7264":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7265":{"varMapping":{"__isSmartRef__":true,"id":7266},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7266":{"this":{"__isSmartRef__":true,"id":1811}},"7267":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7268":{"varMapping":{"__isSmartRef__":true,"id":7269},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7269":{"this":{"__isSmartRef__":true,"id":1811}},"7270":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7271":{"varMapping":{"__isSmartRef__":true,"id":7272},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7272":{"this":{"__isSmartRef__":true,"id":1811}},"7273":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7274":{"varMapping":{"__isSmartRef__":true,"id":7275},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7275":{"this":{"__isSmartRef__":true,"id":1811}},"7276":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7277":{"varMapping":{"__isSmartRef__":true,"id":7278},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7278":{"this":{"__isSmartRef__":true,"id":1811},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7279}},"7279":{"$super":{"__isSmartRef__":true,"id":7280}},"7280":{"varMapping":{"__isSmartRef__":true,"id":7281},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7281":{"obj":{"__isSmartRef__":true,"id":1811},"name":"onMouseDown"},"7282":{},"7283":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7284":{"varMapping":{"__isSmartRef__":true,"id":7285},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7285":{"this":{"__isSmartRef__":true,"id":1811}},"7286":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7287":{"varMapping":{"__isSmartRef__":true,"id":7288},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7288":{"this":{"__isSmartRef__":true,"id":1811}},"7289":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7290":{"varMapping":{"__isSmartRef__":true,"id":7291},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7291":{"this":{"__isSmartRef__":true,"id":1811}},"7292":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7293":{"varMapping":{"__isSmartRef__":true,"id":7294},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7294":{"this":{"__isSmartRef__":true,"id":1811}},"7295":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7296":{"varMapping":{"__isSmartRef__":true,"id":7297},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7297":{"this":{"__isSmartRef__":true,"id":1811}},"7298":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7299":{"varMapping":{"__isSmartRef__":true,"id":7300},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7300":{"this":{"__isSmartRef__":true,"id":1811}},"7301":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7302":{"varMapping":{"__isSmartRef__":true,"id":7303},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7303":{"this":{"__isSmartRef__":true,"id":1811}},"7304":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7305":{"varMapping":{"__isSmartRef__":true,"id":7306},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7306":{"this":{"__isSmartRef__":true,"id":1811}},"7307":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7308":{"varMapping":{"__isSmartRef__":true,"id":7309},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7309":{"this":{"__isSmartRef__":true,"id":1811}},"7310":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7311":{"addBomb":{"__isSmartRef__":true,"id":7312},"clearFlag":{"__isSmartRef__":true,"id":7315},"countNeighborBombs":{"__isSmartRef__":true,"id":7318},"fixSubmorph":{"__isSmartRef__":true,"id":7321},"initAppearance":{"__isSmartRef__":true,"id":7324},"initMorphs":{"__isSmartRef__":true,"id":7327},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7330},"isClosed":{"__isSmartRef__":true,"id":7333},"neighborPoints":{"__isSmartRef__":true,"id":7336},"onMouseDown":{"__isSmartRef__":true,"id":7339},"restoreGameAppearance":{"__isSmartRef__":true,"id":7346},"reveal":{"__isSmartRef__":true,"id":7349},"setCoordinates":{"__isSmartRef__":true,"id":7352},"showBomb":{"__isSmartRef__":true,"id":7355},"showDebugState":{"__isSmartRef__":true,"id":7358},"showFlag":{"__isSmartRef__":true,"id":7361},"showState":{"__isSmartRef__":true,"id":7364},"copyImageMorph":{"__isSmartRef__":true,"id":7367},"prepareToPublish":{"__isSmartRef__":true,"id":7370}},"7312":{"varMapping":{"__isSmartRef__":true,"id":7313},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7313":{"this":{"__isSmartRef__":true,"id":1763}},"7314":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7315":{"varMapping":{"__isSmartRef__":true,"id":7316},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7316":{"this":{"__isSmartRef__":true,"id":1763}},"7317":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7318":{"varMapping":{"__isSmartRef__":true,"id":7319},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7319":{"this":{"__isSmartRef__":true,"id":1763}},"7320":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7321":{"varMapping":{"__isSmartRef__":true,"id":7322},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7322":{"this":{"__isSmartRef__":true,"id":1763}},"7323":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7324":{"varMapping":{"__isSmartRef__":true,"id":7325},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7325":{"this":{"__isSmartRef__":true,"id":1763}},"7326":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7327":{"varMapping":{"__isSmartRef__":true,"id":7328},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7328":{"this":{"__isSmartRef__":true,"id":1763}},"7329":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7330":{"varMapping":{"__isSmartRef__":true,"id":7331},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7331":{"this":{"__isSmartRef__":true,"id":1763}},"7332":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7333":{"varMapping":{"__isSmartRef__":true,"id":7334},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7334":{"this":{"__isSmartRef__":true,"id":1763}},"7335":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7336":{"varMapping":{"__isSmartRef__":true,"id":7337},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7337":{"this":{"__isSmartRef__":true,"id":1763}},"7338":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7339":{"varMapping":{"__isSmartRef__":true,"id":7340},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7340":{"this":{"__isSmartRef__":true,"id":1763},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7341}},"7341":{"$super":{"__isSmartRef__":true,"id":7342}},"7342":{"varMapping":{"__isSmartRef__":true,"id":7343},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7343":{"obj":{"__isSmartRef__":true,"id":1763},"name":"onMouseDown"},"7344":{},"7345":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7346":{"varMapping":{"__isSmartRef__":true,"id":7347},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7347":{"this":{"__isSmartRef__":true,"id":1763}},"7348":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7349":{"varMapping":{"__isSmartRef__":true,"id":7350},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7350":{"this":{"__isSmartRef__":true,"id":1763}},"7351":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7352":{"varMapping":{"__isSmartRef__":true,"id":7353},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7353":{"this":{"__isSmartRef__":true,"id":1763}},"7354":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7355":{"varMapping":{"__isSmartRef__":true,"id":7356},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7356":{"this":{"__isSmartRef__":true,"id":1763}},"7357":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7358":{"varMapping":{"__isSmartRef__":true,"id":7359},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7359":{"this":{"__isSmartRef__":true,"id":1763}},"7360":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7361":{"varMapping":{"__isSmartRef__":true,"id":7362},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7362":{"this":{"__isSmartRef__":true,"id":1763}},"7363":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7364":{"varMapping":{"__isSmartRef__":true,"id":7365},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7365":{"this":{"__isSmartRef__":true,"id":1763}},"7366":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7367":{"varMapping":{"__isSmartRef__":true,"id":7368},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7368":{"this":{"__isSmartRef__":true,"id":1763}},"7369":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7370":{"varMapping":{"__isSmartRef__":true,"id":7371},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7371":{"this":{"__isSmartRef__":true,"id":1763}},"7372":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7373":{"addBomb":{"__isSmartRef__":true,"id":7374},"clearFlag":{"__isSmartRef__":true,"id":7377},"countNeighborBombs":{"__isSmartRef__":true,"id":7380},"fixSubmorph":{"__isSmartRef__":true,"id":7383},"initAppearance":{"__isSmartRef__":true,"id":7386},"initMorphs":{"__isSmartRef__":true,"id":7389},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7392},"isClosed":{"__isSmartRef__":true,"id":7395},"neighborPoints":{"__isSmartRef__":true,"id":7398},"onMouseDown":{"__isSmartRef__":true,"id":7401},"restoreGameAppearance":{"__isSmartRef__":true,"id":7408},"reveal":{"__isSmartRef__":true,"id":7411},"setCoordinates":{"__isSmartRef__":true,"id":7414},"showBomb":{"__isSmartRef__":true,"id":7417},"showDebugState":{"__isSmartRef__":true,"id":7420},"showFlag":{"__isSmartRef__":true,"id":7423},"showState":{"__isSmartRef__":true,"id":7426},"copyImageMorph":{"__isSmartRef__":true,"id":7429},"prepareToPublish":{"__isSmartRef__":true,"id":7432}},"7374":{"varMapping":{"__isSmartRef__":true,"id":7375},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7375":{"this":{"__isSmartRef__":true,"id":1715}},"7376":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7377":{"varMapping":{"__isSmartRef__":true,"id":7378},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7378":{"this":{"__isSmartRef__":true,"id":1715}},"7379":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7380":{"varMapping":{"__isSmartRef__":true,"id":7381},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7381":{"this":{"__isSmartRef__":true,"id":1715}},"7382":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7383":{"varMapping":{"__isSmartRef__":true,"id":7384},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7384":{"this":{"__isSmartRef__":true,"id":1715}},"7385":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7386":{"varMapping":{"__isSmartRef__":true,"id":7387},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7387":{"this":{"__isSmartRef__":true,"id":1715}},"7388":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7389":{"varMapping":{"__isSmartRef__":true,"id":7390},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7390":{"this":{"__isSmartRef__":true,"id":1715}},"7391":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7392":{"varMapping":{"__isSmartRef__":true,"id":7393},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7393":{"this":{"__isSmartRef__":true,"id":1715}},"7394":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7395":{"varMapping":{"__isSmartRef__":true,"id":7396},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7396":{"this":{"__isSmartRef__":true,"id":1715}},"7397":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7398":{"varMapping":{"__isSmartRef__":true,"id":7399},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7399":{"this":{"__isSmartRef__":true,"id":1715}},"7400":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7401":{"varMapping":{"__isSmartRef__":true,"id":7402},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7402":{"this":{"__isSmartRef__":true,"id":1715},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7403}},"7403":{"$super":{"__isSmartRef__":true,"id":7404}},"7404":{"varMapping":{"__isSmartRef__":true,"id":7405},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7405":{"obj":{"__isSmartRef__":true,"id":1715},"name":"onMouseDown"},"7406":{},"7407":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7408":{"varMapping":{"__isSmartRef__":true,"id":7409},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7409":{"this":{"__isSmartRef__":true,"id":1715}},"7410":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7411":{"varMapping":{"__isSmartRef__":true,"id":7412},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7412":{"this":{"__isSmartRef__":true,"id":1715}},"7413":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7414":{"varMapping":{"__isSmartRef__":true,"id":7415},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7415":{"this":{"__isSmartRef__":true,"id":1715}},"7416":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7417":{"varMapping":{"__isSmartRef__":true,"id":7418},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7418":{"this":{"__isSmartRef__":true,"id":1715}},"7419":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7420":{"varMapping":{"__isSmartRef__":true,"id":7421},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7421":{"this":{"__isSmartRef__":true,"id":1715}},"7422":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7423":{"varMapping":{"__isSmartRef__":true,"id":7424},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7424":{"this":{"__isSmartRef__":true,"id":1715}},"7425":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7426":{"varMapping":{"__isSmartRef__":true,"id":7427},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7427":{"this":{"__isSmartRef__":true,"id":1715}},"7428":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7429":{"varMapping":{"__isSmartRef__":true,"id":7430},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7430":{"this":{"__isSmartRef__":true,"id":1715}},"7431":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7432":{"varMapping":{"__isSmartRef__":true,"id":7433},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7433":{"this":{"__isSmartRef__":true,"id":1715}},"7434":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7435":{"addBomb":{"__isSmartRef__":true,"id":7436},"clearFlag":{"__isSmartRef__":true,"id":7439},"countNeighborBombs":{"__isSmartRef__":true,"id":7442},"fixSubmorph":{"__isSmartRef__":true,"id":7445},"initAppearance":{"__isSmartRef__":true,"id":7448},"initMorphs":{"__isSmartRef__":true,"id":7451},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7454},"isClosed":{"__isSmartRef__":true,"id":7457},"neighborPoints":{"__isSmartRef__":true,"id":7460},"onMouseDown":{"__isSmartRef__":true,"id":7463},"restoreGameAppearance":{"__isSmartRef__":true,"id":7470},"reveal":{"__isSmartRef__":true,"id":7473},"setCoordinates":{"__isSmartRef__":true,"id":7476},"showBomb":{"__isSmartRef__":true,"id":7479},"showDebugState":{"__isSmartRef__":true,"id":7482},"showFlag":{"__isSmartRef__":true,"id":7485},"showState":{"__isSmartRef__":true,"id":7488},"copyImageMorph":{"__isSmartRef__":true,"id":7491},"prepareToPublish":{"__isSmartRef__":true,"id":7494}},"7436":{"varMapping":{"__isSmartRef__":true,"id":7437},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7437":{"this":{"__isSmartRef__":true,"id":1667}},"7438":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7439":{"varMapping":{"__isSmartRef__":true,"id":7440},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7440":{"this":{"__isSmartRef__":true,"id":1667}},"7441":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7442":{"varMapping":{"__isSmartRef__":true,"id":7443},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7443":{"this":{"__isSmartRef__":true,"id":1667}},"7444":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7445":{"varMapping":{"__isSmartRef__":true,"id":7446},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7446":{"this":{"__isSmartRef__":true,"id":1667}},"7447":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7448":{"varMapping":{"__isSmartRef__":true,"id":7449},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7449":{"this":{"__isSmartRef__":true,"id":1667}},"7450":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7451":{"varMapping":{"__isSmartRef__":true,"id":7452},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7452":{"this":{"__isSmartRef__":true,"id":1667}},"7453":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7454":{"varMapping":{"__isSmartRef__":true,"id":7455},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7455":{"this":{"__isSmartRef__":true,"id":1667}},"7456":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7457":{"varMapping":{"__isSmartRef__":true,"id":7458},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7458":{"this":{"__isSmartRef__":true,"id":1667}},"7459":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7460":{"varMapping":{"__isSmartRef__":true,"id":7461},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7461":{"this":{"__isSmartRef__":true,"id":1667}},"7462":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7463":{"varMapping":{"__isSmartRef__":true,"id":7464},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7464":{"this":{"__isSmartRef__":true,"id":1667},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7465}},"7465":{"$super":{"__isSmartRef__":true,"id":7466}},"7466":{"varMapping":{"__isSmartRef__":true,"id":7467},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7467":{"obj":{"__isSmartRef__":true,"id":1667},"name":"onMouseDown"},"7468":{},"7469":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7470":{"varMapping":{"__isSmartRef__":true,"id":7471},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7471":{"this":{"__isSmartRef__":true,"id":1667}},"7472":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7473":{"varMapping":{"__isSmartRef__":true,"id":7474},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7474":{"this":{"__isSmartRef__":true,"id":1667}},"7475":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7476":{"varMapping":{"__isSmartRef__":true,"id":7477},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7477":{"this":{"__isSmartRef__":true,"id":1667}},"7478":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7479":{"varMapping":{"__isSmartRef__":true,"id":7480},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7480":{"this":{"__isSmartRef__":true,"id":1667}},"7481":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7482":{"varMapping":{"__isSmartRef__":true,"id":7483},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7483":{"this":{"__isSmartRef__":true,"id":1667}},"7484":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7485":{"varMapping":{"__isSmartRef__":true,"id":7486},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7486":{"this":{"__isSmartRef__":true,"id":1667}},"7487":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7488":{"varMapping":{"__isSmartRef__":true,"id":7489},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7489":{"this":{"__isSmartRef__":true,"id":1667}},"7490":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7491":{"varMapping":{"__isSmartRef__":true,"id":7492},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7492":{"this":{"__isSmartRef__":true,"id":1667}},"7493":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7494":{"varMapping":{"__isSmartRef__":true,"id":7495},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7495":{"this":{"__isSmartRef__":true,"id":1667}},"7496":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7497":{"addBomb":{"__isSmartRef__":true,"id":7498},"clearFlag":{"__isSmartRef__":true,"id":7501},"countNeighborBombs":{"__isSmartRef__":true,"id":7504},"fixSubmorph":{"__isSmartRef__":true,"id":7507},"initAppearance":{"__isSmartRef__":true,"id":7510},"initMorphs":{"__isSmartRef__":true,"id":7513},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7516},"isClosed":{"__isSmartRef__":true,"id":7519},"neighborPoints":{"__isSmartRef__":true,"id":7522},"onMouseDown":{"__isSmartRef__":true,"id":7525},"restoreGameAppearance":{"__isSmartRef__":true,"id":7532},"reveal":{"__isSmartRef__":true,"id":7535},"setCoordinates":{"__isSmartRef__":true,"id":7538},"showBomb":{"__isSmartRef__":true,"id":7541},"showDebugState":{"__isSmartRef__":true,"id":7544},"showFlag":{"__isSmartRef__":true,"id":7547},"showState":{"__isSmartRef__":true,"id":7550},"copyImageMorph":{"__isSmartRef__":true,"id":7553},"prepareToPublish":{"__isSmartRef__":true,"id":7556}},"7498":{"varMapping":{"__isSmartRef__":true,"id":7499},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7499":{"this":{"__isSmartRef__":true,"id":1619}},"7500":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7501":{"varMapping":{"__isSmartRef__":true,"id":7502},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7502":{"this":{"__isSmartRef__":true,"id":1619}},"7503":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7504":{"varMapping":{"__isSmartRef__":true,"id":7505},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7505":{"this":{"__isSmartRef__":true,"id":1619}},"7506":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7507":{"varMapping":{"__isSmartRef__":true,"id":7508},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7508":{"this":{"__isSmartRef__":true,"id":1619}},"7509":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7510":{"varMapping":{"__isSmartRef__":true,"id":7511},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7511":{"this":{"__isSmartRef__":true,"id":1619}},"7512":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7513":{"varMapping":{"__isSmartRef__":true,"id":7514},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7514":{"this":{"__isSmartRef__":true,"id":1619}},"7515":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7516":{"varMapping":{"__isSmartRef__":true,"id":7517},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7517":{"this":{"__isSmartRef__":true,"id":1619}},"7518":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7519":{"varMapping":{"__isSmartRef__":true,"id":7520},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7520":{"this":{"__isSmartRef__":true,"id":1619}},"7521":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7522":{"varMapping":{"__isSmartRef__":true,"id":7523},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7523":{"this":{"__isSmartRef__":true,"id":1619}},"7524":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7525":{"varMapping":{"__isSmartRef__":true,"id":7526},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7526":{"this":{"__isSmartRef__":true,"id":1619},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7527}},"7527":{"$super":{"__isSmartRef__":true,"id":7528}},"7528":{"varMapping":{"__isSmartRef__":true,"id":7529},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7529":{"obj":{"__isSmartRef__":true,"id":1619},"name":"onMouseDown"},"7530":{},"7531":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7532":{"varMapping":{"__isSmartRef__":true,"id":7533},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7533":{"this":{"__isSmartRef__":true,"id":1619}},"7534":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7535":{"varMapping":{"__isSmartRef__":true,"id":7536},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7536":{"this":{"__isSmartRef__":true,"id":1619}},"7537":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7538":{"varMapping":{"__isSmartRef__":true,"id":7539},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7539":{"this":{"__isSmartRef__":true,"id":1619}},"7540":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7541":{"varMapping":{"__isSmartRef__":true,"id":7542},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7542":{"this":{"__isSmartRef__":true,"id":1619}},"7543":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7544":{"varMapping":{"__isSmartRef__":true,"id":7545},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7545":{"this":{"__isSmartRef__":true,"id":1619}},"7546":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7547":{"varMapping":{"__isSmartRef__":true,"id":7548},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7548":{"this":{"__isSmartRef__":true,"id":1619}},"7549":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7550":{"varMapping":{"__isSmartRef__":true,"id":7551},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7551":{"this":{"__isSmartRef__":true,"id":1619}},"7552":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7553":{"varMapping":{"__isSmartRef__":true,"id":7554},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7554":{"this":{"__isSmartRef__":true,"id":1619}},"7555":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7556":{"varMapping":{"__isSmartRef__":true,"id":7557},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7557":{"this":{"__isSmartRef__":true,"id":1619}},"7558":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7559":{"addBomb":{"__isSmartRef__":true,"id":7560},"clearFlag":{"__isSmartRef__":true,"id":7563},"countNeighborBombs":{"__isSmartRef__":true,"id":7566},"fixSubmorph":{"__isSmartRef__":true,"id":7569},"initAppearance":{"__isSmartRef__":true,"id":7572},"initMorphs":{"__isSmartRef__":true,"id":7575},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7578},"isClosed":{"__isSmartRef__":true,"id":7581},"neighborPoints":{"__isSmartRef__":true,"id":7584},"onMouseDown":{"__isSmartRef__":true,"id":7587},"restoreGameAppearance":{"__isSmartRef__":true,"id":7594},"reveal":{"__isSmartRef__":true,"id":7597},"setCoordinates":{"__isSmartRef__":true,"id":7600},"showBomb":{"__isSmartRef__":true,"id":7603},"showDebugState":{"__isSmartRef__":true,"id":7606},"showFlag":{"__isSmartRef__":true,"id":7609},"showState":{"__isSmartRef__":true,"id":7612},"copyImageMorph":{"__isSmartRef__":true,"id":7615},"prepareToPublish":{"__isSmartRef__":true,"id":7618}},"7560":{"varMapping":{"__isSmartRef__":true,"id":7561},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7561":{"this":{"__isSmartRef__":true,"id":1571}},"7562":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7563":{"varMapping":{"__isSmartRef__":true,"id":7564},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7564":{"this":{"__isSmartRef__":true,"id":1571}},"7565":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7566":{"varMapping":{"__isSmartRef__":true,"id":7567},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7567":{"this":{"__isSmartRef__":true,"id":1571}},"7568":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7569":{"varMapping":{"__isSmartRef__":true,"id":7570},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7570":{"this":{"__isSmartRef__":true,"id":1571}},"7571":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7572":{"varMapping":{"__isSmartRef__":true,"id":7573},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7573":{"this":{"__isSmartRef__":true,"id":1571}},"7574":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7575":{"varMapping":{"__isSmartRef__":true,"id":7576},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7576":{"this":{"__isSmartRef__":true,"id":1571}},"7577":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7578":{"varMapping":{"__isSmartRef__":true,"id":7579},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7579":{"this":{"__isSmartRef__":true,"id":1571}},"7580":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7581":{"varMapping":{"__isSmartRef__":true,"id":7582},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7582":{"this":{"__isSmartRef__":true,"id":1571}},"7583":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7584":{"varMapping":{"__isSmartRef__":true,"id":7585},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7585":{"this":{"__isSmartRef__":true,"id":1571}},"7586":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7587":{"varMapping":{"__isSmartRef__":true,"id":7588},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7588":{"this":{"__isSmartRef__":true,"id":1571},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7589}},"7589":{"$super":{"__isSmartRef__":true,"id":7590}},"7590":{"varMapping":{"__isSmartRef__":true,"id":7591},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7591":{"obj":{"__isSmartRef__":true,"id":1571},"name":"onMouseDown"},"7592":{},"7593":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7594":{"varMapping":{"__isSmartRef__":true,"id":7595},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7595":{"this":{"__isSmartRef__":true,"id":1571}},"7596":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7597":{"varMapping":{"__isSmartRef__":true,"id":7598},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7598":{"this":{"__isSmartRef__":true,"id":1571}},"7599":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7600":{"varMapping":{"__isSmartRef__":true,"id":7601},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7601":{"this":{"__isSmartRef__":true,"id":1571}},"7602":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7603":{"varMapping":{"__isSmartRef__":true,"id":7604},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7604":{"this":{"__isSmartRef__":true,"id":1571}},"7605":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7606":{"varMapping":{"__isSmartRef__":true,"id":7607},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7607":{"this":{"__isSmartRef__":true,"id":1571}},"7608":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7609":{"varMapping":{"__isSmartRef__":true,"id":7610},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7610":{"this":{"__isSmartRef__":true,"id":1571}},"7611":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7612":{"varMapping":{"__isSmartRef__":true,"id":7613},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7613":{"this":{"__isSmartRef__":true,"id":1571}},"7614":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7615":{"varMapping":{"__isSmartRef__":true,"id":7616},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7616":{"this":{"__isSmartRef__":true,"id":1571}},"7617":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7618":{"varMapping":{"__isSmartRef__":true,"id":7619},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7619":{"this":{"__isSmartRef__":true,"id":1571}},"7620":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7621":{"addBomb":{"__isSmartRef__":true,"id":7622},"clearFlag":{"__isSmartRef__":true,"id":7625},"countNeighborBombs":{"__isSmartRef__":true,"id":7628},"fixSubmorph":{"__isSmartRef__":true,"id":7631},"initAppearance":{"__isSmartRef__":true,"id":7634},"initMorphs":{"__isSmartRef__":true,"id":7637},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7640},"isClosed":{"__isSmartRef__":true,"id":7643},"neighborPoints":{"__isSmartRef__":true,"id":7646},"onMouseDown":{"__isSmartRef__":true,"id":7649},"restoreGameAppearance":{"__isSmartRef__":true,"id":7656},"reveal":{"__isSmartRef__":true,"id":7659},"setCoordinates":{"__isSmartRef__":true,"id":7662},"showBomb":{"__isSmartRef__":true,"id":7665},"showDebugState":{"__isSmartRef__":true,"id":7668},"showFlag":{"__isSmartRef__":true,"id":7671},"showState":{"__isSmartRef__":true,"id":7674},"copyImageMorph":{"__isSmartRef__":true,"id":7677},"prepareToPublish":{"__isSmartRef__":true,"id":7680}},"7622":{"varMapping":{"__isSmartRef__":true,"id":7623},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7623":{"this":{"__isSmartRef__":true,"id":1523}},"7624":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7625":{"varMapping":{"__isSmartRef__":true,"id":7626},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7626":{"this":{"__isSmartRef__":true,"id":1523}},"7627":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7628":{"varMapping":{"__isSmartRef__":true,"id":7629},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7629":{"this":{"__isSmartRef__":true,"id":1523}},"7630":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7631":{"varMapping":{"__isSmartRef__":true,"id":7632},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7632":{"this":{"__isSmartRef__":true,"id":1523}},"7633":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7634":{"varMapping":{"__isSmartRef__":true,"id":7635},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7635":{"this":{"__isSmartRef__":true,"id":1523}},"7636":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7637":{"varMapping":{"__isSmartRef__":true,"id":7638},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7638":{"this":{"__isSmartRef__":true,"id":1523}},"7639":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7640":{"varMapping":{"__isSmartRef__":true,"id":7641},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7641":{"this":{"__isSmartRef__":true,"id":1523}},"7642":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7643":{"varMapping":{"__isSmartRef__":true,"id":7644},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7644":{"this":{"__isSmartRef__":true,"id":1523}},"7645":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7646":{"varMapping":{"__isSmartRef__":true,"id":7647},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7647":{"this":{"__isSmartRef__":true,"id":1523}},"7648":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7649":{"varMapping":{"__isSmartRef__":true,"id":7650},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7650":{"this":{"__isSmartRef__":true,"id":1523},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7651}},"7651":{"$super":{"__isSmartRef__":true,"id":7652}},"7652":{"varMapping":{"__isSmartRef__":true,"id":7653},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7653":{"obj":{"__isSmartRef__":true,"id":1523},"name":"onMouseDown"},"7654":{},"7655":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7656":{"varMapping":{"__isSmartRef__":true,"id":7657},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7657":{"this":{"__isSmartRef__":true,"id":1523}},"7658":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7659":{"varMapping":{"__isSmartRef__":true,"id":7660},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7660":{"this":{"__isSmartRef__":true,"id":1523}},"7661":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7662":{"varMapping":{"__isSmartRef__":true,"id":7663},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7663":{"this":{"__isSmartRef__":true,"id":1523}},"7664":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7665":{"varMapping":{"__isSmartRef__":true,"id":7666},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7666":{"this":{"__isSmartRef__":true,"id":1523}},"7667":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7668":{"varMapping":{"__isSmartRef__":true,"id":7669},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7669":{"this":{"__isSmartRef__":true,"id":1523}},"7670":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7671":{"varMapping":{"__isSmartRef__":true,"id":7672},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7672":{"this":{"__isSmartRef__":true,"id":1523}},"7673":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7674":{"varMapping":{"__isSmartRef__":true,"id":7675},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7675":{"this":{"__isSmartRef__":true,"id":1523}},"7676":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7677":{"varMapping":{"__isSmartRef__":true,"id":7678},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7678":{"this":{"__isSmartRef__":true,"id":1523}},"7679":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7680":{"varMapping":{"__isSmartRef__":true,"id":7681},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7681":{"this":{"__isSmartRef__":true,"id":1523}},"7682":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7683":{"addBomb":{"__isSmartRef__":true,"id":7684},"clearFlag":{"__isSmartRef__":true,"id":7687},"countNeighborBombs":{"__isSmartRef__":true,"id":7690},"fixSubmorph":{"__isSmartRef__":true,"id":7693},"initAppearance":{"__isSmartRef__":true,"id":7696},"initMorphs":{"__isSmartRef__":true,"id":7699},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7702},"isClosed":{"__isSmartRef__":true,"id":7705},"neighborPoints":{"__isSmartRef__":true,"id":7708},"onMouseDown":{"__isSmartRef__":true,"id":7711},"restoreGameAppearance":{"__isSmartRef__":true,"id":7718},"reveal":{"__isSmartRef__":true,"id":7721},"setCoordinates":{"__isSmartRef__":true,"id":7724},"showBomb":{"__isSmartRef__":true,"id":7727},"showDebugState":{"__isSmartRef__":true,"id":7730},"showFlag":{"__isSmartRef__":true,"id":7733},"showState":{"__isSmartRef__":true,"id":7736},"copyImageMorph":{"__isSmartRef__":true,"id":7739},"prepareToPublish":{"__isSmartRef__":true,"id":7742}},"7684":{"varMapping":{"__isSmartRef__":true,"id":7685},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7685":{"this":{"__isSmartRef__":true,"id":1475}},"7686":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7687":{"varMapping":{"__isSmartRef__":true,"id":7688},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7688":{"this":{"__isSmartRef__":true,"id":1475}},"7689":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7690":{"varMapping":{"__isSmartRef__":true,"id":7691},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7691":{"this":{"__isSmartRef__":true,"id":1475}},"7692":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7693":{"varMapping":{"__isSmartRef__":true,"id":7694},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7694":{"this":{"__isSmartRef__":true,"id":1475}},"7695":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7696":{"varMapping":{"__isSmartRef__":true,"id":7697},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7697":{"this":{"__isSmartRef__":true,"id":1475}},"7698":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7699":{"varMapping":{"__isSmartRef__":true,"id":7700},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7700":{"this":{"__isSmartRef__":true,"id":1475}},"7701":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7702":{"varMapping":{"__isSmartRef__":true,"id":7703},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7703":{"this":{"__isSmartRef__":true,"id":1475}},"7704":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7705":{"varMapping":{"__isSmartRef__":true,"id":7706},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7706":{"this":{"__isSmartRef__":true,"id":1475}},"7707":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7708":{"varMapping":{"__isSmartRef__":true,"id":7709},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7709":{"this":{"__isSmartRef__":true,"id":1475}},"7710":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7711":{"varMapping":{"__isSmartRef__":true,"id":7712},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7712":{"this":{"__isSmartRef__":true,"id":1475},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7713}},"7713":{"$super":{"__isSmartRef__":true,"id":7714}},"7714":{"varMapping":{"__isSmartRef__":true,"id":7715},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7715":{"obj":{"__isSmartRef__":true,"id":1475},"name":"onMouseDown"},"7716":{},"7717":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7718":{"varMapping":{"__isSmartRef__":true,"id":7719},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7719":{"this":{"__isSmartRef__":true,"id":1475}},"7720":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7721":{"varMapping":{"__isSmartRef__":true,"id":7722},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7722":{"this":{"__isSmartRef__":true,"id":1475}},"7723":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7724":{"varMapping":{"__isSmartRef__":true,"id":7725},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7725":{"this":{"__isSmartRef__":true,"id":1475}},"7726":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7727":{"varMapping":{"__isSmartRef__":true,"id":7728},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7728":{"this":{"__isSmartRef__":true,"id":1475}},"7729":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7730":{"varMapping":{"__isSmartRef__":true,"id":7731},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7731":{"this":{"__isSmartRef__":true,"id":1475}},"7732":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7733":{"varMapping":{"__isSmartRef__":true,"id":7734},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7734":{"this":{"__isSmartRef__":true,"id":1475}},"7735":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7736":{"varMapping":{"__isSmartRef__":true,"id":7737},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7737":{"this":{"__isSmartRef__":true,"id":1475}},"7738":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7739":{"varMapping":{"__isSmartRef__":true,"id":7740},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7740":{"this":{"__isSmartRef__":true,"id":1475}},"7741":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7742":{"varMapping":{"__isSmartRef__":true,"id":7743},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7743":{"this":{"__isSmartRef__":true,"id":1475}},"7744":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7745":{"addBomb":{"__isSmartRef__":true,"id":7746},"clearFlag":{"__isSmartRef__":true,"id":7749},"countNeighborBombs":{"__isSmartRef__":true,"id":7752},"fixSubmorph":{"__isSmartRef__":true,"id":7755},"initAppearance":{"__isSmartRef__":true,"id":7758},"initMorphs":{"__isSmartRef__":true,"id":7761},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7764},"isClosed":{"__isSmartRef__":true,"id":7767},"neighborPoints":{"__isSmartRef__":true,"id":7770},"onMouseDown":{"__isSmartRef__":true,"id":7773},"restoreGameAppearance":{"__isSmartRef__":true,"id":7780},"reveal":{"__isSmartRef__":true,"id":7783},"setCoordinates":{"__isSmartRef__":true,"id":7786},"showBomb":{"__isSmartRef__":true,"id":7789},"showDebugState":{"__isSmartRef__":true,"id":7792},"showFlag":{"__isSmartRef__":true,"id":7795},"showState":{"__isSmartRef__":true,"id":7798},"copyImageMorph":{"__isSmartRef__":true,"id":7801},"prepareToPublish":{"__isSmartRef__":true,"id":7804}},"7746":{"varMapping":{"__isSmartRef__":true,"id":7747},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7747":{"this":{"__isSmartRef__":true,"id":1427}},"7748":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7749":{"varMapping":{"__isSmartRef__":true,"id":7750},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7750":{"this":{"__isSmartRef__":true,"id":1427}},"7751":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7752":{"varMapping":{"__isSmartRef__":true,"id":7753},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7753":{"this":{"__isSmartRef__":true,"id":1427}},"7754":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7755":{"varMapping":{"__isSmartRef__":true,"id":7756},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7756":{"this":{"__isSmartRef__":true,"id":1427}},"7757":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7758":{"varMapping":{"__isSmartRef__":true,"id":7759},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7759":{"this":{"__isSmartRef__":true,"id":1427}},"7760":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7761":{"varMapping":{"__isSmartRef__":true,"id":7762},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7762":{"this":{"__isSmartRef__":true,"id":1427}},"7763":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7764":{"varMapping":{"__isSmartRef__":true,"id":7765},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7765":{"this":{"__isSmartRef__":true,"id":1427}},"7766":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7767":{"varMapping":{"__isSmartRef__":true,"id":7768},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7768":{"this":{"__isSmartRef__":true,"id":1427}},"7769":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7770":{"varMapping":{"__isSmartRef__":true,"id":7771},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7771":{"this":{"__isSmartRef__":true,"id":1427}},"7772":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7773":{"varMapping":{"__isSmartRef__":true,"id":7774},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7774":{"this":{"__isSmartRef__":true,"id":1427},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7775}},"7775":{"$super":{"__isSmartRef__":true,"id":7776}},"7776":{"varMapping":{"__isSmartRef__":true,"id":7777},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7777":{"obj":{"__isSmartRef__":true,"id":1427},"name":"onMouseDown"},"7778":{},"7779":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7780":{"varMapping":{"__isSmartRef__":true,"id":7781},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7781":{"this":{"__isSmartRef__":true,"id":1427}},"7782":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7783":{"varMapping":{"__isSmartRef__":true,"id":7784},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7784":{"this":{"__isSmartRef__":true,"id":1427}},"7785":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7786":{"varMapping":{"__isSmartRef__":true,"id":7787},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7787":{"this":{"__isSmartRef__":true,"id":1427}},"7788":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7789":{"varMapping":{"__isSmartRef__":true,"id":7790},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7790":{"this":{"__isSmartRef__":true,"id":1427}},"7791":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7792":{"varMapping":{"__isSmartRef__":true,"id":7793},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7793":{"this":{"__isSmartRef__":true,"id":1427}},"7794":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7795":{"varMapping":{"__isSmartRef__":true,"id":7796},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7796":{"this":{"__isSmartRef__":true,"id":1427}},"7797":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7798":{"varMapping":{"__isSmartRef__":true,"id":7799},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7799":{"this":{"__isSmartRef__":true,"id":1427}},"7800":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7801":{"varMapping":{"__isSmartRef__":true,"id":7802},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7802":{"this":{"__isSmartRef__":true,"id":1427}},"7803":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7804":{"varMapping":{"__isSmartRef__":true,"id":7805},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7805":{"this":{"__isSmartRef__":true,"id":1427}},"7806":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7807":{"addBomb":{"__isSmartRef__":true,"id":7808},"clearFlag":{"__isSmartRef__":true,"id":7811},"countNeighborBombs":{"__isSmartRef__":true,"id":7814},"fixSubmorph":{"__isSmartRef__":true,"id":7817},"initAppearance":{"__isSmartRef__":true,"id":7820},"initMorphs":{"__isSmartRef__":true,"id":7823},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7826},"isClosed":{"__isSmartRef__":true,"id":7829},"neighborPoints":{"__isSmartRef__":true,"id":7832},"onMouseDown":{"__isSmartRef__":true,"id":7835},"restoreGameAppearance":{"__isSmartRef__":true,"id":7842},"reveal":{"__isSmartRef__":true,"id":7845},"setCoordinates":{"__isSmartRef__":true,"id":7848},"showBomb":{"__isSmartRef__":true,"id":7851},"showDebugState":{"__isSmartRef__":true,"id":7854},"showFlag":{"__isSmartRef__":true,"id":7857},"showState":{"__isSmartRef__":true,"id":7860},"copyImageMorph":{"__isSmartRef__":true,"id":7863},"prepareToPublish":{"__isSmartRef__":true,"id":7866}},"7808":{"varMapping":{"__isSmartRef__":true,"id":7809},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7809":{"this":{"__isSmartRef__":true,"id":1379}},"7810":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7811":{"varMapping":{"__isSmartRef__":true,"id":7812},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7812":{"this":{"__isSmartRef__":true,"id":1379}},"7813":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7814":{"varMapping":{"__isSmartRef__":true,"id":7815},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7815":{"this":{"__isSmartRef__":true,"id":1379}},"7816":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7817":{"varMapping":{"__isSmartRef__":true,"id":7818},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7818":{"this":{"__isSmartRef__":true,"id":1379}},"7819":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7820":{"varMapping":{"__isSmartRef__":true,"id":7821},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7821":{"this":{"__isSmartRef__":true,"id":1379}},"7822":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7823":{"varMapping":{"__isSmartRef__":true,"id":7824},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7824":{"this":{"__isSmartRef__":true,"id":1379}},"7825":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7826":{"varMapping":{"__isSmartRef__":true,"id":7827},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7827":{"this":{"__isSmartRef__":true,"id":1379}},"7828":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7829":{"varMapping":{"__isSmartRef__":true,"id":7830},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7830":{"this":{"__isSmartRef__":true,"id":1379}},"7831":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7832":{"varMapping":{"__isSmartRef__":true,"id":7833},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7833":{"this":{"__isSmartRef__":true,"id":1379}},"7834":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7835":{"varMapping":{"__isSmartRef__":true,"id":7836},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7836":{"this":{"__isSmartRef__":true,"id":1379},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7837}},"7837":{"$super":{"__isSmartRef__":true,"id":7838}},"7838":{"varMapping":{"__isSmartRef__":true,"id":7839},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7839":{"obj":{"__isSmartRef__":true,"id":1379},"name":"onMouseDown"},"7840":{},"7841":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7842":{"varMapping":{"__isSmartRef__":true,"id":7843},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7843":{"this":{"__isSmartRef__":true,"id":1379}},"7844":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7845":{"varMapping":{"__isSmartRef__":true,"id":7846},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7846":{"this":{"__isSmartRef__":true,"id":1379}},"7847":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7848":{"varMapping":{"__isSmartRef__":true,"id":7849},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7849":{"this":{"__isSmartRef__":true,"id":1379}},"7850":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7851":{"varMapping":{"__isSmartRef__":true,"id":7852},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7852":{"this":{"__isSmartRef__":true,"id":1379}},"7853":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7854":{"varMapping":{"__isSmartRef__":true,"id":7855},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7855":{"this":{"__isSmartRef__":true,"id":1379}},"7856":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7857":{"varMapping":{"__isSmartRef__":true,"id":7858},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7858":{"this":{"__isSmartRef__":true,"id":1379}},"7859":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7860":{"varMapping":{"__isSmartRef__":true,"id":7861},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7861":{"this":{"__isSmartRef__":true,"id":1379}},"7862":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7863":{"varMapping":{"__isSmartRef__":true,"id":7864},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7864":{"this":{"__isSmartRef__":true,"id":1379}},"7865":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7866":{"varMapping":{"__isSmartRef__":true,"id":7867},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7867":{"this":{"__isSmartRef__":true,"id":1379}},"7868":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7869":{"addBomb":{"__isSmartRef__":true,"id":7870},"clearFlag":{"__isSmartRef__":true,"id":7873},"countNeighborBombs":{"__isSmartRef__":true,"id":7876},"fixSubmorph":{"__isSmartRef__":true,"id":7879},"initAppearance":{"__isSmartRef__":true,"id":7882},"initMorphs":{"__isSmartRef__":true,"id":7885},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7888},"isClosed":{"__isSmartRef__":true,"id":7891},"neighborPoints":{"__isSmartRef__":true,"id":7894},"onMouseDown":{"__isSmartRef__":true,"id":7897},"restoreGameAppearance":{"__isSmartRef__":true,"id":7904},"reveal":{"__isSmartRef__":true,"id":7907},"setCoordinates":{"__isSmartRef__":true,"id":7910},"showBomb":{"__isSmartRef__":true,"id":7913},"showDebugState":{"__isSmartRef__":true,"id":7916},"showFlag":{"__isSmartRef__":true,"id":7919},"showState":{"__isSmartRef__":true,"id":7922},"copyImageMorph":{"__isSmartRef__":true,"id":7925},"prepareToPublish":{"__isSmartRef__":true,"id":7928}},"7870":{"varMapping":{"__isSmartRef__":true,"id":7871},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7871":{"this":{"__isSmartRef__":true,"id":1331}},"7872":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7873":{"varMapping":{"__isSmartRef__":true,"id":7874},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7874":{"this":{"__isSmartRef__":true,"id":1331}},"7875":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7876":{"varMapping":{"__isSmartRef__":true,"id":7877},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7877":{"this":{"__isSmartRef__":true,"id":1331}},"7878":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7879":{"varMapping":{"__isSmartRef__":true,"id":7880},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7880":{"this":{"__isSmartRef__":true,"id":1331}},"7881":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7882":{"varMapping":{"__isSmartRef__":true,"id":7883},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7883":{"this":{"__isSmartRef__":true,"id":1331}},"7884":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7885":{"varMapping":{"__isSmartRef__":true,"id":7886},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7886":{"this":{"__isSmartRef__":true,"id":1331}},"7887":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7888":{"varMapping":{"__isSmartRef__":true,"id":7889},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7889":{"this":{"__isSmartRef__":true,"id":1331}},"7890":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7891":{"varMapping":{"__isSmartRef__":true,"id":7892},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7892":{"this":{"__isSmartRef__":true,"id":1331}},"7893":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7894":{"varMapping":{"__isSmartRef__":true,"id":7895},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7895":{"this":{"__isSmartRef__":true,"id":1331}},"7896":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7897":{"varMapping":{"__isSmartRef__":true,"id":7898},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7898":{"this":{"__isSmartRef__":true,"id":1331},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7899}},"7899":{"$super":{"__isSmartRef__":true,"id":7900}},"7900":{"varMapping":{"__isSmartRef__":true,"id":7901},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7901":{"obj":{"__isSmartRef__":true,"id":1331},"name":"onMouseDown"},"7902":{},"7903":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7904":{"varMapping":{"__isSmartRef__":true,"id":7905},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7905":{"this":{"__isSmartRef__":true,"id":1331}},"7906":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7907":{"varMapping":{"__isSmartRef__":true,"id":7908},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7908":{"this":{"__isSmartRef__":true,"id":1331}},"7909":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7910":{"varMapping":{"__isSmartRef__":true,"id":7911},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7911":{"this":{"__isSmartRef__":true,"id":1331}},"7912":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7913":{"varMapping":{"__isSmartRef__":true,"id":7914},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7914":{"this":{"__isSmartRef__":true,"id":1331}},"7915":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7916":{"varMapping":{"__isSmartRef__":true,"id":7917},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7917":{"this":{"__isSmartRef__":true,"id":1331}},"7918":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7919":{"varMapping":{"__isSmartRef__":true,"id":7920},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7920":{"this":{"__isSmartRef__":true,"id":1331}},"7921":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7922":{"varMapping":{"__isSmartRef__":true,"id":7923},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7923":{"this":{"__isSmartRef__":true,"id":1331}},"7924":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7925":{"varMapping":{"__isSmartRef__":true,"id":7926},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7926":{"this":{"__isSmartRef__":true,"id":1331}},"7927":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7928":{"varMapping":{"__isSmartRef__":true,"id":7929},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7929":{"this":{"__isSmartRef__":true,"id":1331}},"7930":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7931":{"addBomb":{"__isSmartRef__":true,"id":7932},"clearFlag":{"__isSmartRef__":true,"id":7935},"countNeighborBombs":{"__isSmartRef__":true,"id":7938},"fixSubmorph":{"__isSmartRef__":true,"id":7941},"initAppearance":{"__isSmartRef__":true,"id":7944},"initMorphs":{"__isSmartRef__":true,"id":7947},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7950},"isClosed":{"__isSmartRef__":true,"id":7953},"neighborPoints":{"__isSmartRef__":true,"id":7956},"onMouseDown":{"__isSmartRef__":true,"id":7959},"restoreGameAppearance":{"__isSmartRef__":true,"id":7966},"reveal":{"__isSmartRef__":true,"id":7969},"setCoordinates":{"__isSmartRef__":true,"id":7972},"showBomb":{"__isSmartRef__":true,"id":7975},"showDebugState":{"__isSmartRef__":true,"id":7978},"showFlag":{"__isSmartRef__":true,"id":7981},"showState":{"__isSmartRef__":true,"id":7984},"copyImageMorph":{"__isSmartRef__":true,"id":7987},"prepareToPublish":{"__isSmartRef__":true,"id":7990}},"7932":{"varMapping":{"__isSmartRef__":true,"id":7933},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7933":{"this":{"__isSmartRef__":true,"id":1283}},"7934":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7935":{"varMapping":{"__isSmartRef__":true,"id":7936},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7936":{"this":{"__isSmartRef__":true,"id":1283}},"7937":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7938":{"varMapping":{"__isSmartRef__":true,"id":7939},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7939":{"this":{"__isSmartRef__":true,"id":1283}},"7940":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7941":{"varMapping":{"__isSmartRef__":true,"id":7942},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7942":{"this":{"__isSmartRef__":true,"id":1283}},"7943":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7944":{"varMapping":{"__isSmartRef__":true,"id":7945},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7945":{"this":{"__isSmartRef__":true,"id":1283}},"7946":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7947":{"varMapping":{"__isSmartRef__":true,"id":7948},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7948":{"this":{"__isSmartRef__":true,"id":1283}},"7949":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7950":{"varMapping":{"__isSmartRef__":true,"id":7951},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7951":{"this":{"__isSmartRef__":true,"id":1283}},"7952":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7953":{"varMapping":{"__isSmartRef__":true,"id":7954},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7954":{"this":{"__isSmartRef__":true,"id":1283}},"7955":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7956":{"varMapping":{"__isSmartRef__":true,"id":7957},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":7958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7957":{"this":{"__isSmartRef__":true,"id":1283}},"7958":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7959":{"varMapping":{"__isSmartRef__":true,"id":7960},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7960":{"this":{"__isSmartRef__":true,"id":1283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7961}},"7961":{"$super":{"__isSmartRef__":true,"id":7962}},"7962":{"varMapping":{"__isSmartRef__":true,"id":7963},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":7964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7963":{"obj":{"__isSmartRef__":true,"id":1283},"name":"onMouseDown"},"7964":{},"7965":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7966":{"varMapping":{"__isSmartRef__":true,"id":7967},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7967":{"this":{"__isSmartRef__":true,"id":1283}},"7968":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7969":{"varMapping":{"__isSmartRef__":true,"id":7970},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7970":{"this":{"__isSmartRef__":true,"id":1283}},"7971":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7972":{"varMapping":{"__isSmartRef__":true,"id":7973},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7973":{"this":{"__isSmartRef__":true,"id":1283}},"7974":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7975":{"varMapping":{"__isSmartRef__":true,"id":7976},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7976":{"this":{"__isSmartRef__":true,"id":1283}},"7977":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7978":{"varMapping":{"__isSmartRef__":true,"id":7979},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7979":{"this":{"__isSmartRef__":true,"id":1283}},"7980":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7981":{"varMapping":{"__isSmartRef__":true,"id":7982},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7982":{"this":{"__isSmartRef__":true,"id":1283}},"7983":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7984":{"varMapping":{"__isSmartRef__":true,"id":7985},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":7986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7985":{"this":{"__isSmartRef__":true,"id":1283}},"7986":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7987":{"varMapping":{"__isSmartRef__":true,"id":7988},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":7989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7988":{"this":{"__isSmartRef__":true,"id":1283}},"7989":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7990":{"varMapping":{"__isSmartRef__":true,"id":7991},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7991":{"this":{"__isSmartRef__":true,"id":1283}},"7992":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7993":{"addBomb":{"__isSmartRef__":true,"id":7994},"clearFlag":{"__isSmartRef__":true,"id":7997},"countNeighborBombs":{"__isSmartRef__":true,"id":8000},"fixSubmorph":{"__isSmartRef__":true,"id":8003},"initAppearance":{"__isSmartRef__":true,"id":8006},"initMorphs":{"__isSmartRef__":true,"id":8009},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8012},"isClosed":{"__isSmartRef__":true,"id":8015},"neighborPoints":{"__isSmartRef__":true,"id":8018},"onMouseDown":{"__isSmartRef__":true,"id":8021},"restoreGameAppearance":{"__isSmartRef__":true,"id":8028},"reveal":{"__isSmartRef__":true,"id":8031},"setCoordinates":{"__isSmartRef__":true,"id":8034},"showBomb":{"__isSmartRef__":true,"id":8037},"showDebugState":{"__isSmartRef__":true,"id":8040},"showFlag":{"__isSmartRef__":true,"id":8043},"showState":{"__isSmartRef__":true,"id":8046},"copyImageMorph":{"__isSmartRef__":true,"id":8049},"prepareToPublish":{"__isSmartRef__":true,"id":8052}},"7994":{"varMapping":{"__isSmartRef__":true,"id":7995},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":7996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7995":{"this":{"__isSmartRef__":true,"id":1235}},"7996":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7997":{"varMapping":{"__isSmartRef__":true,"id":7998},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7998":{"this":{"__isSmartRef__":true,"id":1235}},"7999":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8000":{"varMapping":{"__isSmartRef__":true,"id":8001},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8001":{"this":{"__isSmartRef__":true,"id":1235}},"8002":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8003":{"varMapping":{"__isSmartRef__":true,"id":8004},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8004":{"this":{"__isSmartRef__":true,"id":1235}},"8005":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8006":{"varMapping":{"__isSmartRef__":true,"id":8007},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8007":{"this":{"__isSmartRef__":true,"id":1235}},"8008":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8009":{"varMapping":{"__isSmartRef__":true,"id":8010},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8010":{"this":{"__isSmartRef__":true,"id":1235}},"8011":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8012":{"varMapping":{"__isSmartRef__":true,"id":8013},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8013":{"this":{"__isSmartRef__":true,"id":1235}},"8014":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8015":{"varMapping":{"__isSmartRef__":true,"id":8016},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8016":{"this":{"__isSmartRef__":true,"id":1235}},"8017":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8018":{"varMapping":{"__isSmartRef__":true,"id":8019},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8019":{"this":{"__isSmartRef__":true,"id":1235}},"8020":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8021":{"varMapping":{"__isSmartRef__":true,"id":8022},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8022":{"this":{"__isSmartRef__":true,"id":1235},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8023}},"8023":{"$super":{"__isSmartRef__":true,"id":8024}},"8024":{"varMapping":{"__isSmartRef__":true,"id":8025},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8025":{"obj":{"__isSmartRef__":true,"id":1235},"name":"onMouseDown"},"8026":{},"8027":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8028":{"varMapping":{"__isSmartRef__":true,"id":8029},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8029":{"this":{"__isSmartRef__":true,"id":1235}},"8030":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8031":{"varMapping":{"__isSmartRef__":true,"id":8032},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8032":{"this":{"__isSmartRef__":true,"id":1235}},"8033":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8034":{"varMapping":{"__isSmartRef__":true,"id":8035},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8035":{"this":{"__isSmartRef__":true,"id":1235}},"8036":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8037":{"varMapping":{"__isSmartRef__":true,"id":8038},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8038":{"this":{"__isSmartRef__":true,"id":1235}},"8039":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8040":{"varMapping":{"__isSmartRef__":true,"id":8041},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8041":{"this":{"__isSmartRef__":true,"id":1235}},"8042":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8043":{"varMapping":{"__isSmartRef__":true,"id":8044},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8044":{"this":{"__isSmartRef__":true,"id":1235}},"8045":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8046":{"varMapping":{"__isSmartRef__":true,"id":8047},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8047":{"this":{"__isSmartRef__":true,"id":1235}},"8048":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8049":{"varMapping":{"__isSmartRef__":true,"id":8050},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8050":{"this":{"__isSmartRef__":true,"id":1235}},"8051":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8052":{"varMapping":{"__isSmartRef__":true,"id":8053},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8053":{"this":{"__isSmartRef__":true,"id":1235}},"8054":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8055":{"addBomb":{"__isSmartRef__":true,"id":8056},"clearFlag":{"__isSmartRef__":true,"id":8059},"countNeighborBombs":{"__isSmartRef__":true,"id":8062},"fixSubmorph":{"__isSmartRef__":true,"id":8065},"initAppearance":{"__isSmartRef__":true,"id":8068},"initMorphs":{"__isSmartRef__":true,"id":8071},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8074},"isClosed":{"__isSmartRef__":true,"id":8077},"neighborPoints":{"__isSmartRef__":true,"id":8080},"onMouseDown":{"__isSmartRef__":true,"id":8083},"restoreGameAppearance":{"__isSmartRef__":true,"id":8090},"reveal":{"__isSmartRef__":true,"id":8093},"setCoordinates":{"__isSmartRef__":true,"id":8096},"showBomb":{"__isSmartRef__":true,"id":8099},"showDebugState":{"__isSmartRef__":true,"id":8102},"showFlag":{"__isSmartRef__":true,"id":8105},"showState":{"__isSmartRef__":true,"id":8108},"copyImageMorph":{"__isSmartRef__":true,"id":8111},"prepareToPublish":{"__isSmartRef__":true,"id":8114}},"8056":{"varMapping":{"__isSmartRef__":true,"id":8057},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8057":{"this":{"__isSmartRef__":true,"id":1187}},"8058":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8059":{"varMapping":{"__isSmartRef__":true,"id":8060},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8060":{"this":{"__isSmartRef__":true,"id":1187}},"8061":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8062":{"varMapping":{"__isSmartRef__":true,"id":8063},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8063":{"this":{"__isSmartRef__":true,"id":1187}},"8064":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8065":{"varMapping":{"__isSmartRef__":true,"id":8066},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8066":{"this":{"__isSmartRef__":true,"id":1187}},"8067":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8068":{"varMapping":{"__isSmartRef__":true,"id":8069},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8069":{"this":{"__isSmartRef__":true,"id":1187}},"8070":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8071":{"varMapping":{"__isSmartRef__":true,"id":8072},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8072":{"this":{"__isSmartRef__":true,"id":1187}},"8073":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8074":{"varMapping":{"__isSmartRef__":true,"id":8075},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8075":{"this":{"__isSmartRef__":true,"id":1187}},"8076":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8077":{"varMapping":{"__isSmartRef__":true,"id":8078},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8078":{"this":{"__isSmartRef__":true,"id":1187}},"8079":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8080":{"varMapping":{"__isSmartRef__":true,"id":8081},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8081":{"this":{"__isSmartRef__":true,"id":1187}},"8082":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8083":{"varMapping":{"__isSmartRef__":true,"id":8084},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8084":{"this":{"__isSmartRef__":true,"id":1187},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8085}},"8085":{"$super":{"__isSmartRef__":true,"id":8086}},"8086":{"varMapping":{"__isSmartRef__":true,"id":8087},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8087":{"obj":{"__isSmartRef__":true,"id":1187},"name":"onMouseDown"},"8088":{},"8089":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8090":{"varMapping":{"__isSmartRef__":true,"id":8091},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8091":{"this":{"__isSmartRef__":true,"id":1187}},"8092":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8093":{"varMapping":{"__isSmartRef__":true,"id":8094},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8094":{"this":{"__isSmartRef__":true,"id":1187}},"8095":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8096":{"varMapping":{"__isSmartRef__":true,"id":8097},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8097":{"this":{"__isSmartRef__":true,"id":1187}},"8098":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8099":{"varMapping":{"__isSmartRef__":true,"id":8100},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8100":{"this":{"__isSmartRef__":true,"id":1187}},"8101":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8102":{"varMapping":{"__isSmartRef__":true,"id":8103},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8103":{"this":{"__isSmartRef__":true,"id":1187}},"8104":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8105":{"varMapping":{"__isSmartRef__":true,"id":8106},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8106":{"this":{"__isSmartRef__":true,"id":1187}},"8107":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8108":{"varMapping":{"__isSmartRef__":true,"id":8109},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8109":{"this":{"__isSmartRef__":true,"id":1187}},"8110":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8111":{"varMapping":{"__isSmartRef__":true,"id":8112},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8112":{"this":{"__isSmartRef__":true,"id":1187}},"8113":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8114":{"varMapping":{"__isSmartRef__":true,"id":8115},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8115":{"this":{"__isSmartRef__":true,"id":1187}},"8116":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8117":{"addBomb":{"__isSmartRef__":true,"id":8118},"clearFlag":{"__isSmartRef__":true,"id":8121},"countNeighborBombs":{"__isSmartRef__":true,"id":8124},"fixSubmorph":{"__isSmartRef__":true,"id":8127},"initAppearance":{"__isSmartRef__":true,"id":8130},"initMorphs":{"__isSmartRef__":true,"id":8133},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8136},"isClosed":{"__isSmartRef__":true,"id":8139},"neighborPoints":{"__isSmartRef__":true,"id":8142},"onMouseDown":{"__isSmartRef__":true,"id":8145},"restoreGameAppearance":{"__isSmartRef__":true,"id":8152},"reveal":{"__isSmartRef__":true,"id":8155},"setCoordinates":{"__isSmartRef__":true,"id":8158},"showBomb":{"__isSmartRef__":true,"id":8161},"showDebugState":{"__isSmartRef__":true,"id":8164},"showFlag":{"__isSmartRef__":true,"id":8167},"showState":{"__isSmartRef__":true,"id":8170},"copyImageMorph":{"__isSmartRef__":true,"id":8173},"prepareToPublish":{"__isSmartRef__":true,"id":8176}},"8118":{"varMapping":{"__isSmartRef__":true,"id":8119},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8119":{"this":{"__isSmartRef__":true,"id":1139}},"8120":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8121":{"varMapping":{"__isSmartRef__":true,"id":8122},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8122":{"this":{"__isSmartRef__":true,"id":1139}},"8123":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8124":{"varMapping":{"__isSmartRef__":true,"id":8125},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8125":{"this":{"__isSmartRef__":true,"id":1139}},"8126":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8127":{"varMapping":{"__isSmartRef__":true,"id":8128},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8128":{"this":{"__isSmartRef__":true,"id":1139}},"8129":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8130":{"varMapping":{"__isSmartRef__":true,"id":8131},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8131":{"this":{"__isSmartRef__":true,"id":1139}},"8132":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8133":{"varMapping":{"__isSmartRef__":true,"id":8134},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8134":{"this":{"__isSmartRef__":true,"id":1139}},"8135":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8136":{"varMapping":{"__isSmartRef__":true,"id":8137},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8137":{"this":{"__isSmartRef__":true,"id":1139}},"8138":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8139":{"varMapping":{"__isSmartRef__":true,"id":8140},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8140":{"this":{"__isSmartRef__":true,"id":1139}},"8141":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8142":{"varMapping":{"__isSmartRef__":true,"id":8143},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8143":{"this":{"__isSmartRef__":true,"id":1139}},"8144":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8145":{"varMapping":{"__isSmartRef__":true,"id":8146},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8146":{"this":{"__isSmartRef__":true,"id":1139},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8147}},"8147":{"$super":{"__isSmartRef__":true,"id":8148}},"8148":{"varMapping":{"__isSmartRef__":true,"id":8149},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8149":{"obj":{"__isSmartRef__":true,"id":1139},"name":"onMouseDown"},"8150":{},"8151":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8152":{"varMapping":{"__isSmartRef__":true,"id":8153},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8153":{"this":{"__isSmartRef__":true,"id":1139}},"8154":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8155":{"varMapping":{"__isSmartRef__":true,"id":8156},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8156":{"this":{"__isSmartRef__":true,"id":1139}},"8157":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8158":{"varMapping":{"__isSmartRef__":true,"id":8159},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8159":{"this":{"__isSmartRef__":true,"id":1139}},"8160":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8161":{"varMapping":{"__isSmartRef__":true,"id":8162},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8162":{"this":{"__isSmartRef__":true,"id":1139}},"8163":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8164":{"varMapping":{"__isSmartRef__":true,"id":8165},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8165":{"this":{"__isSmartRef__":true,"id":1139}},"8166":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8167":{"varMapping":{"__isSmartRef__":true,"id":8168},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8168":{"this":{"__isSmartRef__":true,"id":1139}},"8169":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8170":{"varMapping":{"__isSmartRef__":true,"id":8171},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8171":{"this":{"__isSmartRef__":true,"id":1139}},"8172":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8173":{"varMapping":{"__isSmartRef__":true,"id":8174},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8174":{"this":{"__isSmartRef__":true,"id":1139}},"8175":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8176":{"varMapping":{"__isSmartRef__":true,"id":8177},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8177":{"this":{"__isSmartRef__":true,"id":1139}},"8178":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8179":{"addBomb":{"__isSmartRef__":true,"id":8180},"clearFlag":{"__isSmartRef__":true,"id":8183},"countNeighborBombs":{"__isSmartRef__":true,"id":8186},"fixSubmorph":{"__isSmartRef__":true,"id":8189},"initAppearance":{"__isSmartRef__":true,"id":8192},"initMorphs":{"__isSmartRef__":true,"id":8195},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8198},"isClosed":{"__isSmartRef__":true,"id":8201},"neighborPoints":{"__isSmartRef__":true,"id":8204},"onMouseDown":{"__isSmartRef__":true,"id":8207},"restoreGameAppearance":{"__isSmartRef__":true,"id":8214},"reveal":{"__isSmartRef__":true,"id":8217},"setCoordinates":{"__isSmartRef__":true,"id":8220},"showBomb":{"__isSmartRef__":true,"id":8223},"showDebugState":{"__isSmartRef__":true,"id":8226},"showFlag":{"__isSmartRef__":true,"id":8229},"showState":{"__isSmartRef__":true,"id":8232},"copyImageMorph":{"__isSmartRef__":true,"id":8235},"prepareToPublish":{"__isSmartRef__":true,"id":8238}},"8180":{"varMapping":{"__isSmartRef__":true,"id":8181},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8181":{"this":{"__isSmartRef__":true,"id":1091}},"8182":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8183":{"varMapping":{"__isSmartRef__":true,"id":8184},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8184":{"this":{"__isSmartRef__":true,"id":1091}},"8185":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8186":{"varMapping":{"__isSmartRef__":true,"id":8187},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8187":{"this":{"__isSmartRef__":true,"id":1091}},"8188":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8189":{"varMapping":{"__isSmartRef__":true,"id":8190},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8190":{"this":{"__isSmartRef__":true,"id":1091}},"8191":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8192":{"varMapping":{"__isSmartRef__":true,"id":8193},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8193":{"this":{"__isSmartRef__":true,"id":1091}},"8194":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8195":{"varMapping":{"__isSmartRef__":true,"id":8196},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8196":{"this":{"__isSmartRef__":true,"id":1091}},"8197":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8198":{"varMapping":{"__isSmartRef__":true,"id":8199},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8199":{"this":{"__isSmartRef__":true,"id":1091}},"8200":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8201":{"varMapping":{"__isSmartRef__":true,"id":8202},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8202":{"this":{"__isSmartRef__":true,"id":1091}},"8203":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8204":{"varMapping":{"__isSmartRef__":true,"id":8205},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8205":{"this":{"__isSmartRef__":true,"id":1091}},"8206":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8207":{"varMapping":{"__isSmartRef__":true,"id":8208},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8208":{"this":{"__isSmartRef__":true,"id":1091},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8209}},"8209":{"$super":{"__isSmartRef__":true,"id":8210}},"8210":{"varMapping":{"__isSmartRef__":true,"id":8211},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8211":{"obj":{"__isSmartRef__":true,"id":1091},"name":"onMouseDown"},"8212":{},"8213":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8214":{"varMapping":{"__isSmartRef__":true,"id":8215},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8215":{"this":{"__isSmartRef__":true,"id":1091}},"8216":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8217":{"varMapping":{"__isSmartRef__":true,"id":8218},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8218":{"this":{"__isSmartRef__":true,"id":1091}},"8219":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8220":{"varMapping":{"__isSmartRef__":true,"id":8221},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8221":{"this":{"__isSmartRef__":true,"id":1091}},"8222":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8223":{"varMapping":{"__isSmartRef__":true,"id":8224},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8224":{"this":{"__isSmartRef__":true,"id":1091}},"8225":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8226":{"varMapping":{"__isSmartRef__":true,"id":8227},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8227":{"this":{"__isSmartRef__":true,"id":1091}},"8228":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8229":{"varMapping":{"__isSmartRef__":true,"id":8230},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8230":{"this":{"__isSmartRef__":true,"id":1091}},"8231":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8232":{"varMapping":{"__isSmartRef__":true,"id":8233},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8233":{"this":{"__isSmartRef__":true,"id":1091}},"8234":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8235":{"varMapping":{"__isSmartRef__":true,"id":8236},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8236":{"this":{"__isSmartRef__":true,"id":1091}},"8237":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8238":{"varMapping":{"__isSmartRef__":true,"id":8239},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8239":{"this":{"__isSmartRef__":true,"id":1091}},"8240":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8241":{"addBomb":{"__isSmartRef__":true,"id":8242},"clearFlag":{"__isSmartRef__":true,"id":8245},"countNeighborBombs":{"__isSmartRef__":true,"id":8248},"fixSubmorph":{"__isSmartRef__":true,"id":8251},"initAppearance":{"__isSmartRef__":true,"id":8254},"initMorphs":{"__isSmartRef__":true,"id":8257},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8260},"isClosed":{"__isSmartRef__":true,"id":8263},"neighborPoints":{"__isSmartRef__":true,"id":8266},"onMouseDown":{"__isSmartRef__":true,"id":8269},"restoreGameAppearance":{"__isSmartRef__":true,"id":8276},"reveal":{"__isSmartRef__":true,"id":8279},"setCoordinates":{"__isSmartRef__":true,"id":8282},"showBomb":{"__isSmartRef__":true,"id":8285},"showDebugState":{"__isSmartRef__":true,"id":8288},"showFlag":{"__isSmartRef__":true,"id":8291},"showState":{"__isSmartRef__":true,"id":8294},"copyImageMorph":{"__isSmartRef__":true,"id":8297},"prepareToPublish":{"__isSmartRef__":true,"id":8300}},"8242":{"varMapping":{"__isSmartRef__":true,"id":8243},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8243":{"this":{"__isSmartRef__":true,"id":1043}},"8244":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8245":{"varMapping":{"__isSmartRef__":true,"id":8246},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8246":{"this":{"__isSmartRef__":true,"id":1043}},"8247":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8248":{"varMapping":{"__isSmartRef__":true,"id":8249},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8249":{"this":{"__isSmartRef__":true,"id":1043}},"8250":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8251":{"varMapping":{"__isSmartRef__":true,"id":8252},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8252":{"this":{"__isSmartRef__":true,"id":1043}},"8253":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8254":{"varMapping":{"__isSmartRef__":true,"id":8255},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8255":{"this":{"__isSmartRef__":true,"id":1043}},"8256":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8257":{"varMapping":{"__isSmartRef__":true,"id":8258},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8258":{"this":{"__isSmartRef__":true,"id":1043}},"8259":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8260":{"varMapping":{"__isSmartRef__":true,"id":8261},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8261":{"this":{"__isSmartRef__":true,"id":1043}},"8262":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8263":{"varMapping":{"__isSmartRef__":true,"id":8264},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8264":{"this":{"__isSmartRef__":true,"id":1043}},"8265":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8266":{"varMapping":{"__isSmartRef__":true,"id":8267},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8267":{"this":{"__isSmartRef__":true,"id":1043}},"8268":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8269":{"varMapping":{"__isSmartRef__":true,"id":8270},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8270":{"this":{"__isSmartRef__":true,"id":1043},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8271}},"8271":{"$super":{"__isSmartRef__":true,"id":8272}},"8272":{"varMapping":{"__isSmartRef__":true,"id":8273},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8273":{"obj":{"__isSmartRef__":true,"id":1043},"name":"onMouseDown"},"8274":{},"8275":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8276":{"varMapping":{"__isSmartRef__":true,"id":8277},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8277":{"this":{"__isSmartRef__":true,"id":1043}},"8278":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8279":{"varMapping":{"__isSmartRef__":true,"id":8280},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8280":{"this":{"__isSmartRef__":true,"id":1043}},"8281":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8282":{"varMapping":{"__isSmartRef__":true,"id":8283},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8283":{"this":{"__isSmartRef__":true,"id":1043}},"8284":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8285":{"varMapping":{"__isSmartRef__":true,"id":8286},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8286":{"this":{"__isSmartRef__":true,"id":1043}},"8287":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8288":{"varMapping":{"__isSmartRef__":true,"id":8289},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8289":{"this":{"__isSmartRef__":true,"id":1043}},"8290":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8291":{"varMapping":{"__isSmartRef__":true,"id":8292},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8292":{"this":{"__isSmartRef__":true,"id":1043}},"8293":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8294":{"varMapping":{"__isSmartRef__":true,"id":8295},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8295":{"this":{"__isSmartRef__":true,"id":1043}},"8296":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8297":{"varMapping":{"__isSmartRef__":true,"id":8298},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8298":{"this":{"__isSmartRef__":true,"id":1043}},"8299":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8300":{"varMapping":{"__isSmartRef__":true,"id":8301},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8301":{"this":{"__isSmartRef__":true,"id":1043}},"8302":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8303":{"addBomb":{"__isSmartRef__":true,"id":8304},"clearFlag":{"__isSmartRef__":true,"id":8307},"countNeighborBombs":{"__isSmartRef__":true,"id":8310},"fixSubmorph":{"__isSmartRef__":true,"id":8313},"initAppearance":{"__isSmartRef__":true,"id":8316},"initMorphs":{"__isSmartRef__":true,"id":8319},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8322},"isClosed":{"__isSmartRef__":true,"id":8325},"neighborPoints":{"__isSmartRef__":true,"id":8328},"onMouseDown":{"__isSmartRef__":true,"id":8331},"restoreGameAppearance":{"__isSmartRef__":true,"id":8338},"reveal":{"__isSmartRef__":true,"id":8341},"setCoordinates":{"__isSmartRef__":true,"id":8344},"showBomb":{"__isSmartRef__":true,"id":8347},"showDebugState":{"__isSmartRef__":true,"id":8350},"showFlag":{"__isSmartRef__":true,"id":8353},"showState":{"__isSmartRef__":true,"id":8356},"copyImageMorph":{"__isSmartRef__":true,"id":8359},"prepareToPublish":{"__isSmartRef__":true,"id":8362}},"8304":{"varMapping":{"__isSmartRef__":true,"id":8305},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8305":{"this":{"__isSmartRef__":true,"id":995}},"8306":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8307":{"varMapping":{"__isSmartRef__":true,"id":8308},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8308":{"this":{"__isSmartRef__":true,"id":995}},"8309":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8310":{"varMapping":{"__isSmartRef__":true,"id":8311},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8311":{"this":{"__isSmartRef__":true,"id":995}},"8312":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8313":{"varMapping":{"__isSmartRef__":true,"id":8314},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8314":{"this":{"__isSmartRef__":true,"id":995}},"8315":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8316":{"varMapping":{"__isSmartRef__":true,"id":8317},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8317":{"this":{"__isSmartRef__":true,"id":995}},"8318":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8319":{"varMapping":{"__isSmartRef__":true,"id":8320},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8320":{"this":{"__isSmartRef__":true,"id":995}},"8321":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8322":{"varMapping":{"__isSmartRef__":true,"id":8323},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8323":{"this":{"__isSmartRef__":true,"id":995}},"8324":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8325":{"varMapping":{"__isSmartRef__":true,"id":8326},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8326":{"this":{"__isSmartRef__":true,"id":995}},"8327":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8328":{"varMapping":{"__isSmartRef__":true,"id":8329},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8329":{"this":{"__isSmartRef__":true,"id":995}},"8330":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8331":{"varMapping":{"__isSmartRef__":true,"id":8332},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8332":{"this":{"__isSmartRef__":true,"id":995},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8333}},"8333":{"$super":{"__isSmartRef__":true,"id":8334}},"8334":{"varMapping":{"__isSmartRef__":true,"id":8335},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8335":{"obj":{"__isSmartRef__":true,"id":995},"name":"onMouseDown"},"8336":{},"8337":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8338":{"varMapping":{"__isSmartRef__":true,"id":8339},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8339":{"this":{"__isSmartRef__":true,"id":995}},"8340":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8341":{"varMapping":{"__isSmartRef__":true,"id":8342},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8342":{"this":{"__isSmartRef__":true,"id":995}},"8343":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8344":{"varMapping":{"__isSmartRef__":true,"id":8345},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8345":{"this":{"__isSmartRef__":true,"id":995}},"8346":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8347":{"varMapping":{"__isSmartRef__":true,"id":8348},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8348":{"this":{"__isSmartRef__":true,"id":995}},"8349":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8350":{"varMapping":{"__isSmartRef__":true,"id":8351},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8351":{"this":{"__isSmartRef__":true,"id":995}},"8352":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8353":{"varMapping":{"__isSmartRef__":true,"id":8354},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8354":{"this":{"__isSmartRef__":true,"id":995}},"8355":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8356":{"varMapping":{"__isSmartRef__":true,"id":8357},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8357":{"this":{"__isSmartRef__":true,"id":995}},"8358":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8359":{"varMapping":{"__isSmartRef__":true,"id":8360},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8360":{"this":{"__isSmartRef__":true,"id":995}},"8361":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8362":{"varMapping":{"__isSmartRef__":true,"id":8363},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8363":{"this":{"__isSmartRef__":true,"id":995}},"8364":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8365":{"addBomb":{"__isSmartRef__":true,"id":8366},"clearFlag":{"__isSmartRef__":true,"id":8369},"countNeighborBombs":{"__isSmartRef__":true,"id":8372},"fixSubmorph":{"__isSmartRef__":true,"id":8375},"initAppearance":{"__isSmartRef__":true,"id":8378},"initMorphs":{"__isSmartRef__":true,"id":8381},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8384},"isClosed":{"__isSmartRef__":true,"id":8387},"neighborPoints":{"__isSmartRef__":true,"id":8390},"onMouseDown":{"__isSmartRef__":true,"id":8393},"restoreGameAppearance":{"__isSmartRef__":true,"id":8400},"reveal":{"__isSmartRef__":true,"id":8403},"setCoordinates":{"__isSmartRef__":true,"id":8406},"showBomb":{"__isSmartRef__":true,"id":8409},"showDebugState":{"__isSmartRef__":true,"id":8412},"showFlag":{"__isSmartRef__":true,"id":8415},"showState":{"__isSmartRef__":true,"id":8418},"copyImageMorph":{"__isSmartRef__":true,"id":8421},"prepareToPublish":{"__isSmartRef__":true,"id":8424}},"8366":{"varMapping":{"__isSmartRef__":true,"id":8367},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8367":{"this":{"__isSmartRef__":true,"id":947}},"8368":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8369":{"varMapping":{"__isSmartRef__":true,"id":8370},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8370":{"this":{"__isSmartRef__":true,"id":947}},"8371":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8372":{"varMapping":{"__isSmartRef__":true,"id":8373},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8373":{"this":{"__isSmartRef__":true,"id":947}},"8374":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8375":{"varMapping":{"__isSmartRef__":true,"id":8376},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8376":{"this":{"__isSmartRef__":true,"id":947}},"8377":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8378":{"varMapping":{"__isSmartRef__":true,"id":8379},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8379":{"this":{"__isSmartRef__":true,"id":947}},"8380":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8381":{"varMapping":{"__isSmartRef__":true,"id":8382},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8382":{"this":{"__isSmartRef__":true,"id":947}},"8383":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8384":{"varMapping":{"__isSmartRef__":true,"id":8385},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8385":{"this":{"__isSmartRef__":true,"id":947}},"8386":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8387":{"varMapping":{"__isSmartRef__":true,"id":8388},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8388":{"this":{"__isSmartRef__":true,"id":947}},"8389":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8390":{"varMapping":{"__isSmartRef__":true,"id":8391},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8391":{"this":{"__isSmartRef__":true,"id":947}},"8392":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8393":{"varMapping":{"__isSmartRef__":true,"id":8394},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8394":{"this":{"__isSmartRef__":true,"id":947},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8395}},"8395":{"$super":{"__isSmartRef__":true,"id":8396}},"8396":{"varMapping":{"__isSmartRef__":true,"id":8397},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8397":{"obj":{"__isSmartRef__":true,"id":947},"name":"onMouseDown"},"8398":{},"8399":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8400":{"varMapping":{"__isSmartRef__":true,"id":8401},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8401":{"this":{"__isSmartRef__":true,"id":947}},"8402":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8403":{"varMapping":{"__isSmartRef__":true,"id":8404},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8404":{"this":{"__isSmartRef__":true,"id":947}},"8405":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8406":{"varMapping":{"__isSmartRef__":true,"id":8407},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8407":{"this":{"__isSmartRef__":true,"id":947}},"8408":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8409":{"varMapping":{"__isSmartRef__":true,"id":8410},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8410":{"this":{"__isSmartRef__":true,"id":947}},"8411":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8412":{"varMapping":{"__isSmartRef__":true,"id":8413},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8413":{"this":{"__isSmartRef__":true,"id":947}},"8414":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8415":{"varMapping":{"__isSmartRef__":true,"id":8416},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8416":{"this":{"__isSmartRef__":true,"id":947}},"8417":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8418":{"varMapping":{"__isSmartRef__":true,"id":8419},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8419":{"this":{"__isSmartRef__":true,"id":947}},"8420":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8421":{"varMapping":{"__isSmartRef__":true,"id":8422},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8422":{"this":{"__isSmartRef__":true,"id":947}},"8423":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8424":{"varMapping":{"__isSmartRef__":true,"id":8425},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8425":{"this":{"__isSmartRef__":true,"id":947}},"8426":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8427":{"addBomb":{"__isSmartRef__":true,"id":8428},"clearFlag":{"__isSmartRef__":true,"id":8431},"countNeighborBombs":{"__isSmartRef__":true,"id":8434},"fixSubmorph":{"__isSmartRef__":true,"id":8437},"initAppearance":{"__isSmartRef__":true,"id":8440},"initMorphs":{"__isSmartRef__":true,"id":8443},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8446},"isClosed":{"__isSmartRef__":true,"id":8449},"neighborPoints":{"__isSmartRef__":true,"id":8452},"onMouseDown":{"__isSmartRef__":true,"id":8455},"restoreGameAppearance":{"__isSmartRef__":true,"id":8462},"reveal":{"__isSmartRef__":true,"id":8465},"setCoordinates":{"__isSmartRef__":true,"id":8468},"showBomb":{"__isSmartRef__":true,"id":8471},"showDebugState":{"__isSmartRef__":true,"id":8474},"showFlag":{"__isSmartRef__":true,"id":8477},"showState":{"__isSmartRef__":true,"id":8480},"copyImageMorph":{"__isSmartRef__":true,"id":8483},"prepareToPublish":{"__isSmartRef__":true,"id":8486}},"8428":{"varMapping":{"__isSmartRef__":true,"id":8429},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8429":{"this":{"__isSmartRef__":true,"id":899}},"8430":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8431":{"varMapping":{"__isSmartRef__":true,"id":8432},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8432":{"this":{"__isSmartRef__":true,"id":899}},"8433":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8434":{"varMapping":{"__isSmartRef__":true,"id":8435},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8435":{"this":{"__isSmartRef__":true,"id":899}},"8436":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8437":{"varMapping":{"__isSmartRef__":true,"id":8438},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8438":{"this":{"__isSmartRef__":true,"id":899}},"8439":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8440":{"varMapping":{"__isSmartRef__":true,"id":8441},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8441":{"this":{"__isSmartRef__":true,"id":899}},"8442":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8443":{"varMapping":{"__isSmartRef__":true,"id":8444},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8444":{"this":{"__isSmartRef__":true,"id":899}},"8445":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8446":{"varMapping":{"__isSmartRef__":true,"id":8447},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8447":{"this":{"__isSmartRef__":true,"id":899}},"8448":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8449":{"varMapping":{"__isSmartRef__":true,"id":8450},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8450":{"this":{"__isSmartRef__":true,"id":899}},"8451":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8452":{"varMapping":{"__isSmartRef__":true,"id":8453},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8453":{"this":{"__isSmartRef__":true,"id":899}},"8454":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8455":{"varMapping":{"__isSmartRef__":true,"id":8456},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8456":{"this":{"__isSmartRef__":true,"id":899},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8457}},"8457":{"$super":{"__isSmartRef__":true,"id":8458}},"8458":{"varMapping":{"__isSmartRef__":true,"id":8459},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8459":{"obj":{"__isSmartRef__":true,"id":899},"name":"onMouseDown"},"8460":{},"8461":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8462":{"varMapping":{"__isSmartRef__":true,"id":8463},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8463":{"this":{"__isSmartRef__":true,"id":899}},"8464":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8465":{"varMapping":{"__isSmartRef__":true,"id":8466},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8466":{"this":{"__isSmartRef__":true,"id":899}},"8467":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8468":{"varMapping":{"__isSmartRef__":true,"id":8469},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8469":{"this":{"__isSmartRef__":true,"id":899}},"8470":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8471":{"varMapping":{"__isSmartRef__":true,"id":8472},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8472":{"this":{"__isSmartRef__":true,"id":899}},"8473":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8474":{"varMapping":{"__isSmartRef__":true,"id":8475},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8475":{"this":{"__isSmartRef__":true,"id":899}},"8476":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8477":{"varMapping":{"__isSmartRef__":true,"id":8478},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8478":{"this":{"__isSmartRef__":true,"id":899}},"8479":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8480":{"varMapping":{"__isSmartRef__":true,"id":8481},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8481":{"this":{"__isSmartRef__":true,"id":899}},"8482":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8483":{"varMapping":{"__isSmartRef__":true,"id":8484},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8484":{"this":{"__isSmartRef__":true,"id":899}},"8485":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8486":{"varMapping":{"__isSmartRef__":true,"id":8487},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8487":{"this":{"__isSmartRef__":true,"id":899}},"8488":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8489":{"addBomb":{"__isSmartRef__":true,"id":8490},"clearFlag":{"__isSmartRef__":true,"id":8493},"countNeighborBombs":{"__isSmartRef__":true,"id":8496},"fixSubmorph":{"__isSmartRef__":true,"id":8499},"initAppearance":{"__isSmartRef__":true,"id":8502},"initMorphs":{"__isSmartRef__":true,"id":8505},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8508},"isClosed":{"__isSmartRef__":true,"id":8511},"neighborPoints":{"__isSmartRef__":true,"id":8514},"onMouseDown":{"__isSmartRef__":true,"id":8517},"restoreGameAppearance":{"__isSmartRef__":true,"id":8524},"reveal":{"__isSmartRef__":true,"id":8527},"setCoordinates":{"__isSmartRef__":true,"id":8530},"showBomb":{"__isSmartRef__":true,"id":8533},"showDebugState":{"__isSmartRef__":true,"id":8536},"showFlag":{"__isSmartRef__":true,"id":8539},"showState":{"__isSmartRef__":true,"id":8542},"copyImageMorph":{"__isSmartRef__":true,"id":8545},"prepareToPublish":{"__isSmartRef__":true,"id":8548}},"8490":{"varMapping":{"__isSmartRef__":true,"id":8491},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8491":{"this":{"__isSmartRef__":true,"id":851}},"8492":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8493":{"varMapping":{"__isSmartRef__":true,"id":8494},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8494":{"this":{"__isSmartRef__":true,"id":851}},"8495":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8496":{"varMapping":{"__isSmartRef__":true,"id":8497},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8497":{"this":{"__isSmartRef__":true,"id":851}},"8498":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8499":{"varMapping":{"__isSmartRef__":true,"id":8500},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8500":{"this":{"__isSmartRef__":true,"id":851}},"8501":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8502":{"varMapping":{"__isSmartRef__":true,"id":8503},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8503":{"this":{"__isSmartRef__":true,"id":851}},"8504":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8505":{"varMapping":{"__isSmartRef__":true,"id":8506},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8506":{"this":{"__isSmartRef__":true,"id":851}},"8507":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8508":{"varMapping":{"__isSmartRef__":true,"id":8509},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8509":{"this":{"__isSmartRef__":true,"id":851}},"8510":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8511":{"varMapping":{"__isSmartRef__":true,"id":8512},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8512":{"this":{"__isSmartRef__":true,"id":851}},"8513":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8514":{"varMapping":{"__isSmartRef__":true,"id":8515},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8515":{"this":{"__isSmartRef__":true,"id":851}},"8516":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8517":{"varMapping":{"__isSmartRef__":true,"id":8518},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8518":{"this":{"__isSmartRef__":true,"id":851},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8519}},"8519":{"$super":{"__isSmartRef__":true,"id":8520}},"8520":{"varMapping":{"__isSmartRef__":true,"id":8521},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8521":{"obj":{"__isSmartRef__":true,"id":851},"name":"onMouseDown"},"8522":{},"8523":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8524":{"varMapping":{"__isSmartRef__":true,"id":8525},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8525":{"this":{"__isSmartRef__":true,"id":851}},"8526":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8527":{"varMapping":{"__isSmartRef__":true,"id":8528},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8528":{"this":{"__isSmartRef__":true,"id":851}},"8529":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8530":{"varMapping":{"__isSmartRef__":true,"id":8531},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8531":{"this":{"__isSmartRef__":true,"id":851}},"8532":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8533":{"varMapping":{"__isSmartRef__":true,"id":8534},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8534":{"this":{"__isSmartRef__":true,"id":851}},"8535":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8536":{"varMapping":{"__isSmartRef__":true,"id":8537},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8537":{"this":{"__isSmartRef__":true,"id":851}},"8538":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8539":{"varMapping":{"__isSmartRef__":true,"id":8540},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8540":{"this":{"__isSmartRef__":true,"id":851}},"8541":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8542":{"varMapping":{"__isSmartRef__":true,"id":8543},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8543":{"this":{"__isSmartRef__":true,"id":851}},"8544":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8545":{"varMapping":{"__isSmartRef__":true,"id":8546},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8546":{"this":{"__isSmartRef__":true,"id":851}},"8547":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8548":{"varMapping":{"__isSmartRef__":true,"id":8549},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8549":{"this":{"__isSmartRef__":true,"id":851}},"8550":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8551":{"addBomb":{"__isSmartRef__":true,"id":8552},"clearFlag":{"__isSmartRef__":true,"id":8555},"countNeighborBombs":{"__isSmartRef__":true,"id":8558},"fixSubmorph":{"__isSmartRef__":true,"id":8561},"initAppearance":{"__isSmartRef__":true,"id":8564},"initMorphs":{"__isSmartRef__":true,"id":8567},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8570},"isClosed":{"__isSmartRef__":true,"id":8573},"neighborPoints":{"__isSmartRef__":true,"id":8576},"onMouseDown":{"__isSmartRef__":true,"id":8579},"restoreGameAppearance":{"__isSmartRef__":true,"id":8586},"reveal":{"__isSmartRef__":true,"id":8589},"setCoordinates":{"__isSmartRef__":true,"id":8592},"showBomb":{"__isSmartRef__":true,"id":8595},"showDebugState":{"__isSmartRef__":true,"id":8598},"showFlag":{"__isSmartRef__":true,"id":8601},"showState":{"__isSmartRef__":true,"id":8604},"copyImageMorph":{"__isSmartRef__":true,"id":8607},"prepareToPublish":{"__isSmartRef__":true,"id":8610}},"8552":{"varMapping":{"__isSmartRef__":true,"id":8553},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8553":{"this":{"__isSmartRef__":true,"id":803}},"8554":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8555":{"varMapping":{"__isSmartRef__":true,"id":8556},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8556":{"this":{"__isSmartRef__":true,"id":803}},"8557":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8558":{"varMapping":{"__isSmartRef__":true,"id":8559},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8559":{"this":{"__isSmartRef__":true,"id":803}},"8560":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8561":{"varMapping":{"__isSmartRef__":true,"id":8562},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8562":{"this":{"__isSmartRef__":true,"id":803}},"8563":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8564":{"varMapping":{"__isSmartRef__":true,"id":8565},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8565":{"this":{"__isSmartRef__":true,"id":803}},"8566":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8567":{"varMapping":{"__isSmartRef__":true,"id":8568},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8568":{"this":{"__isSmartRef__":true,"id":803}},"8569":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8570":{"varMapping":{"__isSmartRef__":true,"id":8571},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8571":{"this":{"__isSmartRef__":true,"id":803}},"8572":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8573":{"varMapping":{"__isSmartRef__":true,"id":8574},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8574":{"this":{"__isSmartRef__":true,"id":803}},"8575":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8576":{"varMapping":{"__isSmartRef__":true,"id":8577},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8577":{"this":{"__isSmartRef__":true,"id":803}},"8578":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8579":{"varMapping":{"__isSmartRef__":true,"id":8580},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8580":{"this":{"__isSmartRef__":true,"id":803},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8581}},"8581":{"$super":{"__isSmartRef__":true,"id":8582}},"8582":{"varMapping":{"__isSmartRef__":true,"id":8583},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8583":{"obj":{"__isSmartRef__":true,"id":803},"name":"onMouseDown"},"8584":{},"8585":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8586":{"varMapping":{"__isSmartRef__":true,"id":8587},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8587":{"this":{"__isSmartRef__":true,"id":803}},"8588":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8589":{"varMapping":{"__isSmartRef__":true,"id":8590},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8590":{"this":{"__isSmartRef__":true,"id":803}},"8591":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8592":{"varMapping":{"__isSmartRef__":true,"id":8593},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8593":{"this":{"__isSmartRef__":true,"id":803}},"8594":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8595":{"varMapping":{"__isSmartRef__":true,"id":8596},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8596":{"this":{"__isSmartRef__":true,"id":803}},"8597":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8598":{"varMapping":{"__isSmartRef__":true,"id":8599},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8599":{"this":{"__isSmartRef__":true,"id":803}},"8600":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8601":{"varMapping":{"__isSmartRef__":true,"id":8602},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8602":{"this":{"__isSmartRef__":true,"id":803}},"8603":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8604":{"varMapping":{"__isSmartRef__":true,"id":8605},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8605":{"this":{"__isSmartRef__":true,"id":803}},"8606":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8607":{"varMapping":{"__isSmartRef__":true,"id":8608},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8608":{"this":{"__isSmartRef__":true,"id":803}},"8609":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8610":{"varMapping":{"__isSmartRef__":true,"id":8611},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8611":{"this":{"__isSmartRef__":true,"id":803}},"8612":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8613":{"addBomb":{"__isSmartRef__":true,"id":8614},"clearFlag":{"__isSmartRef__":true,"id":8617},"countNeighborBombs":{"__isSmartRef__":true,"id":8620},"fixSubmorph":{"__isSmartRef__":true,"id":8623},"initAppearance":{"__isSmartRef__":true,"id":8626},"initMorphs":{"__isSmartRef__":true,"id":8629},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8632},"isClosed":{"__isSmartRef__":true,"id":8635},"neighborPoints":{"__isSmartRef__":true,"id":8638},"onMouseDown":{"__isSmartRef__":true,"id":8641},"restoreGameAppearance":{"__isSmartRef__":true,"id":8648},"reveal":{"__isSmartRef__":true,"id":8651},"setCoordinates":{"__isSmartRef__":true,"id":8654},"showBomb":{"__isSmartRef__":true,"id":8657},"showDebugState":{"__isSmartRef__":true,"id":8660},"showFlag":{"__isSmartRef__":true,"id":8663},"showState":{"__isSmartRef__":true,"id":8666},"copyImageMorph":{"__isSmartRef__":true,"id":8669},"prepareToPublish":{"__isSmartRef__":true,"id":8672}},"8614":{"varMapping":{"__isSmartRef__":true,"id":8615},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8615":{"this":{"__isSmartRef__":true,"id":755}},"8616":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8617":{"varMapping":{"__isSmartRef__":true,"id":8618},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8618":{"this":{"__isSmartRef__":true,"id":755}},"8619":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8620":{"varMapping":{"__isSmartRef__":true,"id":8621},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8621":{"this":{"__isSmartRef__":true,"id":755}},"8622":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8623":{"varMapping":{"__isSmartRef__":true,"id":8624},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8624":{"this":{"__isSmartRef__":true,"id":755}},"8625":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8626":{"varMapping":{"__isSmartRef__":true,"id":8627},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8627":{"this":{"__isSmartRef__":true,"id":755}},"8628":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8629":{"varMapping":{"__isSmartRef__":true,"id":8630},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8630":{"this":{"__isSmartRef__":true,"id":755}},"8631":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8632":{"varMapping":{"__isSmartRef__":true,"id":8633},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8633":{"this":{"__isSmartRef__":true,"id":755}},"8634":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8635":{"varMapping":{"__isSmartRef__":true,"id":8636},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8636":{"this":{"__isSmartRef__":true,"id":755}},"8637":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8638":{"varMapping":{"__isSmartRef__":true,"id":8639},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8639":{"this":{"__isSmartRef__":true,"id":755}},"8640":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8641":{"varMapping":{"__isSmartRef__":true,"id":8642},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8642":{"this":{"__isSmartRef__":true,"id":755},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8643}},"8643":{"$super":{"__isSmartRef__":true,"id":8644}},"8644":{"varMapping":{"__isSmartRef__":true,"id":8645},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8645":{"obj":{"__isSmartRef__":true,"id":755},"name":"onMouseDown"},"8646":{},"8647":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8648":{"varMapping":{"__isSmartRef__":true,"id":8649},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8649":{"this":{"__isSmartRef__":true,"id":755}},"8650":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8651":{"varMapping":{"__isSmartRef__":true,"id":8652},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8652":{"this":{"__isSmartRef__":true,"id":755}},"8653":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8654":{"varMapping":{"__isSmartRef__":true,"id":8655},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8655":{"this":{"__isSmartRef__":true,"id":755}},"8656":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8657":{"varMapping":{"__isSmartRef__":true,"id":8658},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8658":{"this":{"__isSmartRef__":true,"id":755}},"8659":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8660":{"varMapping":{"__isSmartRef__":true,"id":8661},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8661":{"this":{"__isSmartRef__":true,"id":755}},"8662":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8663":{"varMapping":{"__isSmartRef__":true,"id":8664},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8664":{"this":{"__isSmartRef__":true,"id":755}},"8665":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8666":{"varMapping":{"__isSmartRef__":true,"id":8667},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8667":{"this":{"__isSmartRef__":true,"id":755}},"8668":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8669":{"varMapping":{"__isSmartRef__":true,"id":8670},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8670":{"this":{"__isSmartRef__":true,"id":755}},"8671":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8672":{"varMapping":{"__isSmartRef__":true,"id":8673},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8673":{"this":{"__isSmartRef__":true,"id":755}},"8674":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8675":{"addBomb":{"__isSmartRef__":true,"id":8676},"clearFlag":{"__isSmartRef__":true,"id":8679},"countNeighborBombs":{"__isSmartRef__":true,"id":8682},"fixSubmorph":{"__isSmartRef__":true,"id":8685},"initAppearance":{"__isSmartRef__":true,"id":8688},"initMorphs":{"__isSmartRef__":true,"id":8691},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8694},"isClosed":{"__isSmartRef__":true,"id":8697},"neighborPoints":{"__isSmartRef__":true,"id":8700},"onMouseDown":{"__isSmartRef__":true,"id":8703},"restoreGameAppearance":{"__isSmartRef__":true,"id":8710},"reveal":{"__isSmartRef__":true,"id":8713},"setCoordinates":{"__isSmartRef__":true,"id":8716},"showBomb":{"__isSmartRef__":true,"id":8719},"showDebugState":{"__isSmartRef__":true,"id":8722},"showFlag":{"__isSmartRef__":true,"id":8725},"showState":{"__isSmartRef__":true,"id":8728},"copyImageMorph":{"__isSmartRef__":true,"id":8731},"prepareToPublish":{"__isSmartRef__":true,"id":8734}},"8676":{"varMapping":{"__isSmartRef__":true,"id":8677},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8677":{"this":{"__isSmartRef__":true,"id":707}},"8678":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8679":{"varMapping":{"__isSmartRef__":true,"id":8680},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8680":{"this":{"__isSmartRef__":true,"id":707}},"8681":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8682":{"varMapping":{"__isSmartRef__":true,"id":8683},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8683":{"this":{"__isSmartRef__":true,"id":707}},"8684":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8685":{"varMapping":{"__isSmartRef__":true,"id":8686},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8686":{"this":{"__isSmartRef__":true,"id":707}},"8687":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8688":{"varMapping":{"__isSmartRef__":true,"id":8689},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8689":{"this":{"__isSmartRef__":true,"id":707}},"8690":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8691":{"varMapping":{"__isSmartRef__":true,"id":8692},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8692":{"this":{"__isSmartRef__":true,"id":707}},"8693":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8694":{"varMapping":{"__isSmartRef__":true,"id":8695},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8695":{"this":{"__isSmartRef__":true,"id":707}},"8696":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8697":{"varMapping":{"__isSmartRef__":true,"id":8698},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8698":{"this":{"__isSmartRef__":true,"id":707}},"8699":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8700":{"varMapping":{"__isSmartRef__":true,"id":8701},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8701":{"this":{"__isSmartRef__":true,"id":707}},"8702":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8703":{"varMapping":{"__isSmartRef__":true,"id":8704},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8704":{"this":{"__isSmartRef__":true,"id":707},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8705}},"8705":{"$super":{"__isSmartRef__":true,"id":8706}},"8706":{"varMapping":{"__isSmartRef__":true,"id":8707},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8707":{"obj":{"__isSmartRef__":true,"id":707},"name":"onMouseDown"},"8708":{},"8709":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8710":{"varMapping":{"__isSmartRef__":true,"id":8711},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8711":{"this":{"__isSmartRef__":true,"id":707}},"8712":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8713":{"varMapping":{"__isSmartRef__":true,"id":8714},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8714":{"this":{"__isSmartRef__":true,"id":707}},"8715":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8716":{"varMapping":{"__isSmartRef__":true,"id":8717},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8717":{"this":{"__isSmartRef__":true,"id":707}},"8718":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8719":{"varMapping":{"__isSmartRef__":true,"id":8720},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8720":{"this":{"__isSmartRef__":true,"id":707}},"8721":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8722":{"varMapping":{"__isSmartRef__":true,"id":8723},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8723":{"this":{"__isSmartRef__":true,"id":707}},"8724":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8725":{"varMapping":{"__isSmartRef__":true,"id":8726},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8726":{"this":{"__isSmartRef__":true,"id":707}},"8727":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8728":{"varMapping":{"__isSmartRef__":true,"id":8729},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8729":{"this":{"__isSmartRef__":true,"id":707}},"8730":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8731":{"varMapping":{"__isSmartRef__":true,"id":8732},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8732":{"this":{"__isSmartRef__":true,"id":707}},"8733":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8734":{"varMapping":{"__isSmartRef__":true,"id":8735},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8735":{"this":{"__isSmartRef__":true,"id":707}},"8736":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8737":{"addBomb":{"__isSmartRef__":true,"id":8738},"clearFlag":{"__isSmartRef__":true,"id":8741},"countNeighborBombs":{"__isSmartRef__":true,"id":8744},"fixSubmorph":{"__isSmartRef__":true,"id":8747},"initAppearance":{"__isSmartRef__":true,"id":8750},"initMorphs":{"__isSmartRef__":true,"id":8753},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8756},"isClosed":{"__isSmartRef__":true,"id":8759},"neighborPoints":{"__isSmartRef__":true,"id":8762},"onMouseDown":{"__isSmartRef__":true,"id":8765},"restoreGameAppearance":{"__isSmartRef__":true,"id":8772},"reveal":{"__isSmartRef__":true,"id":8775},"setCoordinates":{"__isSmartRef__":true,"id":8778},"showBomb":{"__isSmartRef__":true,"id":8781},"showDebugState":{"__isSmartRef__":true,"id":8784},"showFlag":{"__isSmartRef__":true,"id":8787},"showState":{"__isSmartRef__":true,"id":8790},"copyImageMorph":{"__isSmartRef__":true,"id":8793},"prepareToPublish":{"__isSmartRef__":true,"id":8796}},"8738":{"varMapping":{"__isSmartRef__":true,"id":8739},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8739":{"this":{"__isSmartRef__":true,"id":659}},"8740":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8741":{"varMapping":{"__isSmartRef__":true,"id":8742},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8742":{"this":{"__isSmartRef__":true,"id":659}},"8743":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8744":{"varMapping":{"__isSmartRef__":true,"id":8745},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8745":{"this":{"__isSmartRef__":true,"id":659}},"8746":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8747":{"varMapping":{"__isSmartRef__":true,"id":8748},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8748":{"this":{"__isSmartRef__":true,"id":659}},"8749":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8750":{"varMapping":{"__isSmartRef__":true,"id":8751},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8751":{"this":{"__isSmartRef__":true,"id":659}},"8752":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8753":{"varMapping":{"__isSmartRef__":true,"id":8754},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8754":{"this":{"__isSmartRef__":true,"id":659}},"8755":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8756":{"varMapping":{"__isSmartRef__":true,"id":8757},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8757":{"this":{"__isSmartRef__":true,"id":659}},"8758":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8759":{"varMapping":{"__isSmartRef__":true,"id":8760},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8760":{"this":{"__isSmartRef__":true,"id":659}},"8761":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8762":{"varMapping":{"__isSmartRef__":true,"id":8763},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8763":{"this":{"__isSmartRef__":true,"id":659}},"8764":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8765":{"varMapping":{"__isSmartRef__":true,"id":8766},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8766":{"this":{"__isSmartRef__":true,"id":659},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8767}},"8767":{"$super":{"__isSmartRef__":true,"id":8768}},"8768":{"varMapping":{"__isSmartRef__":true,"id":8769},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8769":{"obj":{"__isSmartRef__":true,"id":659},"name":"onMouseDown"},"8770":{},"8771":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8772":{"varMapping":{"__isSmartRef__":true,"id":8773},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8773":{"this":{"__isSmartRef__":true,"id":659}},"8774":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8775":{"varMapping":{"__isSmartRef__":true,"id":8776},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8776":{"this":{"__isSmartRef__":true,"id":659}},"8777":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8778":{"varMapping":{"__isSmartRef__":true,"id":8779},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8779":{"this":{"__isSmartRef__":true,"id":659}},"8780":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8781":{"varMapping":{"__isSmartRef__":true,"id":8782},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8782":{"this":{"__isSmartRef__":true,"id":659}},"8783":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8784":{"varMapping":{"__isSmartRef__":true,"id":8785},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8785":{"this":{"__isSmartRef__":true,"id":659}},"8786":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8787":{"varMapping":{"__isSmartRef__":true,"id":8788},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8788":{"this":{"__isSmartRef__":true,"id":659}},"8789":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8790":{"varMapping":{"__isSmartRef__":true,"id":8791},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8791":{"this":{"__isSmartRef__":true,"id":659}},"8792":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8793":{"varMapping":{"__isSmartRef__":true,"id":8794},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8794":{"this":{"__isSmartRef__":true,"id":659}},"8795":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8796":{"varMapping":{"__isSmartRef__":true,"id":8797},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8797":{"this":{"__isSmartRef__":true,"id":659}},"8798":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8799":{"addBomb":{"__isSmartRef__":true,"id":8800},"clearFlag":{"__isSmartRef__":true,"id":8803},"countNeighborBombs":{"__isSmartRef__":true,"id":8806},"fixSubmorph":{"__isSmartRef__":true,"id":8809},"initAppearance":{"__isSmartRef__":true,"id":8812},"initMorphs":{"__isSmartRef__":true,"id":8815},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8818},"isClosed":{"__isSmartRef__":true,"id":8821},"neighborPoints":{"__isSmartRef__":true,"id":8824},"onMouseDown":{"__isSmartRef__":true,"id":8827},"restoreGameAppearance":{"__isSmartRef__":true,"id":8834},"reveal":{"__isSmartRef__":true,"id":8837},"setCoordinates":{"__isSmartRef__":true,"id":8840},"showBomb":{"__isSmartRef__":true,"id":8843},"showDebugState":{"__isSmartRef__":true,"id":8846},"showFlag":{"__isSmartRef__":true,"id":8849},"showState":{"__isSmartRef__":true,"id":8852},"copyImageMorph":{"__isSmartRef__":true,"id":8855},"prepareToPublish":{"__isSmartRef__":true,"id":8858}},"8800":{"varMapping":{"__isSmartRef__":true,"id":8801},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8801":{"this":{"__isSmartRef__":true,"id":611}},"8802":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8803":{"varMapping":{"__isSmartRef__":true,"id":8804},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8804":{"this":{"__isSmartRef__":true,"id":611}},"8805":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8806":{"varMapping":{"__isSmartRef__":true,"id":8807},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8807":{"this":{"__isSmartRef__":true,"id":611}},"8808":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8809":{"varMapping":{"__isSmartRef__":true,"id":8810},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8810":{"this":{"__isSmartRef__":true,"id":611}},"8811":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8812":{"varMapping":{"__isSmartRef__":true,"id":8813},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8813":{"this":{"__isSmartRef__":true,"id":611}},"8814":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8815":{"varMapping":{"__isSmartRef__":true,"id":8816},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8816":{"this":{"__isSmartRef__":true,"id":611}},"8817":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8818":{"varMapping":{"__isSmartRef__":true,"id":8819},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8819":{"this":{"__isSmartRef__":true,"id":611}},"8820":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8821":{"varMapping":{"__isSmartRef__":true,"id":8822},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8822":{"this":{"__isSmartRef__":true,"id":611}},"8823":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8824":{"varMapping":{"__isSmartRef__":true,"id":8825},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8825":{"this":{"__isSmartRef__":true,"id":611}},"8826":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8827":{"varMapping":{"__isSmartRef__":true,"id":8828},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8828":{"this":{"__isSmartRef__":true,"id":611},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8829}},"8829":{"$super":{"__isSmartRef__":true,"id":8830}},"8830":{"varMapping":{"__isSmartRef__":true,"id":8831},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8831":{"obj":{"__isSmartRef__":true,"id":611},"name":"onMouseDown"},"8832":{},"8833":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8834":{"varMapping":{"__isSmartRef__":true,"id":8835},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8835":{"this":{"__isSmartRef__":true,"id":611}},"8836":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8837":{"varMapping":{"__isSmartRef__":true,"id":8838},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8838":{"this":{"__isSmartRef__":true,"id":611}},"8839":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8840":{"varMapping":{"__isSmartRef__":true,"id":8841},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8841":{"this":{"__isSmartRef__":true,"id":611}},"8842":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8843":{"varMapping":{"__isSmartRef__":true,"id":8844},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8844":{"this":{"__isSmartRef__":true,"id":611}},"8845":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8846":{"varMapping":{"__isSmartRef__":true,"id":8847},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8847":{"this":{"__isSmartRef__":true,"id":611}},"8848":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8849":{"varMapping":{"__isSmartRef__":true,"id":8850},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8850":{"this":{"__isSmartRef__":true,"id":611}},"8851":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8852":{"varMapping":{"__isSmartRef__":true,"id":8853},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8853":{"this":{"__isSmartRef__":true,"id":611}},"8854":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8855":{"varMapping":{"__isSmartRef__":true,"id":8856},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8856":{"this":{"__isSmartRef__":true,"id":611}},"8857":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8858":{"varMapping":{"__isSmartRef__":true,"id":8859},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8859":{"this":{"__isSmartRef__":true,"id":611}},"8860":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8861":{"addBomb":{"__isSmartRef__":true,"id":8862},"clearFlag":{"__isSmartRef__":true,"id":8865},"countNeighborBombs":{"__isSmartRef__":true,"id":8868},"fixSubmorph":{"__isSmartRef__":true,"id":8871},"initAppearance":{"__isSmartRef__":true,"id":8874},"initMorphs":{"__isSmartRef__":true,"id":8877},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8880},"isClosed":{"__isSmartRef__":true,"id":8883},"neighborPoints":{"__isSmartRef__":true,"id":8886},"onMouseDown":{"__isSmartRef__":true,"id":8889},"restoreGameAppearance":{"__isSmartRef__":true,"id":8896},"reveal":{"__isSmartRef__":true,"id":8899},"setCoordinates":{"__isSmartRef__":true,"id":8902},"showBomb":{"__isSmartRef__":true,"id":8905},"showDebugState":{"__isSmartRef__":true,"id":8908},"showFlag":{"__isSmartRef__":true,"id":8911},"showState":{"__isSmartRef__":true,"id":8914},"copyImageMorph":{"__isSmartRef__":true,"id":8917},"prepareToPublish":{"__isSmartRef__":true,"id":8920}},"8862":{"varMapping":{"__isSmartRef__":true,"id":8863},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8863":{"this":{"__isSmartRef__":true,"id":563}},"8864":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8865":{"varMapping":{"__isSmartRef__":true,"id":8866},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8866":{"this":{"__isSmartRef__":true,"id":563}},"8867":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8868":{"varMapping":{"__isSmartRef__":true,"id":8869},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8869":{"this":{"__isSmartRef__":true,"id":563}},"8870":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8871":{"varMapping":{"__isSmartRef__":true,"id":8872},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8872":{"this":{"__isSmartRef__":true,"id":563}},"8873":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8874":{"varMapping":{"__isSmartRef__":true,"id":8875},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8875":{"this":{"__isSmartRef__":true,"id":563}},"8876":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8877":{"varMapping":{"__isSmartRef__":true,"id":8878},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8878":{"this":{"__isSmartRef__":true,"id":563}},"8879":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8880":{"varMapping":{"__isSmartRef__":true,"id":8881},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8881":{"this":{"__isSmartRef__":true,"id":563}},"8882":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8883":{"varMapping":{"__isSmartRef__":true,"id":8884},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8884":{"this":{"__isSmartRef__":true,"id":563}},"8885":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8886":{"varMapping":{"__isSmartRef__":true,"id":8887},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8887":{"this":{"__isSmartRef__":true,"id":563}},"8888":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8889":{"varMapping":{"__isSmartRef__":true,"id":8890},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8890":{"this":{"__isSmartRef__":true,"id":563},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8891}},"8891":{"$super":{"__isSmartRef__":true,"id":8892}},"8892":{"varMapping":{"__isSmartRef__":true,"id":8893},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8893":{"obj":{"__isSmartRef__":true,"id":563},"name":"onMouseDown"},"8894":{},"8895":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8896":{"varMapping":{"__isSmartRef__":true,"id":8897},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8897":{"this":{"__isSmartRef__":true,"id":563}},"8898":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8899":{"varMapping":{"__isSmartRef__":true,"id":8900},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8900":{"this":{"__isSmartRef__":true,"id":563}},"8901":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8902":{"varMapping":{"__isSmartRef__":true,"id":8903},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8903":{"this":{"__isSmartRef__":true,"id":563}},"8904":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8905":{"varMapping":{"__isSmartRef__":true,"id":8906},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8906":{"this":{"__isSmartRef__":true,"id":563}},"8907":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8908":{"varMapping":{"__isSmartRef__":true,"id":8909},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8909":{"this":{"__isSmartRef__":true,"id":563}},"8910":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8911":{"varMapping":{"__isSmartRef__":true,"id":8912},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8912":{"this":{"__isSmartRef__":true,"id":563}},"8913":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8914":{"varMapping":{"__isSmartRef__":true,"id":8915},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8915":{"this":{"__isSmartRef__":true,"id":563}},"8916":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8917":{"varMapping":{"__isSmartRef__":true,"id":8918},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8918":{"this":{"__isSmartRef__":true,"id":563}},"8919":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8920":{"varMapping":{"__isSmartRef__":true,"id":8921},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8921":{"this":{"__isSmartRef__":true,"id":563}},"8922":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8923":{"addBomb":{"__isSmartRef__":true,"id":8924},"clearFlag":{"__isSmartRef__":true,"id":8927},"countNeighborBombs":{"__isSmartRef__":true,"id":8930},"fixSubmorph":{"__isSmartRef__":true,"id":8933},"initAppearance":{"__isSmartRef__":true,"id":8936},"initMorphs":{"__isSmartRef__":true,"id":8939},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8942},"isClosed":{"__isSmartRef__":true,"id":8945},"neighborPoints":{"__isSmartRef__":true,"id":8948},"onMouseDown":{"__isSmartRef__":true,"id":8951},"restoreGameAppearance":{"__isSmartRef__":true,"id":8958},"reveal":{"__isSmartRef__":true,"id":8961},"setCoordinates":{"__isSmartRef__":true,"id":8964},"showBomb":{"__isSmartRef__":true,"id":8967},"showDebugState":{"__isSmartRef__":true,"id":8970},"showFlag":{"__isSmartRef__":true,"id":8973},"showState":{"__isSmartRef__":true,"id":8976},"copyImageMorph":{"__isSmartRef__":true,"id":8979},"prepareToPublish":{"__isSmartRef__":true,"id":8982}},"8924":{"varMapping":{"__isSmartRef__":true,"id":8925},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8925":{"this":{"__isSmartRef__":true,"id":515}},"8926":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8927":{"varMapping":{"__isSmartRef__":true,"id":8928},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8928":{"this":{"__isSmartRef__":true,"id":515}},"8929":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8930":{"varMapping":{"__isSmartRef__":true,"id":8931},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8931":{"this":{"__isSmartRef__":true,"id":515}},"8932":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8933":{"varMapping":{"__isSmartRef__":true,"id":8934},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8934":{"this":{"__isSmartRef__":true,"id":515}},"8935":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8936":{"varMapping":{"__isSmartRef__":true,"id":8937},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8937":{"this":{"__isSmartRef__":true,"id":515}},"8938":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8939":{"varMapping":{"__isSmartRef__":true,"id":8940},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8940":{"this":{"__isSmartRef__":true,"id":515}},"8941":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8942":{"varMapping":{"__isSmartRef__":true,"id":8943},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8943":{"this":{"__isSmartRef__":true,"id":515}},"8944":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8945":{"varMapping":{"__isSmartRef__":true,"id":8946},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8946":{"this":{"__isSmartRef__":true,"id":515}},"8947":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8948":{"varMapping":{"__isSmartRef__":true,"id":8949},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":8950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8949":{"this":{"__isSmartRef__":true,"id":515}},"8950":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8951":{"varMapping":{"__isSmartRef__":true,"id":8952},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8952":{"this":{"__isSmartRef__":true,"id":515},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8953}},"8953":{"$super":{"__isSmartRef__":true,"id":8954}},"8954":{"varMapping":{"__isSmartRef__":true,"id":8955},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":8956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8955":{"obj":{"__isSmartRef__":true,"id":515},"name":"onMouseDown"},"8956":{},"8957":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8958":{"varMapping":{"__isSmartRef__":true,"id":8959},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8959":{"this":{"__isSmartRef__":true,"id":515}},"8960":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8961":{"varMapping":{"__isSmartRef__":true,"id":8962},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8962":{"this":{"__isSmartRef__":true,"id":515}},"8963":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8964":{"varMapping":{"__isSmartRef__":true,"id":8965},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8965":{"this":{"__isSmartRef__":true,"id":515}},"8966":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8967":{"varMapping":{"__isSmartRef__":true,"id":8968},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8968":{"this":{"__isSmartRef__":true,"id":515}},"8969":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8970":{"varMapping":{"__isSmartRef__":true,"id":8971},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8971":{"this":{"__isSmartRef__":true,"id":515}},"8972":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8973":{"varMapping":{"__isSmartRef__":true,"id":8974},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8974":{"this":{"__isSmartRef__":true,"id":515}},"8975":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8976":{"varMapping":{"__isSmartRef__":true,"id":8977},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8977":{"this":{"__isSmartRef__":true,"id":515}},"8978":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8979":{"varMapping":{"__isSmartRef__":true,"id":8980},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":8981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8980":{"this":{"__isSmartRef__":true,"id":515}},"8981":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8982":{"varMapping":{"__isSmartRef__":true,"id":8983},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8983":{"this":{"__isSmartRef__":true,"id":515}},"8984":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8985":{"addBomb":{"__isSmartRef__":true,"id":8986},"clearFlag":{"__isSmartRef__":true,"id":8989},"countNeighborBombs":{"__isSmartRef__":true,"id":8992},"fixSubmorph":{"__isSmartRef__":true,"id":8995},"initAppearance":{"__isSmartRef__":true,"id":8998},"initMorphs":{"__isSmartRef__":true,"id":9001},"initNeighborsAndCount":{"__isSmartRef__":true,"id":9004},"isClosed":{"__isSmartRef__":true,"id":9007},"neighborPoints":{"__isSmartRef__":true,"id":9010},"onMouseDown":{"__isSmartRef__":true,"id":9013},"restoreGameAppearance":{"__isSmartRef__":true,"id":9020},"reveal":{"__isSmartRef__":true,"id":9023},"setCoordinates":{"__isSmartRef__":true,"id":9026},"showBomb":{"__isSmartRef__":true,"id":9029},"showDebugState":{"__isSmartRef__":true,"id":9032},"showFlag":{"__isSmartRef__":true,"id":9035},"showState":{"__isSmartRef__":true,"id":9038},"copyImageMorph":{"__isSmartRef__":true,"id":9041},"prepareToPublish":{"__isSmartRef__":true,"id":9044}},"8986":{"varMapping":{"__isSmartRef__":true,"id":8987},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":8988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8987":{"this":{"__isSmartRef__":true,"id":467}},"8988":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8989":{"varMapping":{"__isSmartRef__":true,"id":8990},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8990":{"this":{"__isSmartRef__":true,"id":467}},"8991":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8992":{"varMapping":{"__isSmartRef__":true,"id":8993},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":8994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8993":{"this":{"__isSmartRef__":true,"id":467}},"8994":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8995":{"varMapping":{"__isSmartRef__":true,"id":8996},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8996":{"this":{"__isSmartRef__":true,"id":467}},"8997":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8998":{"varMapping":{"__isSmartRef__":true,"id":8999},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8999":{"this":{"__isSmartRef__":true,"id":467}},"9000":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"9001":{"varMapping":{"__isSmartRef__":true,"id":9002},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9002":{"this":{"__isSmartRef__":true,"id":467}},"9003":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"9004":{"varMapping":{"__isSmartRef__":true,"id":9005},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9005":{"this":{"__isSmartRef__":true,"id":467}},"9006":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9007":{"varMapping":{"__isSmartRef__":true,"id":9008},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":9009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9008":{"this":{"__isSmartRef__":true,"id":467}},"9009":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9010":{"varMapping":{"__isSmartRef__":true,"id":9011},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":9012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9011":{"this":{"__isSmartRef__":true,"id":467}},"9012":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9013":{"varMapping":{"__isSmartRef__":true,"id":9014},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9014":{"this":{"__isSmartRef__":true,"id":467},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9015}},"9015":{"$super":{"__isSmartRef__":true,"id":9016}},"9016":{"varMapping":{"__isSmartRef__":true,"id":9017},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":9018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9017":{"obj":{"__isSmartRef__":true,"id":467},"name":"onMouseDown"},"9018":{},"9019":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"9020":{"varMapping":{"__isSmartRef__":true,"id":9021},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9021":{"this":{"__isSmartRef__":true,"id":467}},"9022":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"9023":{"varMapping":{"__isSmartRef__":true,"id":9024},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9024":{"this":{"__isSmartRef__":true,"id":467}},"9025":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9026":{"varMapping":{"__isSmartRef__":true,"id":9027},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":9028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9027":{"this":{"__isSmartRef__":true,"id":467}},"9028":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9029":{"varMapping":{"__isSmartRef__":true,"id":9030},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9030":{"this":{"__isSmartRef__":true,"id":467}},"9031":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9032":{"varMapping":{"__isSmartRef__":true,"id":9033},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9033":{"this":{"__isSmartRef__":true,"id":467}},"9034":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9035":{"varMapping":{"__isSmartRef__":true,"id":9036},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9036":{"this":{"__isSmartRef__":true,"id":467}},"9037":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9038":{"varMapping":{"__isSmartRef__":true,"id":9039},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9039":{"this":{"__isSmartRef__":true,"id":467}},"9040":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9041":{"varMapping":{"__isSmartRef__":true,"id":9042},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":9043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9042":{"this":{"__isSmartRef__":true,"id":467}},"9043":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9044":{"varMapping":{"__isSmartRef__":true,"id":9045},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9045":{"this":{"__isSmartRef__":true,"id":467}},"9046":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9047":{"addBomb":{"__isSmartRef__":true,"id":9048},"clearFlag":{"__isSmartRef__":true,"id":9051},"countNeighborBombs":{"__isSmartRef__":true,"id":9054},"fixSubmorph":{"__isSmartRef__":true,"id":9057},"initAppearance":{"__isSmartRef__":true,"id":9060},"initMorphs":{"__isSmartRef__":true,"id":9063},"initNeighborsAndCount":{"__isSmartRef__":true,"id":9066},"isClosed":{"__isSmartRef__":true,"id":9069},"neighborPoints":{"__isSmartRef__":true,"id":9072},"onMouseDown":{"__isSmartRef__":true,"id":9075},"restoreGameAppearance":{"__isSmartRef__":true,"id":9082},"reveal":{"__isSmartRef__":true,"id":9085},"setCoordinates":{"__isSmartRef__":true,"id":9088},"showBomb":{"__isSmartRef__":true,"id":9091},"showDebugState":{"__isSmartRef__":true,"id":9094},"showFlag":{"__isSmartRef__":true,"id":9097},"showState":{"__isSmartRef__":true,"id":9100},"copyImageMorph":{"__isSmartRef__":true,"id":9103},"prepareToPublish":{"__isSmartRef__":true,"id":9106}},"9048":{"varMapping":{"__isSmartRef__":true,"id":9049},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9049":{"this":{"__isSmartRef__":true,"id":419}},"9050":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"9051":{"varMapping":{"__isSmartRef__":true,"id":9052},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":9053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9052":{"this":{"__isSmartRef__":true,"id":419}},"9053":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"9054":{"varMapping":{"__isSmartRef__":true,"id":9055},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9055":{"this":{"__isSmartRef__":true,"id":419}},"9056":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9057":{"varMapping":{"__isSmartRef__":true,"id":9058},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":9059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9058":{"this":{"__isSmartRef__":true,"id":419}},"9059":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9060":{"varMapping":{"__isSmartRef__":true,"id":9061},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9061":{"this":{"__isSmartRef__":true,"id":419}},"9062":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"9063":{"varMapping":{"__isSmartRef__":true,"id":9064},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9064":{"this":{"__isSmartRef__":true,"id":419}},"9065":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"9066":{"varMapping":{"__isSmartRef__":true,"id":9067},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9067":{"this":{"__isSmartRef__":true,"id":419}},"9068":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9069":{"varMapping":{"__isSmartRef__":true,"id":9070},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":9071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9070":{"this":{"__isSmartRef__":true,"id":419}},"9071":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9072":{"varMapping":{"__isSmartRef__":true,"id":9073},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":9074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9073":{"this":{"__isSmartRef__":true,"id":419}},"9074":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9075":{"varMapping":{"__isSmartRef__":true,"id":9076},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9076":{"this":{"__isSmartRef__":true,"id":419},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9077}},"9077":{"$super":{"__isSmartRef__":true,"id":9078}},"9078":{"varMapping":{"__isSmartRef__":true,"id":9079},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":9080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9079":{"obj":{"__isSmartRef__":true,"id":419},"name":"onMouseDown"},"9080":{},"9081":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"9082":{"varMapping":{"__isSmartRef__":true,"id":9083},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9083":{"this":{"__isSmartRef__":true,"id":419}},"9084":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"9085":{"varMapping":{"__isSmartRef__":true,"id":9086},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9086":{"this":{"__isSmartRef__":true,"id":419}},"9087":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9088":{"varMapping":{"__isSmartRef__":true,"id":9089},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":9090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9089":{"this":{"__isSmartRef__":true,"id":419}},"9090":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9091":{"varMapping":{"__isSmartRef__":true,"id":9092},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9092":{"this":{"__isSmartRef__":true,"id":419}},"9093":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9094":{"varMapping":{"__isSmartRef__":true,"id":9095},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9095":{"this":{"__isSmartRef__":true,"id":419}},"9096":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9097":{"varMapping":{"__isSmartRef__":true,"id":9098},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9098":{"this":{"__isSmartRef__":true,"id":419}},"9099":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9100":{"varMapping":{"__isSmartRef__":true,"id":9101},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9101":{"this":{"__isSmartRef__":true,"id":419}},"9102":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9103":{"varMapping":{"__isSmartRef__":true,"id":9104},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":9105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9104":{"this":{"__isSmartRef__":true,"id":419}},"9105":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9106":{"varMapping":{"__isSmartRef__":true,"id":9107},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9107":{"this":{"__isSmartRef__":true,"id":419}},"9108":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9109":{"addBomb":{"__isSmartRef__":true,"id":9110},"clearFlag":{"__isSmartRef__":true,"id":9113},"countNeighborBombs":{"__isSmartRef__":true,"id":9116},"fixSubmorph":{"__isSmartRef__":true,"id":9119},"initAppearance":{"__isSmartRef__":true,"id":9122},"initMorphs":{"__isSmartRef__":true,"id":9125},"initNeighborsAndCount":{"__isSmartRef__":true,"id":9128},"isClosed":{"__isSmartRef__":true,"id":9131},"neighborPoints":{"__isSmartRef__":true,"id":9134},"onMouseDown":{"__isSmartRef__":true,"id":9137},"restoreGameAppearance":{"__isSmartRef__":true,"id":9144},"reveal":{"__isSmartRef__":true,"id":9147},"setCoordinates":{"__isSmartRef__":true,"id":9150},"showBomb":{"__isSmartRef__":true,"id":9153},"showDebugState":{"__isSmartRef__":true,"id":9156},"showFlag":{"__isSmartRef__":true,"id":9159},"showState":{"__isSmartRef__":true,"id":9162},"copyImageMorph":{"__isSmartRef__":true,"id":9165},"prepareToPublish":{"__isSmartRef__":true,"id":9168}},"9110":{"varMapping":{"__isSmartRef__":true,"id":9111},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9111":{"this":{"__isSmartRef__":true,"id":371}},"9112":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"9113":{"varMapping":{"__isSmartRef__":true,"id":9114},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":9115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9114":{"this":{"__isSmartRef__":true,"id":371}},"9115":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"9116":{"varMapping":{"__isSmartRef__":true,"id":9117},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9117":{"this":{"__isSmartRef__":true,"id":371}},"9118":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9119":{"varMapping":{"__isSmartRef__":true,"id":9120},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":9121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9120":{"this":{"__isSmartRef__":true,"id":371}},"9121":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9122":{"varMapping":{"__isSmartRef__":true,"id":9123},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9123":{"this":{"__isSmartRef__":true,"id":371}},"9124":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"9125":{"varMapping":{"__isSmartRef__":true,"id":9126},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9126":{"this":{"__isSmartRef__":true,"id":371}},"9127":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"9128":{"varMapping":{"__isSmartRef__":true,"id":9129},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9129":{"this":{"__isSmartRef__":true,"id":371}},"9130":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9131":{"varMapping":{"__isSmartRef__":true,"id":9132},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":9133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9132":{"this":{"__isSmartRef__":true,"id":371}},"9133":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9134":{"varMapping":{"__isSmartRef__":true,"id":9135},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":9136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9135":{"this":{"__isSmartRef__":true,"id":371}},"9136":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9137":{"varMapping":{"__isSmartRef__":true,"id":9138},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9138":{"this":{"__isSmartRef__":true,"id":371},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9139}},"9139":{"$super":{"__isSmartRef__":true,"id":9140}},"9140":{"varMapping":{"__isSmartRef__":true,"id":9141},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":9142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9141":{"obj":{"__isSmartRef__":true,"id":371},"name":"onMouseDown"},"9142":{},"9143":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"9144":{"varMapping":{"__isSmartRef__":true,"id":9145},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9145":{"this":{"__isSmartRef__":true,"id":371}},"9146":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"9147":{"varMapping":{"__isSmartRef__":true,"id":9148},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9148":{"this":{"__isSmartRef__":true,"id":371}},"9149":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9150":{"varMapping":{"__isSmartRef__":true,"id":9151},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":9152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9151":{"this":{"__isSmartRef__":true,"id":371}},"9152":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9153":{"varMapping":{"__isSmartRef__":true,"id":9154},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9154":{"this":{"__isSmartRef__":true,"id":371}},"9155":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9156":{"varMapping":{"__isSmartRef__":true,"id":9157},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9157":{"this":{"__isSmartRef__":true,"id":371}},"9158":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9159":{"varMapping":{"__isSmartRef__":true,"id":9160},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9160":{"this":{"__isSmartRef__":true,"id":371}},"9161":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9162":{"varMapping":{"__isSmartRef__":true,"id":9163},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9163":{"this":{"__isSmartRef__":true,"id":371}},"9164":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9165":{"varMapping":{"__isSmartRef__":true,"id":9166},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":9167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9166":{"this":{"__isSmartRef__":true,"id":371}},"9167":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9168":{"varMapping":{"__isSmartRef__":true,"id":9169},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9169":{"this":{"__isSmartRef__":true,"id":371}},"9170":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9171":{"addBomb":{"__isSmartRef__":true,"id":9172},"clearFlag":{"__isSmartRef__":true,"id":9175},"countNeighborBombs":{"__isSmartRef__":true,"id":9178},"fixSubmorph":{"__isSmartRef__":true,"id":9181},"initAppearance":{"__isSmartRef__":true,"id":9184},"initMorphs":{"__isSmartRef__":true,"id":9187},"initNeighborsAndCount":{"__isSmartRef__":true,"id":9190},"isClosed":{"__isSmartRef__":true,"id":9193},"neighborPoints":{"__isSmartRef__":true,"id":9196},"onMouseDown":{"__isSmartRef__":true,"id":9199},"restoreGameAppearance":{"__isSmartRef__":true,"id":9206},"reveal":{"__isSmartRef__":true,"id":9209},"setCoordinates":{"__isSmartRef__":true,"id":9212},"showBomb":{"__isSmartRef__":true,"id":9215},"showDebugState":{"__isSmartRef__":true,"id":9218},"showFlag":{"__isSmartRef__":true,"id":9221},"showState":{"__isSmartRef__":true,"id":9224},"copyImageMorph":{"__isSmartRef__":true,"id":9227},"prepareToPublish":{"__isSmartRef__":true,"id":9230}},"9172":{"varMapping":{"__isSmartRef__":true,"id":9173},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9173":{"this":{"__isSmartRef__":true,"id":323}},"9174":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"9175":{"varMapping":{"__isSmartRef__":true,"id":9176},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":9177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9176":{"this":{"__isSmartRef__":true,"id":323}},"9177":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"9178":{"varMapping":{"__isSmartRef__":true,"id":9179},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9179":{"this":{"__isSmartRef__":true,"id":323}},"9180":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9181":{"varMapping":{"__isSmartRef__":true,"id":9182},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":9183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9182":{"this":{"__isSmartRef__":true,"id":323}},"9183":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9184":{"varMapping":{"__isSmartRef__":true,"id":9185},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9185":{"this":{"__isSmartRef__":true,"id":323}},"9186":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"9187":{"varMapping":{"__isSmartRef__":true,"id":9188},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9188":{"this":{"__isSmartRef__":true,"id":323}},"9189":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"9190":{"varMapping":{"__isSmartRef__":true,"id":9191},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9191":{"this":{"__isSmartRef__":true,"id":323}},"9192":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9193":{"varMapping":{"__isSmartRef__":true,"id":9194},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":9195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9194":{"this":{"__isSmartRef__":true,"id":323}},"9195":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9196":{"varMapping":{"__isSmartRef__":true,"id":9197},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":9198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9197":{"this":{"__isSmartRef__":true,"id":323}},"9198":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9199":{"varMapping":{"__isSmartRef__":true,"id":9200},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9200":{"this":{"__isSmartRef__":true,"id":323},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9201}},"9201":{"$super":{"__isSmartRef__":true,"id":9202}},"9202":{"varMapping":{"__isSmartRef__":true,"id":9203},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":9204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9203":{"obj":{"__isSmartRef__":true,"id":323},"name":"onMouseDown"},"9204":{},"9205":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"9206":{"varMapping":{"__isSmartRef__":true,"id":9207},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9207":{"this":{"__isSmartRef__":true,"id":323}},"9208":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"9209":{"varMapping":{"__isSmartRef__":true,"id":9210},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9210":{"this":{"__isSmartRef__":true,"id":323}},"9211":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9212":{"varMapping":{"__isSmartRef__":true,"id":9213},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":9214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9213":{"this":{"__isSmartRef__":true,"id":323}},"9214":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9215":{"varMapping":{"__isSmartRef__":true,"id":9216},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9216":{"this":{"__isSmartRef__":true,"id":323}},"9217":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9218":{"varMapping":{"__isSmartRef__":true,"id":9219},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9219":{"this":{"__isSmartRef__":true,"id":323}},"9220":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9221":{"varMapping":{"__isSmartRef__":true,"id":9222},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9222":{"this":{"__isSmartRef__":true,"id":323}},"9223":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9224":{"varMapping":{"__isSmartRef__":true,"id":9225},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9225":{"this":{"__isSmartRef__":true,"id":323}},"9226":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9227":{"varMapping":{"__isSmartRef__":true,"id":9228},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":9229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9228":{"this":{"__isSmartRef__":true,"id":323}},"9229":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9230":{"varMapping":{"__isSmartRef__":true,"id":9231},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9231":{"this":{"__isSmartRef__":true,"id":323}},"9232":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9233":{"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"__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(229.0,229.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"9234":{"partsSpaceName":"PartsBin/Rick/","comment":"The Board for Minesweeper","migrationLevel":8,"partName":"MinesweeperBoard","changes":[{"__isSmartRef__":true,"id":9235},{"__isSmartRef__":true,"id":9236},{"__isSmartRef__":true,"id":9237},{"__isSmartRef__":true,"id":9238},{"__isSmartRef__":true,"id":9239},{"__isSmartRef__":true,"id":9240},{"__isSmartRef__":true,"id":9241},{"__isSmartRef__":true,"id":9242},{"__isSmartRef__":true,"id":9243},{"__isSmartRef__":true,"id":9244},{"__isSmartRef__":true,"id":9245},{"__isSmartRef__":true,"id":9246},{"__isSmartRef__":true,"id":9247},{"__isSmartRef__":true,"id":9248},{"__isSmartRef__":true,"id":9249},{"__isSmartRef__":true,"id":9250},{"__isSmartRef__":true,"id":9251},{"__isSmartRef__":true,"id":9252},{"__isSmartRef__":true,"id":9253},{"__isSmartRef__":true,"id":9254},{"__isSmartRef__":true,"id":9255}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Mon Aug 18 2014 09:52:08 GMT-0700 (PDT)\")"},"9235":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"9236":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"9237":{"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)\")"},"9238":{"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)\")"},"9239":{"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)\")"},"9240":{"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)\")"},"9241":{"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)\")"},"9242":{"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)\")"},"9243":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"9244":{"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)\")"},"9245":{"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)\")"},"9246":{"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)\")"},"9247":{"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)\")"},"9248":{"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)\")"},"9249":{"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)\")"},"9250":{"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)\")"},"9251":{"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)\")"},"9252":{"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)\")"},"9253":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"9254":{"__serializedExpressions__":["date"],"author":"rick","message":"no comment","id":"40C44AE0-4A4C-4DC3-A87A-BC38A8BA0289","date":"new Date(\"Mon Aug 18 2014 09:49:25 GMT-0700 (PDT)\")"},"9255":{"__serializedExpressions__":["date"],"author":"rick","message":"no comment","id":"1915CA61-CDC1-4DA8-B58E-D221F598DB46","date":"new Date(\"Mon Aug 18 2014 09:51:54 GMT-0700 (PDT)\")"},"9256":{"morph":{"__isSmartRef__":true,"id":322},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9257":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9258}},"9258":{"test01IsMorph":{"__isSmartRef__":true,"id":9259}},"9259":{"varMapping":{"__isSmartRef__":true,"id":9260},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":9261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9260":{"this":{"__isSmartRef__":true,"id":9257}},"9261":{},"9262":{"sourceObj":{"__isSmartRef__":true,"id":322},"sourceAttrName":"bombsRemaining","targetObj":{"__isSmartRef__":true,"id":1},"targetMethodName":"textString","varMapping":{"__isSmartRef__":true,"id":9263},"converterString":"function converter(value) {\n    if (!value) {\n        value = '-'\n    }\n    return 'Bombs Remaining: ' + value\n}","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"9263":{"source":{"__isSmartRef__":true,"id":322},"target":{"__isSmartRef__":true,"id":1}},"9264":{"submorphs":[{"__isSmartRef__":true,"id":9265}],"scripts":[],"id":"ECD1BDB7-B392-48C8-8AE0-8239540C4665","shape":{"__isSmartRef__":true,"id":9280},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare","partsBinMetaInfo":{"__isSmartRef__":true,"id":9281},"eventHandler":{"__isSmartRef__":true,"id":9301},"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","1C17567C-751A-447E-A93C-0CE8CAEEF262","C31986AF-AB07-427F-BD76-E0F3859AC975","E11AD032-3154-420F-9409-22DBF6EC07A1","4B914A36-35C8-442D-A08C-B7F46E23F67D"],"partTests":{"__isSmartRef__":true,"id":9302},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":9307},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":9265},"isRevealed":false,"hasBomb":false,"_Visible":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"utilities":{"__isSmartRef__":true,"id":256},"draggingEnabled":false,"grabbingEnabled":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9312},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(219.0,61.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)"},"9265":{"submorphs":[],"scripts":[],"id":"B6D05680-8C11-491F-A71C-0F0593F50D35","shape":{"__isSmartRef__":true,"id":9266},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":false,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":12,"name":"NeighborCount","partsBinMetaInfo":{"__isSmartRef__":true,"id":9267},"textChunks":[{"__isSmartRef__":true,"id":9276}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":9278},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0","57692EB3-D337-4024-860E-2A102D74FDCD","57A3FDFA-C81D-4873-8929-ED898506BA6D"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":9279},"owner":{"__isSmartRef__":true,"id":9264},"_Rotation":0,"_Scale":1,"_Visible":false,"_Align":"center","__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"draggingEnabled":false,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"9266":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"9267":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":9268},{"__isSmartRef__":true,"id":9269},{"__isSmartRef__":true,"id":9270},{"__isSmartRef__":true,"id":9271},{"__isSmartRef__":true,"id":9272},{"__isSmartRef__":true,"id":9273},{"__isSmartRef__":true,"id":9274},{"__isSmartRef__":true,"id":9275}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"9268":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"9269":{"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)\")"},"9270":{"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)\")"},"9271":{"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)\")"},"9272":{"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)\")"},"9273":{"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)\")"},"9274":{"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)\")"},"9275":{"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)\")"},"9276":{"style":{"__isSmartRef__":true,"id":9277},"chunkOwner":{"__isSmartRef__":true,"id":9265},"_id":"_6017","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9277":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9278":{"morph":{"__isSmartRef__":true,"id":9265},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9279":{"resizeWidth":true},"9280":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":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(25.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"9281":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":9282},{"__isSmartRef__":true,"id":9283},{"__isSmartRef__":true,"id":9284},{"__isSmartRef__":true,"id":9285},{"__isSmartRef__":true,"id":9286},{"__isSmartRef__":true,"id":9287},{"__isSmartRef__":true,"id":9288},{"__isSmartRef__":true,"id":9289},{"__isSmartRef__":true,"id":9290},{"__isSmartRef__":true,"id":9291},{"__isSmartRef__":true,"id":9292},{"__isSmartRef__":true,"id":9293},{"__isSmartRef__":true,"id":9294},{"__isSmartRef__":true,"id":9295},{"__isSmartRef__":true,"id":9296},{"__isSmartRef__":true,"id":9297},{"__isSmartRef__":true,"id":9298},{"__isSmartRef__":true,"id":9299},{"__isSmartRef__":true,"id":9300}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"9282":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"9283":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"9284":{"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)\")"},"9285":{"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)\")"},"9286":{"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)\")"},"9287":{"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)\")"},"9288":{"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)\")"},"9289":{"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)\")"},"9290":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"9291":{"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)\")"},"9292":{"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)\")"},"9293":{"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)\")"},"9294":{"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)\")"},"9295":{"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)\")"},"9296":{"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)\")"},"9297":{"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)\")"},"9298":{"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)\")"},"9299":{"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)\")"},"9300":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"9301":{"morph":{"__isSmartRef__":true,"id":9264},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9302":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9303}},"9303":{"test01IsMorph":{"__isSmartRef__":true,"id":9304}},"9304":{"varMapping":{"__isSmartRef__":true,"id":9305},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":9306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9305":{"this":{"__isSmartRef__":true,"id":9302}},"9306":{},"9307":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9308},"_ClipMode":"visible","derivationIds":["F607CA31-D992-4971-94C9-88FED6D4A029","1B31AED1-3F5F-4147-B985-56A6FF83F89D","FD29950F-C95B-4559-A09B-7D0AC788A192","487D539C-B6AC-4844-8BDE-85EF6A3BC36F"],"id":"878A393D-E1FE-4685-B18C-F6D689C1A32C","droppingEnabled":false,"halosEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":9309},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":9310},"_Rotation":0,"_Scale":1,"owner":null,"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(279.0,-14.0)"},"9308":{"_ImageURL":"http://www.public-domain-photos.com/free-cliparts-1-big/tools/weapons/bomb_01.png","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,25.0)","_Padding":"lively.rect(0,0,0,0)"},"9309":{"morph":{"__isSmartRef__":true,"id":9307},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9310":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":9311}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sun Aug 17 2014 15:00:34 GMT-0700 (PDT)\")"},"9311":{"author":"rick","message":"no comment","id":"B9451626-ABA4-49A0-AAF3-8664F5FF8ED6","__serializedExpressions__":["date"],"date":"new Date(\"Sun Aug 17 2014 15:00:40 GMT-0700 (PDT)\")"},"9312":{"addBomb":{"__isSmartRef__":true,"id":9313},"clearFlag":{"__isSmartRef__":true,"id":9316},"countNeighborBombs":{"__isSmartRef__":true,"id":9319},"fixSubmorph":{"__isSmartRef__":true,"id":9322},"initAppearance":{"__isSmartRef__":true,"id":9325},"initMorphs":{"__isSmartRef__":true,"id":9328},"initNeighborsAndCount":{"__isSmartRef__":true,"id":9331},"isClosed":{"__isSmartRef__":true,"id":9334},"neighborPoints":{"__isSmartRef__":true,"id":9337},"onMouseDown":{"__isSmartRef__":true,"id":9340},"restoreGameAppearance":{"__isSmartRef__":true,"id":9347},"reveal":{"__isSmartRef__":true,"id":9350},"setCoordinates":{"__isSmartRef__":true,"id":9353},"showBomb":{"__isSmartRef__":true,"id":9356},"showDebugState":{"__isSmartRef__":true,"id":9359},"showFlag":{"__isSmartRef__":true,"id":9362},"showState":{"__isSmartRef__":true,"id":9365},"copyImageMorph":{"__isSmartRef__":true,"id":9368},"prepareToPublish":{"__isSmartRef__":true,"id":9371}},"9313":{"varMapping":{"__isSmartRef__":true,"id":9314},"source":"function addBomb() {\n    this.hasBomb = true;\n    if (!this.bombMorph) {\n        this.bombMorph = this.copyImageMorph(this.get('Utilities').get('Bomb'), 'Bomb');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9314":{"this":{"__isSmartRef__":true,"id":9264}},"9315":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"9316":{"varMapping":{"__isSmartRef__":true,"id":9317},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":9318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9317":{"this":{"__isSmartRef__":true,"id":9264}},"9318":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"9319":{"varMapping":{"__isSmartRef__":true,"id":9320},"source":"function countNeighborBombs() {\n    this.neighborCount = this.neighbors.filter(function(sq) {return sq.hasBomb}).length\n    return this.neighborCount\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9320":{"this":{"__isSmartRef__":true,"id":9264}},"9321":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9322":{"varMapping":{"__isSmartRef__":true,"id":9323},"source":"function fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":9324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9323":{"this":{"__isSmartRef__":true,"id":9264}},"9324":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9325":{"varMapping":{"__isSmartRef__":true,"id":9326},"source":"function initAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.bombMorph) this.bombMorph.setVisible(false)\n    this.neighborCountMorph.setVisible(false);\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false \n    this.isRevealed = false;\n    this.neighborCountMorph.setPosition(pt(0,0))\n    this.neighborCountMorph.setExtent(pt(25, 25))\n    this.neighborCountMorph.setFill(Global.Color.white)\n    this.neighborCountMorph.setFixedHeight(true);\n    this.neighborCountMorph.setFixedWidth(true);\n    this.neighborCountMorph.setAlign('center')\n    this.neighborCountMorph.setTextString('-')\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9326":{"this":{"__isSmartRef__":true,"id":9264}},"9327":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"9328":{"varMapping":{"__isSmartRef__":true,"id":9329},"source":"function initMorphs(utilities) {\n    this.neighborCountMorph = this.get('NeighborCount')\n    this.utilities = utilities\n    var morphList = [this, this.neighborCountMorph, this.bombMorph, this.flagMorph]\n    morphList.forEach(function (aMorph) {\n        if (aMorph) {\n            this.fixSubmorph(aMorph)\n        }\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9329":{"this":{"__isSmartRef__":true,"id":9264}},"9330":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"9331":{"varMapping":{"__isSmartRef__":true,"id":9332},"source":"function initNeighborsAndCount() {\n    var neighborPoints = this.neighborPoints();\n    this.neighbors = neighborPoints.map(function(coord) {return this.owner.getSquare(coord)}, this)\n    this.countNeighborBombs()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9332":{"this":{"__isSmartRef__":true,"id":9264}},"9333":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9334":{"varMapping":{"__isSmartRef__":true,"id":9335},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":9336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9335":{"this":{"__isSmartRef__":true,"id":9264}},"9336":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9337":{"varMapping":{"__isSmartRef__":true,"id":9338},"source":"function neighborPoints() {\n    var myList = [-1, 0, 1]\n    var realOffsets = this.utilities.crossProduct(myList, myList).filter(function (aPoint) {return !aPoint.eqPt(pt(0, 0))})\n    var candidateNeighbors = realOffsets.map(function(offPoint) {return this.coordinates.addPt(offPoint)}, this)\n    return candidateNeighbors.filter(function(aPoint) {\n        return this.owner.onBoard(aPoint)\n    }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":9339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9338":{"this":{"__isSmartRef__":true,"id":9264}},"9339":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9340":{"varMapping":{"__isSmartRef__":true,"id":9341},"source":"function onMouseDown(evt) {\n    if (this.isRevealed) return;\n    if (evt.isRightMouseButtonDown()) {\n        if (this.flagShowing) {\n            this.clearFlag();\n        } else {\n            this.showFlag();\n        }\n        this.owner.checkWin()\n        return;\n    }\n    if (this.hasBomb) {\n        this.showBomb()\n        this.owner.hitBomb()\n    } else {\n        this.reveal();\n        this.owner.checkWin()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9341":{"this":{"__isSmartRef__":true,"id":9264},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9342}},"9342":{"$super":{"__isSmartRef__":true,"id":9343}},"9343":{"varMapping":{"__isSmartRef__":true,"id":9344},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":9345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9344":{"obj":{"__isSmartRef__":true,"id":9264},"name":"onMouseDown"},"9345":{},"9346":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"9347":{"varMapping":{"__isSmartRef__":true,"id":9348},"source":"function restoreGameAppearance() {\n    this.setOpacity(1.0);\n    this.setFill(Global.Color.rgb(00,00,0xCC))\n    if (this.isClosed()) {\n        if (this.flagShowing) this.showFlag();\n        this.neighborCountMorph.setVisible(false);\n        this.bombMorph.setVisible(false)\n    } else if (this.hasBomb) {\n        // minor bug -- if the game was lost before we called restoreGameAppearance,\n        // this will unlose it.  But this is only called for debugging anyway\n        this.bombMorph.setVisible(false)\n        this.neighborCountMorph.setVisible(false)\n        if(this.flagShowing) this.showFlag();\n    } else {\n        this.bombMorph.setVisible(false)\n        this.flagMorph.setVisible(false)\n        this.flagIsShowing = false\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront();\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9348":{"this":{"__isSmartRef__":true,"id":9264}},"9349":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"9350":{"varMapping":{"__isSmartRef__":true,"id":9351},"source":"function reveal() {\n    if (this.hasBomb) return;\n    if (this.isRevealed) return;\n    if (this.flagShowing) return;\n    this.isRevealed = true;\n    this.showState()\n    if (this.neighborCount == 0) {\n        this.neighbors.forEach(function(neighbor) {neighbor.reveal();});\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9351":{"this":{"__isSmartRef__":true,"id":9264}},"9352":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9353":{"varMapping":{"__isSmartRef__":true,"id":9354},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":9355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9354":{"this":{"__isSmartRef__":true,"id":9264}},"9355":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9356":{"varMapping":{"__isSmartRef__":true,"id":9357},"source":"function showBomb() {\n    if (!this.hasBomb) return;\n    this.bombMorph.setVisible(true)\n    if (this.flagMorph) this.flagMorph.setVisible(false)\n    this.flagShowing = false\n    this.isRevealed = true;\n    this.neighborCountMorph.setVisible(false)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9357":{"this":{"__isSmartRef__":true,"id":9264}},"9358":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9359":{"varMapping":{"__isSmartRef__":true,"id":9360},"source":"function showDebugState() {\n    this.setOpacity(0.5);\n    if (!this.isClosed()) {\n        this.setFill(Global.Color.green)\n    }\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {this.bombMorph.setVisible(false)}\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        } else {\n            this.neighborCountMorph.setTextString('-')\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9360":{"this":{"__isSmartRef__":true,"id":9264}},"9361":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9362":{"varMapping":{"__isSmartRef__":true,"id":9363},"source":"function showFlag() {\n    if (!this.flagMorph) {\n        this.flagMorph = this.copyImageMorph(this.get('Utilities').get('Flag'), 'Flag');\n    }\n    this.flagMorph.setVisible(true);\n    this.flagMorph.bringToFront();\n    this.flagShowing = true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9363":{"this":{"__isSmartRef__":true,"id":9264}},"9364":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9365":{"varMapping":{"__isSmartRef__":true,"id":9366},"source":"function showState() {\n    if (this.flagMorph) {\n        this.flagMorph.setVisible(false)\n    }\n    this.flagShowing = false\n    if (this.hasBomb) {\n        this.bombMorph.setVisible(true)\n        this.neighborCountMorph.setVisible(false);\n    } else {\n        if (this.bombMorph) {\n            this.bombMorph.setVisible(false)\n        }\n        this.neighborCountMorph.setVisible(true);\n        this.neighborCountMorph.bringToFront()\n        if (this.neighborCount == 0) {\n            this.neighborCountMorph.setTextString('')\n        } else if (this.neighborCount) {\n            this.neighborCountMorph.setTextString(this.neighborCount);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9366":{"this":{"__isSmartRef__":true,"id":9264}},"9367":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9368":{"varMapping":{"__isSmartRef__":true,"id":9369},"source":"function copyImageMorph(aForeignMorph, myName) {\n    var newMorph = aForeignMorph.copy();\n    newMorph.setName(myName)\n    this.addMorph(newMorph);\n    newMorph.setVisible(false);\n    newMorph.setPosition(pt(0, 0))\n    this.fixSubmorph(newMorph)\n    return newMorph\n}","funcProperties":{"__isSmartRef__":true,"id":9370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9369":{"this":{"__isSmartRef__":true,"id":9264}},"9370":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9371":{"varMapping":{"__isSmartRef__":true,"id":9372},"source":"function prepareToPublish() {\n    if (this.flagMorph) {\n        this.flagMorph.remove();\n        this.flagShowing = false;\n        this.flagMorph = undefined;\n    }\n    if (this.bombMorph) {\n        this.bombMorph.remove()\n        this.hasBomb = false;\n        this.flagMorph = undefined\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9372":{"this":{"__isSmartRef__":true,"id":9264}},"9373":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9374":{"lively.pt(0.0,0.0)":{"__isSmartRef__":true,"id":323},"lively.pt(0.0,1.0)":{"__isSmartRef__":true,"id":371},"lively.pt(0.0,2.0)":{"__isSmartRef__":true,"id":419},"lively.pt(0.0,3.0)":{"__isSmartRef__":true,"id":467},"lively.pt(0.0,4.0)":{"__isSmartRef__":true,"id":515},"lively.pt(0.0,5.0)":{"__isSmartRef__":true,"id":563},"lively.pt(0.0,6.0)":{"__isSmartRef__":true,"id":611},"lively.pt(0.0,7.0)":{"__isSmartRef__":true,"id":659},"lively.pt(0.0,8.0)":{"__isSmartRef__":true,"id":707},"lively.pt(1.0,0.0)":{"__isSmartRef__":true,"id":1091},"lively.pt(1.0,1.0)":{"__isSmartRef__":true,"id":1043},"lively.pt(1.0,2.0)":{"__isSmartRef__":true,"id":995},"lively.pt(1.0,3.0)":{"__isSmartRef__":true,"id":947},"lively.pt(1.0,4.0)":{"__isSmartRef__":true,"id":899},"lively.pt(1.0,5.0)":{"__isSmartRef__":true,"id":851},"lively.pt(1.0,6.0)":{"__isSmartRef__":true,"id":803},"lively.pt(1.0,7.0)":{"__isSmartRef__":true,"id":755},"lively.pt(1.0,8.0)":{"__isSmartRef__":true,"id":1523},"lively.pt(2.0,0.0)":{"__isSmartRef__":true,"id":1139},"lively.pt(2.0,1.0)":{"__isSmartRef__":true,"id":1187},"lively.pt(2.0,2.0)":{"__isSmartRef__":true,"id":1235},"lively.pt(2.0,3.0)":{"__isSmartRef__":true,"id":1283},"lively.pt(2.0,4.0)":{"__isSmartRef__":true,"id":1331},"lively.pt(2.0,5.0)":{"__isSmartRef__":true,"id":1379},"lively.pt(2.0,6.0)":{"__isSmartRef__":true,"id":1427},"lively.pt(2.0,7.0)":{"__isSmartRef__":true,"id":1475},"lively.pt(2.0,8.0)":{"__isSmartRef__":true,"id":1571},"lively.pt(3.0,0.0)":{"__isSmartRef__":true,"id":1955},"lively.pt(3.0,1.0)":{"__isSmartRef__":true,"id":1907},"lively.pt(3.0,2.0)":{"__isSmartRef__":true,"id":1859},"lively.pt(3.0,3.0)":{"__isSmartRef__":true,"id":1811},"lively.pt(3.0,4.0)":{"__isSmartRef__":true,"id":1763},"lively.pt(3.0,5.0)":{"__isSmartRef__":true,"id":1715},"lively.pt(3.0,6.0)":{"__isSmartRef__":true,"id":1667},"lively.pt(3.0,7.0)":{"__isSmartRef__":true,"id":1619},"lively.pt(3.0,8.0)":{"__isSmartRef__":true,"id":2387},"lively.pt(4.0,0.0)":{"__isSmartRef__":true,"id":2003},"lively.pt(4.0,1.0)":{"__isSmartRef__":true,"id":2051},"lively.pt(4.0,2.0)":{"__isSmartRef__":true,"id":2099},"lively.pt(4.0,3.0)":{"__isSmartRef__":true,"id":2147},"lively.pt(4.0,4.0)":{"__isSmartRef__":true,"id":2195},"lively.pt(4.0,5.0)":{"__isSmartRef__":true,"id":2243},"lively.pt(4.0,6.0)":{"__isSmartRef__":true,"id":2291},"lively.pt(4.0,7.0)":{"__isSmartRef__":true,"id":2339},"lively.pt(4.0,8.0)":{"__isSmartRef__":true,"id":2435},"lively.pt(5.0,0.0)":{"__isSmartRef__":true,"id":2819},"lively.pt(5.0,1.0)":{"__isSmartRef__":true,"id":2771},"lively.pt(5.0,2.0)":{"__isSmartRef__":true,"id":2723},"lively.pt(5.0,3.0)":{"__isSmartRef__":true,"id":2675},"lively.pt(5.0,4.0)":{"__isSmartRef__":true,"id":2627},"lively.pt(5.0,5.0)":{"__isSmartRef__":true,"id":2579},"lively.pt(5.0,6.0)":{"__isSmartRef__":true,"id":2531},"lively.pt(5.0,7.0)":{"__isSmartRef__":true,"id":2483},"lively.pt(5.0,8.0)":{"__isSmartRef__":true,"id":3251},"lively.pt(6.0,0.0)":{"__isSmartRef__":true,"id":2867},"lively.pt(6.0,1.0)":{"__isSmartRef__":true,"id":2915},"lively.pt(6.0,2.0)":{"__isSmartRef__":true,"id":2963},"lively.pt(6.0,3.0)":{"__isSmartRef__":true,"id":3011},"lively.pt(6.0,4.0)":{"__isSmartRef__":true,"id":3059},"lively.pt(6.0,5.0)":{"__isSmartRef__":true,"id":3107},"lively.pt(6.0,6.0)":{"__isSmartRef__":true,"id":3155},"lively.pt(6.0,7.0)":{"__isSmartRef__":true,"id":3203},"lively.pt(6.0,8.0)":{"__isSmartRef__":true,"id":3299},"lively.pt(7.0,0.0)":{"__isSmartRef__":true,"id":3683},"lively.pt(7.0,1.0)":{"__isSmartRef__":true,"id":3635},"lively.pt(7.0,2.0)":{"__isSmartRef__":true,"id":3587},"lively.pt(7.0,3.0)":{"__isSmartRef__":true,"id":3539},"lively.pt(7.0,4.0)":{"__isSmartRef__":true,"id":3491},"lively.pt(7.0,5.0)":{"__isSmartRef__":true,"id":3443},"lively.pt(7.0,6.0)":{"__isSmartRef__":true,"id":3395},"lively.pt(7.0,7.0)":{"__isSmartRef__":true,"id":3347},"lively.pt(7.0,8.0)":{"__isSmartRef__":true,"id":4115},"lively.pt(8.0,0.0)":{"__isSmartRef__":true,"id":3731},"lively.pt(8.0,1.0)":{"__isSmartRef__":true,"id":3779},"lively.pt(8.0,2.0)":{"__isSmartRef__":true,"id":3827},"lively.pt(8.0,3.0)":{"__isSmartRef__":true,"id":3875},"lively.pt(8.0,4.0)":{"__isSmartRef__":true,"id":3923},"lively.pt(8.0,5.0)":{"__isSmartRef__":true,"id":3971},"lively.pt(8.0,6.0)":{"__isSmartRef__":true,"id":4019},"lively.pt(8.0,7.0)":{"__isSmartRef__":true,"id":4067},"lively.pt(8.0,8.0)":{"__isSmartRef__":true,"id":4163}},"9375":{"checkWin":{"__isSmartRef__":true,"id":9376},"getAllSquares":{"__isSmartRef__":true,"id":9379},"getSquare":{"__isSmartRef__":true,"id":9382},"getState":{"__isSmartRef__":true,"id":9385},"getTimes":{"__isSmartRef__":true,"id":9388},"hitBomb":{"__isSmartRef__":true,"id":9391},"init":{"__isSmartRef__":true,"id":9394},"makeBombIndices":{"__isSmartRef__":true,"id":9397},"newGame":{"__isSmartRef__":true,"id":9400},"onBoard":{"__isSmartRef__":true,"id":9403},"removeSquares":{"__isSmartRef__":true,"id":9406},"restoreGameState":{"__isSmartRef__":true,"id":9409},"showBoardState":{"__isSmartRef__":true,"id":9412},"updatePrototype":{"__isSmartRef__":true,"id":9415},"addSquares":{"__isSmartRef__":true,"id":9418},"prepareToPublish":{"__isSmartRef__":true,"id":9421}},"9376":{"varMapping":{"__isSmartRef__":true,"id":9377},"source":"function checkWin() {\n    var allSquares = this.getAllSquares()\n    var closedSquares = allSquares.filter(function(square) {return square.isClosed()})\n    var squareBombDetected = allSquares.filter(function(square) {return square.hasBomb && square.flagShowing})\n    var squareBombFlagged = allSquares.filter(function(square) {return square.flagShowing})\n    this.bombsRemaining = this.numBombs - squareBombFlagged.length\n    if (this.bombsRemaining == 0) {\n        if (squareBombFlagged.length == squareBombDetected.length) {\n            this.get('YouWin').setVisible(true);\n            this.getAllSquares().forEach(function(square) {\n                square.showState();\n                square.isRevealed = true;\n                \n            });\n        } else {\n            this.hitBomb();\n        }\n        \n    }\n}","funcProperties":{"__isSmartRef__":true,"id":9378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9377":{"this":{"__isSmartRef__":true,"id":322}},"9378":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9379":{"varMapping":{"__isSmartRef__":true,"id":9380},"source":"function getAllSquares() {\n    return this.cells.map(function(cell) {return this.getSquare(cell)}, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9380":{"this":{"__isSmartRef__":true,"id":322}},"9381":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9382":{"varMapping":{"__isSmartRef__":true,"id":9383},"source":"function getSquare(aCoord) {\n    return this.squares[aCoord]\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9383":{"this":{"__isSmartRef__":true,"id":322}},"9384":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9385":{"varMapping":{"__isSmartRef__":true,"id":9386},"source":"function getState(cell) {\n    var square = this.getSquare(cell)\n    var pts = square.neighborPoints()\n    return pts.map(function(aPoint) {return this.getSquare(aPoint).hasBomb}, this)\n}","funcProperties":{"__isSmartRef__":true,"id":9387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9386":{"this":{"__isSmartRef__":true,"id":322}},"9387":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9388":{"varMapping":{"__isSmartRef__":true,"id":9389},"source":"function getTimes() {\n    this.times = []\n    for(var i = 1; i < this.checkpoints.length; i++) {\n        this.times.push(this.checkpoints[i] - this.checkpoints[i-1])\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9389":{"this":{"__isSmartRef__":true,"id":322}},"9390":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9391":{"varMapping":{"__isSmartRef__":true,"id":9392},"source":"function hitBomb() {\n    this.getAllSquares().forEach(function(square) {\n        square.showBomb();\n        square.isRevealed = true;\n    })\n    this.get('YouLose').setVisible(true)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9392":{"this":{"__isSmartRef__":true,"id":322}},"9393":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9394":{"varMapping":{"__isSmartRef__":true,"id":9395},"source":"function init(params) {\n    Global.alertOK(JSON.stringify(params))\n    this.removeSquares()\n    this.height = params.rows;\n    this.width = params.columns;\n    this.dimension = new lively.Rectangle(0, 0, this.width - 1, this.height - 1)\n    this.numBombs = params.bombs;\n    this.bombsRemaining = params.bombs;\n    this.squares = {}\n    this.utilities = this.get('Utilities')\n    this.columns = Array.range(0, this.width - 1)\n    this.rows = Array.range(0, this.height - 1)\n    // use column major order -- pt(i, j)  refers to COLUMN i, ROW j.  This is \n    // unusual, but it means that we use the same coordinates for screen real estate\n    // and matrix columns.  Only really matters if the board is non-rectangular\n    this.cells = this.utilities.crossProduct(this.columns, this.rows)\n    if (this.cells.length > this.squareStore.length) {\n        this.addSquares(this.cells.length - this.squareStore.length)\n    }\n    this.cells.forEach(function(aPoint, index) {\n        var newSquare = this.squareStore[index];\n        this.squares[aPoint] = newSquare;\n        newSquare.setCoordinates(aPoint);\n        newSquare.initAppearance();\n        this.addMorph(newSquare);\n        newSquare.setPosition(pt(2 + aPoint.x * 25, 2 + aPoint.y * 25)); \n    }, this)\n    this.get('YouWin').setVisible(false)\n    this.get('YouLose').setVisible(false)\n    this.setExtent(pt(4 + this.width * 25, 4 + this.height * 25))\n    this.get('YouWin').setPosition(this.getBounds().center().subPt(pt(55, 85)))\n    this.get('YouLose').setPosition(this.getBounds().center().subPt(pt(75, 85)))\n    this.newGame()\n// this.init({rows:8, columns:8, bombs:9})\n// this.squareStore\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9395":{"this":{"__isSmartRef__":true,"id":322}},"9396":{"__serializedExpressions__":["timestamp"],"user":"rick","timestamp":"new Date(\"Mon Aug 18 2014 09:26:00 GMT-0700 (PDT)\")"},"9397":{"varMapping":{"__isSmartRef__":true,"id":9398},"source":"function makeBombIndices() {\n    // get an Array of random numbers in the range 0...numCells - 1,\n    // throw out the duplicates, then take the first numBombs of them as the\n    // indices of the cells.\n    var randomIndices = Array.range(0, this.cells.length).map(function(n) {return Math.round(Math.random()*(this.cells.length - 1), 0)}, this)\n    return randomIndices.uniqueElements().slice(0, this.numBombs);\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9398":{"this":{"__isSmartRef__":true,"id":322}},"9399":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9400":{"varMapping":{"__isSmartRef__":true,"id":9401},"source":"function newGame() {\n    this.get('YouWin').setVisible(false)\n    this.get('YouLose').setVisible(false)\n    this.bombsRemaining = this.numBombs\n    this.cells.forEach(function(cell) {this.squares[cell].hasBomb = false}, this);\n    this.cells.forEach(function(cell) {this.squares[cell].setCoordinates(cell)}, this);\n    var bombIndices = this.makeBombIndices();\n    bombIndices.forEach(function(index) {this.squares[this.cells[index]].hasBomb = true}, this)\n    this.bombCounts = 0;\n    this.cells.forEach(function(cell) {if (this.getSquare(cell).hasBomb) ++this.bombCounts}, this)\n    this.cells.forEach(function(cell) {this.squares[cell].initNeighborsAndCount()}, this)\n    this.cells.forEach(function(cell) {this.squares[cell].initAppearance()}, this)\n}","funcProperties":{"__isSmartRef__":true,"id":9402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9401":{"this":{"__isSmartRef__":true,"id":322}},"9402":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9403":{"varMapping":{"__isSmartRef__":true,"id":9404},"source":"function onBoard(aCoord) {\n    return this.dimension.containsPoint(aCoord)\n}","funcProperties":{"__isSmartRef__":true,"id":9405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9404":{"this":{"__isSmartRef__":true,"id":322}},"9405":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9406":{"varMapping":{"__isSmartRef__":true,"id":9407},"source":"function removeSquares() {\n    var squareMorphs = this.submorphs.filter(function (aMorph) {return aMorph.name.startsWith('MinesweeperSquare')})\n    squareMorphs.forEach(function(aSquare) {aSquare.remove()})\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9407":{"this":{"__isSmartRef__":true,"id":322}},"9408":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9409":{"varMapping":{"__isSmartRef__":true,"id":9410},"source":"function restoreGameState() {\n    var squares = this.getAllSquares();\n    squares.forEach(function(square) {square.restoreGameAppearance()})\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9410":{"this":{"__isSmartRef__":true,"id":322}},"9411":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9412":{"varMapping":{"__isSmartRef__":true,"id":9413},"source":"function showBoardState() {\n    var squares = this.getAllSquares();\n    squares.forEach(function(square) {square.showDebugState()})\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9413":{"this":{"__isSmartRef__":true,"id":322}},"9414":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9415":{"varMapping":{"__isSmartRef__":true,"id":9416},"source":"function updatePrototype() {\n    var squareMorphs = this.submorphs.filter(function (aMorph) {return aMorph.name.startsWith('MinesweeperSquare')})\n    squareMorphs.forEach(function(aSquare) {aSquare.remove()})\n    this.originalSquare = lively.PartsBin.getPart('MinesweeperSquare', 'PartsBin/Rick')\n    this.originalSquare.initMorphs(this.get('Utilities'))\n    this.squareStore = Array.range(0, 255).map(function(index) {\n        return this.originalSquare.copy()\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9416":{"this":{"__isSmartRef__":true,"id":322}},"9417":{"__serializedExpressions__":["timestamp"],"user":"rick","timestamp":"new Date(\"Mon Aug 18 2014 07:37:19 GMT-0700 (PDT)\")"},"9418":{"varMapping":{"__isSmartRef__":true,"id":9419},"source":"function addSquares(numSquares) {\n    Array.range(1, numSquares).forEach(function(index) {\n        this.squareStore.push(this.originalSquare.copy())\n    }, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9419":{"this":{"__isSmartRef__":true,"id":322}},"9420":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:27:28 GMT-0700 (PDT)\")"},"9421":{"varMapping":{"__isSmartRef__":true,"id":9422},"source":"function prepareToPublish() {\n    if (this.squareStore.length > 81) {\n        this.squareStore = this.squareStore.slice(0, 81);\n    }\n    this.squareStore.forEach(function(sq) {sq.prepareToPublish()})\n    var utilities = this.get('Utilities')\n    this.withAllSubmorphsDo(function(aMorph) {\n        utilities.fixMorph(aMorph)\n    })\n    this.get('YouWin').setVisible(false);\n    this.get('YouLose').setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":9423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9422":{"this":{"__isSmartRef__":true,"id":322}},"9423":{"__serializedExpressions__":["timestamp"],"user":"rick","timestamp":"new Date(\"Mon Aug 18 2014 09:51:06 GMT-0700 (PDT)\")"},"9424":{"_BorderWidth":2.036,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"__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(260.0,394.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"9425":{"partsSpaceName":"PartsBin/Rick/","comment":"A minesweeper game","migrationLevel":8,"partName":"Minesweeper","changes":[{"__isSmartRef__":true,"id":9426},{"__isSmartRef__":true,"id":9427},{"__isSmartRef__":true,"id":9428},{"__isSmartRef__":true,"id":9429},{"__isSmartRef__":true,"id":9430},{"__isSmartRef__":true,"id":9431},{"__isSmartRef__":true,"id":9432},{"__isSmartRef__":true,"id":9433},{"__isSmartRef__":true,"id":9434},{"__isSmartRef__":true,"id":9435},{"__isSmartRef__":true,"id":9436},{"__isSmartRef__":true,"id":9437},{"__isSmartRef__":true,"id":9438},{"__isSmartRef__":true,"id":9439},{"__isSmartRef__":true,"id":9440},{"__isSmartRef__":true,"id":9441},{"__isSmartRef__":true,"id":9442},{"__isSmartRef__":true,"id":9443},{"__isSmartRef__":true,"id":9444},{"__isSmartRef__":true,"id":9445}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"9426":{"author":"lauritz","message":"dropping enabled for the blue rectangle","id":"81D350CB-D926-491F-8FF3-A6C9C831BDF2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"9427":{"author":"jenslincke","message":"no comment","id":"ECD12BFF-E872-4918-8341-C6571E72F36D","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:24:27 GMT-0800 (PST)\")"},"9428":{"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)\")"},"9429":{"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)\")"},"9430":{"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)\")"},"9431":{"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)\")"},"9432":{"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)\")"},"9433":{"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)\")"},"9434":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"9435":{"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)\")"},"9436":{"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)\")"},"9437":{"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)\")"},"9438":{"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)\")"},"9439":{"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)\")"},"9440":{"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)\")"},"9441":{"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)\")"},"9442":{"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)\")"},"9443":{"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)\")"},"9444":{"author":"jenslincke","message":"no comment","id":"ADFBF069-513C-4DE6-95A9-8AD4985C6508","__serializedExpressions__":["date"],"date":"new Date(\"Tue Feb 04 2014 01:23:53 GMT-0800 (PST)\")"},"9445":{"__serializedExpressions__":["date"],"author":"rick","message":"no comment","id":"CD529C15-ACFB-40BC-A35D-120D9D497F4D","date":"new Date(\"Mon Aug 18 2014 09:53:17 GMT-0700 (PDT)\")"},"9446":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9447":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9448}},"9448":{"test01IsMorph":{"__isSmartRef__":true,"id":9449}},"9449":{"varMapping":{"__isSmartRef__":true,"id":9450},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":9451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9450":{"this":{"__isSmartRef__":true,"id":9447}},"9451":{},"9452":{"layoutGame":{"__isSmartRef__":true,"id":9453}},"9453":{"varMapping":{"__isSmartRef__":true,"id":9454},"source":"function layoutGame() {\n    var morphs = [this.get('Board'), this.get('ControlPanel')]\n    var morphWidths = morphs.map(function (m, index) {\n        return m.getExtent().x\n    });\n    var maxWidth = morphWidths.reduce(function (previousMax, currentWidth) {\n        return Math.max(previousMax, currentWidth)\n    }, 0);\n    var xExtent = maxWidth + 20;\n    var xPositions = morphs.map(function(morph) {\n        var halfWidth = morph.getExtent().x/2;\n        var xCenter = (xExtent)/2;\n        return xCenter - halfWidth;\n        \n    });\n    var panelVerticalPad = 5;\n    var yPositions = [morphs[0].getPosition().y]\n    yPositions.push(yPositions[0] + morphs[0].getExtent().y + panelVerticalPad)\n    var yExtent = yPositions[1] + morphs[1].getExtent().y + panelVerticalPad\n\n    var positions = xPositions.map(function (xVal, index) {\n        return pt(xVal, yPositions[index])\n    })\n    morphs.forEach(function(morph, index) {\n        morph.setPosition(positions[index])\n    })\n    this.setExtent(pt(xExtent, yExtent))\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9454":{"this":{"__isSmartRef__":true,"id":0}},"9455":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 19:25:02 GMT-0700 (PDT)\")"},"isSimplifiedRegistry":true}}