{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":402},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":546},{"__isSmartRef__":true,"id":594},{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":738},{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":1554},{"__isSmartRef__":true,"id":1170},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1266},{"__isSmartRef__":true,"id":1314},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1458},{"__isSmartRef__":true,"id":1506},{"__isSmartRef__":true,"id":1602},{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":2418},{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2466},{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":3282},{"__isSmartRef__":true,"id":2898},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3090},{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3234},{"__isSmartRef__":true,"id":3330},{"__isSmartRef__":true,"id":3714},{"__isSmartRef__":true,"id":3666},{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":4146},{"__isSmartRef__":true,"id":3762},{"__isSmartRef__":true,"id":3810},{"__isSmartRef__":true,"id":3858},{"__isSmartRef__":true,"id":3906},{"__isSmartRef__":true,"id":3954},{"__isSmartRef__":true,"id":4002},{"__isSmartRef__":true,"id":4050},{"__isSmartRef__":true,"id":4098},{"__isSmartRef__":true,"id":4194}],"scripts":[],"id":"91008ACF-FB3B-40F5-819B-5519ED542585","shape":{"__isSmartRef__":true,"id":9264},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperBoard","partsBinMetaInfo":{"__isSmartRef__":true,"id":9265},"eventHandler":{"__isSmartRef__":true,"id":9287},"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":9288},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"attributeConnections":[{"__isSmartRef__":true,"id":9293}],"doNotSerialize":["$$bombsRemaining"],"doNotCopyProperties":["$$bombsRemaining"],"bombsRemaining":10,"originalSquare":{"__isSmartRef__":true,"id":9295},"squareStore":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":402},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":546},{"__isSmartRef__":true,"id":594},{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":738},{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":1554},{"__isSmartRef__":true,"id":1170},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1266},{"__isSmartRef__":true,"id":1314},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1458},{"__isSmartRef__":true,"id":1506},{"__isSmartRef__":true,"id":1602},{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":2418},{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2466},{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":3282},{"__isSmartRef__":true,"id":2898},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3090},{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3234},{"__isSmartRef__":true,"id":3330},{"__isSmartRef__":true,"id":3714},{"__isSmartRef__":true,"id":3666},{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":4146},{"__isSmartRef__":true,"id":3762},{"__isSmartRef__":true,"id":3810},{"__isSmartRef__":true,"id":3858},{"__isSmartRef__":true,"id":3906},{"__isSmartRef__":true,"id":3954},{"__isSmartRef__":true,"id":4002},{"__isSmartRef__":true,"id":4050},{"__isSmartRef__":true,"id":4098},{"__isSmartRef__":true,"id":4194}],"height":9,"width":9,"numBombs":10,"squares":{"__isSmartRef__":true,"id":9405},"utilities":{"__isSmartRef__":true,"id":49},"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":9406},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(151.0,-17.0)","dimension":"lively.rect(0,0,8,8)"},"1":{"submorphs":[{"__isSmartRef__":true,"id":2}],"scripts":[],"id":"F7D2B1E4-28DF-423E-BBF3-828D763F8B97","shape":{"__isSmartRef__":true,"id":17},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":18},"eventHandler":{"__isSmartRef__":true,"id":38},"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":39},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":44},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":402},{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1074}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9202},"__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)"},"2":{"submorphs":[],"scripts":[],"id":"28F29D87-D7B1-47A9-B39B-B508C4BD94F5","shape":{"__isSmartRef__":true,"id":3},"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":4},"textChunks":[{"__isSmartRef__":true,"id":13}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":15},"_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":16},"owner":{"__isSmartRef__":true,"id":1},"_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)"},"3":{"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)"},"4":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__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},{"__isSmartRef__":true,"id":12}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"5":{"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)\")"},"6":{"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)\")"},"7":{"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)\")"},"8":{"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)).  This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F","__serializedExpressions__":["date"],"date":"new Date(\"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)\")"},"9":{"author":"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)\")"},"10":{"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)\")"},"11":{"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)\")"},"12":{"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)\")"},"13":{"style":{"__isSmartRef__":true,"id":14},"chunkOwner":{"__isSmartRef__":true,"id":2},"_id":"_16049","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15":{"morph":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16":{"resizeWidth":true},"17":{"_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)"},"18":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","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},{"__isSmartRef__":true,"id":27},{"__isSmartRef__":true,"id":28},{"__isSmartRef__":true,"id":29},{"__isSmartRef__":true,"id":30},{"__isSmartRef__":true,"id":31},{"__isSmartRef__":true,"id":32},{"__isSmartRef__":true,"id":33},{"__isSmartRef__":true,"id":34},{"__isSmartRef__":true,"id":35},{"__isSmartRef__":true,"id":36},{"__isSmartRef__":true,"id":37}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"19":{"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)\")"},"20":{"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)\")"},"21":{"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)\")"},"22":{"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)\")"},"23":{"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)\")"},"24":{"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)\")"},"25":{"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)\")"},"26":{"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)\")"},"27":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"28":{"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)\")"},"29":{"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)\")"},"30":{"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)\")"},"31":{"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)\")"},"32":{"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)\")"},"33":{"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)\")"},"34":{"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)\")"},"35":{"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)\")"},"36":{"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)\")"},"37":{"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)\")"},"38":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"39":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40}},"40":{"test01IsMorph":{"__isSmartRef__":true,"id":41}},"41":{"varMapping":{"__isSmartRef__":true,"id":42},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":43},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"42":{"this":{"__isSmartRef__":true,"id":39}},"43":{},"44":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":45},"_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":46},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":47},"_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)"},"45":{"_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)"},"46":{"morph":{"__isSmartRef__":true,"id":44},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"47":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":48}],"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)\")"},"48":{"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)\")"},"49":{"submorphs":[{"__isSmartRef__":true,"id":50},{"__isSmartRef__":true,"id":55}],"scripts":[],"shape":{"__isSmartRef__":true,"id":62},"id":"D966DD4E-1766-4915-8273-656457B197AB","eventHandler":{"__isSmartRef__":true,"id":63},"droppingEnabled":true,"halosEnabled":true,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":64},"name":"Utilities","partsBinMetaInfo":{"__isSmartRef__":true,"id":65},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","13233823-1113-464C-ADCF-071B43D6AEF6","2F1DBF66-E53D-4B13-9793-53EBDA946EEB"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":70},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":389},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(111.0,16.0)","distanceToDragEvent":"lively.pt(6.0,-24.0)"},"50":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":51},"_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":52},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":53},"owner":{"__isSmartRef__":true,"id":49},"__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)"},"51":{"_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)"},"52":{"morph":{"__isSmartRef__":true,"id":50},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"53":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":54}],"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)\")"},"54":{"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)\")"},"55":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":56},"_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":57},"name":"Flag","showsHalos":false,"grabbingEnabled":false,"draggingEnabled":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":58},"owner":{"__isSmartRef__":true,"id":49},"__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)"},"56":{"_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)"},"57":{"morph":{"__isSmartRef__":true,"id":55},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"58":{"partName":"Flag","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":59},{"__isSmartRef__":true,"id":60},{"__isSmartRef__":true,"id":61}],"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)\")"},"59":{"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)\")"},"60":{"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)\")"},"61":{"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)\")"},"62":{"_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)"},"63":{"morph":{"__isSmartRef__":true,"id":49},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"64":{},"65":{"partName":"Utilities","requiredModules":[],"migrationLevel":8,"partsSpaceName":"PartsBin/Rick","comment":"Utilities morph for Minesweeper","changes":[{"__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(\"Mon Aug 18 2014 09:45:43 GMT-0700 (PDT)\")"},"66":{"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)\")"},"67":{"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)\")"},"68":{"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)\")"},"69":{"__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)\")"},"70":{"submorphs":[{"__isSmartRef__":true,"id":71},{"__isSmartRef__":true,"id":77},{"__isSmartRef__":true,"id":257},{"__isSmartRef__":true,"id":49}],"scripts":[],"id":"E4904A77-0496-4F03-B4E4-93D0B8FA25D9","shape":{"__isSmartRef__":true,"id":280},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ControlPanel","partsBinMetaInfo":{"__isSmartRef__":true,"id":281},"eventHandler":{"__isSmartRef__":true,"id":302},"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":303},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":308},"__serializedExpressions__":["_Position","distanceToDragEvent"],"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":385},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(10.0,267.0)","distanceToDragEvent":"lively.pt(160.0,-23.0)"},"71":{"submorphs":[],"scripts":[],"id":"56AC8EA1-05A3-44B3-ACD2-40E69E6347A4","shape":{"__isSmartRef__":true,"id":72},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":73},"itemList":["Beginner","Intermediate","Expert","Custom"],"selectOnMove":false,"showsHalos":false,"name":"LevelList","partsBinMetaInfo":{"__isSmartRef__":true,"id":74},"derivationIds":[6545,"5EAE7699-D308-4EDF-B821-CD94785475A3"],"selection":"Beginner","owner":{"__isSmartRef__":true,"id":70},"changeTriggered":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"selectedLineNo":0,"attributeConnections":[{"__isSmartRef__":true,"id":75}],"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)"},"72":{"_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)"},"73":{"morph":{"__isSmartRef__":true,"id":71},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"74":{"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)\")"},"75":{"sourceObj":{"__isSmartRef__":true,"id":71},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":70},"targetMethodName":"init","varMapping":{"__isSmartRef__":true,"id":76},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"76":{"source":{"__isSmartRef__":true,"id":71},"target":{"__isSmartRef__":true,"id":70}},"77":{"submorphs":[{"__isSmartRef__":true,"id":78},{"__isSmartRef__":true,"id":125},{"__isSmartRef__":true,"id":172}],"scripts":[],"id":"91D4179C-B594-45C5-9317-296DA3A35A64","shape":{"__isSmartRef__":true,"id":230},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"CustomPanel","partsBinMetaInfo":{"__isSmartRef__":true,"id":231},"eventHandler":{"__isSmartRef__":true,"id":251},"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":252},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":70},"__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)"},"78":{"submorphs":[{"__isSmartRef__":true,"id":79},{"__isSmartRef__":true,"id":83}],"scripts":[],"id":"4123AC48-182E-490D-AE90-CA3612F7C719","shape":{"__isSmartRef__":true,"id":98},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"RowBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":99},"eventHandler":{"__isSmartRef__":true,"id":119},"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":120},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":77},"__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)"},"79":{"submorphs":[],"scripts":[],"id":"5EAE7699-D308-4EDF-B821-CD94785475A3","shape":{"__isSmartRef__":true,"id":80},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":81},"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":82},"derivationIds":[6545],"owner":{"__isSmartRef__":true,"id":78},"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)"},"80":{"_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)"},"81":{"morph":{"__isSmartRef__":true,"id":79},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"82":{"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)\")"},"83":{"submorphs":[],"scripts":[],"id":"861E0E61-5534-416A-84F3-A0F80A63A172","shape":{"__isSmartRef__":true,"id":84},"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":85},"textChunks":[{"__isSmartRef__":true,"id":94}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":96},"_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":97},"owner":{"__isSmartRef__":true,"id":78},"__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)"},"84":{"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)"},"85":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"86":{"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)\")"},"87":{"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)\")"},"88":{"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)\")"},"89":{"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)\")"},"90":{"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)\")"},"91":{"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)\")"},"92":{"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)\")"},"93":{"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)\")"},"94":{"style":{"__isSmartRef__":true,"id":95},"morph":{"__isSmartRef__":true,"id":83},"chunkOwner":{"__isSmartRef__":true,"id":83},"storedString":"Rows","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"95":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"96":{"morph":{"__isSmartRef__":true,"id":83},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"97":{"resizeWidth":true},"98":{"_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)"},"99":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":100},{"__isSmartRef__":true,"id":101},{"__isSmartRef__":true,"id":102},{"__isSmartRef__":true,"id":103},{"__isSmartRef__":true,"id":104},{"__isSmartRef__":true,"id":105},{"__isSmartRef__":true,"id":106},{"__isSmartRef__":true,"id":107},{"__isSmartRef__":true,"id":108},{"__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},{"__isSmartRef__":true,"id":117},{"__isSmartRef__":true,"id":118}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"100":{"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)\")"},"101":{"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)\")"},"102":{"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)\")"},"103":{"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)\")"},"104":{"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)\")"},"105":{"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)\")"},"106":{"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)\")"},"107":{"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)\")"},"108":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"109":{"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)\")"},"110":{"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)\")"},"111":{"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)\")"},"112":{"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)\")"},"113":{"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)\")"},"114":{"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)\")"},"115":{"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)\")"},"116":{"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)\")"},"117":{"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)\")"},"118":{"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)\")"},"119":{"morph":{"__isSmartRef__":true,"id":78},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"120":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":121}},"121":{"test01IsMorph":{"__isSmartRef__":true,"id":122}},"122":{"varMapping":{"__isSmartRef__":true,"id":123},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"123":{"this":{"__isSmartRef__":true,"id":120}},"124":{},"125":{"submorphs":[{"__isSmartRef__":true,"id":126},{"__isSmartRef__":true,"id":130}],"scripts":[],"id":"48DA4E0E-B05B-4948-9C79-CD7054D58752","shape":{"__isSmartRef__":true,"id":145},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ColumnBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":146},"eventHandler":{"__isSmartRef__":true,"id":166},"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":167},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":77},"__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)"},"126":{"submorphs":[],"scripts":[],"id":"EF7653EF-6D30-4C7D-A703-B24029EFF8FD","shape":{"__isSmartRef__":true,"id":127},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":128},"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":129},"derivationIds":[6545,"5EAE7699-D308-4EDF-B821-CD94785475A3"],"owner":{"__isSmartRef__":true,"id":125},"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)"},"127":{"_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)"},"128":{"morph":{"__isSmartRef__":true,"id":126},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"129":{"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)\")"},"130":{"submorphs":[],"scripts":[],"id":"E04A8FF1-0F03-439B-A6C6-AE4C3E8EE18D","shape":{"__isSmartRef__":true,"id":131},"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":132},"textChunks":[{"__isSmartRef__":true,"id":141}],"charsReplaced":"Rows","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":143},"_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":144},"owner":{"__isSmartRef__":true,"id":125},"__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)"},"131":{"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)"},"132":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"133":{"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)\")"},"134":{"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)\")"},"135":{"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)\")"},"136":{"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)\")"},"137":{"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)\")"},"138":{"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)\")"},"139":{"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)\")"},"140":{"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)\")"},"141":{"style":{"__isSmartRef__":true,"id":142},"morph":{"__isSmartRef__":true,"id":130},"chunkOwner":{"__isSmartRef__":true,"id":130},"storedString":"Columns","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"142":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"143":{"morph":{"__isSmartRef__":true,"id":130},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"144":{"resizeWidth":true},"145":{"_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)"},"146":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":147},{"__isSmartRef__":true,"id":148},{"__isSmartRef__":true,"id":149},{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":151},{"__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},{"__isSmartRef__":true,"id":160},{"__isSmartRef__":true,"id":161},{"__isSmartRef__":true,"id":162},{"__isSmartRef__":true,"id":163},{"__isSmartRef__":true,"id":164},{"__isSmartRef__":true,"id":165}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"147":{"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)\")"},"148":{"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)\")"},"149":{"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)\")"},"150":{"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)\")"},"151":{"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)\")"},"152":{"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)\")"},"153":{"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)\")"},"154":{"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)\")"},"155":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"156":{"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)\")"},"157":{"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)\")"},"158":{"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)\")"},"159":{"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)\")"},"160":{"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)\")"},"161":{"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)\")"},"162":{"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)\")"},"163":{"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)\")"},"164":{"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)\")"},"165":{"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)\")"},"166":{"morph":{"__isSmartRef__":true,"id":125},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"167":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":168}},"168":{"test01IsMorph":{"__isSmartRef__":true,"id":169}},"169":{"varMapping":{"__isSmartRef__":true,"id":170},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"170":{"this":{"__isSmartRef__":true,"id":167}},"171":{},"172":{"submorphs":[{"__isSmartRef__":true,"id":173},{"__isSmartRef__":true,"id":188}],"scripts":[],"id":"33850DE8-DEBE-47E5-8796-E02E9CEA86F9","shape":{"__isSmartRef__":true,"id":203},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"BombBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":204},"eventHandler":{"__isSmartRef__":true,"id":224},"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":225},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":77},"__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)"},"173":{"submorphs":[],"scripts":[],"id":"00572CC6-3F47-4EEB-AF57-3150C7F338D2","shape":{"__isSmartRef__":true,"id":174},"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":175},"textChunks":[{"__isSmartRef__":true,"id":184}],"charsReplaced":"Rows","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":186},"_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":187},"owner":{"__isSmartRef__":true,"id":172},"__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)"},"174":{"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)"},"175":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":176},{"__isSmartRef__":true,"id":177},{"__isSmartRef__":true,"id":178},{"__isSmartRef__":true,"id":179},{"__isSmartRef__":true,"id":180},{"__isSmartRef__":true,"id":181},{"__isSmartRef__":true,"id":182},{"__isSmartRef__":true,"id":183}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"176":{"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)\")"},"177":{"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)\")"},"178":{"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)\")"},"179":{"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)\")"},"180":{"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)\")"},"181":{"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)\")"},"182":{"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)\")"},"183":{"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)\")"},"184":{"style":{"__isSmartRef__":true,"id":185},"morph":{"__isSmartRef__":true,"id":173},"chunkOwner":{"__isSmartRef__":true,"id":173},"storedString":"Bombs","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"186":{"morph":{"__isSmartRef__":true,"id":173},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"187":{"resizeWidth":true},"188":{"submorphs":[],"scripts":[],"id":"AA6B95B2-DEC5-45A8-AA3D-619F6361B479","shape":{"__isSmartRef__":true,"id":189},"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":190},"textChunks":[{"__isSmartRef__":true,"id":199}],"charsReplaced":"7777777777778","lastFindLoc":13,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":201},"_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":202},"owner":{"__isSmartRef__":true,"id":172},"__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)"},"189":{"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)"},"190":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"191":{"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)\")"},"192":{"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)\")"},"193":{"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)\")"},"194":{"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)\")"},"195":{"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)\")"},"196":{"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)\")"},"197":{"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)\")"},"198":{"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)\")"},"199":{"style":{"__isSmartRef__":true,"id":200},"chunkOwner":{"__isSmartRef__":true,"id":188},"_id":"_13672","storedString":"59","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"200":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"201":{"morph":{"__isSmartRef__":true,"id":188},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"202":{"resizeWidth":true},"203":{"_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)"},"204":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":206},{"__isSmartRef__":true,"id":207},{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"205":{"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)\")"},"206":{"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)\")"},"207":{"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)\")"},"208":{"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)\")"},"209":{"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)\")"},"210":{"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)\")"},"211":{"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)\")"},"212":{"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)\")"},"213":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"214":{"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)\")"},"215":{"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)\")"},"216":{"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)\")"},"217":{"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)\")"},"218":{"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)\")"},"219":{"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)\")"},"220":{"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)\")"},"221":{"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)\")"},"222":{"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)\")"},"223":{"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)\")"},"224":{"morph":{"__isSmartRef__":true,"id":172},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"225":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":226}},"226":{"test01IsMorph":{"__isSmartRef__":true,"id":227}},"227":{"varMapping":{"__isSmartRef__":true,"id":228},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"228":{"this":{"__isSmartRef__":true,"id":225}},"229":{},"230":{"_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)"},"231":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":232},{"__isSmartRef__":true,"id":233},{"__isSmartRef__":true,"id":234},{"__isSmartRef__":true,"id":235},{"__isSmartRef__":true,"id":236},{"__isSmartRef__":true,"id":237},{"__isSmartRef__":true,"id":238},{"__isSmartRef__":true,"id":239},{"__isSmartRef__":true,"id":240},{"__isSmartRef__":true,"id":241},{"__isSmartRef__":true,"id":242},{"__isSmartRef__":true,"id":243},{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"232":{"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)\")"},"233":{"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)\")"},"234":{"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)\")"},"235":{"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)\")"},"236":{"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)\")"},"237":{"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)\")"},"238":{"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)\")"},"239":{"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)\")"},"240":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"241":{"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)\")"},"242":{"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)\")"},"243":{"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)\")"},"244":{"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)\")"},"245":{"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)\")"},"246":{"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)\")"},"247":{"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)\")"},"248":{"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)\")"},"249":{"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)\")"},"250":{"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)\")"},"251":{"morph":{"__isSmartRef__":true,"id":77},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"252":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":253}},"253":{"test01IsMorph":{"__isSmartRef__":true,"id":254}},"254":{"varMapping":{"__isSmartRef__":true,"id":255},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"255":{"this":{"__isSmartRef__":true,"id":252}},"256":{},"257":{"submorphs":[{"__isSmartRef__":true,"id":258}],"scripts":[],"shape":{"__isSmartRef__":true,"id":263},"eventHandler":{"__isSmartRef__":true,"id":264},"_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":258},"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":265}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"PlayGame","partsBinMetaInfo":{"__isSmartRef__":true,"id":267},"pinSpecs":[{"__isSmartRef__":true,"id":275}],"owner":{"__isSmartRef__":true,"id":70},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"_StyleClassNames":["Morph","Button"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":276},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(4.0,6.0)","distanceToDragEvent":"lively.pt(46.0,-18.0)"},"258":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":259},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":260}],"eventHandler":{"__isSmartRef__":true,"id":262},"_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":257},"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)"},"259":{"_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)"},"260":{"style":{"__isSmartRef__":true,"id":261},"chunkOwner":{"__isSmartRef__":true,"id":258},"_id":"_15906","storedString":"Play Game","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"261":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"262":{"morph":{"__isSmartRef__":true,"id":258},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"263":{"_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)"},"264":{"morph":{"__isSmartRef__":true,"id":257},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"265":{"sourceObj":{"__isSmartRef__":true,"id":257},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":257},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":266},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"266":{"source":{"__isSmartRef__":true,"id":257},"target":{"__isSmartRef__":true,"id":257}},"267":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs/","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":268},{"__isSmartRef__":true,"id":269},{"__isSmartRef__":true,"id":270},{"__isSmartRef__":true,"id":271},{"__isSmartRef__":true,"id":272},{"__isSmartRef__":true,"id":273},{"__isSmartRef__":true,"id":274}],"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)\")"},"268":{"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)\")"},"269":{"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)\")"},"270":{"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)\")"},"271":{"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)\")"},"272":{"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)\")"},"273":{"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)\")"},"274":{"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)\")"},"275":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"276":{"doAction":{"__isSmartRef__":true,"id":277}},"277":{"varMapping":{"__isSmartRef__":true,"id":278},"source":"function doAction() {\n    this.get('Board').newGame()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"278":{"this":{"__isSmartRef__":true,"id":257}},"279":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 19:02:21 GMT-0700 (PDT)\")"},"280":{"_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)"},"281":{"partsSpaceName":"PartsBin/Rick","comment":"Control Panel for Minesweeper","migrationLevel":8,"partName":"ControlPanel","changes":[{"__isSmartRef__":true,"id":282},{"__isSmartRef__":true,"id":283},{"__isSmartRef__":true,"id":284},{"__isSmartRef__":true,"id":285},{"__isSmartRef__":true,"id":286},{"__isSmartRef__":true,"id":287},{"__isSmartRef__":true,"id":288},{"__isSmartRef__":true,"id":289},{"__isSmartRef__":true,"id":290},{"__isSmartRef__":true,"id":291},{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Mon Aug 18 2014 09:46:20 GMT-0700 (PDT)\")"},"282":{"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)\")"},"283":{"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)\")"},"284":{"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)\")"},"285":{"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)\")"},"286":{"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)\")"},"287":{"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)\")"},"288":{"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)\")"},"289":{"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)\")"},"290":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"291":{"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)\")"},"292":{"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)\")"},"293":{"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)\")"},"294":{"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)\")"},"295":{"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)\")"},"296":{"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)\")"},"297":{"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)\")"},"298":{"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)\")"},"299":{"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)\")"},"300":{"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)\")"},"301":{"__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)\")"},"302":{"morph":{"__isSmartRef__":true,"id":70},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"303":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":304}},"304":{"test01IsMorph":{"__isSmartRef__":true,"id":305}},"305":{"varMapping":{"__isSmartRef__":true,"id":306},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"306":{"this":{"__isSmartRef__":true,"id":303}},"307":{},"308":{"submorphs":[{"__isSmartRef__":true,"id":309},{"__isSmartRef__":true,"id":324},{"__isSmartRef__":true,"id":339},{"__isSmartRef__":true,"id":70},{"__isSmartRef__":true,"id":0}],"scripts":[],"id":"8C08E1C5-318E-43AA-B6FF-4A60C96DBB86","shape":{"__isSmartRef__":true,"id":354},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Minesweeper","partsBinMetaInfo":{"__isSmartRef__":true,"id":355},"eventHandler":{"__isSmartRef__":true,"id":375},"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":376},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":381},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(999.0,46.0)","distanceToDragEvent":"lively.pt(178.0,-8.0)"},"309":{"submorphs":[],"scripts":[],"id":"57692EB3-D337-4024-860E-2A102D74FDCD","shape":{"__isSmartRef__":true,"id":310},"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":311},"textChunks":[{"__isSmartRef__":true,"id":320}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":322},"_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":323},"owner":{"__isSmartRef__":true,"id":308},"_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)"},"310":{"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)"},"311":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":312},{"__isSmartRef__":true,"id":313},{"__isSmartRef__":true,"id":314},{"__isSmartRef__":true,"id":315},{"__isSmartRef__":true,"id":316},{"__isSmartRef__":true,"id":317},{"__isSmartRef__":true,"id":318},{"__isSmartRef__":true,"id":319}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"312":{"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)\")"},"313":{"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)\")"},"314":{"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)\")"},"315":{"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)\")"},"316":{"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)\")"},"317":{"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)\")"},"318":{"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)\")"},"319":{"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)\")"},"320":{"style":{"__isSmartRef__":true,"id":321},"chunkOwner":{"__isSmartRef__":true,"id":309},"_id":"_16048","storedString":"Bombs Remaining: 10","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"321":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"322":{"morph":{"__isSmartRef__":true,"id":309},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"323":{"resizeWidth":true},"324":{"submorphs":[],"scripts":[],"id":"67DADB80-92D3-4769-A16F-1B9D4006ABD6","shape":{"__isSmartRef__":true,"id":325},"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":326},"textChunks":[{"__isSmartRef__":true,"id":335}],"charsReplaced":"Win","lastFindLoc":7,"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","DAFBEB12-F8F1-4B36-A64C-92E38948E351"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[7,7],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":338},"_PreviousBorderWidth":0,"_Align":"center","owner":{"__isSmartRef__":true,"id":308},"_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)"},"325":{"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)"},"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},"morph":{"__isSmartRef__":true,"id":324},"chunkOwner":{"__isSmartRef__":true,"id":324},"storedString":"You Lose","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"336":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(22,13,237)"},"337":{"morph":{"__isSmartRef__":true,"id":324},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"338":{"resizeWidth":true},"339":{"submorphs":[],"scripts":[],"id":"DAFBEB12-F8F1-4B36-A64C-92E38948E351","shape":{"__isSmartRef__":true,"id":340},"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":341},"textChunks":[{"__isSmartRef__":true,"id":350}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":352},"_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":353},"owner":{"__isSmartRef__":true,"id":308},"_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)"},"340":{"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)"},"341":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"342":{"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)\")"},"343":{"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)\")"},"344":{"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)\")"},"345":{"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)\")"},"346":{"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)\")"},"347":{"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)\")"},"348":{"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)\")"},"349":{"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)\")"},"350":{"style":{"__isSmartRef__":true,"id":351},"morph":{"__isSmartRef__":true,"id":339},"chunkOwner":{"__isSmartRef__":true,"id":339},"storedString":"You Win","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"351":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(22,13,237)"},"352":{"morph":{"__isSmartRef__":true,"id":339},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"353":{"resizeWidth":true},"354":{"_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)"},"355":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":356},{"__isSmartRef__":true,"id":357},{"__isSmartRef__":true,"id":358},{"__isSmartRef__":true,"id":359},{"__isSmartRef__":true,"id":360},{"__isSmartRef__":true,"id":361},{"__isSmartRef__":true,"id":362},{"__isSmartRef__":true,"id":363},{"__isSmartRef__":true,"id":364},{"__isSmartRef__":true,"id":365},{"__isSmartRef__":true,"id":366},{"__isSmartRef__":true,"id":367},{"__isSmartRef__":true,"id":368},{"__isSmartRef__":true,"id":369},{"__isSmartRef__":true,"id":370},{"__isSmartRef__":true,"id":371},{"__isSmartRef__":true,"id":372},{"__isSmartRef__":true,"id":373},{"__isSmartRef__":true,"id":374}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"356":{"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)\")"},"357":{"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)\")"},"358":{"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)\")"},"359":{"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)\")"},"360":{"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)\")"},"361":{"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)\")"},"362":{"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)\")"},"363":{"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)\")"},"364":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"365":{"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)\")"},"366":{"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)\")"},"367":{"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)\")"},"368":{"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)\")"},"369":{"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)\")"},"370":{"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)\")"},"371":{"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)\")"},"372":{"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)\")"},"373":{"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)\")"},"374":{"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)\")"},"375":{"morph":{"__isSmartRef__":true,"id":308},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"376":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":377}},"377":{"test01IsMorph":{"__isSmartRef__":true,"id":378}},"378":{"varMapping":{"__isSmartRef__":true,"id":379},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"379":{"this":{"__isSmartRef__":true,"id":376}},"380":{},"381":{"layoutGame":{"__isSmartRef__":true,"id":382}},"382":{"varMapping":{"__isSmartRef__":true,"id":383},"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":384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"383":{"this":{"__isSmartRef__":true,"id":308}},"384":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 19:25:02 GMT-0700 (PDT)\")"},"385":{"init":{"__isSmartRef__":true,"id":386}},"386":{"varMapping":{"__isSmartRef__":true,"id":387},"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":388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"387":{"this":{"__isSmartRef__":true,"id":70}},"388":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 19:45:24 GMT-0700 (PDT)\")"},"389":{"crossProduct":{"__isSmartRef__":true,"id":390},"makePoints":{"__isSmartRef__":true,"id":393},"positivePoint":{"__isSmartRef__":true,"id":396},"fixMorph":{"__isSmartRef__":true,"id":399}},"390":{"varMapping":{"__isSmartRef__":true,"id":391},"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":392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"391":{"this":{"__isSmartRef__":true,"id":49}},"392":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:06:11 GMT-0700 (PDT)\")"},"393":{"varMapping":{"__isSmartRef__":true,"id":394},"source":"function makePoints(aNumber, aList) {\n    return aList.map(function(num) {return pt(aNumber, num)})\n    \n}","funcProperties":{"__isSmartRef__":true,"id":395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"394":{"this":{"__isSmartRef__":true,"id":49}},"395":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:06:11 GMT-0700 (PDT)\")"},"396":{"varMapping":{"__isSmartRef__":true,"id":397},"source":"function positivePoint(aPoint) {\n    return aPoint.x >= 0 && aPoint.y >= 0\n    \n}","funcProperties":{"__isSmartRef__":true,"id":398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"397":{"this":{"__isSmartRef__":true,"id":49}},"398":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:06:11 GMT-0700 (PDT)\")"},"399":{"varMapping":{"__isSmartRef__":true,"id":400},"source":"function fixMorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"400":{"this":{"__isSmartRef__":true,"id":49}},"401":{"__serializedExpressions__":["timestamp"],"user":"rick","tags":[],"timestamp":"new Date(\"Mon Aug 18 2014 08:52:08 GMT-0700 (PDT)\")"},"402":{"submorphs":[{"__isSmartRef__":true,"id":403}],"scripts":[],"id":"384C4E4B-0DB4-4BDD-96D2-A6CAA9498829","shape":{"__isSmartRef__":true,"id":418},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":419},"eventHandler":{"__isSmartRef__":true,"id":439},"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":440},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":445},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":403},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1026}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9140},"__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)"},"403":{"submorphs":[],"scripts":[],"id":"AE7EAA3A-AEDD-4B1B-9520-78AEE1682CC1","shape":{"__isSmartRef__":true,"id":404},"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":405},"textChunks":[{"__isSmartRef__":true,"id":414}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":416},"_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":417},"owner":{"__isSmartRef__":true,"id":402},"_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)"},"404":{"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)"},"405":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":406},{"__isSmartRef__":true,"id":407},{"__isSmartRef__":true,"id":408},{"__isSmartRef__":true,"id":409},{"__isSmartRef__":true,"id":410},{"__isSmartRef__":true,"id":411},{"__isSmartRef__":true,"id":412},{"__isSmartRef__":true,"id":413}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"406":{"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)\")"},"407":{"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)\")"},"408":{"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)\")"},"409":{"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)\")"},"410":{"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)\")"},"411":{"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)\")"},"412":{"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)\")"},"413":{"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)\")"},"414":{"style":{"__isSmartRef__":true,"id":415},"chunkOwner":{"__isSmartRef__":true,"id":403},"_id":"_16050","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"415":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"416":{"morph":{"__isSmartRef__":true,"id":403},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"417":{"resizeWidth":true},"418":{"_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)"},"419":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":420},{"__isSmartRef__":true,"id":421},{"__isSmartRef__":true,"id":422},{"__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},{"__isSmartRef__":true,"id":431},{"__isSmartRef__":true,"id":432},{"__isSmartRef__":true,"id":433},{"__isSmartRef__":true,"id":434},{"__isSmartRef__":true,"id":435},{"__isSmartRef__":true,"id":436},{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":438}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"420":{"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)\")"},"421":{"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)\")"},"422":{"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)\")"},"423":{"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)\")"},"424":{"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)\")"},"425":{"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)\")"},"426":{"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)\")"},"427":{"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)\")"},"428":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"429":{"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)\")"},"430":{"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)\")"},"431":{"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)\")"},"432":{"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)\")"},"433":{"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)\")"},"434":{"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)\")"},"435":{"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)\")"},"436":{"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)\")"},"437":{"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)\")"},"438":{"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)\")"},"439":{"morph":{"__isSmartRef__":true,"id":402},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"440":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":441}},"441":{"test01IsMorph":{"__isSmartRef__":true,"id":442}},"442":{"varMapping":{"__isSmartRef__":true,"id":443},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"443":{"this":{"__isSmartRef__":true,"id":440}},"444":{},"445":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":446},"_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":447},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":448},"_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)"},"446":{"_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)"},"447":{"morph":{"__isSmartRef__":true,"id":445},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"448":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":449}],"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)\")"},"449":{"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)\")"},"450":{"submorphs":[{"__isSmartRef__":true,"id":451}],"scripts":[],"id":"19709A25-4E32-4E8F-9280-09AFBC03E60F","shape":{"__isSmartRef__":true,"id":466},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":467},"eventHandler":{"__isSmartRef__":true,"id":487},"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":488},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":493},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":451},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":402},{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":978}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9078},"__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)"},"451":{"submorphs":[],"scripts":[],"id":"28CFA189-E0BA-4AA2-843A-777810D5D1AB","shape":{"__isSmartRef__":true,"id":452},"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":453},"textChunks":[{"__isSmartRef__":true,"id":462}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":464},"_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":465},"owner":{"__isSmartRef__":true,"id":450},"_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)"},"452":{"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)"},"453":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":454},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":456},{"__isSmartRef__":true,"id":457},{"__isSmartRef__":true,"id":458},{"__isSmartRef__":true,"id":459},{"__isSmartRef__":true,"id":460},{"__isSmartRef__":true,"id":461}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"454":{"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)\")"},"455":{"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)\")"},"456":{"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)\")"},"457":{"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)\")"},"458":{"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)\")"},"459":{"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)\")"},"460":{"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)\")"},"461":{"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)\")"},"462":{"style":{"__isSmartRef__":true,"id":463},"chunkOwner":{"__isSmartRef__":true,"id":451},"_id":"_16051","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"463":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"464":{"morph":{"__isSmartRef__":true,"id":451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"465":{"resizeWidth":true},"466":{"_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)"},"467":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":468},{"__isSmartRef__":true,"id":469},{"__isSmartRef__":true,"id":470},{"__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},{"__isSmartRef__":true,"id":479},{"__isSmartRef__":true,"id":480},{"__isSmartRef__":true,"id":481},{"__isSmartRef__":true,"id":482},{"__isSmartRef__":true,"id":483},{"__isSmartRef__":true,"id":484},{"__isSmartRef__":true,"id":485},{"__isSmartRef__":true,"id":486}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"468":{"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)\")"},"469":{"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)\")"},"470":{"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)\")"},"471":{"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)\")"},"472":{"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)\")"},"473":{"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)\")"},"474":{"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)\")"},"475":{"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)\")"},"476":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"477":{"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)\")"},"478":{"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)\")"},"479":{"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)\")"},"480":{"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)\")"},"481":{"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)\")"},"482":{"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)\")"},"483":{"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)\")"},"484":{"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)\")"},"485":{"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)\")"},"486":{"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)\")"},"487":{"morph":{"__isSmartRef__":true,"id":450},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"488":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":489}},"489":{"test01IsMorph":{"__isSmartRef__":true,"id":490}},"490":{"varMapping":{"__isSmartRef__":true,"id":491},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"491":{"this":{"__isSmartRef__":true,"id":488}},"492":{},"493":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":494},"_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":495},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":496},"_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)"},"494":{"_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)"},"495":{"morph":{"__isSmartRef__":true,"id":493},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"496":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":497}],"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)\")"},"497":{"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)\")"},"498":{"submorphs":[{"__isSmartRef__":true,"id":499}],"scripts":[],"id":"5C3E42D8-58B2-417B-B334-6CD1CECAC722","shape":{"__isSmartRef__":true,"id":514},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":515},"eventHandler":{"__isSmartRef__":true,"id":535},"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":536},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":541},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":499},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":546},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":930}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9016},"__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)"},"499":{"submorphs":[],"scripts":[],"id":"DB304D14-D1C7-418D-A647-5FE2A7C702BE","shape":{"__isSmartRef__":true,"id":500},"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":501},"textChunks":[{"__isSmartRef__":true,"id":510}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":512},"_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":513},"owner":{"__isSmartRef__":true,"id":498},"_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)"},"500":{"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)"},"501":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":503},{"__isSmartRef__":true,"id":504},{"__isSmartRef__":true,"id":505},{"__isSmartRef__":true,"id":506},{"__isSmartRef__":true,"id":507},{"__isSmartRef__":true,"id":508},{"__isSmartRef__":true,"id":509}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"502":{"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)\")"},"503":{"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)\")"},"504":{"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)\")"},"505":{"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)\")"},"506":{"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)\")"},"507":{"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)\")"},"508":{"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)\")"},"509":{"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)\")"},"510":{"style":{"__isSmartRef__":true,"id":511},"chunkOwner":{"__isSmartRef__":true,"id":499},"_id":"_16052","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"511":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"512":{"morph":{"__isSmartRef__":true,"id":499},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"513":{"resizeWidth":true},"514":{"_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)"},"515":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":516},{"__isSmartRef__":true,"id":517},{"__isSmartRef__":true,"id":518},{"__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},{"__isSmartRef__":true,"id":527},{"__isSmartRef__":true,"id":528},{"__isSmartRef__":true,"id":529},{"__isSmartRef__":true,"id":530},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":532},{"__isSmartRef__":true,"id":533},{"__isSmartRef__":true,"id":534}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"516":{"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)\")"},"517":{"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)\")"},"518":{"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)\")"},"519":{"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)\")"},"520":{"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)\")"},"521":{"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)\")"},"522":{"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)\")"},"523":{"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)\")"},"524":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"525":{"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)\")"},"526":{"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)\")"},"527":{"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)\")"},"528":{"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)\")"},"529":{"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)\")"},"530":{"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)\")"},"531":{"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)\")"},"532":{"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)\")"},"533":{"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)\")"},"534":{"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)\")"},"535":{"morph":{"__isSmartRef__":true,"id":498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"536":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":537}},"537":{"test01IsMorph":{"__isSmartRef__":true,"id":538}},"538":{"varMapping":{"__isSmartRef__":true,"id":539},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"539":{"this":{"__isSmartRef__":true,"id":536}},"540":{},"541":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":542},"_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":543},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":544},"_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)"},"542":{"_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)"},"543":{"morph":{"__isSmartRef__":true,"id":541},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"544":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":545}],"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)\")"},"545":{"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)\")"},"546":{"submorphs":[{"__isSmartRef__":true,"id":547}],"scripts":[],"id":"838F4F52-0A64-4AC1-B1E4-7D1DAB84C2CF","shape":{"__isSmartRef__":true,"id":562},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":563},"eventHandler":{"__isSmartRef__":true,"id":583},"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":584},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":589},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":547},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":594},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":882}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8954},"__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)"},"547":{"submorphs":[],"scripts":[],"id":"51E1C08F-E6D5-4939-B84E-328766EA08D7","shape":{"__isSmartRef__":true,"id":548},"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":549},"textChunks":[{"__isSmartRef__":true,"id":558}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":560},"_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":561},"owner":{"__isSmartRef__":true,"id":546},"_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)"},"548":{"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)"},"549":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":551},{"__isSmartRef__":true,"id":552},{"__isSmartRef__":true,"id":553},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":555},{"__isSmartRef__":true,"id":556},{"__isSmartRef__":true,"id":557}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"550":{"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)\")"},"551":{"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)\")"},"552":{"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)\")"},"553":{"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)\")"},"554":{"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)\")"},"555":{"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)\")"},"556":{"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)\")"},"557":{"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)\")"},"558":{"style":{"__isSmartRef__":true,"id":559},"chunkOwner":{"__isSmartRef__":true,"id":547},"_id":"_16053","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"559":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"560":{"morph":{"__isSmartRef__":true,"id":547},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"561":{"resizeWidth":true},"562":{"_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)"},"563":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":564},{"__isSmartRef__":true,"id":565},{"__isSmartRef__":true,"id":566},{"__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},{"__isSmartRef__":true,"id":575},{"__isSmartRef__":true,"id":576},{"__isSmartRef__":true,"id":577},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":579},{"__isSmartRef__":true,"id":580},{"__isSmartRef__":true,"id":581},{"__isSmartRef__":true,"id":582}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"564":{"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)\")"},"565":{"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)\")"},"566":{"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)\")"},"567":{"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)\")"},"568":{"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)\")"},"569":{"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)\")"},"570":{"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)\")"},"571":{"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)\")"},"572":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"573":{"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)\")"},"574":{"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)\")"},"575":{"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)\")"},"576":{"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)\")"},"577":{"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)\")"},"578":{"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)\")"},"579":{"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)\")"},"580":{"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)\")"},"581":{"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)\")"},"582":{"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)\")"},"583":{"morph":{"__isSmartRef__":true,"id":546},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"584":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":585}},"585":{"test01IsMorph":{"__isSmartRef__":true,"id":586}},"586":{"varMapping":{"__isSmartRef__":true,"id":587},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"587":{"this":{"__isSmartRef__":true,"id":584}},"588":{},"589":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":590},"_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":591},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":592},"_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)"},"590":{"_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)"},"591":{"morph":{"__isSmartRef__":true,"id":589},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"592":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":593}],"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)\")"},"593":{"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)\")"},"594":{"submorphs":[{"__isSmartRef__":true,"id":595}],"scripts":[],"id":"07650F18-C282-44AE-857A-228DA8E1024A","shape":{"__isSmartRef__":true,"id":610},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":611},"eventHandler":{"__isSmartRef__":true,"id":631},"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":632},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":637},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":595},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":546},{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":834}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8892},"__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)"},"595":{"submorphs":[],"scripts":[],"id":"BE7BB166-E856-4FE0-ABEB-CC0F366BD62F","shape":{"__isSmartRef__":true,"id":596},"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":597},"textChunks":[{"__isSmartRef__":true,"id":606}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":608},"_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":609},"owner":{"__isSmartRef__":true,"id":594},"_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)"},"596":{"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)"},"597":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":598},{"__isSmartRef__":true,"id":599},{"__isSmartRef__":true,"id":600},{"__isSmartRef__":true,"id":601},{"__isSmartRef__":true,"id":602},{"__isSmartRef__":true,"id":603},{"__isSmartRef__":true,"id":604},{"__isSmartRef__":true,"id":605}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"598":{"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)\")"},"599":{"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)\")"},"600":{"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)\")"},"601":{"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)\")"},"602":{"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)\")"},"603":{"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)\")"},"604":{"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)\")"},"605":{"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)\")"},"606":{"style":{"__isSmartRef__":true,"id":607},"chunkOwner":{"__isSmartRef__":true,"id":595},"_id":"_16054","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"607":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"608":{"morph":{"__isSmartRef__":true,"id":595},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"609":{"resizeWidth":true},"610":{"_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)"},"611":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":612},{"__isSmartRef__":true,"id":613},{"__isSmartRef__":true,"id":614},{"__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},{"__isSmartRef__":true,"id":623},{"__isSmartRef__":true,"id":624},{"__isSmartRef__":true,"id":625},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":627},{"__isSmartRef__":true,"id":628},{"__isSmartRef__":true,"id":629},{"__isSmartRef__":true,"id":630}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"612":{"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)\")"},"613":{"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)\")"},"614":{"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)\")"},"615":{"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)\")"},"616":{"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)\")"},"617":{"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)\")"},"618":{"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)\")"},"619":{"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)\")"},"620":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"621":{"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)\")"},"622":{"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)\")"},"623":{"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)\")"},"624":{"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)\")"},"625":{"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)\")"},"626":{"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)\")"},"627":{"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)\")"},"628":{"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)\")"},"629":{"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)\")"},"630":{"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)\")"},"631":{"morph":{"__isSmartRef__":true,"id":594},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"632":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":633}},"633":{"test01IsMorph":{"__isSmartRef__":true,"id":634}},"634":{"varMapping":{"__isSmartRef__":true,"id":635},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"635":{"this":{"__isSmartRef__":true,"id":632}},"636":{},"637":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":638},"_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":639},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":640},"_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)"},"638":{"_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)"},"639":{"morph":{"__isSmartRef__":true,"id":637},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"640":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":641}],"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)\")"},"641":{"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)\")"},"642":{"submorphs":[{"__isSmartRef__":true,"id":643}],"scripts":[],"id":"45F70D0F-F617-4493-97E2-42D971E210D2","shape":{"__isSmartRef__":true,"id":658},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":659},"eventHandler":{"__isSmartRef__":true,"id":679},"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":680},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":685},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":643},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":594},{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":786}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8830},"__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)"},"643":{"submorphs":[],"scripts":[],"id":"A70065A5-EF94-47DA-8E10-0129D020D234","shape":{"__isSmartRef__":true,"id":644},"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":645},"textChunks":[{"__isSmartRef__":true,"id":654}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":656},"_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":657},"owner":{"__isSmartRef__":true,"id":642},"_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)"},"644":{"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)"},"645":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":646},{"__isSmartRef__":true,"id":647},{"__isSmartRef__":true,"id":648},{"__isSmartRef__":true,"id":649},{"__isSmartRef__":true,"id":650},{"__isSmartRef__":true,"id":651},{"__isSmartRef__":true,"id":652},{"__isSmartRef__":true,"id":653}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"646":{"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)\")"},"647":{"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)\")"},"648":{"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)\")"},"649":{"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)\")"},"650":{"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)\")"},"651":{"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)\")"},"652":{"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)\")"},"653":{"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)\")"},"654":{"style":{"__isSmartRef__":true,"id":655},"chunkOwner":{"__isSmartRef__":true,"id":643},"_id":"_16055","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"655":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"656":{"morph":{"__isSmartRef__":true,"id":643},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"657":{"resizeWidth":true},"658":{"_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)"},"659":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":660},{"__isSmartRef__":true,"id":661},{"__isSmartRef__":true,"id":662},{"__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},{"__isSmartRef__":true,"id":671},{"__isSmartRef__":true,"id":672},{"__isSmartRef__":true,"id":673},{"__isSmartRef__":true,"id":674},{"__isSmartRef__":true,"id":675},{"__isSmartRef__":true,"id":676},{"__isSmartRef__":true,"id":677},{"__isSmartRef__":true,"id":678}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"660":{"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)\")"},"661":{"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)\")"},"662":{"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)\")"},"663":{"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)\")"},"664":{"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)\")"},"665":{"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)\")"},"666":{"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)\")"},"667":{"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)\")"},"668":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"669":{"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)\")"},"670":{"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)\")"},"671":{"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)\")"},"672":{"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)\")"},"673":{"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)\")"},"674":{"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)\")"},"675":{"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)\")"},"676":{"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)\")"},"677":{"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)\")"},"678":{"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)\")"},"679":{"morph":{"__isSmartRef__":true,"id":642},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"680":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":681}},"681":{"test01IsMorph":{"__isSmartRef__":true,"id":682}},"682":{"varMapping":{"__isSmartRef__":true,"id":683},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"683":{"this":{"__isSmartRef__":true,"id":680}},"684":{},"685":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":686},"_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":687},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":688},"_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)"},"686":{"_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)"},"687":{"morph":{"__isSmartRef__":true,"id":685},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"688":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":689}],"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)\")"},"689":{"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)\")"},"690":{"submorphs":[{"__isSmartRef__":true,"id":691}],"scripts":[],"id":"4081543A-FB39-40C6-801A-D2611C668EC9","shape":{"__isSmartRef__":true,"id":706},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":707},"eventHandler":{"__isSmartRef__":true,"id":727},"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":728},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":733},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":691},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":738},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":1554}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8768},"__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)"},"691":{"submorphs":[],"scripts":[],"id":"9E30F84E-883C-4DF7-9C60-3F6700D9CDE8","shape":{"__isSmartRef__":true,"id":692},"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":693},"textChunks":[{"__isSmartRef__":true,"id":702}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":704},"_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":705},"owner":{"__isSmartRef__":true,"id":690},"_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)"},"692":{"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)"},"693":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":694},{"__isSmartRef__":true,"id":695},{"__isSmartRef__":true,"id":696},{"__isSmartRef__":true,"id":697},{"__isSmartRef__":true,"id":698},{"__isSmartRef__":true,"id":699},{"__isSmartRef__":true,"id":700},{"__isSmartRef__":true,"id":701}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"694":{"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)\")"},"695":{"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)\")"},"696":{"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)\")"},"697":{"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)\")"},"698":{"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)\")"},"699":{"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)\")"},"700":{"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)\")"},"701":{"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)\")"},"702":{"style":{"__isSmartRef__":true,"id":703},"chunkOwner":{"__isSmartRef__":true,"id":691},"_id":"_16056","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"703":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"704":{"morph":{"__isSmartRef__":true,"id":691},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"705":{"resizeWidth":true},"706":{"_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)"},"707":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":708},{"__isSmartRef__":true,"id":709},{"__isSmartRef__":true,"id":710},{"__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},{"__isSmartRef__":true,"id":719},{"__isSmartRef__":true,"id":720},{"__isSmartRef__":true,"id":721},{"__isSmartRef__":true,"id":722},{"__isSmartRef__":true,"id":723},{"__isSmartRef__":true,"id":724},{"__isSmartRef__":true,"id":725},{"__isSmartRef__":true,"id":726}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"708":{"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)\")"},"709":{"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)\")"},"710":{"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)\")"},"711":{"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)\")"},"712":{"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)\")"},"713":{"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)\")"},"714":{"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)\")"},"715":{"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)\")"},"716":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"717":{"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)\")"},"718":{"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)\")"},"719":{"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)\")"},"720":{"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)\")"},"721":{"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)\")"},"722":{"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)\")"},"723":{"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)\")"},"724":{"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)\")"},"725":{"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)\")"},"726":{"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)\")"},"727":{"morph":{"__isSmartRef__":true,"id":690},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"728":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":729}},"729":{"test01IsMorph":{"__isSmartRef__":true,"id":730}},"730":{"varMapping":{"__isSmartRef__":true,"id":731},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"731":{"this":{"__isSmartRef__":true,"id":728}},"732":{},"733":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":734},"_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":735},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":736},"_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)"},"734":{"_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)"},"735":{"morph":{"__isSmartRef__":true,"id":733},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"736":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":737}],"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)\")"},"737":{"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)\")"},"738":{"submorphs":[{"__isSmartRef__":true,"id":739}],"scripts":[],"id":"05C7787E-C7E6-4379-904A-3D930E25A092","shape":{"__isSmartRef__":true,"id":754},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":755},"eventHandler":{"__isSmartRef__":true,"id":775},"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":776},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":781},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":739},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":1554}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8706},"__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)"},"739":{"submorphs":[],"scripts":[],"id":"722966BC-BEC3-421A-BFD0-D1932B3EA555","shape":{"__isSmartRef__":true,"id":740},"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":741},"textChunks":[{"__isSmartRef__":true,"id":750}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":752},"_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":753},"owner":{"__isSmartRef__":true,"id":738},"_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)"},"740":{"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)"},"741":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":742},{"__isSmartRef__":true,"id":743},{"__isSmartRef__":true,"id":744},{"__isSmartRef__":true,"id":745},{"__isSmartRef__":true,"id":746},{"__isSmartRef__":true,"id":747},{"__isSmartRef__":true,"id":748},{"__isSmartRef__":true,"id":749}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"742":{"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)\")"},"743":{"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)\")"},"744":{"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)\")"},"745":{"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)\")"},"746":{"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)\")"},"747":{"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)\")"},"748":{"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)\")"},"749":{"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)\")"},"750":{"style":{"__isSmartRef__":true,"id":751},"chunkOwner":{"__isSmartRef__":true,"id":739},"_id":"_16057","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"751":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"752":{"morph":{"__isSmartRef__":true,"id":739},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"753":{"resizeWidth":true},"754":{"_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)"},"755":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":756},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":758},{"__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},{"__isSmartRef__":true,"id":767},{"__isSmartRef__":true,"id":768},{"__isSmartRef__":true,"id":769},{"__isSmartRef__":true,"id":770},{"__isSmartRef__":true,"id":771},{"__isSmartRef__":true,"id":772},{"__isSmartRef__":true,"id":773},{"__isSmartRef__":true,"id":774}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"756":{"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)\")"},"757":{"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)\")"},"758":{"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)\")"},"759":{"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)\")"},"760":{"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)\")"},"761":{"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)\")"},"762":{"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)\")"},"763":{"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)\")"},"764":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"765":{"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)\")"},"766":{"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)\")"},"767":{"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)\")"},"768":{"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)\")"},"769":{"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)\")"},"770":{"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)\")"},"771":{"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)\")"},"772":{"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)\")"},"773":{"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)\")"},"774":{"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)\")"},"775":{"morph":{"__isSmartRef__":true,"id":738},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"776":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":777}},"777":{"test01IsMorph":{"__isSmartRef__":true,"id":778}},"778":{"varMapping":{"__isSmartRef__":true,"id":779},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"779":{"this":{"__isSmartRef__":true,"id":776}},"780":{},"781":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":782},"_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":783},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":784},"_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)"},"782":{"_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)"},"783":{"morph":{"__isSmartRef__":true,"id":781},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"784":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":785}],"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)\")"},"785":{"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)\")"},"786":{"submorphs":[{"__isSmartRef__":true,"id":787}],"scripts":[],"id":"0796D2B1-275D-4F68-9D58-E91F072F2D61","shape":{"__isSmartRef__":true,"id":802},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":803},"eventHandler":{"__isSmartRef__":true,"id":823},"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":824},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":829},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":787},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":738},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":1554},{"__isSmartRef__":true,"id":1458},{"__isSmartRef__":true,"id":1506},{"__isSmartRef__":true,"id":1602}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8644},"__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)"},"787":{"submorphs":[],"scripts":[],"id":"D9FCE9A3-24CF-43A2-B2A3-EA4806EC2C29","shape":{"__isSmartRef__":true,"id":788},"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":789},"textChunks":[{"__isSmartRef__":true,"id":798}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":800},"_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":801},"owner":{"__isSmartRef__":true,"id":786},"_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)"},"788":{"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)"},"789":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":790},{"__isSmartRef__":true,"id":791},{"__isSmartRef__":true,"id":792},{"__isSmartRef__":true,"id":793},{"__isSmartRef__":true,"id":794},{"__isSmartRef__":true,"id":795},{"__isSmartRef__":true,"id":796},{"__isSmartRef__":true,"id":797}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"790":{"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)\")"},"791":{"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)\")"},"792":{"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)\")"},"793":{"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)\")"},"794":{"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)\")"},"795":{"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)\")"},"796":{"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)\")"},"797":{"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)\")"},"798":{"style":{"__isSmartRef__":true,"id":799},"chunkOwner":{"__isSmartRef__":true,"id":787},"_id":"_16065","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"799":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"800":{"morph":{"__isSmartRef__":true,"id":787},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"801":{"resizeWidth":true},"802":{"_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)"},"803":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":804},{"__isSmartRef__":true,"id":805},{"__isSmartRef__":true,"id":806},{"__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},{"__isSmartRef__":true,"id":815},{"__isSmartRef__":true,"id":816},{"__isSmartRef__":true,"id":817},{"__isSmartRef__":true,"id":818},{"__isSmartRef__":true,"id":819},{"__isSmartRef__":true,"id":820},{"__isSmartRef__":true,"id":821},{"__isSmartRef__":true,"id":822}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"804":{"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)\")"},"805":{"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)\")"},"806":{"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)\")"},"807":{"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)\")"},"808":{"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)\")"},"809":{"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)\")"},"810":{"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)\")"},"811":{"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)\")"},"812":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"813":{"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)\")"},"814":{"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)\")"},"815":{"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)\")"},"816":{"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)\")"},"817":{"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)\")"},"818":{"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)\")"},"819":{"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)\")"},"820":{"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)\")"},"821":{"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)\")"},"822":{"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)\")"},"823":{"morph":{"__isSmartRef__":true,"id":786},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"824":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":825}},"825":{"test01IsMorph":{"__isSmartRef__":true,"id":826}},"826":{"varMapping":{"__isSmartRef__":true,"id":827},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"827":{"this":{"__isSmartRef__":true,"id":824}},"828":{},"829":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":830},"_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":831},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":832},"_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)"},"830":{"_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)"},"831":{"morph":{"__isSmartRef__":true,"id":829},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"832":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":833}],"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)\")"},"833":{"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)\")"},"834":{"submorphs":[{"__isSmartRef__":true,"id":835}],"scripts":[],"id":"08AEC63D-2AD0-4AE2-8544-F7129F7C505D","shape":{"__isSmartRef__":true,"id":850},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":851},"eventHandler":{"__isSmartRef__":true,"id":871},"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":872},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":877},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":835},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":594},{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1458},{"__isSmartRef__":true,"id":1506}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8582},"__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)"},"835":{"submorphs":[],"scripts":[],"id":"76A24DE7-1C2D-47EE-806A-CB841BBE7CCE","shape":{"__isSmartRef__":true,"id":836},"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":837},"textChunks":[{"__isSmartRef__":true,"id":846}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":848},"_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":849},"owner":{"__isSmartRef__":true,"id":834},"_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)"},"836":{"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)"},"837":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":838},{"__isSmartRef__":true,"id":839},{"__isSmartRef__":true,"id":840},{"__isSmartRef__":true,"id":841},{"__isSmartRef__":true,"id":842},{"__isSmartRef__":true,"id":843},{"__isSmartRef__":true,"id":844},{"__isSmartRef__":true,"id":845}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"838":{"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)\")"},"839":{"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)\")"},"840":{"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)\")"},"841":{"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)\")"},"842":{"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)\")"},"843":{"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)\")"},"844":{"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)\")"},"845":{"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)\")"},"846":{"style":{"__isSmartRef__":true,"id":847},"chunkOwner":{"__isSmartRef__":true,"id":835},"_id":"_16064","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"847":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"848":{"morph":{"__isSmartRef__":true,"id":835},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"849":{"resizeWidth":true},"850":{"_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)"},"851":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":852},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":854},{"__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},{"__isSmartRef__":true,"id":863},{"__isSmartRef__":true,"id":864},{"__isSmartRef__":true,"id":865},{"__isSmartRef__":true,"id":866},{"__isSmartRef__":true,"id":867},{"__isSmartRef__":true,"id":868},{"__isSmartRef__":true,"id":869},{"__isSmartRef__":true,"id":870}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"852":{"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)\")"},"853":{"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)\")"},"854":{"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)\")"},"855":{"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)\")"},"856":{"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)\")"},"857":{"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)\")"},"858":{"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)\")"},"859":{"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)\")"},"860":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"861":{"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)\")"},"862":{"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)\")"},"863":{"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)\")"},"864":{"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)\")"},"865":{"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)\")"},"866":{"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)\")"},"867":{"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)\")"},"868":{"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)\")"},"869":{"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)\")"},"870":{"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)\")"},"871":{"morph":{"__isSmartRef__":true,"id":834},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"872":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":873}},"873":{"test01IsMorph":{"__isSmartRef__":true,"id":874}},"874":{"varMapping":{"__isSmartRef__":true,"id":875},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"875":{"this":{"__isSmartRef__":true,"id":872}},"876":{},"877":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":878},"_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":879},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":880},"_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)"},"878":{"_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)"},"879":{"morph":{"__isSmartRef__":true,"id":877},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"880":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":881}],"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)\")"},"881":{"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)\")"},"882":{"submorphs":[{"__isSmartRef__":true,"id":883}],"scripts":[],"id":"2B870532-1182-494F-9080-66ED729123E8","shape":{"__isSmartRef__":true,"id":898},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":899},"eventHandler":{"__isSmartRef__":true,"id":919},"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":920},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":925},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":883},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":546},{"__isSmartRef__":true,"id":594},{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1458}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8520},"__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)"},"883":{"submorphs":[],"scripts":[],"id":"846482B6-96DA-4BCE-A426-111EFF3EC1D1","shape":{"__isSmartRef__":true,"id":884},"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":885},"textChunks":[{"__isSmartRef__":true,"id":894}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":896},"_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":897},"owner":{"__isSmartRef__":true,"id":882},"_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)"},"884":{"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)"},"885":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":886},{"__isSmartRef__":true,"id":887},{"__isSmartRef__":true,"id":888},{"__isSmartRef__":true,"id":889},{"__isSmartRef__":true,"id":890},{"__isSmartRef__":true,"id":891},{"__isSmartRef__":true,"id":892},{"__isSmartRef__":true,"id":893}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"886":{"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)\")"},"887":{"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)\")"},"888":{"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)\")"},"889":{"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)\")"},"890":{"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)\")"},"891":{"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)\")"},"892":{"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)\")"},"893":{"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)\")"},"894":{"style":{"__isSmartRef__":true,"id":895},"chunkOwner":{"__isSmartRef__":true,"id":883},"_id":"_16063","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"895":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"896":{"morph":{"__isSmartRef__":true,"id":883},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"897":{"resizeWidth":true},"898":{"_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)"},"899":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":900},{"__isSmartRef__":true,"id":901},{"__isSmartRef__":true,"id":902},{"__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},{"__isSmartRef__":true,"id":911},{"__isSmartRef__":true,"id":912},{"__isSmartRef__":true,"id":913},{"__isSmartRef__":true,"id":914},{"__isSmartRef__":true,"id":915},{"__isSmartRef__":true,"id":916},{"__isSmartRef__":true,"id":917},{"__isSmartRef__":true,"id":918}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"900":{"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)\")"},"901":{"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)\")"},"902":{"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)\")"},"903":{"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)\")"},"904":{"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)\")"},"905":{"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)\")"},"906":{"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)\")"},"907":{"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)\")"},"908":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"909":{"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)\")"},"910":{"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)\")"},"911":{"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)\")"},"912":{"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)\")"},"913":{"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)\")"},"914":{"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)\")"},"915":{"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)\")"},"916":{"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)\")"},"917":{"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)\")"},"918":{"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)\")"},"919":{"morph":{"__isSmartRef__":true,"id":882},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"920":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":921}},"921":{"test01IsMorph":{"__isSmartRef__":true,"id":922}},"922":{"varMapping":{"__isSmartRef__":true,"id":923},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"923":{"this":{"__isSmartRef__":true,"id":920}},"924":{},"925":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":926},"_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":927},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":928},"_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)"},"926":{"_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)"},"927":{"morph":{"__isSmartRef__":true,"id":925},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"928":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":929}],"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)\")"},"929":{"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)\")"},"930":{"submorphs":[{"__isSmartRef__":true,"id":931}],"scripts":[],"id":"334A00ED-FF99-4DFE-BC74-BD1F44D79104","shape":{"__isSmartRef__":true,"id":946},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":947},"eventHandler":{"__isSmartRef__":true,"id":967},"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":968},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":973},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":931},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":546},{"__isSmartRef__":true,"id":594},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":1314},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1410}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8458},"__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)"},"931":{"submorphs":[],"scripts":[],"id":"78E60620-D828-47B2-B67D-2CE3120C680E","shape":{"__isSmartRef__":true,"id":932},"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":933},"textChunks":[{"__isSmartRef__":true,"id":942}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":944},"_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":945},"owner":{"__isSmartRef__":true,"id":930},"_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)"},"932":{"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)"},"933":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":934},{"__isSmartRef__":true,"id":935},{"__isSmartRef__":true,"id":936},{"__isSmartRef__":true,"id":937},{"__isSmartRef__":true,"id":938},{"__isSmartRef__":true,"id":939},{"__isSmartRef__":true,"id":940},{"__isSmartRef__":true,"id":941}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"934":{"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)\")"},"935":{"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)\")"},"936":{"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)\")"},"937":{"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)\")"},"938":{"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)\")"},"939":{"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)\")"},"940":{"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)\")"},"941":{"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)\")"},"942":{"style":{"__isSmartRef__":true,"id":943},"chunkOwner":{"__isSmartRef__":true,"id":931},"_id":"_16062","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"943":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"944":{"morph":{"__isSmartRef__":true,"id":931},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"945":{"resizeWidth":true},"946":{"_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)"},"947":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":948},{"__isSmartRef__":true,"id":949},{"__isSmartRef__":true,"id":950},{"__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},{"__isSmartRef__":true,"id":959},{"__isSmartRef__":true,"id":960},{"__isSmartRef__":true,"id":961},{"__isSmartRef__":true,"id":962},{"__isSmartRef__":true,"id":963},{"__isSmartRef__":true,"id":964},{"__isSmartRef__":true,"id":965},{"__isSmartRef__":true,"id":966}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"948":{"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)\")"},"949":{"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)\")"},"950":{"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)\")"},"951":{"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)\")"},"952":{"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)\")"},"953":{"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)\")"},"954":{"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)\")"},"955":{"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)\")"},"956":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"957":{"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)\")"},"958":{"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)\")"},"959":{"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)\")"},"960":{"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)\")"},"961":{"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)\")"},"962":{"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)\")"},"963":{"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)\")"},"964":{"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)\")"},"965":{"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)\")"},"966":{"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)\")"},"967":{"morph":{"__isSmartRef__":true,"id":930},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"968":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":969}},"969":{"test01IsMorph":{"__isSmartRef__":true,"id":970}},"970":{"varMapping":{"__isSmartRef__":true,"id":971},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"971":{"this":{"__isSmartRef__":true,"id":968}},"972":{},"973":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":974},"_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":975},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":976},"_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)"},"974":{"_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)"},"975":{"morph":{"__isSmartRef__":true,"id":973},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"976":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":977}],"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)\")"},"977":{"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)\")"},"978":{"submorphs":[{"__isSmartRef__":true,"id":979}],"scripts":[],"id":"927BA236-A457-4D8F-92B0-806B49E569E5","shape":{"__isSmartRef__":true,"id":994},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":995},"eventHandler":{"__isSmartRef__":true,"id":1015},"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":1016},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1021},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":979},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":546},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":1266},{"__isSmartRef__":true,"id":1314},{"__isSmartRef__":true,"id":1362}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8396},"__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)"},"979":{"submorphs":[],"scripts":[],"id":"10898186-937E-4357-B135-D048CF072AF9","shape":{"__isSmartRef__":true,"id":980},"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":981},"textChunks":[{"__isSmartRef__":true,"id":990}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":992},"_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":993},"owner":{"__isSmartRef__":true,"id":978},"_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)"},"980":{"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)"},"981":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":982},{"__isSmartRef__":true,"id":983},{"__isSmartRef__":true,"id":984},{"__isSmartRef__":true,"id":985},{"__isSmartRef__":true,"id":986},{"__isSmartRef__":true,"id":987},{"__isSmartRef__":true,"id":988},{"__isSmartRef__":true,"id":989}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"982":{"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)\")"},"983":{"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)\")"},"984":{"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)\")"},"985":{"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)\")"},"986":{"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)\")"},"987":{"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)\")"},"988":{"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)\")"},"989":{"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)\")"},"990":{"style":{"__isSmartRef__":true,"id":991},"chunkOwner":{"__isSmartRef__":true,"id":979},"_id":"_16061","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"991":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"992":{"morph":{"__isSmartRef__":true,"id":979},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"993":{"resizeWidth":true},"994":{"_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)"},"995":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":997},{"__isSmartRef__":true,"id":998},{"__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},{"__isSmartRef__":true,"id":1007},{"__isSmartRef__":true,"id":1008},{"__isSmartRef__":true,"id":1009},{"__isSmartRef__":true,"id":1010},{"__isSmartRef__":true,"id":1011},{"__isSmartRef__":true,"id":1012},{"__isSmartRef__":true,"id":1013},{"__isSmartRef__":true,"id":1014}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"996":{"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)\")"},"997":{"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)\")"},"998":{"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)\")"},"999":{"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)\")"},"1000":{"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)\")"},"1001":{"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)\")"},"1002":{"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)\")"},"1003":{"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)\")"},"1004":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1005":{"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)\")"},"1006":{"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)\")"},"1007":{"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)\")"},"1008":{"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)\")"},"1009":{"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)\")"},"1010":{"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)\")"},"1011":{"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)\")"},"1012":{"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)\")"},"1013":{"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)\")"},"1014":{"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)\")"},"1015":{"morph":{"__isSmartRef__":true,"id":978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1016":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1017}},"1017":{"test01IsMorph":{"__isSmartRef__":true,"id":1018}},"1018":{"varMapping":{"__isSmartRef__":true,"id":1019},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1019":{"this":{"__isSmartRef__":true,"id":1016}},"1020":{},"1021":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1022},"_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":1023},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1024},"_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)"},"1022":{"_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)"},"1023":{"morph":{"__isSmartRef__":true,"id":1021},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1024":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1025}],"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)\")"},"1025":{"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)\")"},"1026":{"submorphs":[{"__isSmartRef__":true,"id":1027}],"scripts":[],"id":"EB1D9038-E10B-4CD0-9D72-A77E7506CF9C","shape":{"__isSmartRef__":true,"id":1042},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1043},"eventHandler":{"__isSmartRef__":true,"id":1063},"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":1064},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1069},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1027},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":402},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1266},{"__isSmartRef__":true,"id":1314}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8334},"__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)"},"1027":{"submorphs":[],"scripts":[],"id":"168A96A1-FA1F-42B9-AD0C-26769270F18F","shape":{"__isSmartRef__":true,"id":1028},"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":1029},"textChunks":[{"__isSmartRef__":true,"id":1038}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1040},"_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":1041},"owner":{"__isSmartRef__":true,"id":1026},"_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)"},"1028":{"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)"},"1029":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1030},{"__isSmartRef__":true,"id":1031},{"__isSmartRef__":true,"id":1032},{"__isSmartRef__":true,"id":1033},{"__isSmartRef__":true,"id":1034},{"__isSmartRef__":true,"id":1035},{"__isSmartRef__":true,"id":1036},{"__isSmartRef__":true,"id":1037}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1030":{"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)\")"},"1031":{"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)\")"},"1032":{"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)\")"},"1033":{"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)\")"},"1034":{"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)\")"},"1035":{"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)\")"},"1036":{"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)\")"},"1037":{"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)\")"},"1038":{"style":{"__isSmartRef__":true,"id":1039},"chunkOwner":{"__isSmartRef__":true,"id":1027},"_id":"_16060","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1039":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1040":{"morph":{"__isSmartRef__":true,"id":1027},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1041":{"resizeWidth":true},"1042":{"_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)"},"1043":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1044},{"__isSmartRef__":true,"id":1045},{"__isSmartRef__":true,"id":1046},{"__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},{"__isSmartRef__":true,"id":1055},{"__isSmartRef__":true,"id":1056},{"__isSmartRef__":true,"id":1057},{"__isSmartRef__":true,"id":1058},{"__isSmartRef__":true,"id":1059},{"__isSmartRef__":true,"id":1060},{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1062}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1044":{"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)\")"},"1045":{"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)\")"},"1046":{"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)\")"},"1047":{"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)\")"},"1048":{"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)\")"},"1049":{"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)\")"},"1050":{"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)\")"},"1051":{"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)\")"},"1052":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1053":{"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)\")"},"1054":{"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)\")"},"1055":{"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)\")"},"1056":{"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)\")"},"1057":{"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)\")"},"1058":{"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)\")"},"1059":{"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)\")"},"1060":{"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)\")"},"1061":{"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)\")"},"1062":{"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)\")"},"1063":{"morph":{"__isSmartRef__":true,"id":1026},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1064":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1065}},"1065":{"test01IsMorph":{"__isSmartRef__":true,"id":1066}},"1066":{"varMapping":{"__isSmartRef__":true,"id":1067},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1067":{"this":{"__isSmartRef__":true,"id":1064}},"1068":{},"1069":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1070},"_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":1071},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1072},"_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)"},"1070":{"_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)"},"1071":{"morph":{"__isSmartRef__":true,"id":1069},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1072":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1073}],"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)\")"},"1073":{"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)\")"},"1074":{"submorphs":[{"__isSmartRef__":true,"id":1075}],"scripts":[],"id":"E816E0CF-506C-4AE0-AC77-FD2B22445B86","shape":{"__isSmartRef__":true,"id":1090},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1091},"eventHandler":{"__isSmartRef__":true,"id":1111},"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":1112},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1117},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1075},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":402},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":1170},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1266}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8272},"__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)"},"1075":{"submorphs":[],"scripts":[],"id":"F25F1F0A-721C-4A13-B4C4-6A2B7BBED1C8","shape":{"__isSmartRef__":true,"id":1076},"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":1077},"textChunks":[{"__isSmartRef__":true,"id":1086}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1088},"_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":1089},"owner":{"__isSmartRef__":true,"id":1074},"_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)"},"1076":{"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)"},"1077":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1078},{"__isSmartRef__":true,"id":1079},{"__isSmartRef__":true,"id":1080},{"__isSmartRef__":true,"id":1081},{"__isSmartRef__":true,"id":1082},{"__isSmartRef__":true,"id":1083},{"__isSmartRef__":true,"id":1084},{"__isSmartRef__":true,"id":1085}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1078":{"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)\")"},"1079":{"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)\")"},"1080":{"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)\")"},"1081":{"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)\")"},"1082":{"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)\")"},"1083":{"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)\")"},"1084":{"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)\")"},"1085":{"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)\")"},"1086":{"style":{"__isSmartRef__":true,"id":1087},"chunkOwner":{"__isSmartRef__":true,"id":1075},"_id":"_16059","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1087":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1088":{"morph":{"__isSmartRef__":true,"id":1075},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1089":{"resizeWidth":true},"1090":{"_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)"},"1091":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1092},{"__isSmartRef__":true,"id":1093},{"__isSmartRef__":true,"id":1094},{"__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},{"__isSmartRef__":true,"id":1103},{"__isSmartRef__":true,"id":1104},{"__isSmartRef__":true,"id":1105},{"__isSmartRef__":true,"id":1106},{"__isSmartRef__":true,"id":1107},{"__isSmartRef__":true,"id":1108},{"__isSmartRef__":true,"id":1109},{"__isSmartRef__":true,"id":1110}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1092":{"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)\")"},"1093":{"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)\")"},"1094":{"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)\")"},"1095":{"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)\")"},"1096":{"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)\")"},"1097":{"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)\")"},"1098":{"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)\")"},"1099":{"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)\")"},"1100":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1101":{"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)\")"},"1102":{"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)\")"},"1103":{"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)\")"},"1104":{"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)\")"},"1105":{"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)\")"},"1106":{"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)\")"},"1107":{"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)\")"},"1108":{"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)\")"},"1109":{"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)\")"},"1110":{"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)\")"},"1111":{"morph":{"__isSmartRef__":true,"id":1074},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1112":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1113}},"1113":{"test01IsMorph":{"__isSmartRef__":true,"id":1114}},"1114":{"varMapping":{"__isSmartRef__":true,"id":1115},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1115":{"this":{"__isSmartRef__":true,"id":1112}},"1116":{},"1117":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1118},"_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":1119},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1120},"_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)"},"1118":{"_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)"},"1119":{"morph":{"__isSmartRef__":true,"id":1117},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1120":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1121}],"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)\")"},"1121":{"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)\")"},"1122":{"submorphs":[{"__isSmartRef__":true,"id":1123}],"scripts":[],"id":"122D2734-F58C-4E01-BD20-C764C48227BD","shape":{"__isSmartRef__":true,"id":1138},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1139},"eventHandler":{"__isSmartRef__":true,"id":1159},"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":1160},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1165},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1123},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":402},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1170},{"__isSmartRef__":true,"id":1218}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8210},"__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)"},"1123":{"submorphs":[],"scripts":[],"id":"F36609AE-500D-45AF-B7CB-396BFF08501D","shape":{"__isSmartRef__":true,"id":1124},"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":1125},"textChunks":[{"__isSmartRef__":true,"id":1134}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1136},"_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":1137},"owner":{"__isSmartRef__":true,"id":1122},"_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)"},"1124":{"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)"},"1125":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1126},{"__isSmartRef__":true,"id":1127},{"__isSmartRef__":true,"id":1128},{"__isSmartRef__":true,"id":1129},{"__isSmartRef__":true,"id":1130},{"__isSmartRef__":true,"id":1131},{"__isSmartRef__":true,"id":1132},{"__isSmartRef__":true,"id":1133}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1126":{"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)\")"},"1127":{"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)\")"},"1128":{"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)\")"},"1129":{"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)\")"},"1130":{"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)\")"},"1131":{"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)\")"},"1132":{"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)\")"},"1133":{"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)\")"},"1134":{"style":{"__isSmartRef__":true,"id":1135},"chunkOwner":{"__isSmartRef__":true,"id":1123},"_id":"_16058","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1135":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1136":{"morph":{"__isSmartRef__":true,"id":1123},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1137":{"resizeWidth":true},"1138":{"_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)"},"1139":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1140},{"__isSmartRef__":true,"id":1141},{"__isSmartRef__":true,"id":1142},{"__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},{"__isSmartRef__":true,"id":1151},{"__isSmartRef__":true,"id":1152},{"__isSmartRef__":true,"id":1153},{"__isSmartRef__":true,"id":1154},{"__isSmartRef__":true,"id":1155},{"__isSmartRef__":true,"id":1156},{"__isSmartRef__":true,"id":1157},{"__isSmartRef__":true,"id":1158}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1140":{"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)\")"},"1141":{"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)\")"},"1142":{"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)\")"},"1143":{"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)\")"},"1144":{"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)\")"},"1145":{"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)\")"},"1146":{"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)\")"},"1147":{"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)\")"},"1148":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1149":{"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)\")"},"1150":{"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)\")"},"1151":{"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)\")"},"1152":{"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)\")"},"1153":{"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)\")"},"1154":{"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)\")"},"1155":{"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)\")"},"1156":{"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)\")"},"1157":{"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)\")"},"1158":{"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)\")"},"1159":{"morph":{"__isSmartRef__":true,"id":1122},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1160":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1161}},"1161":{"test01IsMorph":{"__isSmartRef__":true,"id":1162}},"1162":{"varMapping":{"__isSmartRef__":true,"id":1163},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1163":{"this":{"__isSmartRef__":true,"id":1160}},"1164":{},"1165":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1166},"_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":1167},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1168},"_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)"},"1166":{"_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)"},"1167":{"morph":{"__isSmartRef__":true,"id":1165},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1168":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1169}],"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)\")"},"1169":{"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)\")"},"1170":{"submorphs":[{"__isSmartRef__":true,"id":1171}],"scripts":[],"id":"C6896CA9-50E2-4E75-8909-E1FF6D1467D1","shape":{"__isSmartRef__":true,"id":1186},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1187},"eventHandler":{"__isSmartRef__":true,"id":1207},"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":1208},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1213},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1171},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1938}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8148},"__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)"},"1171":{"submorphs":[],"scripts":[],"id":"2EF9985E-6773-4CFB-A648-18DC5045FA75","shape":{"__isSmartRef__":true,"id":1172},"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":1173},"textChunks":[{"__isSmartRef__":true,"id":1182}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1184},"_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":1185},"owner":{"__isSmartRef__":true,"id":1170},"_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)"},"1172":{"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)"},"1173":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1174},{"__isSmartRef__":true,"id":1175},{"__isSmartRef__":true,"id":1176},{"__isSmartRef__":true,"id":1177},{"__isSmartRef__":true,"id":1178},{"__isSmartRef__":true,"id":1179},{"__isSmartRef__":true,"id":1180},{"__isSmartRef__":true,"id":1181}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1174":{"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)\")"},"1175":{"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)\")"},"1176":{"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)\")"},"1177":{"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)\")"},"1178":{"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)\")"},"1179":{"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)\")"},"1180":{"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)\")"},"1181":{"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)\")"},"1182":{"style":{"__isSmartRef__":true,"id":1183},"chunkOwner":{"__isSmartRef__":true,"id":1171},"_id":"_16067","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1183":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1184":{"morph":{"__isSmartRef__":true,"id":1171},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1185":{"resizeWidth":true},"1186":{"_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)"},"1187":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1188},{"__isSmartRef__":true,"id":1189},{"__isSmartRef__":true,"id":1190},{"__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},{"__isSmartRef__":true,"id":1199},{"__isSmartRef__":true,"id":1200},{"__isSmartRef__":true,"id":1201},{"__isSmartRef__":true,"id":1202},{"__isSmartRef__":true,"id":1203},{"__isSmartRef__":true,"id":1204},{"__isSmartRef__":true,"id":1205},{"__isSmartRef__":true,"id":1206}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1188":{"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)\")"},"1189":{"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)\")"},"1190":{"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)\")"},"1191":{"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)\")"},"1192":{"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)\")"},"1193":{"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)\")"},"1194":{"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)\")"},"1195":{"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)\")"},"1196":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1197":{"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)\")"},"1198":{"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)\")"},"1199":{"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)\")"},"1200":{"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)\")"},"1201":{"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)\")"},"1202":{"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)\")"},"1203":{"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)\")"},"1204":{"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)\")"},"1205":{"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)\")"},"1206":{"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)\")"},"1207":{"morph":{"__isSmartRef__":true,"id":1170},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1208":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1209}},"1209":{"test01IsMorph":{"__isSmartRef__":true,"id":1210}},"1210":{"varMapping":{"__isSmartRef__":true,"id":1211},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1211":{"this":{"__isSmartRef__":true,"id":1208}},"1212":{},"1213":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1214},"_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":1215},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1216},"_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)"},"1214":{"_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)"},"1215":{"morph":{"__isSmartRef__":true,"id":1213},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1216":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1217}],"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)\")"},"1217":{"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)\")"},"1218":{"submorphs":[{"__isSmartRef__":true,"id":1219}],"scripts":[],"id":"1404AF5A-F904-482E-85B8-5A07CA611F3D","shape":{"__isSmartRef__":true,"id":1234},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1235},"eventHandler":{"__isSmartRef__":true,"id":1255},"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":1256},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1261},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1219},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":1170},{"__isSmartRef__":true,"id":1266},{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1890}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8086},"__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)"},"1219":{"submorphs":[],"scripts":[],"id":"331520D8-D6A7-4D50-9C06-47FD0392893F","shape":{"__isSmartRef__":true,"id":1220},"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":1221},"textChunks":[{"__isSmartRef__":true,"id":1230}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1232},"_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":1233},"owner":{"__isSmartRef__":true,"id":1218},"_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)"},"1220":{"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)"},"1221":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1222},{"__isSmartRef__":true,"id":1223},{"__isSmartRef__":true,"id":1224},{"__isSmartRef__":true,"id":1225},{"__isSmartRef__":true,"id":1226},{"__isSmartRef__":true,"id":1227},{"__isSmartRef__":true,"id":1228},{"__isSmartRef__":true,"id":1229}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1222":{"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)\")"},"1223":{"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)\")"},"1224":{"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)\")"},"1225":{"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)\")"},"1226":{"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)\")"},"1227":{"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)\")"},"1228":{"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)\")"},"1229":{"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)\")"},"1230":{"style":{"__isSmartRef__":true,"id":1231},"chunkOwner":{"__isSmartRef__":true,"id":1219},"_id":"_16068","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1231":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1232":{"morph":{"__isSmartRef__":true,"id":1219},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1233":{"resizeWidth":true},"1234":{"_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)"},"1235":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1236},{"__isSmartRef__":true,"id":1237},{"__isSmartRef__":true,"id":1238},{"__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},{"__isSmartRef__":true,"id":1247},{"__isSmartRef__":true,"id":1248},{"__isSmartRef__":true,"id":1249},{"__isSmartRef__":true,"id":1250},{"__isSmartRef__":true,"id":1251},{"__isSmartRef__":true,"id":1252},{"__isSmartRef__":true,"id":1253},{"__isSmartRef__":true,"id":1254}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1236":{"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)\")"},"1237":{"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)\")"},"1238":{"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)\")"},"1239":{"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)\")"},"1240":{"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)\")"},"1241":{"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)\")"},"1242":{"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)\")"},"1243":{"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)\")"},"1244":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1245":{"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)\")"},"1246":{"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)\")"},"1247":{"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)\")"},"1248":{"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)\")"},"1249":{"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)\")"},"1250":{"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)\")"},"1251":{"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)\")"},"1252":{"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)\")"},"1253":{"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)\")"},"1254":{"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)\")"},"1255":{"morph":{"__isSmartRef__":true,"id":1218},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1256":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1257}},"1257":{"test01IsMorph":{"__isSmartRef__":true,"id":1258}},"1258":{"varMapping":{"__isSmartRef__":true,"id":1259},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1259":{"this":{"__isSmartRef__":true,"id":1256}},"1260":{},"1261":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1262},"_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":1263},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1264},"_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)"},"1262":{"_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)"},"1263":{"morph":{"__isSmartRef__":true,"id":1261},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1264":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1265}],"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)\")"},"1265":{"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)\")"},"1266":{"submorphs":[{"__isSmartRef__":true,"id":1267}],"scripts":[],"id":"F11085C6-5CB9-4798-BCCA-B20FD2D380B0","shape":{"__isSmartRef__":true,"id":1282},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1283},"eventHandler":{"__isSmartRef__":true,"id":1303},"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":1304},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1309},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1267},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1314},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":1842}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8024},"__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)"},"1267":{"submorphs":[],"scripts":[],"id":"DA98588F-D4F9-40CA-8ED2-16F1FE06DF7A","shape":{"__isSmartRef__":true,"id":1268},"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":1269},"textChunks":[{"__isSmartRef__":true,"id":1278}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1280},"_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":1281},"owner":{"__isSmartRef__":true,"id":1266},"_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)"},"1268":{"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)"},"1269":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1270},{"__isSmartRef__":true,"id":1271},{"__isSmartRef__":true,"id":1272},{"__isSmartRef__":true,"id":1273},{"__isSmartRef__":true,"id":1274},{"__isSmartRef__":true,"id":1275},{"__isSmartRef__":true,"id":1276},{"__isSmartRef__":true,"id":1277}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1270":{"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)\")"},"1271":{"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)\")"},"1272":{"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)\")"},"1273":{"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)\")"},"1274":{"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)\")"},"1275":{"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)\")"},"1276":{"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)\")"},"1277":{"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)\")"},"1278":{"style":{"__isSmartRef__":true,"id":1279},"chunkOwner":{"__isSmartRef__":true,"id":1267},"_id":"_16069","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1279":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1280":{"morph":{"__isSmartRef__":true,"id":1267},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1281":{"resizeWidth":true},"1282":{"_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)"},"1283":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1284},{"__isSmartRef__":true,"id":1285},{"__isSmartRef__":true,"id":1286},{"__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},{"__isSmartRef__":true,"id":1295},{"__isSmartRef__":true,"id":1296},{"__isSmartRef__":true,"id":1297},{"__isSmartRef__":true,"id":1298},{"__isSmartRef__":true,"id":1299},{"__isSmartRef__":true,"id":1300},{"__isSmartRef__":true,"id":1301},{"__isSmartRef__":true,"id":1302}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1284":{"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)\")"},"1285":{"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)\")"},"1286":{"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)\")"},"1287":{"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)\")"},"1288":{"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)\")"},"1289":{"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)\")"},"1290":{"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)\")"},"1291":{"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)\")"},"1292":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1293":{"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)\")"},"1294":{"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)\")"},"1295":{"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)\")"},"1296":{"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)\")"},"1297":{"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)\")"},"1298":{"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)\")"},"1299":{"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)\")"},"1300":{"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)\")"},"1301":{"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)\")"},"1302":{"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)\")"},"1303":{"morph":{"__isSmartRef__":true,"id":1266},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1304":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1305}},"1305":{"test01IsMorph":{"__isSmartRef__":true,"id":1306}},"1306":{"varMapping":{"__isSmartRef__":true,"id":1307},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1307":{"this":{"__isSmartRef__":true,"id":1304}},"1308":{},"1309":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1310},"_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":1311},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1312},"_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)"},"1310":{"_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)"},"1311":{"morph":{"__isSmartRef__":true,"id":1309},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1312":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1313}],"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)\")"},"1313":{"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)\")"},"1314":{"submorphs":[{"__isSmartRef__":true,"id":1315}],"scripts":[],"id":"29BC59A4-891E-4E3E-B613-6AC43A68D55A","shape":{"__isSmartRef__":true,"id":1330},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1331},"eventHandler":{"__isSmartRef__":true,"id":1351},"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":1352},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1357},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1315},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":1266},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1794}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7962},"__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)"},"1315":{"submorphs":[],"scripts":[],"id":"8C510831-EA94-42A0-9E68-A0C3DE66BC24","shape":{"__isSmartRef__":true,"id":1316},"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":1317},"textChunks":[{"__isSmartRef__":true,"id":1326}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1328},"_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":1329},"owner":{"__isSmartRef__":true,"id":1314},"_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)"},"1316":{"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)"},"1317":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1318},{"__isSmartRef__":true,"id":1319},{"__isSmartRef__":true,"id":1320},{"__isSmartRef__":true,"id":1321},{"__isSmartRef__":true,"id":1322},{"__isSmartRef__":true,"id":1323},{"__isSmartRef__":true,"id":1324},{"__isSmartRef__":true,"id":1325}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1318":{"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)\")"},"1319":{"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)\")"},"1320":{"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)\")"},"1321":{"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)\")"},"1322":{"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)\")"},"1323":{"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)\")"},"1324":{"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)\")"},"1325":{"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)\")"},"1326":{"style":{"__isSmartRef__":true,"id":1327},"chunkOwner":{"__isSmartRef__":true,"id":1315},"_id":"_16070","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1327":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1328":{"morph":{"__isSmartRef__":true,"id":1315},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1329":{"resizeWidth":true},"1330":{"_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)"},"1331":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1332},{"__isSmartRef__":true,"id":1333},{"__isSmartRef__":true,"id":1334},{"__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},{"__isSmartRef__":true,"id":1343},{"__isSmartRef__":true,"id":1344},{"__isSmartRef__":true,"id":1345},{"__isSmartRef__":true,"id":1346},{"__isSmartRef__":true,"id":1347},{"__isSmartRef__":true,"id":1348},{"__isSmartRef__":true,"id":1349},{"__isSmartRef__":true,"id":1350}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1332":{"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)\")"},"1333":{"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)\")"},"1334":{"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)\")"},"1335":{"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)\")"},"1336":{"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)\")"},"1337":{"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)\")"},"1338":{"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)\")"},"1339":{"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)\")"},"1340":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1341":{"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)\")"},"1342":{"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)\")"},"1343":{"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)\")"},"1344":{"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)\")"},"1345":{"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)\")"},"1346":{"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)\")"},"1347":{"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)\")"},"1348":{"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)\")"},"1349":{"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)\")"},"1350":{"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)\")"},"1351":{"morph":{"__isSmartRef__":true,"id":1314},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1352":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1353}},"1353":{"test01IsMorph":{"__isSmartRef__":true,"id":1354}},"1354":{"varMapping":{"__isSmartRef__":true,"id":1355},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1355":{"this":{"__isSmartRef__":true,"id":1352}},"1356":{},"1357":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1358},"_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":1359},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1360},"_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)"},"1358":{"_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)"},"1359":{"morph":{"__isSmartRef__":true,"id":1357},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1360":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1361}],"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)\")"},"1361":{"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)\")"},"1362":{"submorphs":[{"__isSmartRef__":true,"id":1363}],"scripts":[],"id":"9F62551D-BBC2-4D39-B632-313F7AC31FCE","shape":{"__isSmartRef__":true,"id":1378},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1379},"eventHandler":{"__isSmartRef__":true,"id":1399},"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":1400},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1405},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1363},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":1314},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":1746}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7900},"__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)"},"1363":{"submorphs":[],"scripts":[],"id":"9F099605-EEF6-4350-9D64-B478A067BE14","shape":{"__isSmartRef__":true,"id":1364},"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":1365},"textChunks":[{"__isSmartRef__":true,"id":1374}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1376},"_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":1377},"owner":{"__isSmartRef__":true,"id":1362},"_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)"},"1364":{"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)"},"1365":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1366},{"__isSmartRef__":true,"id":1367},{"__isSmartRef__":true,"id":1368},{"__isSmartRef__":true,"id":1369},{"__isSmartRef__":true,"id":1370},{"__isSmartRef__":true,"id":1371},{"__isSmartRef__":true,"id":1372},{"__isSmartRef__":true,"id":1373}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1366":{"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)\")"},"1367":{"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)\")"},"1368":{"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)\")"},"1369":{"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)\")"},"1370":{"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)\")"},"1371":{"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)\")"},"1372":{"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)\")"},"1373":{"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)\")"},"1374":{"style":{"__isSmartRef__":true,"id":1375},"chunkOwner":{"__isSmartRef__":true,"id":1363},"_id":"_16071","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1375":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1376":{"morph":{"__isSmartRef__":true,"id":1363},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1377":{"resizeWidth":true},"1378":{"_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)"},"1379":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1380},{"__isSmartRef__":true,"id":1381},{"__isSmartRef__":true,"id":1382},{"__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},{"__isSmartRef__":true,"id":1391},{"__isSmartRef__":true,"id":1392},{"__isSmartRef__":true,"id":1393},{"__isSmartRef__":true,"id":1394},{"__isSmartRef__":true,"id":1395},{"__isSmartRef__":true,"id":1396},{"__isSmartRef__":true,"id":1397},{"__isSmartRef__":true,"id":1398}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1380":{"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)\")"},"1381":{"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)\")"},"1382":{"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)\")"},"1383":{"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)\")"},"1384":{"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)\")"},"1385":{"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)\")"},"1386":{"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)\")"},"1387":{"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)\")"},"1388":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1389":{"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)\")"},"1390":{"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)\")"},"1391":{"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)\")"},"1392":{"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)\")"},"1393":{"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)\")"},"1394":{"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)\")"},"1395":{"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)\")"},"1396":{"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)\")"},"1397":{"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)\")"},"1398":{"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)\")"},"1399":{"morph":{"__isSmartRef__":true,"id":1362},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1400":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1401}},"1401":{"test01IsMorph":{"__isSmartRef__":true,"id":1402}},"1402":{"varMapping":{"__isSmartRef__":true,"id":1403},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1403":{"this":{"__isSmartRef__":true,"id":1400}},"1404":{},"1405":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1406},"_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":1407},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1408},"_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)"},"1406":{"_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)"},"1407":{"morph":{"__isSmartRef__":true,"id":1405},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1408":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1409}],"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)\")"},"1409":{"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)\")"},"1410":{"submorphs":[{"__isSmartRef__":true,"id":1411}],"scripts":[],"id":"36D04504-526E-40D2-AC86-86843F7B9139","shape":{"__isSmartRef__":true,"id":1426},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1427},"eventHandler":{"__isSmartRef__":true,"id":1447},"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":1448},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1453},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1411},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1458},{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":1698}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7838},"__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)"},"1411":{"submorphs":[],"scripts":[],"id":"F612C030-7689-4378-A292-B7AA742291FB","shape":{"__isSmartRef__":true,"id":1412},"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":1413},"textChunks":[{"__isSmartRef__":true,"id":1422}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1424},"_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":1425},"owner":{"__isSmartRef__":true,"id":1410},"_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)"},"1412":{"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)"},"1413":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1414},{"__isSmartRef__":true,"id":1415},{"__isSmartRef__":true,"id":1416},{"__isSmartRef__":true,"id":1417},{"__isSmartRef__":true,"id":1418},{"__isSmartRef__":true,"id":1419},{"__isSmartRef__":true,"id":1420},{"__isSmartRef__":true,"id":1421}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1414":{"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)\")"},"1415":{"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)\")"},"1416":{"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)\")"},"1417":{"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)\")"},"1418":{"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)\")"},"1419":{"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)\")"},"1420":{"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)\")"},"1421":{"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)\")"},"1422":{"style":{"__isSmartRef__":true,"id":1423},"chunkOwner":{"__isSmartRef__":true,"id":1411},"_id":"_16072","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1423":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1424":{"morph":{"__isSmartRef__":true,"id":1411},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1425":{"resizeWidth":true},"1426":{"_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)"},"1427":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1428},{"__isSmartRef__":true,"id":1429},{"__isSmartRef__":true,"id":1430},{"__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},{"__isSmartRef__":true,"id":1439},{"__isSmartRef__":true,"id":1440},{"__isSmartRef__":true,"id":1441},{"__isSmartRef__":true,"id":1442},{"__isSmartRef__":true,"id":1443},{"__isSmartRef__":true,"id":1444},{"__isSmartRef__":true,"id":1445},{"__isSmartRef__":true,"id":1446}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1428":{"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)\")"},"1429":{"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)\")"},"1430":{"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)\")"},"1431":{"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)\")"},"1432":{"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)\")"},"1433":{"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)\")"},"1434":{"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)\")"},"1435":{"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)\")"},"1436":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1437":{"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)\")"},"1438":{"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)\")"},"1439":{"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)\")"},"1440":{"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)\")"},"1441":{"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)\")"},"1442":{"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)\")"},"1443":{"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)\")"},"1444":{"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)\")"},"1445":{"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)\")"},"1446":{"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)\")"},"1447":{"morph":{"__isSmartRef__":true,"id":1410},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1448":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1449}},"1449":{"test01IsMorph":{"__isSmartRef__":true,"id":1450}},"1450":{"varMapping":{"__isSmartRef__":true,"id":1451},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1451":{"this":{"__isSmartRef__":true,"id":1448}},"1452":{},"1453":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1454},"_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":1455},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1456},"_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)"},"1454":{"_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)"},"1455":{"morph":{"__isSmartRef__":true,"id":1453},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1456":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1457}],"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)\")"},"1457":{"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)\")"},"1458":{"submorphs":[{"__isSmartRef__":true,"id":1459}],"scripts":[],"id":"157BF847-163E-462F-AB44-4D195D277154","shape":{"__isSmartRef__":true,"id":1474},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1475},"eventHandler":{"__isSmartRef__":true,"id":1495},"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":1496},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1501},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1459},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1506},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1650}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7776},"__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)"},"1459":{"submorphs":[],"scripts":[],"id":"0A3C4BE8-6A82-44AA-8EBF-86B260A970E3","shape":{"__isSmartRef__":true,"id":1460},"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":1461},"textChunks":[{"__isSmartRef__":true,"id":1470}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1472},"_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":1473},"owner":{"__isSmartRef__":true,"id":1458},"_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)"},"1460":{"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)"},"1461":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1462},{"__isSmartRef__":true,"id":1463},{"__isSmartRef__":true,"id":1464},{"__isSmartRef__":true,"id":1465},{"__isSmartRef__":true,"id":1466},{"__isSmartRef__":true,"id":1467},{"__isSmartRef__":true,"id":1468},{"__isSmartRef__":true,"id":1469}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1462":{"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)\")"},"1463":{"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)\")"},"1464":{"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)\")"},"1465":{"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)\")"},"1466":{"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)\")"},"1467":{"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)\")"},"1468":{"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)\")"},"1469":{"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)\")"},"1470":{"style":{"__isSmartRef__":true,"id":1471},"chunkOwner":{"__isSmartRef__":true,"id":1459},"_id":"_16073","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1471":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1472":{"morph":{"__isSmartRef__":true,"id":1459},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1473":{"resizeWidth":true},"1474":{"_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)"},"1475":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1476},{"__isSmartRef__":true,"id":1477},{"__isSmartRef__":true,"id":1478},{"__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},{"__isSmartRef__":true,"id":1487},{"__isSmartRef__":true,"id":1488},{"__isSmartRef__":true,"id":1489},{"__isSmartRef__":true,"id":1490},{"__isSmartRef__":true,"id":1491},{"__isSmartRef__":true,"id":1492},{"__isSmartRef__":true,"id":1493},{"__isSmartRef__":true,"id":1494}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1476":{"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)\")"},"1477":{"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)\")"},"1478":{"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)\")"},"1479":{"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)\")"},"1480":{"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)\")"},"1481":{"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)\")"},"1482":{"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)\")"},"1483":{"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)\")"},"1484":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1485":{"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)\")"},"1486":{"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)\")"},"1487":{"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)\")"},"1488":{"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)\")"},"1489":{"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)\")"},"1490":{"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)\")"},"1491":{"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)\")"},"1492":{"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)\")"},"1493":{"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)\")"},"1494":{"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)\")"},"1495":{"morph":{"__isSmartRef__":true,"id":1458},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1496":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1497}},"1497":{"test01IsMorph":{"__isSmartRef__":true,"id":1498}},"1498":{"varMapping":{"__isSmartRef__":true,"id":1499},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1499":{"this":{"__isSmartRef__":true,"id":1496}},"1500":{},"1501":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1502},"_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":1503},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1504},"_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)"},"1502":{"_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)"},"1503":{"morph":{"__isSmartRef__":true,"id":1501},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1504":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1505}],"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)\")"},"1505":{"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)\")"},"1506":{"submorphs":[{"__isSmartRef__":true,"id":1507}],"scripts":[],"id":"E75BC38C-7A59-41EF-90A7-9BB769DDD1F0","shape":{"__isSmartRef__":true,"id":1522},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1523},"eventHandler":{"__isSmartRef__":true,"id":1543},"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":1544},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1549},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1507},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":1554},{"__isSmartRef__":true,"id":1458},{"__isSmartRef__":true,"id":1602},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":2418}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7714},"__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)"},"1507":{"submorphs":[],"scripts":[],"id":"50523558-2FC9-4FB5-8032-1D5092D69D1A","shape":{"__isSmartRef__":true,"id":1508},"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":1509},"textChunks":[{"__isSmartRef__":true,"id":1518}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1520},"_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":1521},"owner":{"__isSmartRef__":true,"id":1506},"_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)"},"1508":{"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)"},"1509":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1510},{"__isSmartRef__":true,"id":1511},{"__isSmartRef__":true,"id":1512},{"__isSmartRef__":true,"id":1513},{"__isSmartRef__":true,"id":1514},{"__isSmartRef__":true,"id":1515},{"__isSmartRef__":true,"id":1516},{"__isSmartRef__":true,"id":1517}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1510":{"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)\")"},"1511":{"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)\")"},"1512":{"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)\")"},"1513":{"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)\")"},"1514":{"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)\")"},"1515":{"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)\")"},"1516":{"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)\")"},"1517":{"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)\")"},"1518":{"style":{"__isSmartRef__":true,"id":1519},"chunkOwner":{"__isSmartRef__":true,"id":1507},"_id":"_16074","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1519":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1520":{"morph":{"__isSmartRef__":true,"id":1507},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1521":{"resizeWidth":true},"1522":{"_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)"},"1523":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1524},{"__isSmartRef__":true,"id":1525},{"__isSmartRef__":true,"id":1526},{"__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},{"__isSmartRef__":true,"id":1535},{"__isSmartRef__":true,"id":1536},{"__isSmartRef__":true,"id":1537},{"__isSmartRef__":true,"id":1538},{"__isSmartRef__":true,"id":1539},{"__isSmartRef__":true,"id":1540},{"__isSmartRef__":true,"id":1541},{"__isSmartRef__":true,"id":1542}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1524":{"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)\")"},"1525":{"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)\")"},"1526":{"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)\")"},"1527":{"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)\")"},"1528":{"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)\")"},"1529":{"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)\")"},"1530":{"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)\")"},"1531":{"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)\")"},"1532":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1533":{"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)\")"},"1534":{"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)\")"},"1535":{"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)\")"},"1536":{"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)\")"},"1537":{"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)\")"},"1538":{"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)\")"},"1539":{"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)\")"},"1540":{"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)\")"},"1541":{"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)\")"},"1542":{"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)\")"},"1543":{"morph":{"__isSmartRef__":true,"id":1506},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1544":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1545}},"1545":{"test01IsMorph":{"__isSmartRef__":true,"id":1546}},"1546":{"varMapping":{"__isSmartRef__":true,"id":1547},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1547":{"this":{"__isSmartRef__":true,"id":1544}},"1548":{},"1549":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1550},"_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":1551},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1552},"_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)"},"1550":{"_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)"},"1551":{"morph":{"__isSmartRef__":true,"id":1549},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1552":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1553}],"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)\")"},"1553":{"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)\")"},"1554":{"submorphs":[{"__isSmartRef__":true,"id":1555}],"scripts":[],"id":"C0EFDF71-7AE7-42E5-B2F4-8853FBCBBB91","shape":{"__isSmartRef__":true,"id":1570},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1571},"eventHandler":{"__isSmartRef__":true,"id":1591},"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":1592},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1597},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1555},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":738},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":1506},{"__isSmartRef__":true,"id":1602}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7652},"__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)"},"1555":{"submorphs":[],"scripts":[],"id":"29B2A09E-CC20-4A43-91E6-EDDFF18F407A","shape":{"__isSmartRef__":true,"id":1556},"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":1557},"textChunks":[{"__isSmartRef__":true,"id":1566}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1568},"_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":1569},"owner":{"__isSmartRef__":true,"id":1554},"_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)"},"1556":{"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)"},"1557":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1558},{"__isSmartRef__":true,"id":1559},{"__isSmartRef__":true,"id":1560},{"__isSmartRef__":true,"id":1561},{"__isSmartRef__":true,"id":1562},{"__isSmartRef__":true,"id":1563},{"__isSmartRef__":true,"id":1564},{"__isSmartRef__":true,"id":1565}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1558":{"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)\")"},"1559":{"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)\")"},"1560":{"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)\")"},"1561":{"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)\")"},"1562":{"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)\")"},"1563":{"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)\")"},"1564":{"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)\")"},"1565":{"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)\")"},"1566":{"style":{"__isSmartRef__":true,"id":1567},"chunkOwner":{"__isSmartRef__":true,"id":1555},"_id":"_16066","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1567":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1568":{"morph":{"__isSmartRef__":true,"id":1555},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1569":{"resizeWidth":true},"1570":{"_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)"},"1571":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1572},{"__isSmartRef__":true,"id":1573},{"__isSmartRef__":true,"id":1574},{"__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},{"__isSmartRef__":true,"id":1583},{"__isSmartRef__":true,"id":1584},{"__isSmartRef__":true,"id":1585},{"__isSmartRef__":true,"id":1586},{"__isSmartRef__":true,"id":1587},{"__isSmartRef__":true,"id":1588},{"__isSmartRef__":true,"id":1589},{"__isSmartRef__":true,"id":1590}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1572":{"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)\")"},"1573":{"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)\")"},"1574":{"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)\")"},"1575":{"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)\")"},"1576":{"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)\")"},"1577":{"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)\")"},"1578":{"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)\")"},"1579":{"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)\")"},"1580":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1581":{"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)\")"},"1582":{"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)\")"},"1583":{"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)\")"},"1584":{"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)\")"},"1585":{"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)\")"},"1586":{"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)\")"},"1587":{"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)\")"},"1588":{"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)\")"},"1589":{"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)\")"},"1590":{"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)\")"},"1591":{"morph":{"__isSmartRef__":true,"id":1554},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1592":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1593}},"1593":{"test01IsMorph":{"__isSmartRef__":true,"id":1594}},"1594":{"varMapping":{"__isSmartRef__":true,"id":1595},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1595":{"this":{"__isSmartRef__":true,"id":1592}},"1596":{},"1597":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1598},"_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":1599},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1600},"_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)"},"1598":{"_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)"},"1599":{"morph":{"__isSmartRef__":true,"id":1597},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1600":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1601}],"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)\")"},"1601":{"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)\")"},"1602":{"submorphs":[{"__isSmartRef__":true,"id":1603}],"scripts":[],"id":"9BA67F0D-67E1-4FC3-B184-956A824E1133","shape":{"__isSmartRef__":true,"id":1618},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1619},"eventHandler":{"__isSmartRef__":true,"id":1639},"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":1640},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1645},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1603},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":1554},{"__isSmartRef__":true,"id":1506},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":2418}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7590},"__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)"},"1603":{"submorphs":[],"scripts":[],"id":"DA6E8C11-2307-49FC-AE84-5F636F495E47","shape":{"__isSmartRef__":true,"id":1604},"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":1605},"textChunks":[{"__isSmartRef__":true,"id":1614}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1616},"_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":1617},"owner":{"__isSmartRef__":true,"id":1602},"_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)"},"1604":{"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)"},"1605":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1606},{"__isSmartRef__":true,"id":1607},{"__isSmartRef__":true,"id":1608},{"__isSmartRef__":true,"id":1609},{"__isSmartRef__":true,"id":1610},{"__isSmartRef__":true,"id":1611},{"__isSmartRef__":true,"id":1612},{"__isSmartRef__":true,"id":1613}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1606":{"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)\")"},"1607":{"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)\")"},"1608":{"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)\")"},"1609":{"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)\")"},"1610":{"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)\")"},"1611":{"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)\")"},"1612":{"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)\")"},"1613":{"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)\")"},"1614":{"style":{"__isSmartRef__":true,"id":1615},"chunkOwner":{"__isSmartRef__":true,"id":1603},"_id":"_16075","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1615":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1616":{"morph":{"__isSmartRef__":true,"id":1603},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1617":{"resizeWidth":true},"1618":{"_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)"},"1619":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1620},{"__isSmartRef__":true,"id":1621},{"__isSmartRef__":true,"id":1622},{"__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},{"__isSmartRef__":true,"id":1631},{"__isSmartRef__":true,"id":1632},{"__isSmartRef__":true,"id":1633},{"__isSmartRef__":true,"id":1634},{"__isSmartRef__":true,"id":1635},{"__isSmartRef__":true,"id":1636},{"__isSmartRef__":true,"id":1637},{"__isSmartRef__":true,"id":1638}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1620":{"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)\")"},"1621":{"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)\")"},"1622":{"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)\")"},"1623":{"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)\")"},"1624":{"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)\")"},"1625":{"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)\")"},"1626":{"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)\")"},"1627":{"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)\")"},"1628":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1629":{"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)\")"},"1630":{"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)\")"},"1631":{"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)\")"},"1632":{"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)\")"},"1633":{"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)\")"},"1634":{"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)\")"},"1635":{"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)\")"},"1636":{"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)\")"},"1637":{"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)\")"},"1638":{"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)\")"},"1639":{"morph":{"__isSmartRef__":true,"id":1602},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1640":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1641}},"1641":{"test01IsMorph":{"__isSmartRef__":true,"id":1642}},"1642":{"varMapping":{"__isSmartRef__":true,"id":1643},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1643":{"this":{"__isSmartRef__":true,"id":1640}},"1644":{},"1645":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1646},"_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":1647},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1648},"_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)"},"1646":{"_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)"},"1647":{"morph":{"__isSmartRef__":true,"id":1645},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1648":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1649}],"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)\")"},"1649":{"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)\")"},"1650":{"submorphs":[{"__isSmartRef__":true,"id":1651}],"scripts":[],"id":"F3AE1A83-C9E7-41B6-8E71-77559139AB00","shape":{"__isSmartRef__":true,"id":1666},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1667},"eventHandler":{"__isSmartRef__":true,"id":1687},"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":1688},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1693},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1651},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1458},{"__isSmartRef__":true,"id":1506},{"__isSmartRef__":true,"id":1602},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":2418},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2466}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7528},"__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)"},"1651":{"submorphs":[],"scripts":[],"id":"66E8547E-3862-450C-8AB3-7792D97D579B","shape":{"__isSmartRef__":true,"id":1652},"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":1653},"textChunks":[{"__isSmartRef__":true,"id":1662}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1664},"_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":1665},"owner":{"__isSmartRef__":true,"id":1650},"_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)"},"1652":{"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)"},"1653":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1654},{"__isSmartRef__":true,"id":1655},{"__isSmartRef__":true,"id":1656},{"__isSmartRef__":true,"id":1657},{"__isSmartRef__":true,"id":1658},{"__isSmartRef__":true,"id":1659},{"__isSmartRef__":true,"id":1660},{"__isSmartRef__":true,"id":1661}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1654":{"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)\")"},"1655":{"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)\")"},"1656":{"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)\")"},"1657":{"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)\")"},"1658":{"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)\")"},"1659":{"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)\")"},"1660":{"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)\")"},"1661":{"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)\")"},"1662":{"style":{"__isSmartRef__":true,"id":1663},"chunkOwner":{"__isSmartRef__":true,"id":1651},"_id":"_16083","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1663":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1664":{"morph":{"__isSmartRef__":true,"id":1651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1665":{"resizeWidth":true},"1666":{"_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)"},"1667":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1668},{"__isSmartRef__":true,"id":1669},{"__isSmartRef__":true,"id":1670},{"__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},{"__isSmartRef__":true,"id":1679},{"__isSmartRef__":true,"id":1680},{"__isSmartRef__":true,"id":1681},{"__isSmartRef__":true,"id":1682},{"__isSmartRef__":true,"id":1683},{"__isSmartRef__":true,"id":1684},{"__isSmartRef__":true,"id":1685},{"__isSmartRef__":true,"id":1686}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1668":{"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)\")"},"1669":{"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)\")"},"1670":{"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)\")"},"1671":{"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)\")"},"1672":{"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)\")"},"1673":{"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)\")"},"1674":{"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)\")"},"1675":{"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)\")"},"1676":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1677":{"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)\")"},"1678":{"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)\")"},"1679":{"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)\")"},"1680":{"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)\")"},"1681":{"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)\")"},"1682":{"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)\")"},"1683":{"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)\")"},"1684":{"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)\")"},"1685":{"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)\")"},"1686":{"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)\")"},"1687":{"morph":{"__isSmartRef__":true,"id":1650},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1688":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1689}},"1689":{"test01IsMorph":{"__isSmartRef__":true,"id":1690}},"1690":{"varMapping":{"__isSmartRef__":true,"id":1691},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1691":{"this":{"__isSmartRef__":true,"id":1688}},"1692":{},"1693":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1694},"_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":1695},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1696},"_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)"},"1694":{"_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)"},"1695":{"morph":{"__isSmartRef__":true,"id":1693},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1696":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1697}],"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)\")"},"1697":{"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)\")"},"1698":{"submorphs":[{"__isSmartRef__":true,"id":1699}],"scripts":[],"id":"AD77BB4B-BD5F-4386-88DB-83F8146F5647","shape":{"__isSmartRef__":true,"id":1714},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1715},"eventHandler":{"__isSmartRef__":true,"id":1735},"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":1736},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1741},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1699},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1458},{"__isSmartRef__":true,"id":1506},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2370}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7466},"__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)"},"1699":{"submorphs":[],"scripts":[],"id":"0C5BB3E2-5633-4E49-B6F4-827DD6CBFC83","shape":{"__isSmartRef__":true,"id":1700},"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":1701},"textChunks":[{"__isSmartRef__":true,"id":1710}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1712},"_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":1713},"owner":{"__isSmartRef__":true,"id":1698},"_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)"},"1700":{"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)"},"1701":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1702},{"__isSmartRef__":true,"id":1703},{"__isSmartRef__":true,"id":1704},{"__isSmartRef__":true,"id":1705},{"__isSmartRef__":true,"id":1706},{"__isSmartRef__":true,"id":1707},{"__isSmartRef__":true,"id":1708},{"__isSmartRef__":true,"id":1709}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1702":{"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)\")"},"1703":{"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)\")"},"1704":{"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)\")"},"1705":{"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)\")"},"1706":{"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)\")"},"1707":{"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)\")"},"1708":{"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)\")"},"1709":{"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)\")"},"1710":{"style":{"__isSmartRef__":true,"id":1711},"chunkOwner":{"__isSmartRef__":true,"id":1699},"_id":"_16082","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1711":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1712":{"morph":{"__isSmartRef__":true,"id":1699},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1713":{"resizeWidth":true},"1714":{"_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)"},"1715":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1716},{"__isSmartRef__":true,"id":1717},{"__isSmartRef__":true,"id":1718},{"__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},{"__isSmartRef__":true,"id":1727},{"__isSmartRef__":true,"id":1728},{"__isSmartRef__":true,"id":1729},{"__isSmartRef__":true,"id":1730},{"__isSmartRef__":true,"id":1731},{"__isSmartRef__":true,"id":1732},{"__isSmartRef__":true,"id":1733},{"__isSmartRef__":true,"id":1734}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1716":{"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)\")"},"1717":{"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)\")"},"1718":{"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)\")"},"1719":{"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)\")"},"1720":{"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)\")"},"1721":{"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)\")"},"1722":{"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)\")"},"1723":{"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)\")"},"1724":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1725":{"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)\")"},"1726":{"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)\")"},"1727":{"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)\")"},"1728":{"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)\")"},"1729":{"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)\")"},"1730":{"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)\")"},"1731":{"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)\")"},"1732":{"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)\")"},"1733":{"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)\")"},"1734":{"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)\")"},"1735":{"morph":{"__isSmartRef__":true,"id":1698},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1736":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1737}},"1737":{"test01IsMorph":{"__isSmartRef__":true,"id":1738}},"1738":{"varMapping":{"__isSmartRef__":true,"id":1739},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1739":{"this":{"__isSmartRef__":true,"id":1736}},"1740":{},"1741":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1742},"_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":1743},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1744},"_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)"},"1742":{"_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)"},"1743":{"morph":{"__isSmartRef__":true,"id":1741},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1744":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1745}],"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)\")"},"1745":{"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)\")"},"1746":{"submorphs":[{"__isSmartRef__":true,"id":1747}],"scripts":[],"id":"62EB451B-9FC9-4CB6-A6D1-28C5B350DAD0","shape":{"__isSmartRef__":true,"id":1762},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1763},"eventHandler":{"__isSmartRef__":true,"id":1783},"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":1784},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1789},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1747},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1458},{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2322}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7404},"__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)"},"1747":{"submorphs":[],"scripts":[],"id":"66458C00-E650-4243-8886-478419C7F80E","shape":{"__isSmartRef__":true,"id":1748},"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":1749},"textChunks":[{"__isSmartRef__":true,"id":1758}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1760},"_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":1761},"owner":{"__isSmartRef__":true,"id":1746},"_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)"},"1748":{"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)"},"1749":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1750},{"__isSmartRef__":true,"id":1751},{"__isSmartRef__":true,"id":1752},{"__isSmartRef__":true,"id":1753},{"__isSmartRef__":true,"id":1754},{"__isSmartRef__":true,"id":1755},{"__isSmartRef__":true,"id":1756},{"__isSmartRef__":true,"id":1757}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1750":{"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)\")"},"1751":{"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)\")"},"1752":{"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)\")"},"1753":{"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)\")"},"1754":{"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)\")"},"1755":{"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)\")"},"1756":{"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)\")"},"1757":{"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)\")"},"1758":{"style":{"__isSmartRef__":true,"id":1759},"chunkOwner":{"__isSmartRef__":true,"id":1747},"_id":"_16081","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1759":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1760":{"morph":{"__isSmartRef__":true,"id":1747},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1761":{"resizeWidth":true},"1762":{"_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)"},"1763":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1764},{"__isSmartRef__":true,"id":1765},{"__isSmartRef__":true,"id":1766},{"__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},{"__isSmartRef__":true,"id":1775},{"__isSmartRef__":true,"id":1776},{"__isSmartRef__":true,"id":1777},{"__isSmartRef__":true,"id":1778},{"__isSmartRef__":true,"id":1779},{"__isSmartRef__":true,"id":1780},{"__isSmartRef__":true,"id":1781},{"__isSmartRef__":true,"id":1782}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1764":{"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)\")"},"1765":{"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)\")"},"1766":{"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)\")"},"1767":{"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)\")"},"1768":{"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)\")"},"1769":{"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)\")"},"1770":{"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)\")"},"1771":{"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)\")"},"1772":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1773":{"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)\")"},"1774":{"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)\")"},"1775":{"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)\")"},"1776":{"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)\")"},"1777":{"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)\")"},"1778":{"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)\")"},"1779":{"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)\")"},"1780":{"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)\")"},"1781":{"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)\")"},"1782":{"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)\")"},"1783":{"morph":{"__isSmartRef__":true,"id":1746},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1784":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1785}},"1785":{"test01IsMorph":{"__isSmartRef__":true,"id":1786}},"1786":{"varMapping":{"__isSmartRef__":true,"id":1787},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1787":{"this":{"__isSmartRef__":true,"id":1784}},"1788":{},"1789":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1790},"_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":1791},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1792},"_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)"},"1790":{"_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)"},"1791":{"morph":{"__isSmartRef__":true,"id":1789},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1792":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1793}],"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)\")"},"1793":{"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)\")"},"1794":{"submorphs":[{"__isSmartRef__":true,"id":1795}],"scripts":[],"id":"94E164E4-3CAF-49FC-9240-79871CAF0430","shape":{"__isSmartRef__":true,"id":1810},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1811},"eventHandler":{"__isSmartRef__":true,"id":1831},"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":1832},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1837},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1795},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1314},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2274}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7342},"__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)"},"1795":{"submorphs":[],"scripts":[],"id":"4420BA9A-5DB5-4E79-ACB2-9E0896523C0E","shape":{"__isSmartRef__":true,"id":1796},"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":1797},"textChunks":[{"__isSmartRef__":true,"id":1806}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1808},"_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":1809},"owner":{"__isSmartRef__":true,"id":1794},"_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)"},"1796":{"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)"},"1797":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1798},{"__isSmartRef__":true,"id":1799},{"__isSmartRef__":true,"id":1800},{"__isSmartRef__":true,"id":1801},{"__isSmartRef__":true,"id":1802},{"__isSmartRef__":true,"id":1803},{"__isSmartRef__":true,"id":1804},{"__isSmartRef__":true,"id":1805}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1798":{"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)\")"},"1799":{"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)\")"},"1800":{"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)\")"},"1801":{"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)\")"},"1802":{"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)\")"},"1803":{"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)\")"},"1804":{"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)\")"},"1805":{"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)\")"},"1806":{"style":{"__isSmartRef__":true,"id":1807},"chunkOwner":{"__isSmartRef__":true,"id":1795},"_id":"_16080","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1807":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1808":{"morph":{"__isSmartRef__":true,"id":1795},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1809":{"resizeWidth":true},"1810":{"_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)"},"1811":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1812},{"__isSmartRef__":true,"id":1813},{"__isSmartRef__":true,"id":1814},{"__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},{"__isSmartRef__":true,"id":1823},{"__isSmartRef__":true,"id":1824},{"__isSmartRef__":true,"id":1825},{"__isSmartRef__":true,"id":1826},{"__isSmartRef__":true,"id":1827},{"__isSmartRef__":true,"id":1828},{"__isSmartRef__":true,"id":1829},{"__isSmartRef__":true,"id":1830}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1812":{"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)\")"},"1813":{"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)\")"},"1814":{"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)\")"},"1815":{"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)\")"},"1816":{"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)\")"},"1817":{"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)\")"},"1818":{"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)\")"},"1819":{"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)\")"},"1820":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1821":{"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)\")"},"1822":{"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)\")"},"1823":{"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)\")"},"1824":{"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)\")"},"1825":{"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)\")"},"1826":{"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)\")"},"1827":{"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)\")"},"1828":{"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)\")"},"1829":{"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)\")"},"1830":{"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)\")"},"1831":{"morph":{"__isSmartRef__":true,"id":1794},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1832":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1833}},"1833":{"test01IsMorph":{"__isSmartRef__":true,"id":1834}},"1834":{"varMapping":{"__isSmartRef__":true,"id":1835},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1835":{"this":{"__isSmartRef__":true,"id":1832}},"1836":{},"1837":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1838},"_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":1839},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1840},"_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)"},"1838":{"_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)"},"1839":{"morph":{"__isSmartRef__":true,"id":1837},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1840":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1841}],"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)\")"},"1841":{"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)\")"},"1842":{"submorphs":[{"__isSmartRef__":true,"id":1843}],"scripts":[],"id":"EF8A4379-F01C-4FAF-9907-E68C975C4606","shape":{"__isSmartRef__":true,"id":1858},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1859},"eventHandler":{"__isSmartRef__":true,"id":1879},"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":1880},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1885},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1843},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1266},{"__isSmartRef__":true,"id":1314},{"__isSmartRef__":true,"id":1362},{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2226}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7280},"__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)"},"1843":{"submorphs":[],"scripts":[],"id":"E2B15E5B-36CE-49ED-BF78-0E40810A14ED","shape":{"__isSmartRef__":true,"id":1844},"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":1845},"textChunks":[{"__isSmartRef__":true,"id":1854}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1856},"_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":1857},"owner":{"__isSmartRef__":true,"id":1842},"_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)"},"1844":{"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)"},"1845":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1846},{"__isSmartRef__":true,"id":1847},{"__isSmartRef__":true,"id":1848},{"__isSmartRef__":true,"id":1849},{"__isSmartRef__":true,"id":1850},{"__isSmartRef__":true,"id":1851},{"__isSmartRef__":true,"id":1852},{"__isSmartRef__":true,"id":1853}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1846":{"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)\")"},"1847":{"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)\")"},"1848":{"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)\")"},"1849":{"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)\")"},"1850":{"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)\")"},"1851":{"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)\")"},"1852":{"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)\")"},"1853":{"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)\")"},"1854":{"style":{"__isSmartRef__":true,"id":1855},"chunkOwner":{"__isSmartRef__":true,"id":1843},"_id":"_16079","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1855":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1856":{"morph":{"__isSmartRef__":true,"id":1843},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1857":{"resizeWidth":true},"1858":{"_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)"},"1859":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1860},{"__isSmartRef__":true,"id":1861},{"__isSmartRef__":true,"id":1862},{"__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},{"__isSmartRef__":true,"id":1871},{"__isSmartRef__":true,"id":1872},{"__isSmartRef__":true,"id":1873},{"__isSmartRef__":true,"id":1874},{"__isSmartRef__":true,"id":1875},{"__isSmartRef__":true,"id":1876},{"__isSmartRef__":true,"id":1877},{"__isSmartRef__":true,"id":1878}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1860":{"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)\")"},"1861":{"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)\")"},"1862":{"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)\")"},"1863":{"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)\")"},"1864":{"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)\")"},"1865":{"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)\")"},"1866":{"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)\")"},"1867":{"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)\")"},"1868":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1869":{"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)\")"},"1870":{"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)\")"},"1871":{"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)\")"},"1872":{"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)\")"},"1873":{"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)\")"},"1874":{"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)\")"},"1875":{"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)\")"},"1876":{"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)\")"},"1877":{"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)\")"},"1878":{"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)\")"},"1879":{"morph":{"__isSmartRef__":true,"id":1842},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1880":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1881}},"1881":{"test01IsMorph":{"__isSmartRef__":true,"id":1882}},"1882":{"varMapping":{"__isSmartRef__":true,"id":1883},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1883":{"this":{"__isSmartRef__":true,"id":1880}},"1884":{},"1885":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1886},"_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":1887},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1888},"_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)"},"1886":{"_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)"},"1887":{"morph":{"__isSmartRef__":true,"id":1885},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1888":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1889}],"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)\")"},"1889":{"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)\")"},"1890":{"submorphs":[{"__isSmartRef__":true,"id":1891}],"scripts":[],"id":"4E6CAC6A-FC62-45FD-A725-B7C113A9EA0A","shape":{"__isSmartRef__":true,"id":1906},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1907},"eventHandler":{"__isSmartRef__":true,"id":1927},"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":1928},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1933},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1891},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1266},{"__isSmartRef__":true,"id":1314},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2178}],"neighborCount":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7218},"__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)"},"1891":{"submorphs":[],"scripts":[],"id":"1905898A-78DE-425A-A0AD-A33772B1691C","shape":{"__isSmartRef__":true,"id":1892},"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":1893},"textChunks":[{"__isSmartRef__":true,"id":1902}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1904},"_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":1905},"owner":{"__isSmartRef__":true,"id":1890},"_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)"},"1892":{"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)"},"1893":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1894},{"__isSmartRef__":true,"id":1895},{"__isSmartRef__":true,"id":1896},{"__isSmartRef__":true,"id":1897},{"__isSmartRef__":true,"id":1898},{"__isSmartRef__":true,"id":1899},{"__isSmartRef__":true,"id":1900},{"__isSmartRef__":true,"id":1901}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1894":{"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)\")"},"1895":{"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)\")"},"1896":{"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)\")"},"1897":{"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)\")"},"1898":{"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)\")"},"1899":{"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)\")"},"1900":{"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)\")"},"1901":{"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)\")"},"1902":{"style":{"__isSmartRef__":true,"id":1903},"chunkOwner":{"__isSmartRef__":true,"id":1891},"_id":"_16078","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1903":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1904":{"morph":{"__isSmartRef__":true,"id":1891},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1905":{"resizeWidth":true},"1906":{"_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)"},"1907":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1908},{"__isSmartRef__":true,"id":1909},{"__isSmartRef__":true,"id":1910},{"__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},{"__isSmartRef__":true,"id":1919},{"__isSmartRef__":true,"id":1920},{"__isSmartRef__":true,"id":1921},{"__isSmartRef__":true,"id":1922},{"__isSmartRef__":true,"id":1923},{"__isSmartRef__":true,"id":1924},{"__isSmartRef__":true,"id":1925},{"__isSmartRef__":true,"id":1926}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1908":{"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)\")"},"1909":{"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)\")"},"1910":{"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)\")"},"1911":{"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)\")"},"1912":{"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)\")"},"1913":{"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)\")"},"1914":{"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)\")"},"1915":{"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)\")"},"1916":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1917":{"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)\")"},"1918":{"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)\")"},"1919":{"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)\")"},"1920":{"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)\")"},"1921":{"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)\")"},"1922":{"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)\")"},"1923":{"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)\")"},"1924":{"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)\")"},"1925":{"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)\")"},"1926":{"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)\")"},"1927":{"morph":{"__isSmartRef__":true,"id":1890},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1928":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1929}},"1929":{"test01IsMorph":{"__isSmartRef__":true,"id":1930}},"1930":{"varMapping":{"__isSmartRef__":true,"id":1931},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1931":{"this":{"__isSmartRef__":true,"id":1928}},"1932":{},"1933":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1934},"_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":1935},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1936},"_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)"},"1934":{"_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)"},"1935":{"morph":{"__isSmartRef__":true,"id":1933},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1936":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1937}],"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)\")"},"1937":{"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)\")"},"1938":{"submorphs":[{"__isSmartRef__":true,"id":1939}],"scripts":[],"id":"E73839AD-E76A-4FE3-BF7F-09D6E0456ECF","shape":{"__isSmartRef__":true,"id":1954},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1955},"eventHandler":{"__isSmartRef__":true,"id":1975},"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":1976},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":1981},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1939},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1170},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1266},{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2130}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7156},"__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)"},"1939":{"submorphs":[],"scripts":[],"id":"E1A74FCA-B41B-44B2-86F8-F780CB601520","shape":{"__isSmartRef__":true,"id":1940},"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":1941},"textChunks":[{"__isSmartRef__":true,"id":1950}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1952},"_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":1953},"owner":{"__isSmartRef__":true,"id":1938},"_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)"},"1940":{"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)"},"1941":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1942},{"__isSmartRef__":true,"id":1943},{"__isSmartRef__":true,"id":1944},{"__isSmartRef__":true,"id":1945},{"__isSmartRef__":true,"id":1946},{"__isSmartRef__":true,"id":1947},{"__isSmartRef__":true,"id":1948},{"__isSmartRef__":true,"id":1949}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1942":{"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)\")"},"1943":{"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)\")"},"1944":{"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)\")"},"1945":{"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)\")"},"1946":{"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)\")"},"1947":{"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)\")"},"1948":{"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)\")"},"1949":{"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)\")"},"1950":{"style":{"__isSmartRef__":true,"id":1951},"chunkOwner":{"__isSmartRef__":true,"id":1939},"_id":"_16077","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1951":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1952":{"morph":{"__isSmartRef__":true,"id":1939},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1953":{"resizeWidth":true},"1954":{"_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)"},"1955":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1956},{"__isSmartRef__":true,"id":1957},{"__isSmartRef__":true,"id":1958},{"__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},{"__isSmartRef__":true,"id":1967},{"__isSmartRef__":true,"id":1968},{"__isSmartRef__":true,"id":1969},{"__isSmartRef__":true,"id":1970},{"__isSmartRef__":true,"id":1971},{"__isSmartRef__":true,"id":1972},{"__isSmartRef__":true,"id":1973},{"__isSmartRef__":true,"id":1974}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"1956":{"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)\")"},"1957":{"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)\")"},"1958":{"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)\")"},"1959":{"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)\")"},"1960":{"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)\")"},"1961":{"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)\")"},"1962":{"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)\")"},"1963":{"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)\")"},"1964":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1965":{"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)\")"},"1966":{"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)\")"},"1967":{"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)\")"},"1968":{"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)\")"},"1969":{"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)\")"},"1970":{"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)\")"},"1971":{"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)\")"},"1972":{"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)\")"},"1973":{"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)\")"},"1974":{"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)\")"},"1975":{"morph":{"__isSmartRef__":true,"id":1938},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1976":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1977}},"1977":{"test01IsMorph":{"__isSmartRef__":true,"id":1978}},"1978":{"varMapping":{"__isSmartRef__":true,"id":1979},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1979":{"this":{"__isSmartRef__":true,"id":1976}},"1980":{},"1981":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1982},"_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":1983},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1984},"_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)"},"1982":{"_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)"},"1983":{"morph":{"__isSmartRef__":true,"id":1981},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1984":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":1985}],"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)\")"},"1985":{"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)\")"},"1986":{"submorphs":[{"__isSmartRef__":true,"id":1987}],"scripts":[],"id":"2D5302C8-092D-4A63-A03B-B2D2A8575146","shape":{"__isSmartRef__":true,"id":2002},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2003},"eventHandler":{"__isSmartRef__":true,"id":2023},"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":2024},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2029},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":1987},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1170},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2082}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7094},"__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)"},"1987":{"submorphs":[],"scripts":[],"id":"750A7815-F527-4231-A67A-54890A58168E","shape":{"__isSmartRef__":true,"id":1988},"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":1989},"textChunks":[{"__isSmartRef__":true,"id":1998}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2000},"_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":2001},"owner":{"__isSmartRef__":true,"id":1986},"_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)"},"1988":{"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)"},"1989":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1990},{"__isSmartRef__":true,"id":1991},{"__isSmartRef__":true,"id":1992},{"__isSmartRef__":true,"id":1993},{"__isSmartRef__":true,"id":1994},{"__isSmartRef__":true,"id":1995},{"__isSmartRef__":true,"id":1996},{"__isSmartRef__":true,"id":1997}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"1990":{"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)\")"},"1991":{"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)\")"},"1992":{"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)\")"},"1993":{"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)\")"},"1994":{"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)\")"},"1995":{"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)\")"},"1996":{"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)\")"},"1997":{"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)\")"},"1998":{"style":{"__isSmartRef__":true,"id":1999},"chunkOwner":{"__isSmartRef__":true,"id":1987},"_id":"_16076","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1999":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2000":{"morph":{"__isSmartRef__":true,"id":1987},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2001":{"resizeWidth":true},"2002":{"_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)"},"2003":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2004},{"__isSmartRef__":true,"id":2005},{"__isSmartRef__":true,"id":2006},{"__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},{"__isSmartRef__":true,"id":2015},{"__isSmartRef__":true,"id":2016},{"__isSmartRef__":true,"id":2017},{"__isSmartRef__":true,"id":2018},{"__isSmartRef__":true,"id":2019},{"__isSmartRef__":true,"id":2020},{"__isSmartRef__":true,"id":2021},{"__isSmartRef__":true,"id":2022}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2004":{"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)\")"},"2005":{"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)\")"},"2006":{"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)\")"},"2007":{"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)\")"},"2008":{"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)\")"},"2009":{"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)\")"},"2010":{"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)\")"},"2011":{"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)\")"},"2012":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2013":{"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)\")"},"2014":{"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)\")"},"2015":{"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)\")"},"2016":{"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)\")"},"2017":{"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)\")"},"2018":{"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)\")"},"2019":{"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)\")"},"2020":{"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)\")"},"2021":{"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)\")"},"2022":{"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)\")"},"2023":{"morph":{"__isSmartRef__":true,"id":1986},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2024":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2025}},"2025":{"test01IsMorph":{"__isSmartRef__":true,"id":2026}},"2026":{"varMapping":{"__isSmartRef__":true,"id":2027},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2027":{"this":{"__isSmartRef__":true,"id":2024}},"2028":{},"2029":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2030},"_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":2031},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2032},"_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)"},"2030":{"_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)"},"2031":{"morph":{"__isSmartRef__":true,"id":2029},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2032":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2033}],"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)\")"},"2033":{"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)\")"},"2034":{"submorphs":[{"__isSmartRef__":true,"id":2035}],"scripts":[],"id":"2F7BB266-8FFA-424E-AD36-1EA5DE092198","shape":{"__isSmartRef__":true,"id":2050},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2051},"eventHandler":{"__isSmartRef__":true,"id":2071},"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":2072},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2077},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2035},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2802}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7032},"__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)"},"2035":{"submorphs":[],"scripts":[],"id":"430B1D8C-5562-4AAD-AC91-781413C58EE1","shape":{"__isSmartRef__":true,"id":2036},"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":2037},"textChunks":[{"__isSmartRef__":true,"id":2046}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2048},"_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":2049},"owner":{"__isSmartRef__":true,"id":2034},"_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)"},"2036":{"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)"},"2037":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2038},{"__isSmartRef__":true,"id":2039},{"__isSmartRef__":true,"id":2040},{"__isSmartRef__":true,"id":2041},{"__isSmartRef__":true,"id":2042},{"__isSmartRef__":true,"id":2043},{"__isSmartRef__":true,"id":2044},{"__isSmartRef__":true,"id":2045}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2038":{"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)\")"},"2039":{"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)\")"},"2040":{"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)\")"},"2041":{"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)\")"},"2042":{"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)\")"},"2043":{"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)\")"},"2044":{"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)\")"},"2045":{"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)\")"},"2046":{"style":{"__isSmartRef__":true,"id":2047},"chunkOwner":{"__isSmartRef__":true,"id":2035},"_id":"_16085","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2047":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2048":{"morph":{"__isSmartRef__":true,"id":2035},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2049":{"resizeWidth":true},"2050":{"_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)"},"2051":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2052},{"__isSmartRef__":true,"id":2053},{"__isSmartRef__":true,"id":2054},{"__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},{"__isSmartRef__":true,"id":2063},{"__isSmartRef__":true,"id":2064},{"__isSmartRef__":true,"id":2065},{"__isSmartRef__":true,"id":2066},{"__isSmartRef__":true,"id":2067},{"__isSmartRef__":true,"id":2068},{"__isSmartRef__":true,"id":2069},{"__isSmartRef__":true,"id":2070}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2052":{"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)\")"},"2053":{"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)\")"},"2054":{"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)\")"},"2055":{"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)\")"},"2056":{"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)\")"},"2057":{"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)\")"},"2058":{"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)\")"},"2059":{"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)\")"},"2060":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2061":{"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)\")"},"2062":{"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)\")"},"2063":{"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)\")"},"2064":{"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)\")"},"2065":{"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)\")"},"2066":{"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)\")"},"2067":{"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)\")"},"2068":{"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)\")"},"2069":{"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)\")"},"2070":{"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)\")"},"2071":{"morph":{"__isSmartRef__":true,"id":2034},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2072":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2073}},"2073":{"test01IsMorph":{"__isSmartRef__":true,"id":2074}},"2074":{"varMapping":{"__isSmartRef__":true,"id":2075},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2075":{"this":{"__isSmartRef__":true,"id":2072}},"2076":{},"2077":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2078},"_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":2079},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2080},"_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)"},"2078":{"_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)"},"2079":{"morph":{"__isSmartRef__":true,"id":2077},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2080":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2081}],"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)\")"},"2081":{"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)\")"},"2082":{"submorphs":[{"__isSmartRef__":true,"id":2083}],"scripts":[],"id":"58E7326C-A0FC-4520-8B21-24B989D9D7D9","shape":{"__isSmartRef__":true,"id":2098},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2099},"eventHandler":{"__isSmartRef__":true,"id":2119},"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":2120},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2125},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2083},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2754}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6970},"__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)"},"2083":{"submorphs":[],"scripts":[],"id":"FA37302B-8FD9-4F47-BF3D-84B10C9F1E25","shape":{"__isSmartRef__":true,"id":2084},"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":2085},"textChunks":[{"__isSmartRef__":true,"id":2094}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2096},"_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":2097},"owner":{"__isSmartRef__":true,"id":2082},"_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)"},"2084":{"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)"},"2085":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2086},{"__isSmartRef__":true,"id":2087},{"__isSmartRef__":true,"id":2088},{"__isSmartRef__":true,"id":2089},{"__isSmartRef__":true,"id":2090},{"__isSmartRef__":true,"id":2091},{"__isSmartRef__":true,"id":2092},{"__isSmartRef__":true,"id":2093}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2086":{"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)\")"},"2087":{"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)\")"},"2088":{"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)\")"},"2089":{"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)\")"},"2090":{"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)\")"},"2091":{"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)\")"},"2092":{"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)\")"},"2093":{"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)\")"},"2094":{"style":{"__isSmartRef__":true,"id":2095},"chunkOwner":{"__isSmartRef__":true,"id":2083},"_id":"_16086","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2095":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2096":{"morph":{"__isSmartRef__":true,"id":2083},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2097":{"resizeWidth":true},"2098":{"_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)"},"2099":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2100},{"__isSmartRef__":true,"id":2101},{"__isSmartRef__":true,"id":2102},{"__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},{"__isSmartRef__":true,"id":2111},{"__isSmartRef__":true,"id":2112},{"__isSmartRef__":true,"id":2113},{"__isSmartRef__":true,"id":2114},{"__isSmartRef__":true,"id":2115},{"__isSmartRef__":true,"id":2116},{"__isSmartRef__":true,"id":2117},{"__isSmartRef__":true,"id":2118}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2100":{"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)\")"},"2101":{"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)\")"},"2102":{"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)\")"},"2103":{"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)\")"},"2104":{"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)\")"},"2105":{"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)\")"},"2106":{"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)\")"},"2107":{"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)\")"},"2108":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2109":{"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)\")"},"2110":{"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)\")"},"2111":{"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)\")"},"2112":{"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)\")"},"2113":{"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)\")"},"2114":{"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)\")"},"2115":{"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)\")"},"2116":{"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)\")"},"2117":{"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)\")"},"2118":{"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)\")"},"2119":{"morph":{"__isSmartRef__":true,"id":2082},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2120":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2121}},"2121":{"test01IsMorph":{"__isSmartRef__":true,"id":2122}},"2122":{"varMapping":{"__isSmartRef__":true,"id":2123},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2123":{"this":{"__isSmartRef__":true,"id":2120}},"2124":{},"2125":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2126},"_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":2127},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2128},"_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)"},"2126":{"_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)"},"2127":{"morph":{"__isSmartRef__":true,"id":2125},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2128":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2129}],"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)\")"},"2129":{"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)\")"},"2130":{"submorphs":[{"__isSmartRef__":true,"id":2131}],"scripts":[],"id":"B3BF732A-3C66-4BCA-A54F-764030734049","shape":{"__isSmartRef__":true,"id":2146},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2147},"eventHandler":{"__isSmartRef__":true,"id":2167},"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":2168},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2173},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2131},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2706}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6908},"__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)"},"2131":{"submorphs":[],"scripts":[],"id":"CF2E2D69-9950-4EAF-8FEC-E88EA0BEFFD6","shape":{"__isSmartRef__":true,"id":2132},"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":2133},"textChunks":[{"__isSmartRef__":true,"id":2142}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2144},"_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":2145},"owner":{"__isSmartRef__":true,"id":2130},"_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)"},"2132":{"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)"},"2133":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2134},{"__isSmartRef__":true,"id":2135},{"__isSmartRef__":true,"id":2136},{"__isSmartRef__":true,"id":2137},{"__isSmartRef__":true,"id":2138},{"__isSmartRef__":true,"id":2139},{"__isSmartRef__":true,"id":2140},{"__isSmartRef__":true,"id":2141}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2134":{"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)\")"},"2135":{"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)\")"},"2136":{"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)\")"},"2137":{"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)\")"},"2138":{"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)\")"},"2139":{"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)\")"},"2140":{"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)\")"},"2141":{"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)\")"},"2142":{"style":{"__isSmartRef__":true,"id":2143},"chunkOwner":{"__isSmartRef__":true,"id":2131},"_id":"_16087","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2143":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2144":{"morph":{"__isSmartRef__":true,"id":2131},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2145":{"resizeWidth":true},"2146":{"_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)"},"2147":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2148},{"__isSmartRef__":true,"id":2149},{"__isSmartRef__":true,"id":2150},{"__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},{"__isSmartRef__":true,"id":2159},{"__isSmartRef__":true,"id":2160},{"__isSmartRef__":true,"id":2161},{"__isSmartRef__":true,"id":2162},{"__isSmartRef__":true,"id":2163},{"__isSmartRef__":true,"id":2164},{"__isSmartRef__":true,"id":2165},{"__isSmartRef__":true,"id":2166}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2148":{"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)\")"},"2149":{"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)\")"},"2150":{"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)\")"},"2151":{"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)\")"},"2152":{"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)\")"},"2153":{"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)\")"},"2154":{"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)\")"},"2155":{"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)\")"},"2156":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2157":{"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)\")"},"2158":{"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)\")"},"2159":{"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)\")"},"2160":{"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)\")"},"2161":{"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)\")"},"2162":{"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)\")"},"2163":{"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)\")"},"2164":{"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)\")"},"2165":{"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)\")"},"2166":{"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)\")"},"2167":{"morph":{"__isSmartRef__":true,"id":2130},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2168":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2169}},"2169":{"test01IsMorph":{"__isSmartRef__":true,"id":2170}},"2170":{"varMapping":{"__isSmartRef__":true,"id":2171},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2171":{"this":{"__isSmartRef__":true,"id":2168}},"2172":{},"2173":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2174},"_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":2175},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2176},"_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)"},"2174":{"_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)"},"2175":{"morph":{"__isSmartRef__":true,"id":2173},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2176":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2177}],"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)\")"},"2177":{"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)\")"},"2178":{"submorphs":[{"__isSmartRef__":true,"id":2179}],"scripts":[],"id":"BA1EEA23-1E3A-44EF-9B1B-0BB9142F7921","shape":{"__isSmartRef__":true,"id":2194},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2195},"eventHandler":{"__isSmartRef__":true,"id":2215},"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":2216},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2221},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2179},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2658}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6846},"__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)"},"2179":{"submorphs":[],"scripts":[],"id":"ACFF0083-71BA-4019-9AD4-C0714810B69D","shape":{"__isSmartRef__":true,"id":2180},"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":2181},"textChunks":[{"__isSmartRef__":true,"id":2190}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2192},"_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":2193},"owner":{"__isSmartRef__":true,"id":2178},"_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)"},"2180":{"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)"},"2181":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2182},{"__isSmartRef__":true,"id":2183},{"__isSmartRef__":true,"id":2184},{"__isSmartRef__":true,"id":2185},{"__isSmartRef__":true,"id":2186},{"__isSmartRef__":true,"id":2187},{"__isSmartRef__":true,"id":2188},{"__isSmartRef__":true,"id":2189}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2182":{"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)\")"},"2183":{"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)\")"},"2184":{"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)\")"},"2185":{"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)\")"},"2186":{"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)\")"},"2187":{"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)\")"},"2188":{"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)\")"},"2189":{"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)\")"},"2190":{"style":{"__isSmartRef__":true,"id":2191},"chunkOwner":{"__isSmartRef__":true,"id":2179},"_id":"_16088","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2191":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2192":{"morph":{"__isSmartRef__":true,"id":2179},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2193":{"resizeWidth":true},"2194":{"_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)"},"2195":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2196},{"__isSmartRef__":true,"id":2197},{"__isSmartRef__":true,"id":2198},{"__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},{"__isSmartRef__":true,"id":2207},{"__isSmartRef__":true,"id":2208},{"__isSmartRef__":true,"id":2209},{"__isSmartRef__":true,"id":2210},{"__isSmartRef__":true,"id":2211},{"__isSmartRef__":true,"id":2212},{"__isSmartRef__":true,"id":2213},{"__isSmartRef__":true,"id":2214}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2196":{"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)\")"},"2197":{"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)\")"},"2198":{"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)\")"},"2199":{"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)\")"},"2200":{"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)\")"},"2201":{"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)\")"},"2202":{"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)\")"},"2203":{"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)\")"},"2204":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2205":{"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)\")"},"2206":{"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)\")"},"2207":{"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)\")"},"2208":{"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)\")"},"2209":{"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)\")"},"2210":{"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)\")"},"2211":{"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)\")"},"2212":{"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)\")"},"2213":{"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)\")"},"2214":{"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)\")"},"2215":{"morph":{"__isSmartRef__":true,"id":2178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2216":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2217}},"2217":{"test01IsMorph":{"__isSmartRef__":true,"id":2218}},"2218":{"varMapping":{"__isSmartRef__":true,"id":2219},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2219":{"this":{"__isSmartRef__":true,"id":2216}},"2220":{},"2221":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2222},"_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":2223},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2224},"_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)"},"2222":{"_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)"},"2223":{"morph":{"__isSmartRef__":true,"id":2221},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2224":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2225}],"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)\")"},"2225":{"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)\")"},"2226":{"submorphs":[{"__isSmartRef__":true,"id":2227}],"scripts":[],"id":"CAEBEDF0-966C-49D7-B8CB-C863574D56FC","shape":{"__isSmartRef__":true,"id":2242},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2243},"eventHandler":{"__isSmartRef__":true,"id":2263},"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":2264},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2269},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2227},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2610}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6784},"__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)"},"2227":{"submorphs":[],"scripts":[],"id":"E33AD5AE-F71D-435B-A04B-473D60673988","shape":{"__isSmartRef__":true,"id":2228},"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":2229},"textChunks":[{"__isSmartRef__":true,"id":2238}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2240},"_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":2241},"owner":{"__isSmartRef__":true,"id":2226},"_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)"},"2228":{"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)"},"2229":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2230},{"__isSmartRef__":true,"id":2231},{"__isSmartRef__":true,"id":2232},{"__isSmartRef__":true,"id":2233},{"__isSmartRef__":true,"id":2234},{"__isSmartRef__":true,"id":2235},{"__isSmartRef__":true,"id":2236},{"__isSmartRef__":true,"id":2237}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2230":{"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)\")"},"2231":{"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)\")"},"2232":{"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)\")"},"2233":{"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)\")"},"2234":{"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)\")"},"2235":{"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)\")"},"2236":{"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)\")"},"2237":{"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)\")"},"2238":{"style":{"__isSmartRef__":true,"id":2239},"chunkOwner":{"__isSmartRef__":true,"id":2227},"_id":"_16089","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2239":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2240":{"morph":{"__isSmartRef__":true,"id":2227},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2241":{"resizeWidth":true},"2242":{"_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)"},"2243":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2244},{"__isSmartRef__":true,"id":2245},{"__isSmartRef__":true,"id":2246},{"__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},{"__isSmartRef__":true,"id":2255},{"__isSmartRef__":true,"id":2256},{"__isSmartRef__":true,"id":2257},{"__isSmartRef__":true,"id":2258},{"__isSmartRef__":true,"id":2259},{"__isSmartRef__":true,"id":2260},{"__isSmartRef__":true,"id":2261},{"__isSmartRef__":true,"id":2262}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2244":{"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)\")"},"2245":{"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)\")"},"2246":{"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)\")"},"2247":{"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)\")"},"2248":{"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)\")"},"2249":{"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)\")"},"2250":{"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)\")"},"2251":{"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)\")"},"2252":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2253":{"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)\")"},"2254":{"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)\")"},"2255":{"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)\")"},"2256":{"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)\")"},"2257":{"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)\")"},"2258":{"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)\")"},"2259":{"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)\")"},"2260":{"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)\")"},"2261":{"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)\")"},"2262":{"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)\")"},"2263":{"morph":{"__isSmartRef__":true,"id":2226},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2264":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2265}},"2265":{"test01IsMorph":{"__isSmartRef__":true,"id":2266}},"2266":{"varMapping":{"__isSmartRef__":true,"id":2267},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2267":{"this":{"__isSmartRef__":true,"id":2264}},"2268":{},"2269":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2270},"_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":2271},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2272},"_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)"},"2270":{"_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)"},"2271":{"morph":{"__isSmartRef__":true,"id":2269},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2272":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2273}],"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)\")"},"2273":{"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)\")"},"2274":{"submorphs":[{"__isSmartRef__":true,"id":2275}],"scripts":[],"id":"6E60796B-ED31-437E-A887-862A20B50B48","shape":{"__isSmartRef__":true,"id":2290},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2291},"eventHandler":{"__isSmartRef__":true,"id":2311},"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":2312},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2317},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2275},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1794},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2562}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6722},"__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)"},"2275":{"submorphs":[],"scripts":[],"id":"F76D1E64-7108-423F-BB53-E7529F2B2ECF","shape":{"__isSmartRef__":true,"id":2276},"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":2277},"textChunks":[{"__isSmartRef__":true,"id":2286}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2288},"_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":2289},"owner":{"__isSmartRef__":true,"id":2274},"_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)"},"2276":{"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)"},"2277":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2278},{"__isSmartRef__":true,"id":2279},{"__isSmartRef__":true,"id":2280},{"__isSmartRef__":true,"id":2281},{"__isSmartRef__":true,"id":2282},{"__isSmartRef__":true,"id":2283},{"__isSmartRef__":true,"id":2284},{"__isSmartRef__":true,"id":2285}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2278":{"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)\")"},"2279":{"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)\")"},"2280":{"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)\")"},"2281":{"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)\")"},"2282":{"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)\")"},"2283":{"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)\")"},"2284":{"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)\")"},"2285":{"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)\")"},"2286":{"style":{"__isSmartRef__":true,"id":2287},"chunkOwner":{"__isSmartRef__":true,"id":2275},"_id":"_16090","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2287":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2288":{"morph":{"__isSmartRef__":true,"id":2275},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2289":{"resizeWidth":true},"2290":{"_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)"},"2291":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2292},{"__isSmartRef__":true,"id":2293},{"__isSmartRef__":true,"id":2294},{"__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},{"__isSmartRef__":true,"id":2303},{"__isSmartRef__":true,"id":2304},{"__isSmartRef__":true,"id":2305},{"__isSmartRef__":true,"id":2306},{"__isSmartRef__":true,"id":2307},{"__isSmartRef__":true,"id":2308},{"__isSmartRef__":true,"id":2309},{"__isSmartRef__":true,"id":2310}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2292":{"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)\")"},"2293":{"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)\")"},"2294":{"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)\")"},"2295":{"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)\")"},"2296":{"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)\")"},"2297":{"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)\")"},"2298":{"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)\")"},"2299":{"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)\")"},"2300":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2301":{"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)\")"},"2302":{"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)\")"},"2303":{"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)\")"},"2304":{"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)\")"},"2305":{"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)\")"},"2306":{"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)\")"},"2307":{"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)\")"},"2308":{"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)\")"},"2309":{"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)\")"},"2310":{"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)\")"},"2311":{"morph":{"__isSmartRef__":true,"id":2274},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2312":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2313}},"2313":{"test01IsMorph":{"__isSmartRef__":true,"id":2314}},"2314":{"varMapping":{"__isSmartRef__":true,"id":2315},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2315":{"this":{"__isSmartRef__":true,"id":2312}},"2316":{},"2317":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2318},"_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":2319},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2320},"_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)"},"2318":{"_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)"},"2319":{"morph":{"__isSmartRef__":true,"id":2317},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2320":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2321}],"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)\")"},"2321":{"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)\")"},"2322":{"submorphs":[{"__isSmartRef__":true,"id":2323}],"scripts":[],"id":"16AD9E2D-AA9A-4D28-982E-A9FD14391818","shape":{"__isSmartRef__":true,"id":2338},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2339},"eventHandler":{"__isSmartRef__":true,"id":2359},"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":2360},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2365},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2323},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":2514}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6660},"__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)"},"2323":{"submorphs":[],"scripts":[],"id":"75159141-883D-424E-8DA3-6AC29347BED0","shape":{"__isSmartRef__":true,"id":2324},"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":2325},"textChunks":[{"__isSmartRef__":true,"id":2334}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2336},"_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":2337},"owner":{"__isSmartRef__":true,"id":2322},"_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)"},"2324":{"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)"},"2325":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2326},{"__isSmartRef__":true,"id":2327},{"__isSmartRef__":true,"id":2328},{"__isSmartRef__":true,"id":2329},{"__isSmartRef__":true,"id":2330},{"__isSmartRef__":true,"id":2331},{"__isSmartRef__":true,"id":2332},{"__isSmartRef__":true,"id":2333}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2326":{"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)\")"},"2327":{"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)\")"},"2328":{"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)\")"},"2329":{"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)\")"},"2330":{"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)\")"},"2331":{"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)\")"},"2332":{"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)\")"},"2333":{"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)\")"},"2334":{"style":{"__isSmartRef__":true,"id":2335},"chunkOwner":{"__isSmartRef__":true,"id":2323},"_id":"_16091","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2335":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2336":{"morph":{"__isSmartRef__":true,"id":2323},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2337":{"resizeWidth":true},"2338":{"_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)"},"2339":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2340},{"__isSmartRef__":true,"id":2341},{"__isSmartRef__":true,"id":2342},{"__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},{"__isSmartRef__":true,"id":2351},{"__isSmartRef__":true,"id":2352},{"__isSmartRef__":true,"id":2353},{"__isSmartRef__":true,"id":2354},{"__isSmartRef__":true,"id":2355},{"__isSmartRef__":true,"id":2356},{"__isSmartRef__":true,"id":2357},{"__isSmartRef__":true,"id":2358}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2340":{"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)\")"},"2341":{"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)\")"},"2342":{"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)\")"},"2343":{"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)\")"},"2344":{"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)\")"},"2345":{"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)\")"},"2346":{"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)\")"},"2347":{"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)\")"},"2348":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2349":{"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)\")"},"2350":{"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)\")"},"2351":{"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)\")"},"2352":{"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)\")"},"2353":{"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)\")"},"2354":{"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)\")"},"2355":{"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)\")"},"2356":{"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)\")"},"2357":{"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)\")"},"2358":{"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)\")"},"2359":{"morph":{"__isSmartRef__":true,"id":2322},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2360":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2361}},"2361":{"test01IsMorph":{"__isSmartRef__":true,"id":2362}},"2362":{"varMapping":{"__isSmartRef__":true,"id":2363},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2363":{"this":{"__isSmartRef__":true,"id":2360}},"2364":{},"2365":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2366},"_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":2367},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2368},"_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)"},"2366":{"_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)"},"2367":{"morph":{"__isSmartRef__":true,"id":2365},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2368":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2369}],"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)\")"},"2369":{"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)\")"},"2370":{"submorphs":[{"__isSmartRef__":true,"id":2371}],"scripts":[],"id":"F7EEB062-6F2B-4D23-9AA8-10B55733E4E9","shape":{"__isSmartRef__":true,"id":2386},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2387},"eventHandler":{"__isSmartRef__":true,"id":2407},"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":2408},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2413},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2371},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":2418},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2466},{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":3282}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6598},"__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)"},"2371":{"submorphs":[],"scripts":[],"id":"0F31BCC6-187B-4548-8B02-03F695E6CC8C","shape":{"__isSmartRef__":true,"id":2372},"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":2373},"textChunks":[{"__isSmartRef__":true,"id":2382}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2384},"_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":2385},"owner":{"__isSmartRef__":true,"id":2370},"_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)"},"2372":{"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)"},"2373":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2374},{"__isSmartRef__":true,"id":2375},{"__isSmartRef__":true,"id":2376},{"__isSmartRef__":true,"id":2377},{"__isSmartRef__":true,"id":2378},{"__isSmartRef__":true,"id":2379},{"__isSmartRef__":true,"id":2380},{"__isSmartRef__":true,"id":2381}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2374":{"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)\")"},"2375":{"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)\")"},"2376":{"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)\")"},"2377":{"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)\")"},"2378":{"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)\")"},"2379":{"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)\")"},"2380":{"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)\")"},"2381":{"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)\")"},"2382":{"style":{"__isSmartRef__":true,"id":2383},"chunkOwner":{"__isSmartRef__":true,"id":2371},"_id":"_16092","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2383":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2384":{"morph":{"__isSmartRef__":true,"id":2371},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2385":{"resizeWidth":true},"2386":{"_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)"},"2387":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2388},{"__isSmartRef__":true,"id":2389},{"__isSmartRef__":true,"id":2390},{"__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},{"__isSmartRef__":true,"id":2399},{"__isSmartRef__":true,"id":2400},{"__isSmartRef__":true,"id":2401},{"__isSmartRef__":true,"id":2402},{"__isSmartRef__":true,"id":2403},{"__isSmartRef__":true,"id":2404},{"__isSmartRef__":true,"id":2405},{"__isSmartRef__":true,"id":2406}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2388":{"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)\")"},"2389":{"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)\")"},"2390":{"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)\")"},"2391":{"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)\")"},"2392":{"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)\")"},"2393":{"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)\")"},"2394":{"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)\")"},"2395":{"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)\")"},"2396":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2397":{"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)\")"},"2398":{"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)\")"},"2399":{"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)\")"},"2400":{"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)\")"},"2401":{"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)\")"},"2402":{"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)\")"},"2403":{"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)\")"},"2404":{"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)\")"},"2405":{"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)\")"},"2406":{"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)\")"},"2407":{"morph":{"__isSmartRef__":true,"id":2370},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2408":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2409}},"2409":{"test01IsMorph":{"__isSmartRef__":true,"id":2410}},"2410":{"varMapping":{"__isSmartRef__":true,"id":2411},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2411":{"this":{"__isSmartRef__":true,"id":2408}},"2412":{},"2413":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2414},"_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":2415},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2416},"_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)"},"2414":{"_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)"},"2415":{"morph":{"__isSmartRef__":true,"id":2413},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2416":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2417}],"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)\")"},"2417":{"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)\")"},"2418":{"submorphs":[{"__isSmartRef__":true,"id":2419}],"scripts":[],"id":"6AA4BDC1-DFA4-4F55-8817-2E9B209C9943","shape":{"__isSmartRef__":true,"id":2434},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2435},"eventHandler":{"__isSmartRef__":true,"id":2455},"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":2456},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2461},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2419},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1506},{"__isSmartRef__":true,"id":1602},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2466}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6536},"__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)"},"2419":{"submorphs":[],"scripts":[],"id":"C73F9944-D9D0-4AB7-811B-365A49644EE0","shape":{"__isSmartRef__":true,"id":2420},"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":2421},"textChunks":[{"__isSmartRef__":true,"id":2430}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2432},"_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":2433},"owner":{"__isSmartRef__":true,"id":2418},"_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)"},"2420":{"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)"},"2421":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2422},{"__isSmartRef__":true,"id":2423},{"__isSmartRef__":true,"id":2424},{"__isSmartRef__":true,"id":2425},{"__isSmartRef__":true,"id":2426},{"__isSmartRef__":true,"id":2427},{"__isSmartRef__":true,"id":2428},{"__isSmartRef__":true,"id":2429}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2422":{"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)\")"},"2423":{"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)\")"},"2424":{"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)\")"},"2425":{"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)\")"},"2426":{"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)\")"},"2427":{"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)\")"},"2428":{"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)\")"},"2429":{"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)\")"},"2430":{"style":{"__isSmartRef__":true,"id":2431},"chunkOwner":{"__isSmartRef__":true,"id":2419},"_id":"_16084","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2431":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2432":{"morph":{"__isSmartRef__":true,"id":2419},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2433":{"resizeWidth":true},"2434":{"_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)"},"2435":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2436},{"__isSmartRef__":true,"id":2437},{"__isSmartRef__":true,"id":2438},{"__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},{"__isSmartRef__":true,"id":2447},{"__isSmartRef__":true,"id":2448},{"__isSmartRef__":true,"id":2449},{"__isSmartRef__":true,"id":2450},{"__isSmartRef__":true,"id":2451},{"__isSmartRef__":true,"id":2452},{"__isSmartRef__":true,"id":2453},{"__isSmartRef__":true,"id":2454}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2436":{"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)\")"},"2437":{"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)\")"},"2438":{"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)\")"},"2439":{"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)\")"},"2440":{"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)\")"},"2441":{"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)\")"},"2442":{"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)\")"},"2443":{"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)\")"},"2444":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2445":{"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)\")"},"2446":{"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)\")"},"2447":{"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)\")"},"2448":{"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)\")"},"2449":{"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)\")"},"2450":{"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)\")"},"2451":{"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)\")"},"2452":{"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)\")"},"2453":{"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)\")"},"2454":{"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)\")"},"2455":{"morph":{"__isSmartRef__":true,"id":2418},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2456":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2457}},"2457":{"test01IsMorph":{"__isSmartRef__":true,"id":2458}},"2458":{"varMapping":{"__isSmartRef__":true,"id":2459},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2459":{"this":{"__isSmartRef__":true,"id":2456}},"2460":{},"2461":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2462},"_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":2463},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2464},"_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)"},"2462":{"_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)"},"2463":{"morph":{"__isSmartRef__":true,"id":2461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2464":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2465}],"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)\")"},"2465":{"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)\")"},"2466":{"submorphs":[{"__isSmartRef__":true,"id":2467}],"scripts":[],"id":"B2E24007-0C9E-4B0C-98E6-C9BADCD4F2B1","shape":{"__isSmartRef__":true,"id":2482},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2483},"eventHandler":{"__isSmartRef__":true,"id":2503},"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":2504},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2509},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2467},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":2418},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":3282}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6474},"__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)"},"2467":{"submorphs":[],"scripts":[],"id":"01B5CEBC-0191-44B0-8137-35CEEBE16697","shape":{"__isSmartRef__":true,"id":2468},"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":2469},"textChunks":[{"__isSmartRef__":true,"id":2478}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2480},"_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":2481},"owner":{"__isSmartRef__":true,"id":2466},"_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)"},"2468":{"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)"},"2469":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2470},{"__isSmartRef__":true,"id":2471},{"__isSmartRef__":true,"id":2472},{"__isSmartRef__":true,"id":2473},{"__isSmartRef__":true,"id":2474},{"__isSmartRef__":true,"id":2475},{"__isSmartRef__":true,"id":2476},{"__isSmartRef__":true,"id":2477}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2470":{"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)\")"},"2471":{"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)\")"},"2472":{"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)\")"},"2473":{"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)\")"},"2474":{"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)\")"},"2475":{"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)\")"},"2476":{"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)\")"},"2477":{"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)\")"},"2478":{"style":{"__isSmartRef__":true,"id":2479},"chunkOwner":{"__isSmartRef__":true,"id":2467},"_id":"_16093","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2479":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2480":{"morph":{"__isSmartRef__":true,"id":2467},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2481":{"resizeWidth":true},"2482":{"_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)"},"2483":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2484},{"__isSmartRef__":true,"id":2485},{"__isSmartRef__":true,"id":2486},{"__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},{"__isSmartRef__":true,"id":2495},{"__isSmartRef__":true,"id":2496},{"__isSmartRef__":true,"id":2497},{"__isSmartRef__":true,"id":2498},{"__isSmartRef__":true,"id":2499},{"__isSmartRef__":true,"id":2500},{"__isSmartRef__":true,"id":2501},{"__isSmartRef__":true,"id":2502}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2484":{"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)\")"},"2485":{"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)\")"},"2486":{"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)\")"},"2487":{"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)\")"},"2488":{"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)\")"},"2489":{"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)\")"},"2490":{"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)\")"},"2491":{"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)\")"},"2492":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2493":{"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)\")"},"2494":{"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)\")"},"2495":{"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)\")"},"2496":{"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)\")"},"2497":{"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)\")"},"2498":{"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)\")"},"2499":{"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)\")"},"2500":{"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)\")"},"2501":{"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)\")"},"2502":{"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)\")"},"2503":{"morph":{"__isSmartRef__":true,"id":2466},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2504":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2505}},"2505":{"test01IsMorph":{"__isSmartRef__":true,"id":2506}},"2506":{"varMapping":{"__isSmartRef__":true,"id":2507},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2507":{"this":{"__isSmartRef__":true,"id":2504}},"2508":{},"2509":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2510},"_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":2511},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2512},"_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)"},"2510":{"_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)"},"2511":{"morph":{"__isSmartRef__":true,"id":2509},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2512":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2513}],"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)\")"},"2513":{"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)\")"},"2514":{"submorphs":[{"__isSmartRef__":true,"id":2515}],"scripts":[],"id":"D1F74F48-1CB5-4649-B189-F680CE35B502","shape":{"__isSmartRef__":true,"id":2530},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2531},"eventHandler":{"__isSmartRef__":true,"id":2551},"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":2552},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2557},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2515},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2466},{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":3282},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3234},{"__isSmartRef__":true,"id":3330}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6412},"__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)"},"2515":{"submorphs":[],"scripts":[],"id":"9689A1B4-DB38-48E8-962D-2DD2F175A104","shape":{"__isSmartRef__":true,"id":2516},"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":2517},"textChunks":[{"__isSmartRef__":true,"id":2526}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2528},"_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":2529},"owner":{"__isSmartRef__":true,"id":2514},"_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)"},"2516":{"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)"},"2517":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2518},{"__isSmartRef__":true,"id":2519},{"__isSmartRef__":true,"id":2520},{"__isSmartRef__":true,"id":2521},{"__isSmartRef__":true,"id":2522},{"__isSmartRef__":true,"id":2523},{"__isSmartRef__":true,"id":2524},{"__isSmartRef__":true,"id":2525}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2518":{"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)\")"},"2519":{"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)\")"},"2520":{"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)\")"},"2521":{"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)\")"},"2522":{"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)\")"},"2523":{"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)\")"},"2524":{"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)\")"},"2525":{"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)\")"},"2526":{"style":{"__isSmartRef__":true,"id":2527},"chunkOwner":{"__isSmartRef__":true,"id":2515},"_id":"_16101","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2527":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2528":{"morph":{"__isSmartRef__":true,"id":2515},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2529":{"resizeWidth":true},"2530":{"_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)"},"2531":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2532},{"__isSmartRef__":true,"id":2533},{"__isSmartRef__":true,"id":2534},{"__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},{"__isSmartRef__":true,"id":2543},{"__isSmartRef__":true,"id":2544},{"__isSmartRef__":true,"id":2545},{"__isSmartRef__":true,"id":2546},{"__isSmartRef__":true,"id":2547},{"__isSmartRef__":true,"id":2548},{"__isSmartRef__":true,"id":2549},{"__isSmartRef__":true,"id":2550}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2532":{"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)\")"},"2533":{"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)\")"},"2534":{"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)\")"},"2535":{"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)\")"},"2536":{"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)\")"},"2537":{"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)\")"},"2538":{"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)\")"},"2539":{"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)\")"},"2540":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2541":{"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)\")"},"2542":{"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)\")"},"2543":{"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)\")"},"2544":{"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)\")"},"2545":{"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)\")"},"2546":{"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)\")"},"2547":{"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)\")"},"2548":{"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)\")"},"2549":{"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)\")"},"2550":{"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)\")"},"2551":{"morph":{"__isSmartRef__":true,"id":2514},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2552":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2553}},"2553":{"test01IsMorph":{"__isSmartRef__":true,"id":2554}},"2554":{"varMapping":{"__isSmartRef__":true,"id":2555},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2555":{"this":{"__isSmartRef__":true,"id":2552}},"2556":{},"2557":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2558},"_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":2559},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2560},"_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)"},"2558":{"_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)"},"2559":{"morph":{"__isSmartRef__":true,"id":2557},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2560":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2561}],"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)\")"},"2561":{"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)\")"},"2562":{"submorphs":[{"__isSmartRef__":true,"id":2563}],"scripts":[],"id":"F70ED856-799E-4FBB-83AC-639EA1E9D7F7","shape":{"__isSmartRef__":true,"id":2578},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2579},"eventHandler":{"__isSmartRef__":true,"id":2599},"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":2600},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2605},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2563},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3234}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6350},"__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)"},"2563":{"submorphs":[],"scripts":[],"id":"4B486A38-527E-4C32-BE0F-E8B1A964943D","shape":{"__isSmartRef__":true,"id":2564},"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":2565},"textChunks":[{"__isSmartRef__":true,"id":2574}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2576},"_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":2577},"owner":{"__isSmartRef__":true,"id":2562},"_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)"},"2564":{"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)"},"2565":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2566},{"__isSmartRef__":true,"id":2567},{"__isSmartRef__":true,"id":2568},{"__isSmartRef__":true,"id":2569},{"__isSmartRef__":true,"id":2570},{"__isSmartRef__":true,"id":2571},{"__isSmartRef__":true,"id":2572},{"__isSmartRef__":true,"id":2573}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2566":{"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)\")"},"2567":{"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)\")"},"2568":{"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)\")"},"2569":{"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)\")"},"2570":{"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)\")"},"2571":{"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)\")"},"2572":{"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)\")"},"2573":{"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)\")"},"2574":{"style":{"__isSmartRef__":true,"id":2575},"chunkOwner":{"__isSmartRef__":true,"id":2563},"_id":"_16100","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2575":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2576":{"morph":{"__isSmartRef__":true,"id":2563},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2577":{"resizeWidth":true},"2578":{"_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)"},"2579":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2580},{"__isSmartRef__":true,"id":2581},{"__isSmartRef__":true,"id":2582},{"__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},{"__isSmartRef__":true,"id":2591},{"__isSmartRef__":true,"id":2592},{"__isSmartRef__":true,"id":2593},{"__isSmartRef__":true,"id":2594},{"__isSmartRef__":true,"id":2595},{"__isSmartRef__":true,"id":2596},{"__isSmartRef__":true,"id":2597},{"__isSmartRef__":true,"id":2598}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2580":{"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)\")"},"2581":{"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)\")"},"2582":{"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)\")"},"2583":{"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)\")"},"2584":{"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)\")"},"2585":{"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)\")"},"2586":{"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)\")"},"2587":{"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)\")"},"2588":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2589":{"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)\")"},"2590":{"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)\")"},"2591":{"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)\")"},"2592":{"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)\")"},"2593":{"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)\")"},"2594":{"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)\")"},"2595":{"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)\")"},"2596":{"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)\")"},"2597":{"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)\")"},"2598":{"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)\")"},"2599":{"morph":{"__isSmartRef__":true,"id":2562},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2600":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2601}},"2601":{"test01IsMorph":{"__isSmartRef__":true,"id":2602}},"2602":{"varMapping":{"__isSmartRef__":true,"id":2603},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2603":{"this":{"__isSmartRef__":true,"id":2600}},"2604":{},"2605":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2606},"_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":2607},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2608},"_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)"},"2606":{"_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)"},"2607":{"morph":{"__isSmartRef__":true,"id":2605},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2608":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2609}],"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)\")"},"2609":{"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)\")"},"2610":{"submorphs":[{"__isSmartRef__":true,"id":2611}],"scripts":[],"id":"A4A2E4AB-FEEC-44AC-8446-A67B502B4C61","shape":{"__isSmartRef__":true,"id":2626},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2627},"eventHandler":{"__isSmartRef__":true,"id":2647},"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":2648},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2653},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2611},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":3090},{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3186}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6288},"__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)"},"2611":{"submorphs":[],"scripts":[],"id":"D5FBFCA2-C0D7-46B1-BF75-0C9E865746AF","shape":{"__isSmartRef__":true,"id":2612},"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":2613},"textChunks":[{"__isSmartRef__":true,"id":2622}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2624},"_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":2625},"owner":{"__isSmartRef__":true,"id":2610},"_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)"},"2612":{"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)"},"2613":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2614},{"__isSmartRef__":true,"id":2615},{"__isSmartRef__":true,"id":2616},{"__isSmartRef__":true,"id":2617},{"__isSmartRef__":true,"id":2618},{"__isSmartRef__":true,"id":2619},{"__isSmartRef__":true,"id":2620},{"__isSmartRef__":true,"id":2621}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2614":{"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)\")"},"2615":{"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)\")"},"2616":{"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)\")"},"2617":{"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)\")"},"2618":{"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)\")"},"2619":{"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)\")"},"2620":{"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)\")"},"2621":{"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)\")"},"2622":{"style":{"__isSmartRef__":true,"id":2623},"chunkOwner":{"__isSmartRef__":true,"id":2611},"_id":"_16099","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2623":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2624":{"morph":{"__isSmartRef__":true,"id":2611},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2625":{"resizeWidth":true},"2626":{"_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)"},"2627":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2628},{"__isSmartRef__":true,"id":2629},{"__isSmartRef__":true,"id":2630},{"__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},{"__isSmartRef__":true,"id":2639},{"__isSmartRef__":true,"id":2640},{"__isSmartRef__":true,"id":2641},{"__isSmartRef__":true,"id":2642},{"__isSmartRef__":true,"id":2643},{"__isSmartRef__":true,"id":2644},{"__isSmartRef__":true,"id":2645},{"__isSmartRef__":true,"id":2646}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2628":{"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)\")"},"2629":{"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)\")"},"2630":{"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)\")"},"2631":{"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)\")"},"2632":{"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)\")"},"2633":{"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)\")"},"2634":{"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)\")"},"2635":{"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)\")"},"2636":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2637":{"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)\")"},"2638":{"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)\")"},"2639":{"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)\")"},"2640":{"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)\")"},"2641":{"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)\")"},"2642":{"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)\")"},"2643":{"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)\")"},"2644":{"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)\")"},"2645":{"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)\")"},"2646":{"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)\")"},"2647":{"morph":{"__isSmartRef__":true,"id":2610},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2648":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2649}},"2649":{"test01IsMorph":{"__isSmartRef__":true,"id":2650}},"2650":{"varMapping":{"__isSmartRef__":true,"id":2651},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2651":{"this":{"__isSmartRef__":true,"id":2648}},"2652":{},"2653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2654},"_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":2655},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2656},"_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)"},"2654":{"_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)"},"2655":{"morph":{"__isSmartRef__":true,"id":2653},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2656":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2657}],"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)\")"},"2657":{"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)\")"},"2658":{"submorphs":[{"__isSmartRef__":true,"id":2659}],"scripts":[],"id":"B9C8A384-0992-4375-B9E7-F3AF621BB16C","shape":{"__isSmartRef__":true,"id":2674},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2675},"eventHandler":{"__isSmartRef__":true,"id":2695},"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":2696},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2701},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2659},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3090},{"__isSmartRef__":true,"id":3138}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6226},"__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)"},"2659":{"submorphs":[],"scripts":[],"id":"048963FA-A1D9-47BA-B681-1240A6F5BB03","shape":{"__isSmartRef__":true,"id":2660},"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":2661},"textChunks":[{"__isSmartRef__":true,"id":2670}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2672},"_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":2673},"owner":{"__isSmartRef__":true,"id":2658},"_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)"},"2660":{"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)"},"2661":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2662},{"__isSmartRef__":true,"id":2663},{"__isSmartRef__":true,"id":2664},{"__isSmartRef__":true,"id":2665},{"__isSmartRef__":true,"id":2666},{"__isSmartRef__":true,"id":2667},{"__isSmartRef__":true,"id":2668},{"__isSmartRef__":true,"id":2669}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2662":{"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)\")"},"2663":{"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)\")"},"2664":{"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)\")"},"2665":{"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)\")"},"2666":{"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)\")"},"2667":{"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)\")"},"2668":{"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)\")"},"2669":{"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)\")"},"2670":{"style":{"__isSmartRef__":true,"id":2671},"chunkOwner":{"__isSmartRef__":true,"id":2659},"_id":"_16098","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2671":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2672":{"morph":{"__isSmartRef__":true,"id":2659},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2673":{"resizeWidth":true},"2674":{"_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)"},"2675":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2676},{"__isSmartRef__":true,"id":2677},{"__isSmartRef__":true,"id":2678},{"__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},{"__isSmartRef__":true,"id":2687},{"__isSmartRef__":true,"id":2688},{"__isSmartRef__":true,"id":2689},{"__isSmartRef__":true,"id":2690},{"__isSmartRef__":true,"id":2691},{"__isSmartRef__":true,"id":2692},{"__isSmartRef__":true,"id":2693},{"__isSmartRef__":true,"id":2694}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2676":{"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)\")"},"2677":{"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)\")"},"2678":{"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)\")"},"2679":{"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)\")"},"2680":{"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)\")"},"2681":{"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)\")"},"2682":{"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)\")"},"2683":{"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)\")"},"2684":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2685":{"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)\")"},"2686":{"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)\")"},"2687":{"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)\")"},"2688":{"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)\")"},"2689":{"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)\")"},"2690":{"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)\")"},"2691":{"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)\")"},"2692":{"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)\")"},"2693":{"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)\")"},"2694":{"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)\")"},"2695":{"morph":{"__isSmartRef__":true,"id":2658},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2696":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2697}},"2697":{"test01IsMorph":{"__isSmartRef__":true,"id":2698}},"2698":{"varMapping":{"__isSmartRef__":true,"id":2699},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2699":{"this":{"__isSmartRef__":true,"id":2696}},"2700":{},"2701":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2702},"_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":2703},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2704},"_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)"},"2702":{"_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)"},"2703":{"morph":{"__isSmartRef__":true,"id":2701},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2704":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2705}],"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)\")"},"2705":{"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)\")"},"2706":{"submorphs":[{"__isSmartRef__":true,"id":2707}],"scripts":[],"id":"A77885E7-C495-4A94-B89F-4BA603A5050C","shape":{"__isSmartRef__":true,"id":2722},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2723},"eventHandler":{"__isSmartRef__":true,"id":2743},"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":2744},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2749},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2707},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3090}],"neighborCount":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6164},"__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)"},"2707":{"submorphs":[],"scripts":[],"id":"6D436030-C4EA-4F82-BC3C-5D4C783933C0","shape":{"__isSmartRef__":true,"id":2708},"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":2709},"textChunks":[{"__isSmartRef__":true,"id":2718}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2720},"_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":2721},"owner":{"__isSmartRef__":true,"id":2706},"_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)"},"2708":{"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)"},"2709":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2710},{"__isSmartRef__":true,"id":2711},{"__isSmartRef__":true,"id":2712},{"__isSmartRef__":true,"id":2713},{"__isSmartRef__":true,"id":2714},{"__isSmartRef__":true,"id":2715},{"__isSmartRef__":true,"id":2716},{"__isSmartRef__":true,"id":2717}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2710":{"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)\")"},"2711":{"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)\")"},"2712":{"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)\")"},"2713":{"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)\")"},"2714":{"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)\")"},"2715":{"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)\")"},"2716":{"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)\")"},"2717":{"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)\")"},"2718":{"style":{"__isSmartRef__":true,"id":2719},"chunkOwner":{"__isSmartRef__":true,"id":2707},"_id":"_16097","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2719":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2720":{"morph":{"__isSmartRef__":true,"id":2707},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2721":{"resizeWidth":true},"2722":{"_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)"},"2723":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2724},{"__isSmartRef__":true,"id":2725},{"__isSmartRef__":true,"id":2726},{"__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},{"__isSmartRef__":true,"id":2735},{"__isSmartRef__":true,"id":2736},{"__isSmartRef__":true,"id":2737},{"__isSmartRef__":true,"id":2738},{"__isSmartRef__":true,"id":2739},{"__isSmartRef__":true,"id":2740},{"__isSmartRef__":true,"id":2741},{"__isSmartRef__":true,"id":2742}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2724":{"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)\")"},"2725":{"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)\")"},"2726":{"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)\")"},"2727":{"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)\")"},"2728":{"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)\")"},"2729":{"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)\")"},"2730":{"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)\")"},"2731":{"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)\")"},"2732":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2733":{"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)\")"},"2734":{"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)\")"},"2735":{"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)\")"},"2736":{"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)\")"},"2737":{"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)\")"},"2738":{"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)\")"},"2739":{"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)\")"},"2740":{"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)\")"},"2741":{"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)\")"},"2742":{"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)\")"},"2743":{"morph":{"__isSmartRef__":true,"id":2706},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2744":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2745}},"2745":{"test01IsMorph":{"__isSmartRef__":true,"id":2746}},"2746":{"varMapping":{"__isSmartRef__":true,"id":2747},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2747":{"this":{"__isSmartRef__":true,"id":2744}},"2748":{},"2749":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2750},"_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":2751},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2752},"_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)"},"2750":{"_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)"},"2751":{"morph":{"__isSmartRef__":true,"id":2749},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2752":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2753}],"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)\")"},"2753":{"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)\")"},"2754":{"submorphs":[{"__isSmartRef__":true,"id":2755}],"scripts":[],"id":"B98B320C-2680-43D6-9819-760A3AB65817","shape":{"__isSmartRef__":true,"id":2770},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2771},"eventHandler":{"__isSmartRef__":true,"id":2791},"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":2792},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2797},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2755},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":3042}],"neighborCount":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6102},"__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)"},"2755":{"submorphs":[],"scripts":[],"id":"20C898DA-1FF0-4CFB-8FA3-0AAD4281B3F6","shape":{"__isSmartRef__":true,"id":2756},"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":2757},"textChunks":[{"__isSmartRef__":true,"id":2766}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2768},"_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":2769},"owner":{"__isSmartRef__":true,"id":2754},"_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)"},"2756":{"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)"},"2757":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2758},{"__isSmartRef__":true,"id":2759},{"__isSmartRef__":true,"id":2760},{"__isSmartRef__":true,"id":2761},{"__isSmartRef__":true,"id":2762},{"__isSmartRef__":true,"id":2763},{"__isSmartRef__":true,"id":2764},{"__isSmartRef__":true,"id":2765}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2758":{"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)\")"},"2759":{"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)\")"},"2760":{"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)\")"},"2761":{"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)\")"},"2762":{"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)\")"},"2763":{"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)\")"},"2764":{"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)\")"},"2765":{"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)\")"},"2766":{"style":{"__isSmartRef__":true,"id":2767},"chunkOwner":{"__isSmartRef__":true,"id":2755},"_id":"_16096","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2767":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2768":{"morph":{"__isSmartRef__":true,"id":2755},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2769":{"resizeWidth":true},"2770":{"_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)"},"2771":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2772},{"__isSmartRef__":true,"id":2773},{"__isSmartRef__":true,"id":2774},{"__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},{"__isSmartRef__":true,"id":2783},{"__isSmartRef__":true,"id":2784},{"__isSmartRef__":true,"id":2785},{"__isSmartRef__":true,"id":2786},{"__isSmartRef__":true,"id":2787},{"__isSmartRef__":true,"id":2788},{"__isSmartRef__":true,"id":2789},{"__isSmartRef__":true,"id":2790}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2772":{"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)\")"},"2773":{"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)\")"},"2774":{"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)\")"},"2775":{"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)\")"},"2776":{"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)\")"},"2777":{"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)\")"},"2778":{"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)\")"},"2779":{"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)\")"},"2780":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2781":{"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)\")"},"2782":{"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)\")"},"2783":{"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)\")"},"2784":{"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)\")"},"2785":{"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)\")"},"2786":{"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)\")"},"2787":{"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)\")"},"2788":{"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)\")"},"2789":{"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)\")"},"2790":{"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)\")"},"2791":{"morph":{"__isSmartRef__":true,"id":2754},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2792":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2793}},"2793":{"test01IsMorph":{"__isSmartRef__":true,"id":2794}},"2794":{"varMapping":{"__isSmartRef__":true,"id":2795},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2795":{"this":{"__isSmartRef__":true,"id":2792}},"2796":{},"2797":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2798},"_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":2799},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2800},"_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)"},"2798":{"_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)"},"2799":{"morph":{"__isSmartRef__":true,"id":2797},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2800":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2801}],"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)\")"},"2801":{"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)\")"},"2802":{"submorphs":[{"__isSmartRef__":true,"id":2803}],"scripts":[],"id":"A26869F2-AA4A-458D-B529-8C6E9C0F4061","shape":{"__isSmartRef__":true,"id":2818},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2819},"eventHandler":{"__isSmartRef__":true,"id":2839},"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":2840},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2845},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2803},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2898},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":2994}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6040},"__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)"},"2803":{"submorphs":[],"scripts":[],"id":"647874F7-5373-4154-B25F-83BB5F88B70C","shape":{"__isSmartRef__":true,"id":2804},"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":2805},"textChunks":[{"__isSmartRef__":true,"id":2814}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2816},"_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":2817},"owner":{"__isSmartRef__":true,"id":2802},"_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)"},"2804":{"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)"},"2805":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2806},{"__isSmartRef__":true,"id":2807},{"__isSmartRef__":true,"id":2808},{"__isSmartRef__":true,"id":2809},{"__isSmartRef__":true,"id":2810},{"__isSmartRef__":true,"id":2811},{"__isSmartRef__":true,"id":2812},{"__isSmartRef__":true,"id":2813}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2806":{"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)\")"},"2807":{"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)\")"},"2808":{"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)\")"},"2809":{"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)\")"},"2810":{"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)\")"},"2811":{"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)\")"},"2812":{"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)\")"},"2813":{"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)\")"},"2814":{"style":{"__isSmartRef__":true,"id":2815},"chunkOwner":{"__isSmartRef__":true,"id":2803},"_id":"_16095","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2815":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2816":{"morph":{"__isSmartRef__":true,"id":2803},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2817":{"resizeWidth":true},"2818":{"_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)"},"2819":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2820},{"__isSmartRef__":true,"id":2821},{"__isSmartRef__":true,"id":2822},{"__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},{"__isSmartRef__":true,"id":2831},{"__isSmartRef__":true,"id":2832},{"__isSmartRef__":true,"id":2833},{"__isSmartRef__":true,"id":2834},{"__isSmartRef__":true,"id":2835},{"__isSmartRef__":true,"id":2836},{"__isSmartRef__":true,"id":2837},{"__isSmartRef__":true,"id":2838}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2820":{"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)\")"},"2821":{"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)\")"},"2822":{"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)\")"},"2823":{"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)\")"},"2824":{"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)\")"},"2825":{"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)\")"},"2826":{"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)\")"},"2827":{"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)\")"},"2828":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2829":{"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)\")"},"2830":{"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)\")"},"2831":{"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)\")"},"2832":{"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)\")"},"2833":{"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)\")"},"2834":{"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)\")"},"2835":{"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)\")"},"2836":{"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)\")"},"2837":{"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)\")"},"2838":{"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)\")"},"2839":{"morph":{"__isSmartRef__":true,"id":2802},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2840":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2841}},"2841":{"test01IsMorph":{"__isSmartRef__":true,"id":2842}},"2842":{"varMapping":{"__isSmartRef__":true,"id":2843},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2843":{"this":{"__isSmartRef__":true,"id":2840}},"2844":{},"2845":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2846},"_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":2847},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2848},"_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)"},"2846":{"_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)"},"2847":{"morph":{"__isSmartRef__":true,"id":2845},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2848":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2849}],"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)\")"},"2849":{"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)\")"},"2850":{"submorphs":[{"__isSmartRef__":true,"id":2851}],"scripts":[],"id":"5D60D490-D6EA-4ACC-9811-49B9BA8391DC","shape":{"__isSmartRef__":true,"id":2866},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2867},"eventHandler":{"__isSmartRef__":true,"id":2887},"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":2888},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2893},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2851},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2898},{"__isSmartRef__":true,"id":2946}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5978},"__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)"},"2851":{"submorphs":[],"scripts":[],"id":"CED8DCCB-4296-4F11-96F6-873DBE377063","shape":{"__isSmartRef__":true,"id":2852},"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":2853},"textChunks":[{"__isSmartRef__":true,"id":2862}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2864},"_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":2865},"owner":{"__isSmartRef__":true,"id":2850},"_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)"},"2852":{"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)"},"2853":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2854},{"__isSmartRef__":true,"id":2855},{"__isSmartRef__":true,"id":2856},{"__isSmartRef__":true,"id":2857},{"__isSmartRef__":true,"id":2858},{"__isSmartRef__":true,"id":2859},{"__isSmartRef__":true,"id":2860},{"__isSmartRef__":true,"id":2861}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2854":{"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)\")"},"2855":{"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)\")"},"2856":{"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)\")"},"2857":{"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)\")"},"2858":{"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)\")"},"2859":{"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)\")"},"2860":{"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)\")"},"2861":{"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)\")"},"2862":{"style":{"__isSmartRef__":true,"id":2863},"chunkOwner":{"__isSmartRef__":true,"id":2851},"_id":"_16094","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2863":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2864":{"morph":{"__isSmartRef__":true,"id":2851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2865":{"resizeWidth":true},"2866":{"_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)"},"2867":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2868},{"__isSmartRef__":true,"id":2869},{"__isSmartRef__":true,"id":2870},{"__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},{"__isSmartRef__":true,"id":2879},{"__isSmartRef__":true,"id":2880},{"__isSmartRef__":true,"id":2881},{"__isSmartRef__":true,"id":2882},{"__isSmartRef__":true,"id":2883},{"__isSmartRef__":true,"id":2884},{"__isSmartRef__":true,"id":2885},{"__isSmartRef__":true,"id":2886}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2868":{"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)\")"},"2869":{"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)\")"},"2870":{"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)\")"},"2871":{"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)\")"},"2872":{"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)\")"},"2873":{"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)\")"},"2874":{"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)\")"},"2875":{"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)\")"},"2876":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2877":{"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)\")"},"2878":{"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)\")"},"2879":{"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)\")"},"2880":{"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)\")"},"2881":{"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)\")"},"2882":{"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)\")"},"2883":{"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)\")"},"2884":{"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)\")"},"2885":{"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)\")"},"2886":{"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)\")"},"2887":{"morph":{"__isSmartRef__":true,"id":2850},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2888":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2889}},"2889":{"test01IsMorph":{"__isSmartRef__":true,"id":2890}},"2890":{"varMapping":{"__isSmartRef__":true,"id":2891},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2891":{"this":{"__isSmartRef__":true,"id":2888}},"2892":{},"2893":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2894},"_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":2895},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2896},"_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)"},"2894":{"_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)"},"2895":{"morph":{"__isSmartRef__":true,"id":2893},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2896":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2897}],"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)\")"},"2897":{"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)\")"},"2898":{"submorphs":[{"__isSmartRef__":true,"id":2899}],"scripts":[],"id":"42D62B82-2FB8-491F-9902-85AF451F4BD1","shape":{"__isSmartRef__":true,"id":2914},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2915},"eventHandler":{"__isSmartRef__":true,"id":2935},"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":2936},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2941},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2899},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":3714},{"__isSmartRef__":true,"id":3666}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5916},"__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)"},"2899":{"submorphs":[],"scripts":[],"id":"842BBD70-A2FB-4F71-AF5F-7BC7FC13A123","shape":{"__isSmartRef__":true,"id":2900},"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":2901},"textChunks":[{"__isSmartRef__":true,"id":2910}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2912},"_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":2913},"owner":{"__isSmartRef__":true,"id":2898},"_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)"},"2900":{"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)"},"2901":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2902},{"__isSmartRef__":true,"id":2903},{"__isSmartRef__":true,"id":2904},{"__isSmartRef__":true,"id":2905},{"__isSmartRef__":true,"id":2906},{"__isSmartRef__":true,"id":2907},{"__isSmartRef__":true,"id":2908},{"__isSmartRef__":true,"id":2909}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2902":{"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)\")"},"2903":{"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)\")"},"2904":{"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)\")"},"2905":{"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)\")"},"2906":{"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)\")"},"2907":{"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)\")"},"2908":{"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)\")"},"2909":{"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)\")"},"2910":{"style":{"__isSmartRef__":true,"id":2911},"chunkOwner":{"__isSmartRef__":true,"id":2899},"_id":"_16103","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2911":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2912":{"morph":{"__isSmartRef__":true,"id":2899},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2913":{"resizeWidth":true},"2914":{"_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)"},"2915":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2916},{"__isSmartRef__":true,"id":2917},{"__isSmartRef__":true,"id":2918},{"__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},{"__isSmartRef__":true,"id":2927},{"__isSmartRef__":true,"id":2928},{"__isSmartRef__":true,"id":2929},{"__isSmartRef__":true,"id":2930},{"__isSmartRef__":true,"id":2931},{"__isSmartRef__":true,"id":2932},{"__isSmartRef__":true,"id":2933},{"__isSmartRef__":true,"id":2934}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2916":{"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)\")"},"2917":{"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)\")"},"2918":{"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)\")"},"2919":{"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)\")"},"2920":{"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)\")"},"2921":{"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)\")"},"2922":{"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)\")"},"2923":{"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)\")"},"2924":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2925":{"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)\")"},"2926":{"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)\")"},"2927":{"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)\")"},"2928":{"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)\")"},"2929":{"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)\")"},"2930":{"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)\")"},"2931":{"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)\")"},"2932":{"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)\")"},"2933":{"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)\")"},"2934":{"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)\")"},"2935":{"morph":{"__isSmartRef__":true,"id":2898},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2936":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2937}},"2937":{"test01IsMorph":{"__isSmartRef__":true,"id":2938}},"2938":{"varMapping":{"__isSmartRef__":true,"id":2939},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2939":{"this":{"__isSmartRef__":true,"id":2936}},"2940":{},"2941":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2942},"_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":2943},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2944},"_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)"},"2942":{"_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)"},"2943":{"morph":{"__isSmartRef__":true,"id":2941},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2944":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2945}],"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)\")"},"2945":{"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)\")"},"2946":{"submorphs":[{"__isSmartRef__":true,"id":2947}],"scripts":[],"id":"B0AE248D-D78B-466F-8094-1518D15D0C1B","shape":{"__isSmartRef__":true,"id":2962},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2963},"eventHandler":{"__isSmartRef__":true,"id":2983},"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":2984},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":2989},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2947},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2898},{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":3714},{"__isSmartRef__":true,"id":3666},{"__isSmartRef__":true,"id":3618}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5854},"__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)"},"2947":{"submorphs":[],"scripts":[],"id":"6FB9BF95-9DAA-4C20-8F36-336495AAA851","shape":{"__isSmartRef__":true,"id":2948},"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":2949},"textChunks":[{"__isSmartRef__":true,"id":2958}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2960},"_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":2961},"owner":{"__isSmartRef__":true,"id":2946},"_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)"},"2948":{"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)"},"2949":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2950},{"__isSmartRef__":true,"id":2951},{"__isSmartRef__":true,"id":2952},{"__isSmartRef__":true,"id":2953},{"__isSmartRef__":true,"id":2954},{"__isSmartRef__":true,"id":2955},{"__isSmartRef__":true,"id":2956},{"__isSmartRef__":true,"id":2957}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2950":{"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)\")"},"2951":{"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)\")"},"2952":{"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)\")"},"2953":{"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)\")"},"2954":{"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)\")"},"2955":{"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)\")"},"2956":{"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)\")"},"2957":{"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)\")"},"2958":{"style":{"__isSmartRef__":true,"id":2959},"chunkOwner":{"__isSmartRef__":true,"id":2947},"_id":"_16104","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2959":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2960":{"morph":{"__isSmartRef__":true,"id":2947},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2961":{"resizeWidth":true},"2962":{"_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)"},"2963":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":2964},{"__isSmartRef__":true,"id":2965},{"__isSmartRef__":true,"id":2966},{"__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},{"__isSmartRef__":true,"id":2975},{"__isSmartRef__":true,"id":2976},{"__isSmartRef__":true,"id":2977},{"__isSmartRef__":true,"id":2978},{"__isSmartRef__":true,"id":2979},{"__isSmartRef__":true,"id":2980},{"__isSmartRef__":true,"id":2981},{"__isSmartRef__":true,"id":2982}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"2964":{"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)\")"},"2965":{"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)\")"},"2966":{"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)\")"},"2967":{"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)\")"},"2968":{"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)\")"},"2969":{"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)\")"},"2970":{"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)\")"},"2971":{"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)\")"},"2972":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2973":{"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)\")"},"2974":{"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)\")"},"2975":{"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)\")"},"2976":{"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)\")"},"2977":{"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)\")"},"2978":{"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)\")"},"2979":{"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)\")"},"2980":{"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)\")"},"2981":{"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)\")"},"2982":{"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)\")"},"2983":{"morph":{"__isSmartRef__":true,"id":2946},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2984":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2985}},"2985":{"test01IsMorph":{"__isSmartRef__":true,"id":2986}},"2986":{"varMapping":{"__isSmartRef__":true,"id":2987},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2987":{"this":{"__isSmartRef__":true,"id":2984}},"2988":{},"2989":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2990},"_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":2991},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2992},"_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)"},"2990":{"_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)"},"2991":{"morph":{"__isSmartRef__":true,"id":2989},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2992":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":2993}],"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)\")"},"2993":{"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)\")"},"2994":{"submorphs":[{"__isSmartRef__":true,"id":2995}],"scripts":[],"id":"7FE79CE0-01B1-48D9-98D6-ED29899945F0","shape":{"__isSmartRef__":true,"id":3010},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3011},"eventHandler":{"__isSmartRef__":true,"id":3031},"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":3032},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3037},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":2995},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3666},{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3570}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5792},"__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)"},"2995":{"submorphs":[],"scripts":[],"id":"3CC513A0-26B8-42B7-93F7-2935BC0CC631","shape":{"__isSmartRef__":true,"id":2996},"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":2997},"textChunks":[{"__isSmartRef__":true,"id":3006}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3008},"_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":3009},"owner":{"__isSmartRef__":true,"id":2994},"_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)"},"2996":{"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)"},"2997":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":2998},{"__isSmartRef__":true,"id":2999},{"__isSmartRef__":true,"id":3000},{"__isSmartRef__":true,"id":3001},{"__isSmartRef__":true,"id":3002},{"__isSmartRef__":true,"id":3003},{"__isSmartRef__":true,"id":3004},{"__isSmartRef__":true,"id":3005}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"2998":{"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)\")"},"2999":{"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)\")"},"3000":{"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)\")"},"3001":{"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)\")"},"3002":{"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)\")"},"3003":{"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)\")"},"3004":{"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)\")"},"3005":{"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)\")"},"3006":{"style":{"__isSmartRef__":true,"id":3007},"chunkOwner":{"__isSmartRef__":true,"id":2995},"_id":"_16105","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3007":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3008":{"morph":{"__isSmartRef__":true,"id":2995},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3009":{"resizeWidth":true},"3010":{"_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)"},"3011":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3012},{"__isSmartRef__":true,"id":3013},{"__isSmartRef__":true,"id":3014},{"__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},{"__isSmartRef__":true,"id":3023},{"__isSmartRef__":true,"id":3024},{"__isSmartRef__":true,"id":3025},{"__isSmartRef__":true,"id":3026},{"__isSmartRef__":true,"id":3027},{"__isSmartRef__":true,"id":3028},{"__isSmartRef__":true,"id":3029},{"__isSmartRef__":true,"id":3030}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3012":{"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)\")"},"3013":{"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)\")"},"3014":{"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)\")"},"3015":{"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)\")"},"3016":{"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)\")"},"3017":{"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)\")"},"3018":{"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)\")"},"3019":{"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)\")"},"3020":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3021":{"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)\")"},"3022":{"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)\")"},"3023":{"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)\")"},"3024":{"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)\")"},"3025":{"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)\")"},"3026":{"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)\")"},"3027":{"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)\")"},"3028":{"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)\")"},"3029":{"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)\")"},"3030":{"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)\")"},"3031":{"morph":{"__isSmartRef__":true,"id":2994},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3032":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3033}},"3033":{"test01IsMorph":{"__isSmartRef__":true,"id":3034}},"3034":{"varMapping":{"__isSmartRef__":true,"id":3035},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3035":{"this":{"__isSmartRef__":true,"id":3032}},"3036":{},"3037":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3038},"_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":3039},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3040},"_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)"},"3038":{"_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)"},"3039":{"morph":{"__isSmartRef__":true,"id":3037},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3040":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3041}],"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)\")"},"3041":{"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)\")"},"3042":{"submorphs":[{"__isSmartRef__":true,"id":3043}],"scripts":[],"id":"F5029A0C-0DB1-4BCE-8041-B0808FE80758","shape":{"__isSmartRef__":true,"id":3058},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3059},"eventHandler":{"__isSmartRef__":true,"id":3079},"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":3080},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3085},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3043},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":3090},{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3522}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5730},"__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)"},"3043":{"submorphs":[],"scripts":[],"id":"8507A584-6CF6-42C4-A390-2F4FD26B6263","shape":{"__isSmartRef__":true,"id":3044},"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":3045},"textChunks":[{"__isSmartRef__":true,"id":3054}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3056},"_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":3057},"owner":{"__isSmartRef__":true,"id":3042},"_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)"},"3044":{"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)"},"3045":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3046},{"__isSmartRef__":true,"id":3047},{"__isSmartRef__":true,"id":3048},{"__isSmartRef__":true,"id":3049},{"__isSmartRef__":true,"id":3050},{"__isSmartRef__":true,"id":3051},{"__isSmartRef__":true,"id":3052},{"__isSmartRef__":true,"id":3053}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3046":{"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)\")"},"3047":{"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)\")"},"3048":{"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)\")"},"3049":{"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)\")"},"3050":{"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)\")"},"3051":{"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)\")"},"3052":{"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)\")"},"3053":{"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)\")"},"3054":{"style":{"__isSmartRef__":true,"id":3055},"chunkOwner":{"__isSmartRef__":true,"id":3043},"_id":"_16106","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3055":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3056":{"morph":{"__isSmartRef__":true,"id":3043},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3057":{"resizeWidth":true},"3058":{"_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)"},"3059":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3060},{"__isSmartRef__":true,"id":3061},{"__isSmartRef__":true,"id":3062},{"__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},{"__isSmartRef__":true,"id":3071},{"__isSmartRef__":true,"id":3072},{"__isSmartRef__":true,"id":3073},{"__isSmartRef__":true,"id":3074},{"__isSmartRef__":true,"id":3075},{"__isSmartRef__":true,"id":3076},{"__isSmartRef__":true,"id":3077},{"__isSmartRef__":true,"id":3078}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3060":{"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)\")"},"3061":{"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)\")"},"3062":{"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)\")"},"3063":{"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)\")"},"3064":{"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)\")"},"3065":{"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)\")"},"3066":{"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)\")"},"3067":{"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)\")"},"3068":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3069":{"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)\")"},"3070":{"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)\")"},"3071":{"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)\")"},"3072":{"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)\")"},"3073":{"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)\")"},"3074":{"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)\")"},"3075":{"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)\")"},"3076":{"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)\")"},"3077":{"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)\")"},"3078":{"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)\")"},"3079":{"morph":{"__isSmartRef__":true,"id":3042},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3080":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3081}},"3081":{"test01IsMorph":{"__isSmartRef__":true,"id":3082}},"3082":{"varMapping":{"__isSmartRef__":true,"id":3083},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3083":{"this":{"__isSmartRef__":true,"id":3080}},"3084":{},"3085":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3086},"_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":3087},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3088},"_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)"},"3086":{"_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)"},"3087":{"morph":{"__isSmartRef__":true,"id":3085},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3088":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3089}],"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)\")"},"3089":{"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)\")"},"3090":{"submorphs":[{"__isSmartRef__":true,"id":3091}],"scripts":[],"id":"8E09F669-A7D5-4567-B6A9-00409F59319A","shape":{"__isSmartRef__":true,"id":3106},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3107},"eventHandler":{"__isSmartRef__":true,"id":3127},"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":3128},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3133},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3091},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3474}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5668},"__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)"},"3091":{"submorphs":[],"scripts":[],"id":"8BCEB355-24F8-4D2D-A655-897B834F2820","shape":{"__isSmartRef__":true,"id":3092},"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":3093},"textChunks":[{"__isSmartRef__":true,"id":3102}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3104},"_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":3105},"owner":{"__isSmartRef__":true,"id":3090},"_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)"},"3092":{"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)"},"3093":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3094},{"__isSmartRef__":true,"id":3095},{"__isSmartRef__":true,"id":3096},{"__isSmartRef__":true,"id":3097},{"__isSmartRef__":true,"id":3098},{"__isSmartRef__":true,"id":3099},{"__isSmartRef__":true,"id":3100},{"__isSmartRef__":true,"id":3101}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3094":{"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)\")"},"3095":{"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)\")"},"3096":{"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)\")"},"3097":{"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)\")"},"3098":{"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)\")"},"3099":{"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)\")"},"3100":{"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)\")"},"3101":{"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)\")"},"3102":{"style":{"__isSmartRef__":true,"id":3103},"chunkOwner":{"__isSmartRef__":true,"id":3091},"_id":"_16107","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3103":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3104":{"morph":{"__isSmartRef__":true,"id":3091},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3105":{"resizeWidth":true},"3106":{"_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)"},"3107":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3108},{"__isSmartRef__":true,"id":3109},{"__isSmartRef__":true,"id":3110},{"__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},{"__isSmartRef__":true,"id":3119},{"__isSmartRef__":true,"id":3120},{"__isSmartRef__":true,"id":3121},{"__isSmartRef__":true,"id":3122},{"__isSmartRef__":true,"id":3123},{"__isSmartRef__":true,"id":3124},{"__isSmartRef__":true,"id":3125},{"__isSmartRef__":true,"id":3126}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3108":{"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)\")"},"3109":{"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)\")"},"3110":{"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)\")"},"3111":{"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)\")"},"3112":{"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)\")"},"3113":{"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)\")"},"3114":{"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)\")"},"3115":{"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)\")"},"3116":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3117":{"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)\")"},"3118":{"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)\")"},"3119":{"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)\")"},"3120":{"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)\")"},"3121":{"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)\")"},"3122":{"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)\")"},"3123":{"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)\")"},"3124":{"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)\")"},"3125":{"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)\")"},"3126":{"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)\")"},"3127":{"morph":{"__isSmartRef__":true,"id":3090},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3128":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3129}},"3129":{"test01IsMorph":{"__isSmartRef__":true,"id":3130}},"3130":{"varMapping":{"__isSmartRef__":true,"id":3131},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3131":{"this":{"__isSmartRef__":true,"id":3128}},"3132":{},"3133":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3134},"_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":3135},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3136},"_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)"},"3134":{"_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)"},"3135":{"morph":{"__isSmartRef__":true,"id":3133},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3136":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3137}],"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)\")"},"3137":{"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)\")"},"3138":{"submorphs":[{"__isSmartRef__":true,"id":3139}],"scripts":[],"id":"65C39A53-15BA-44D2-BEF0-A923E6424A61","shape":{"__isSmartRef__":true,"id":3154},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3155},"eventHandler":{"__isSmartRef__":true,"id":3175},"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":3176},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3181},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3139},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":3090},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3426}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5606},"__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)"},"3139":{"submorphs":[],"scripts":[],"id":"0F927300-B2B9-4E81-81C1-1F6696414AFE","shape":{"__isSmartRef__":true,"id":3140},"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":3141},"textChunks":[{"__isSmartRef__":true,"id":3150}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3152},"_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":3153},"owner":{"__isSmartRef__":true,"id":3138},"_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)"},"3140":{"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)"},"3141":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3142},{"__isSmartRef__":true,"id":3143},{"__isSmartRef__":true,"id":3144},{"__isSmartRef__":true,"id":3145},{"__isSmartRef__":true,"id":3146},{"__isSmartRef__":true,"id":3147},{"__isSmartRef__":true,"id":3148},{"__isSmartRef__":true,"id":3149}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3142":{"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)\")"},"3143":{"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)\")"},"3144":{"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)\")"},"3145":{"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)\")"},"3146":{"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)\")"},"3147":{"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)\")"},"3148":{"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)\")"},"3149":{"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)\")"},"3150":{"style":{"__isSmartRef__":true,"id":3151},"chunkOwner":{"__isSmartRef__":true,"id":3139},"_id":"_16108","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3151":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3152":{"morph":{"__isSmartRef__":true,"id":3139},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3153":{"resizeWidth":true},"3154":{"_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)"},"3155":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3156},{"__isSmartRef__":true,"id":3157},{"__isSmartRef__":true,"id":3158},{"__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},{"__isSmartRef__":true,"id":3167},{"__isSmartRef__":true,"id":3168},{"__isSmartRef__":true,"id":3169},{"__isSmartRef__":true,"id":3170},{"__isSmartRef__":true,"id":3171},{"__isSmartRef__":true,"id":3172},{"__isSmartRef__":true,"id":3173},{"__isSmartRef__":true,"id":3174}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3156":{"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)\")"},"3157":{"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)\")"},"3158":{"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)\")"},"3159":{"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)\")"},"3160":{"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)\")"},"3161":{"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)\")"},"3162":{"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)\")"},"3163":{"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)\")"},"3164":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3165":{"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)\")"},"3166":{"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)\")"},"3167":{"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)\")"},"3168":{"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)\")"},"3169":{"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)\")"},"3170":{"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)\")"},"3171":{"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)\")"},"3172":{"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)\")"},"3173":{"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)\")"},"3174":{"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)\")"},"3175":{"morph":{"__isSmartRef__":true,"id":3138},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3176":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3177}},"3177":{"test01IsMorph":{"__isSmartRef__":true,"id":3178}},"3178":{"varMapping":{"__isSmartRef__":true,"id":3179},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3179":{"this":{"__isSmartRef__":true,"id":3176}},"3180":{},"3181":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3182},"_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":3183},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3184},"_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)"},"3182":{"_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)"},"3183":{"morph":{"__isSmartRef__":true,"id":3181},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3184":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3185}],"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)\")"},"3185":{"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)\")"},"3186":{"submorphs":[{"__isSmartRef__":true,"id":3187}],"scripts":[],"id":"A2E2EDFB-2049-4064-9685-C087660BFF18","shape":{"__isSmartRef__":true,"id":3202},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3203},"eventHandler":{"__isSmartRef__":true,"id":3223},"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":3224},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3229},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3187},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3234},{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3378}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5544},"__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)"},"3187":{"submorphs":[],"scripts":[],"id":"B03733E1-2152-4C26-800E-7946A5020970","shape":{"__isSmartRef__":true,"id":3188},"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":3189},"textChunks":[{"__isSmartRef__":true,"id":3198}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3200},"_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":3201},"owner":{"__isSmartRef__":true,"id":3186},"_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)"},"3188":{"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)"},"3189":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3190},{"__isSmartRef__":true,"id":3191},{"__isSmartRef__":true,"id":3192},{"__isSmartRef__":true,"id":3193},{"__isSmartRef__":true,"id":3194},{"__isSmartRef__":true,"id":3195},{"__isSmartRef__":true,"id":3196},{"__isSmartRef__":true,"id":3197}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3190":{"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)\")"},"3191":{"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)\")"},"3192":{"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)\")"},"3193":{"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)\")"},"3194":{"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)\")"},"3195":{"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)\")"},"3196":{"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)\")"},"3197":{"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)\")"},"3198":{"style":{"__isSmartRef__":true,"id":3199},"chunkOwner":{"__isSmartRef__":true,"id":3187},"_id":"_16109","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3199":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3200":{"morph":{"__isSmartRef__":true,"id":3187},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3201":{"resizeWidth":true},"3202":{"_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)"},"3203":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3204},{"__isSmartRef__":true,"id":3205},{"__isSmartRef__":true,"id":3206},{"__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},{"__isSmartRef__":true,"id":3215},{"__isSmartRef__":true,"id":3216},{"__isSmartRef__":true,"id":3217},{"__isSmartRef__":true,"id":3218},{"__isSmartRef__":true,"id":3219},{"__isSmartRef__":true,"id":3220},{"__isSmartRef__":true,"id":3221},{"__isSmartRef__":true,"id":3222}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3204":{"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)\")"},"3205":{"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)\")"},"3206":{"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)\")"},"3207":{"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)\")"},"3208":{"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)\")"},"3209":{"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)\")"},"3210":{"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)\")"},"3211":{"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)\")"},"3212":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3213":{"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)\")"},"3214":{"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)\")"},"3215":{"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)\")"},"3216":{"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)\")"},"3217":{"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)\")"},"3218":{"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)\")"},"3219":{"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)\")"},"3220":{"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)\")"},"3221":{"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)\")"},"3222":{"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)\")"},"3223":{"morph":{"__isSmartRef__":true,"id":3186},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3224":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3225}},"3225":{"test01IsMorph":{"__isSmartRef__":true,"id":3226}},"3226":{"varMapping":{"__isSmartRef__":true,"id":3227},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3227":{"this":{"__isSmartRef__":true,"id":3224}},"3228":{},"3229":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3230},"_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":3231},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3232},"_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)"},"3230":{"_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)"},"3231":{"morph":{"__isSmartRef__":true,"id":3229},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3232":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3233}],"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)\")"},"3233":{"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)\")"},"3234":{"submorphs":[{"__isSmartRef__":true,"id":3235}],"scripts":[],"id":"4DD94323-5BD0-4816-BFE4-38594C3442F8","shape":{"__isSmartRef__":true,"id":3250},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3251},"eventHandler":{"__isSmartRef__":true,"id":3271},"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":3272},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3277},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3235},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":3282},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3330},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":4146}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5482},"__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)"},"3235":{"submorphs":[],"scripts":[],"id":"1AF4CBE0-FC54-43BA-92E9-E5919B6CC4D9","shape":{"__isSmartRef__":true,"id":3236},"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":3237},"textChunks":[{"__isSmartRef__":true,"id":3246}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3248},"_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":3249},"owner":{"__isSmartRef__":true,"id":3234},"_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)"},"3236":{"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)"},"3237":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3238},{"__isSmartRef__":true,"id":3239},{"__isSmartRef__":true,"id":3240},{"__isSmartRef__":true,"id":3241},{"__isSmartRef__":true,"id":3242},{"__isSmartRef__":true,"id":3243},{"__isSmartRef__":true,"id":3244},{"__isSmartRef__":true,"id":3245}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3238":{"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)\")"},"3239":{"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)\")"},"3240":{"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)\")"},"3241":{"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)\")"},"3242":{"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)\")"},"3243":{"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)\")"},"3244":{"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)\")"},"3245":{"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)\")"},"3246":{"style":{"__isSmartRef__":true,"id":3247},"chunkOwner":{"__isSmartRef__":true,"id":3235},"_id":"_16110","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3247":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3248":{"morph":{"__isSmartRef__":true,"id":3235},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3249":{"resizeWidth":true},"3250":{"_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)"},"3251":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3252},{"__isSmartRef__":true,"id":3253},{"__isSmartRef__":true,"id":3254},{"__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},{"__isSmartRef__":true,"id":3263},{"__isSmartRef__":true,"id":3264},{"__isSmartRef__":true,"id":3265},{"__isSmartRef__":true,"id":3266},{"__isSmartRef__":true,"id":3267},{"__isSmartRef__":true,"id":3268},{"__isSmartRef__":true,"id":3269},{"__isSmartRef__":true,"id":3270}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3252":{"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)\")"},"3253":{"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)\")"},"3254":{"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)\")"},"3255":{"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)\")"},"3256":{"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)\")"},"3257":{"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)\")"},"3258":{"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)\")"},"3259":{"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)\")"},"3260":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3261":{"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)\")"},"3262":{"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)\")"},"3263":{"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)\")"},"3264":{"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)\")"},"3265":{"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)\")"},"3266":{"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)\")"},"3267":{"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)\")"},"3268":{"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)\")"},"3269":{"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)\")"},"3270":{"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)\")"},"3271":{"morph":{"__isSmartRef__":true,"id":3234},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3272":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3273}},"3273":{"test01IsMorph":{"__isSmartRef__":true,"id":3274}},"3274":{"varMapping":{"__isSmartRef__":true,"id":3275},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3275":{"this":{"__isSmartRef__":true,"id":3272}},"3276":{},"3277":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3278},"_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":3279},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3280},"_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)"},"3278":{"_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)"},"3279":{"morph":{"__isSmartRef__":true,"id":3277},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3280":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3281}],"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)\")"},"3281":{"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)\")"},"3282":{"submorphs":[{"__isSmartRef__":true,"id":3283}],"scripts":[],"id":"63079D3A-1D53-4623-B918-F78D50BEC986","shape":{"__isSmartRef__":true,"id":3298},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3299},"eventHandler":{"__isSmartRef__":true,"id":3319},"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":3320},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3325},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3283},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2466},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":3234},{"__isSmartRef__":true,"id":3330}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5420},"__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)"},"3283":{"submorphs":[],"scripts":[],"id":"4D99DF4D-8390-421C-81BE-7A9B493BB8D6","shape":{"__isSmartRef__":true,"id":3284},"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":3285},"textChunks":[{"__isSmartRef__":true,"id":3294}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3296},"_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":3297},"owner":{"__isSmartRef__":true,"id":3282},"_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)"},"3284":{"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)"},"3285":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3286},{"__isSmartRef__":true,"id":3287},{"__isSmartRef__":true,"id":3288},{"__isSmartRef__":true,"id":3289},{"__isSmartRef__":true,"id":3290},{"__isSmartRef__":true,"id":3291},{"__isSmartRef__":true,"id":3292},{"__isSmartRef__":true,"id":3293}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3286":{"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)\")"},"3287":{"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)\")"},"3288":{"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)\")"},"3289":{"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)\")"},"3290":{"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)\")"},"3291":{"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)\")"},"3292":{"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)\")"},"3293":{"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)\")"},"3294":{"style":{"__isSmartRef__":true,"id":3295},"chunkOwner":{"__isSmartRef__":true,"id":3283},"_id":"_16102","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3295":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3296":{"morph":{"__isSmartRef__":true,"id":3283},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3297":{"resizeWidth":true},"3298":{"_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)"},"3299":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3300},{"__isSmartRef__":true,"id":3301},{"__isSmartRef__":true,"id":3302},{"__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},{"__isSmartRef__":true,"id":3311},{"__isSmartRef__":true,"id":3312},{"__isSmartRef__":true,"id":3313},{"__isSmartRef__":true,"id":3314},{"__isSmartRef__":true,"id":3315},{"__isSmartRef__":true,"id":3316},{"__isSmartRef__":true,"id":3317},{"__isSmartRef__":true,"id":3318}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3300":{"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)\")"},"3301":{"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)\")"},"3302":{"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)\")"},"3303":{"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)\")"},"3304":{"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)\")"},"3305":{"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)\")"},"3306":{"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)\")"},"3307":{"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)\")"},"3308":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3309":{"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)\")"},"3310":{"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)\")"},"3311":{"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)\")"},"3312":{"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)\")"},"3313":{"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)\")"},"3314":{"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)\")"},"3315":{"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)\")"},"3316":{"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)\")"},"3317":{"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)\")"},"3318":{"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)\")"},"3319":{"morph":{"__isSmartRef__":true,"id":3282},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3320":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3321}},"3321":{"test01IsMorph":{"__isSmartRef__":true,"id":3322}},"3322":{"varMapping":{"__isSmartRef__":true,"id":3323},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3323":{"this":{"__isSmartRef__":true,"id":3320}},"3324":{},"3325":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3326},"_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":3327},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3328},"_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)"},"3326":{"_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)"},"3327":{"morph":{"__isSmartRef__":true,"id":3325},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3328":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3329}],"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)\")"},"3329":{"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)\")"},"3330":{"submorphs":[{"__isSmartRef__":true,"id":3331}],"scripts":[],"id":"B6DA34D0-5A70-444F-BBDD-6A6796870863","shape":{"__isSmartRef__":true,"id":3346},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3347},"eventHandler":{"__isSmartRef__":true,"id":3367},"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":3368},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3373},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3331},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":3282},{"__isSmartRef__":true,"id":3234},{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":4146}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5358},"__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)"},"3331":{"submorphs":[],"scripts":[],"id":"FE1908D1-B7F5-464C-B18F-68577BE8B23E","shape":{"__isSmartRef__":true,"id":3332},"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":3333},"textChunks":[{"__isSmartRef__":true,"id":3342}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3344},"_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":3345},"owner":{"__isSmartRef__":true,"id":3330},"_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)"},"3332":{"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)"},"3333":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3334},{"__isSmartRef__":true,"id":3335},{"__isSmartRef__":true,"id":3336},{"__isSmartRef__":true,"id":3337},{"__isSmartRef__":true,"id":3338},{"__isSmartRef__":true,"id":3339},{"__isSmartRef__":true,"id":3340},{"__isSmartRef__":true,"id":3341}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3334":{"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)\")"},"3335":{"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)\")"},"3336":{"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)\")"},"3337":{"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)\")"},"3338":{"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)\")"},"3339":{"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)\")"},"3340":{"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)\")"},"3341":{"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)\")"},"3342":{"style":{"__isSmartRef__":true,"id":3343},"chunkOwner":{"__isSmartRef__":true,"id":3331},"_id":"_16111","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3343":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3344":{"morph":{"__isSmartRef__":true,"id":3331},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3345":{"resizeWidth":true},"3346":{"_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)"},"3347":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3348},{"__isSmartRef__":true,"id":3349},{"__isSmartRef__":true,"id":3350},{"__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},{"__isSmartRef__":true,"id":3359},{"__isSmartRef__":true,"id":3360},{"__isSmartRef__":true,"id":3361},{"__isSmartRef__":true,"id":3362},{"__isSmartRef__":true,"id":3363},{"__isSmartRef__":true,"id":3364},{"__isSmartRef__":true,"id":3365},{"__isSmartRef__":true,"id":3366}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3348":{"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)\")"},"3349":{"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)\")"},"3350":{"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)\")"},"3351":{"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)\")"},"3352":{"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)\")"},"3353":{"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)\")"},"3354":{"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)\")"},"3355":{"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)\")"},"3356":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3357":{"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)\")"},"3358":{"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)\")"},"3359":{"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)\")"},"3360":{"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)\")"},"3361":{"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)\")"},"3362":{"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)\")"},"3363":{"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)\")"},"3364":{"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)\")"},"3365":{"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)\")"},"3366":{"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)\")"},"3367":{"morph":{"__isSmartRef__":true,"id":3330},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3368":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3369}},"3369":{"test01IsMorph":{"__isSmartRef__":true,"id":3370}},"3370":{"varMapping":{"__isSmartRef__":true,"id":3371},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3371":{"this":{"__isSmartRef__":true,"id":3368}},"3372":{},"3373":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3374},"_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":3375},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3376},"_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)"},"3374":{"_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)"},"3375":{"morph":{"__isSmartRef__":true,"id":3373},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3376":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3377}],"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)\")"},"3377":{"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)\")"},"3378":{"submorphs":[{"__isSmartRef__":true,"id":3379}],"scripts":[],"id":"88A410D0-D689-4708-AAF7-68A2ECA404ED","shape":{"__isSmartRef__":true,"id":3394},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3395},"eventHandler":{"__isSmartRef__":true,"id":3415},"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":3416},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3421},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3379},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3234},{"__isSmartRef__":true,"id":3330},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":4146},{"__isSmartRef__":true,"id":4050},{"__isSmartRef__":true,"id":4098},{"__isSmartRef__":true,"id":4194}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5296},"__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)"},"3379":{"submorphs":[],"scripts":[],"id":"EB415812-A640-4E08-A1F9-4D9E1305A2B4","shape":{"__isSmartRef__":true,"id":3380},"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":3381},"textChunks":[{"__isSmartRef__":true,"id":3390}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3392},"_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":3393},"owner":{"__isSmartRef__":true,"id":3378},"_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)"},"3380":{"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)"},"3381":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3382},{"__isSmartRef__":true,"id":3383},{"__isSmartRef__":true,"id":3384},{"__isSmartRef__":true,"id":3385},{"__isSmartRef__":true,"id":3386},{"__isSmartRef__":true,"id":3387},{"__isSmartRef__":true,"id":3388},{"__isSmartRef__":true,"id":3389}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3382":{"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)\")"},"3383":{"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)\")"},"3384":{"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)\")"},"3385":{"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)\")"},"3386":{"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)\")"},"3387":{"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)\")"},"3388":{"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)\")"},"3389":{"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)\")"},"3390":{"style":{"__isSmartRef__":true,"id":3391},"chunkOwner":{"__isSmartRef__":true,"id":3379},"_id":"_16119","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3391":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3392":{"morph":{"__isSmartRef__":true,"id":3379},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3393":{"resizeWidth":true},"3394":{"_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)"},"3395":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3396},{"__isSmartRef__":true,"id":3397},{"__isSmartRef__":true,"id":3398},{"__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},{"__isSmartRef__":true,"id":3407},{"__isSmartRef__":true,"id":3408},{"__isSmartRef__":true,"id":3409},{"__isSmartRef__":true,"id":3410},{"__isSmartRef__":true,"id":3411},{"__isSmartRef__":true,"id":3412},{"__isSmartRef__":true,"id":3413},{"__isSmartRef__":true,"id":3414}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3396":{"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)\")"},"3397":{"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)\")"},"3398":{"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)\")"},"3399":{"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)\")"},"3400":{"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)\")"},"3401":{"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)\")"},"3402":{"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)\")"},"3403":{"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)\")"},"3404":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3405":{"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)\")"},"3406":{"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)\")"},"3407":{"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)\")"},"3408":{"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)\")"},"3409":{"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)\")"},"3410":{"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)\")"},"3411":{"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)\")"},"3412":{"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)\")"},"3413":{"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)\")"},"3414":{"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)\")"},"3415":{"morph":{"__isSmartRef__":true,"id":3378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3416":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3417}},"3417":{"test01IsMorph":{"__isSmartRef__":true,"id":3418}},"3418":{"varMapping":{"__isSmartRef__":true,"id":3419},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3419":{"this":{"__isSmartRef__":true,"id":3416}},"3420":{},"3421":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3422},"_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":3423},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3424},"_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)"},"3422":{"_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)"},"3423":{"morph":{"__isSmartRef__":true,"id":3421},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3424":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3425}],"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)\")"},"3425":{"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)\")"},"3426":{"submorphs":[{"__isSmartRef__":true,"id":3427}],"scripts":[],"id":"8F18FD29-E5CF-4206-B905-04845B41CAF5","shape":{"__isSmartRef__":true,"id":3442},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3443},"eventHandler":{"__isSmartRef__":true,"id":3463},"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":3464},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3469},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3427},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3234},{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":4002},{"__isSmartRef__":true,"id":4050},{"__isSmartRef__":true,"id":4098}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5234},"__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)"},"3427":{"submorphs":[],"scripts":[],"id":"4B57A07C-6D1A-4762-9830-45E26CCBF2FF","shape":{"__isSmartRef__":true,"id":3428},"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":3429},"textChunks":[{"__isSmartRef__":true,"id":3438}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3440},"_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":3441},"owner":{"__isSmartRef__":true,"id":3426},"_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)"},"3428":{"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)"},"3429":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3430},{"__isSmartRef__":true,"id":3431},{"__isSmartRef__":true,"id":3432},{"__isSmartRef__":true,"id":3433},{"__isSmartRef__":true,"id":3434},{"__isSmartRef__":true,"id":3435},{"__isSmartRef__":true,"id":3436},{"__isSmartRef__":true,"id":3437}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3430":{"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)\")"},"3431":{"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)\")"},"3432":{"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)\")"},"3433":{"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)\")"},"3434":{"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)\")"},"3435":{"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)\")"},"3436":{"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)\")"},"3437":{"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)\")"},"3438":{"style":{"__isSmartRef__":true,"id":3439},"chunkOwner":{"__isSmartRef__":true,"id":3427},"_id":"_16118","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3439":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3440":{"morph":{"__isSmartRef__":true,"id":3427},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3441":{"resizeWidth":true},"3442":{"_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)"},"3443":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3444},{"__isSmartRef__":true,"id":3445},{"__isSmartRef__":true,"id":3446},{"__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},{"__isSmartRef__":true,"id":3455},{"__isSmartRef__":true,"id":3456},{"__isSmartRef__":true,"id":3457},{"__isSmartRef__":true,"id":3458},{"__isSmartRef__":true,"id":3459},{"__isSmartRef__":true,"id":3460},{"__isSmartRef__":true,"id":3461},{"__isSmartRef__":true,"id":3462}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3444":{"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)\")"},"3445":{"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)\")"},"3446":{"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)\")"},"3447":{"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)\")"},"3448":{"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)\")"},"3449":{"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)\")"},"3450":{"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)\")"},"3451":{"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)\")"},"3452":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3453":{"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)\")"},"3454":{"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)\")"},"3455":{"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)\")"},"3456":{"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)\")"},"3457":{"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)\")"},"3458":{"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)\")"},"3459":{"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)\")"},"3460":{"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)\")"},"3461":{"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)\")"},"3462":{"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)\")"},"3463":{"morph":{"__isSmartRef__":true,"id":3426},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3464":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3465}},"3465":{"test01IsMorph":{"__isSmartRef__":true,"id":3466}},"3466":{"varMapping":{"__isSmartRef__":true,"id":3467},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3467":{"this":{"__isSmartRef__":true,"id":3464}},"3468":{},"3469":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3470},"_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":3471},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3472},"_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)"},"3470":{"_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)"},"3471":{"morph":{"__isSmartRef__":true,"id":3469},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3472":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3473}],"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)\")"},"3473":{"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)\")"},"3474":{"submorphs":[{"__isSmartRef__":true,"id":3475}],"scripts":[],"id":"5BF9A773-E519-4E57-9B76-4AB58CFF1AE0","shape":{"__isSmartRef__":true,"id":3490},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3491},"eventHandler":{"__isSmartRef__":true,"id":3511},"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":3512},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3517},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3475},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3090},{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3954},{"__isSmartRef__":true,"id":4002},{"__isSmartRef__":true,"id":4050}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5172},"__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)"},"3475":{"submorphs":[],"scripts":[],"id":"D25A5F16-A488-4518-8E39-81A88E2C641D","shape":{"__isSmartRef__":true,"id":3476},"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":3477},"textChunks":[{"__isSmartRef__":true,"id":3486}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3488},"_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":3489},"owner":{"__isSmartRef__":true,"id":3474},"_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)"},"3476":{"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)"},"3477":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3478},{"__isSmartRef__":true,"id":3479},{"__isSmartRef__":true,"id":3480},{"__isSmartRef__":true,"id":3481},{"__isSmartRef__":true,"id":3482},{"__isSmartRef__":true,"id":3483},{"__isSmartRef__":true,"id":3484},{"__isSmartRef__":true,"id":3485}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3478":{"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)\")"},"3479":{"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)\")"},"3480":{"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)\")"},"3481":{"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)\")"},"3482":{"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)\")"},"3483":{"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)\")"},"3484":{"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)\")"},"3485":{"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)\")"},"3486":{"style":{"__isSmartRef__":true,"id":3487},"chunkOwner":{"__isSmartRef__":true,"id":3475},"_id":"_16117","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3487":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3488":{"morph":{"__isSmartRef__":true,"id":3475},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3489":{"resizeWidth":true},"3490":{"_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)"},"3491":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3492},{"__isSmartRef__":true,"id":3493},{"__isSmartRef__":true,"id":3494},{"__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},{"__isSmartRef__":true,"id":3503},{"__isSmartRef__":true,"id":3504},{"__isSmartRef__":true,"id":3505},{"__isSmartRef__":true,"id":3506},{"__isSmartRef__":true,"id":3507},{"__isSmartRef__":true,"id":3508},{"__isSmartRef__":true,"id":3509},{"__isSmartRef__":true,"id":3510}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3492":{"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)\")"},"3493":{"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)\")"},"3494":{"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)\")"},"3495":{"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)\")"},"3496":{"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)\")"},"3497":{"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)\")"},"3498":{"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)\")"},"3499":{"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)\")"},"3500":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3501":{"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)\")"},"3502":{"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)\")"},"3503":{"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)\")"},"3504":{"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)\")"},"3505":{"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)\")"},"3506":{"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)\")"},"3507":{"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)\")"},"3508":{"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)\")"},"3509":{"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)\")"},"3510":{"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)\")"},"3511":{"morph":{"__isSmartRef__":true,"id":3474},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3512":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3513}},"3513":{"test01IsMorph":{"__isSmartRef__":true,"id":3514}},"3514":{"varMapping":{"__isSmartRef__":true,"id":3515},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3515":{"this":{"__isSmartRef__":true,"id":3512}},"3516":{},"3517":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3518},"_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":3519},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3520},"_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)"},"3518":{"_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)"},"3519":{"morph":{"__isSmartRef__":true,"id":3517},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3520":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3521}],"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)\")"},"3521":{"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)\")"},"3522":{"submorphs":[{"__isSmartRef__":true,"id":3523}],"scripts":[],"id":"431108CB-ED82-460C-A31B-2A1EFF44E4BE","shape":{"__isSmartRef__":true,"id":3538},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3539},"eventHandler":{"__isSmartRef__":true,"id":3559},"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":3560},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3565},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3523},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3090},{"__isSmartRef__":true,"id":3138},{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3906},{"__isSmartRef__":true,"id":3954},{"__isSmartRef__":true,"id":4002}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5110},"__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)"},"3523":{"submorphs":[],"scripts":[],"id":"D0332ADA-2AD1-4059-831B-8D6228C02D41","shape":{"__isSmartRef__":true,"id":3524},"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":3525},"textChunks":[{"__isSmartRef__":true,"id":3534}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3536},"_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":3537},"owner":{"__isSmartRef__":true,"id":3522},"_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)"},"3524":{"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)"},"3525":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3526},{"__isSmartRef__":true,"id":3527},{"__isSmartRef__":true,"id":3528},{"__isSmartRef__":true,"id":3529},{"__isSmartRef__":true,"id":3530},{"__isSmartRef__":true,"id":3531},{"__isSmartRef__":true,"id":3532},{"__isSmartRef__":true,"id":3533}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3526":{"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)\")"},"3527":{"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)\")"},"3528":{"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)\")"},"3529":{"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)\")"},"3530":{"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)\")"},"3531":{"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)\")"},"3532":{"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)\")"},"3533":{"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)\")"},"3534":{"style":{"__isSmartRef__":true,"id":3535},"chunkOwner":{"__isSmartRef__":true,"id":3523},"_id":"_16116","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3535":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3536":{"morph":{"__isSmartRef__":true,"id":3523},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3537":{"resizeWidth":true},"3538":{"_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)"},"3539":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3540},{"__isSmartRef__":true,"id":3541},{"__isSmartRef__":true,"id":3542},{"__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},{"__isSmartRef__":true,"id":3551},{"__isSmartRef__":true,"id":3552},{"__isSmartRef__":true,"id":3553},{"__isSmartRef__":true,"id":3554},{"__isSmartRef__":true,"id":3555},{"__isSmartRef__":true,"id":3556},{"__isSmartRef__":true,"id":3557},{"__isSmartRef__":true,"id":3558}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3540":{"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)\")"},"3541":{"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)\")"},"3542":{"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)\")"},"3543":{"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)\")"},"3544":{"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)\")"},"3545":{"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)\")"},"3546":{"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)\")"},"3547":{"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)\")"},"3548":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3549":{"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)\")"},"3550":{"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)\")"},"3551":{"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)\")"},"3552":{"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)\")"},"3553":{"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)\")"},"3554":{"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)\")"},"3555":{"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)\")"},"3556":{"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)\")"},"3557":{"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)\")"},"3558":{"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)\")"},"3559":{"morph":{"__isSmartRef__":true,"id":3522},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3560":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3561}},"3561":{"test01IsMorph":{"__isSmartRef__":true,"id":3562}},"3562":{"varMapping":{"__isSmartRef__":true,"id":3563},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3563":{"this":{"__isSmartRef__":true,"id":3560}},"3564":{},"3565":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3566},"_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":3567},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3568},"_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)"},"3566":{"_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)"},"3567":{"morph":{"__isSmartRef__":true,"id":3565},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3568":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3569}],"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)\")"},"3569":{"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)\")"},"3570":{"submorphs":[{"__isSmartRef__":true,"id":3571}],"scripts":[],"id":"31E7E1BA-C9DE-4758-B553-3A3777638A42","shape":{"__isSmartRef__":true,"id":3586},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3587},"eventHandler":{"__isSmartRef__":true,"id":3607},"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":3608},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3613},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3571},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3090},{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3858},{"__isSmartRef__":true,"id":3906},{"__isSmartRef__":true,"id":3954}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5048},"__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)"},"3571":{"submorphs":[],"scripts":[],"id":"95A22568-15A5-4ADF-8A52-FAF3B7B5AABF","shape":{"__isSmartRef__":true,"id":3572},"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":3573},"textChunks":[{"__isSmartRef__":true,"id":3582}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3584},"_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":3585},"owner":{"__isSmartRef__":true,"id":3570},"_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)"},"3572":{"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)"},"3573":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3574},{"__isSmartRef__":true,"id":3575},{"__isSmartRef__":true,"id":3576},{"__isSmartRef__":true,"id":3577},{"__isSmartRef__":true,"id":3578},{"__isSmartRef__":true,"id":3579},{"__isSmartRef__":true,"id":3580},{"__isSmartRef__":true,"id":3581}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3574":{"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)\")"},"3575":{"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)\")"},"3576":{"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)\")"},"3577":{"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)\")"},"3578":{"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)\")"},"3579":{"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)\")"},"3580":{"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)\")"},"3581":{"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)\")"},"3582":{"style":{"__isSmartRef__":true,"id":3583},"chunkOwner":{"__isSmartRef__":true,"id":3571},"_id":"_16115","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3583":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3584":{"morph":{"__isSmartRef__":true,"id":3571},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3585":{"resizeWidth":true},"3586":{"_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)"},"3587":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3588},{"__isSmartRef__":true,"id":3589},{"__isSmartRef__":true,"id":3590},{"__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},{"__isSmartRef__":true,"id":3599},{"__isSmartRef__":true,"id":3600},{"__isSmartRef__":true,"id":3601},{"__isSmartRef__":true,"id":3602},{"__isSmartRef__":true,"id":3603},{"__isSmartRef__":true,"id":3604},{"__isSmartRef__":true,"id":3605},{"__isSmartRef__":true,"id":3606}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3588":{"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)\")"},"3589":{"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)\")"},"3590":{"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)\")"},"3591":{"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)\")"},"3592":{"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)\")"},"3593":{"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)\")"},"3594":{"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)\")"},"3595":{"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)\")"},"3596":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3597":{"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)\")"},"3598":{"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)\")"},"3599":{"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)\")"},"3600":{"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)\")"},"3601":{"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)\")"},"3602":{"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)\")"},"3603":{"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)\")"},"3604":{"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)\")"},"3605":{"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)\")"},"3606":{"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)\")"},"3607":{"morph":{"__isSmartRef__":true,"id":3570},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3608":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3609}},"3609":{"test01IsMorph":{"__isSmartRef__":true,"id":3610}},"3610":{"varMapping":{"__isSmartRef__":true,"id":3611},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3611":{"this":{"__isSmartRef__":true,"id":3608}},"3612":{},"3613":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3614},"_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":3615},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3616},"_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)"},"3614":{"_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)"},"3615":{"morph":{"__isSmartRef__":true,"id":3613},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3616":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3617}],"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)\")"},"3617":{"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)\")"},"3618":{"submorphs":[{"__isSmartRef__":true,"id":3619}],"scripts":[],"id":"43ADB129-00EC-49F8-93CD-83A66AB288E9","shape":{"__isSmartRef__":true,"id":3634},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3635},"eventHandler":{"__isSmartRef__":true,"id":3655},"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":3656},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3661},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3619},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":3042},{"__isSmartRef__":true,"id":3666},{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3810},{"__isSmartRef__":true,"id":3858},{"__isSmartRef__":true,"id":3906}],"neighborCount":3,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4986},"__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)"},"3619":{"submorphs":[],"scripts":[],"id":"BA3702FB-540B-4A77-BAFF-A4D01B712969","shape":{"__isSmartRef__":true,"id":3620},"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":3621},"textChunks":[{"__isSmartRef__":true,"id":3630}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3632},"_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":3633},"owner":{"__isSmartRef__":true,"id":3618},"_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)"},"3620":{"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)"},"3621":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3622},{"__isSmartRef__":true,"id":3623},{"__isSmartRef__":true,"id":3624},{"__isSmartRef__":true,"id":3625},{"__isSmartRef__":true,"id":3626},{"__isSmartRef__":true,"id":3627},{"__isSmartRef__":true,"id":3628},{"__isSmartRef__":true,"id":3629}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3622":{"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)\")"},"3623":{"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)\")"},"3624":{"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)\")"},"3625":{"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)\")"},"3626":{"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)\")"},"3627":{"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)\")"},"3628":{"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)\")"},"3629":{"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)\")"},"3630":{"style":{"__isSmartRef__":true,"id":3631},"chunkOwner":{"__isSmartRef__":true,"id":3619},"_id":"_16114","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3631":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3632":{"morph":{"__isSmartRef__":true,"id":3619},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3633":{"resizeWidth":true},"3634":{"_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)"},"3635":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3636},{"__isSmartRef__":true,"id":3637},{"__isSmartRef__":true,"id":3638},{"__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},{"__isSmartRef__":true,"id":3647},{"__isSmartRef__":true,"id":3648},{"__isSmartRef__":true,"id":3649},{"__isSmartRef__":true,"id":3650},{"__isSmartRef__":true,"id":3651},{"__isSmartRef__":true,"id":3652},{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":3654}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3636":{"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)\")"},"3637":{"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)\")"},"3638":{"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)\")"},"3639":{"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)\")"},"3640":{"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)\")"},"3641":{"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)\")"},"3642":{"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)\")"},"3643":{"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)\")"},"3644":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3645":{"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)\")"},"3646":{"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)\")"},"3647":{"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)\")"},"3648":{"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)\")"},"3649":{"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)\")"},"3650":{"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)\")"},"3651":{"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)\")"},"3652":{"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)\")"},"3653":{"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)\")"},"3654":{"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)\")"},"3655":{"morph":{"__isSmartRef__":true,"id":3618},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3656":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3657}},"3657":{"test01IsMorph":{"__isSmartRef__":true,"id":3658}},"3658":{"varMapping":{"__isSmartRef__":true,"id":3659},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3659":{"this":{"__isSmartRef__":true,"id":3656}},"3660":{},"3661":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3662},"_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":3663},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3664},"_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)"},"3662":{"_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)"},"3663":{"morph":{"__isSmartRef__":true,"id":3661},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3664":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3665}],"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)\")"},"3665":{"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)\")"},"3666":{"submorphs":[{"__isSmartRef__":true,"id":3667}],"scripts":[],"id":"22DCC1A2-0F5F-43D6-85E3-1A9BF131A049","shape":{"__isSmartRef__":true,"id":3682},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3683},"eventHandler":{"__isSmartRef__":true,"id":3703},"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":3704},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3709},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3667},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2898},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":3714},{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3762},{"__isSmartRef__":true,"id":3810},{"__isSmartRef__":true,"id":3858}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4924},"__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)"},"3667":{"submorphs":[],"scripts":[],"id":"B7D3C491-74D3-4906-A124-D2FF0A5071C8","shape":{"__isSmartRef__":true,"id":3668},"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":3669},"textChunks":[{"__isSmartRef__":true,"id":3678}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3680},"_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":3681},"owner":{"__isSmartRef__":true,"id":3666},"_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)"},"3668":{"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)"},"3669":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3670},{"__isSmartRef__":true,"id":3671},{"__isSmartRef__":true,"id":3672},{"__isSmartRef__":true,"id":3673},{"__isSmartRef__":true,"id":3674},{"__isSmartRef__":true,"id":3675},{"__isSmartRef__":true,"id":3676},{"__isSmartRef__":true,"id":3677}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3670":{"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)\")"},"3671":{"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)\")"},"3672":{"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)\")"},"3673":{"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)\")"},"3674":{"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)\")"},"3675":{"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)\")"},"3676":{"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)\")"},"3677":{"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)\")"},"3678":{"style":{"__isSmartRef__":true,"id":3679},"chunkOwner":{"__isSmartRef__":true,"id":3667},"_id":"_16113","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3679":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3680":{"morph":{"__isSmartRef__":true,"id":3667},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3681":{"resizeWidth":true},"3682":{"_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)"},"3683":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3684},{"__isSmartRef__":true,"id":3685},{"__isSmartRef__":true,"id":3686},{"__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},{"__isSmartRef__":true,"id":3695},{"__isSmartRef__":true,"id":3696},{"__isSmartRef__":true,"id":3697},{"__isSmartRef__":true,"id":3698},{"__isSmartRef__":true,"id":3699},{"__isSmartRef__":true,"id":3700},{"__isSmartRef__":true,"id":3701},{"__isSmartRef__":true,"id":3702}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3684":{"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)\")"},"3685":{"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)\")"},"3686":{"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)\")"},"3687":{"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)\")"},"3688":{"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)\")"},"3689":{"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)\")"},"3690":{"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)\")"},"3691":{"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)\")"},"3692":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3693":{"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)\")"},"3694":{"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)\")"},"3695":{"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)\")"},"3696":{"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)\")"},"3697":{"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)\")"},"3698":{"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)\")"},"3699":{"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)\")"},"3700":{"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)\")"},"3701":{"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)\")"},"3702":{"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)\")"},"3703":{"morph":{"__isSmartRef__":true,"id":3666},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3704":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3705}},"3705":{"test01IsMorph":{"__isSmartRef__":true,"id":3706}},"3706":{"varMapping":{"__isSmartRef__":true,"id":3707},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3707":{"this":{"__isSmartRef__":true,"id":3704}},"3708":{},"3709":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3710},"_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":3711},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3712},"_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)"},"3710":{"_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)"},"3711":{"morph":{"__isSmartRef__":true,"id":3709},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3712":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3713}],"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)\")"},"3713":{"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)\")"},"3714":{"submorphs":[{"__isSmartRef__":true,"id":3715}],"scripts":[],"id":"FA422CE9-8292-4568-887B-209EEBEA5A30","shape":{"__isSmartRef__":true,"id":3730},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3731},"eventHandler":{"__isSmartRef__":true,"id":3751},"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":3752},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3757},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3715},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":2898},{"__isSmartRef__":true,"id":2946},{"__isSmartRef__":true,"id":3666},{"__isSmartRef__":true,"id":3762},{"__isSmartRef__":true,"id":3810}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4862},"__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)"},"3715":{"submorphs":[],"scripts":[],"id":"21AC1097-393D-475E-AA12-67CB28D7D1EF","shape":{"__isSmartRef__":true,"id":3716},"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":3717},"textChunks":[{"__isSmartRef__":true,"id":3726}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3728},"_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":3729},"owner":{"__isSmartRef__":true,"id":3714},"_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)"},"3716":{"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)"},"3717":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3718},{"__isSmartRef__":true,"id":3719},{"__isSmartRef__":true,"id":3720},{"__isSmartRef__":true,"id":3721},{"__isSmartRef__":true,"id":3722},{"__isSmartRef__":true,"id":3723},{"__isSmartRef__":true,"id":3724},{"__isSmartRef__":true,"id":3725}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3718":{"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)\")"},"3719":{"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)\")"},"3720":{"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)\")"},"3721":{"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)\")"},"3722":{"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)\")"},"3723":{"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)\")"},"3724":{"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)\")"},"3725":{"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)\")"},"3726":{"style":{"__isSmartRef__":true,"id":3727},"chunkOwner":{"__isSmartRef__":true,"id":3715},"_id":"_16112","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3727":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3728":{"morph":{"__isSmartRef__":true,"id":3715},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3729":{"resizeWidth":true},"3730":{"_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)"},"3731":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3732},{"__isSmartRef__":true,"id":3733},{"__isSmartRef__":true,"id":3734},{"__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},{"__isSmartRef__":true,"id":3743},{"__isSmartRef__":true,"id":3744},{"__isSmartRef__":true,"id":3745},{"__isSmartRef__":true,"id":3746},{"__isSmartRef__":true,"id":3747},{"__isSmartRef__":true,"id":3748},{"__isSmartRef__":true,"id":3749},{"__isSmartRef__":true,"id":3750}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3732":{"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)\")"},"3733":{"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)\")"},"3734":{"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)\")"},"3735":{"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)\")"},"3736":{"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)\")"},"3737":{"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)\")"},"3738":{"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)\")"},"3739":{"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)\")"},"3740":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3741":{"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)\")"},"3742":{"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)\")"},"3743":{"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)\")"},"3744":{"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)\")"},"3745":{"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)\")"},"3746":{"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)\")"},"3747":{"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)\")"},"3748":{"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)\")"},"3749":{"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)\")"},"3750":{"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)\")"},"3751":{"morph":{"__isSmartRef__":true,"id":3714},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3752":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3753}},"3753":{"test01IsMorph":{"__isSmartRef__":true,"id":3754}},"3754":{"varMapping":{"__isSmartRef__":true,"id":3755},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3755":{"this":{"__isSmartRef__":true,"id":3752}},"3756":{},"3757":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3758},"_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":3759},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3760},"_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)"},"3758":{"_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)"},"3759":{"morph":{"__isSmartRef__":true,"id":3757},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3760":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3761}],"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)\")"},"3761":{"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)\")"},"3762":{"submorphs":[{"__isSmartRef__":true,"id":3763}],"scripts":[],"id":"8F8A915E-1D8C-4943-9810-87266CD937D9","shape":{"__isSmartRef__":true,"id":3778},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3779},"eventHandler":{"__isSmartRef__":true,"id":3799},"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":3800},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3805},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3763},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3714},{"__isSmartRef__":true,"id":3666},{"__isSmartRef__":true,"id":3810}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4800},"__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)"},"3763":{"submorphs":[],"scripts":[],"id":"4E4806C1-1789-44B5-B8F4-68604236092F","shape":{"__isSmartRef__":true,"id":3764},"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":3765},"textChunks":[{"__isSmartRef__":true,"id":3774}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3776},"_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":3777},"owner":{"__isSmartRef__":true,"id":3762},"_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)"},"3764":{"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)"},"3765":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3766},{"__isSmartRef__":true,"id":3767},{"__isSmartRef__":true,"id":3768},{"__isSmartRef__":true,"id":3769},{"__isSmartRef__":true,"id":3770},{"__isSmartRef__":true,"id":3771},{"__isSmartRef__":true,"id":3772},{"__isSmartRef__":true,"id":3773}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3766":{"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)\")"},"3767":{"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)\")"},"3768":{"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)\")"},"3769":{"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)\")"},"3770":{"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)\")"},"3771":{"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)\")"},"3772":{"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)\")"},"3773":{"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)\")"},"3774":{"style":{"__isSmartRef__":true,"id":3775},"chunkOwner":{"__isSmartRef__":true,"id":3763},"_id":"_16121","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3775":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3776":{"morph":{"__isSmartRef__":true,"id":3763},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3777":{"resizeWidth":true},"3778":{"_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)"},"3779":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3780},{"__isSmartRef__":true,"id":3781},{"__isSmartRef__":true,"id":3782},{"__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},{"__isSmartRef__":true,"id":3791},{"__isSmartRef__":true,"id":3792},{"__isSmartRef__":true,"id":3793},{"__isSmartRef__":true,"id":3794},{"__isSmartRef__":true,"id":3795},{"__isSmartRef__":true,"id":3796},{"__isSmartRef__":true,"id":3797},{"__isSmartRef__":true,"id":3798}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3780":{"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)\")"},"3781":{"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)\")"},"3782":{"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)\")"},"3783":{"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)\")"},"3784":{"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)\")"},"3785":{"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)\")"},"3786":{"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)\")"},"3787":{"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)\")"},"3788":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3789":{"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)\")"},"3790":{"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)\")"},"3791":{"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)\")"},"3792":{"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)\")"},"3793":{"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)\")"},"3794":{"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)\")"},"3795":{"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)\")"},"3796":{"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)\")"},"3797":{"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)\")"},"3798":{"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)\")"},"3799":{"morph":{"__isSmartRef__":true,"id":3762},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3800":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3801}},"3801":{"test01IsMorph":{"__isSmartRef__":true,"id":3802}},"3802":{"varMapping":{"__isSmartRef__":true,"id":3803},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3803":{"this":{"__isSmartRef__":true,"id":3800}},"3804":{},"3805":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3806},"_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":3807},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3808},"_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)"},"3806":{"_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)"},"3807":{"morph":{"__isSmartRef__":true,"id":3805},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3808":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3809}],"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)\")"},"3809":{"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)\")"},"3810":{"submorphs":[{"__isSmartRef__":true,"id":3811}],"scripts":[],"id":"996A0278-5E63-41B0-861A-953D2B5504D7","shape":{"__isSmartRef__":true,"id":3826},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3827},"eventHandler":{"__isSmartRef__":true,"id":3847},"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":3848},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3853},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3811},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3714},{"__isSmartRef__":true,"id":3666},{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3762},{"__isSmartRef__":true,"id":3858}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4738},"__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)"},"3811":{"submorphs":[],"scripts":[],"id":"202F3A9B-6714-4E68-A5EB-88A0964EF3DB","shape":{"__isSmartRef__":true,"id":3812},"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":3813},"textChunks":[{"__isSmartRef__":true,"id":3822}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3824},"_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":3825},"owner":{"__isSmartRef__":true,"id":3810},"_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)"},"3812":{"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)"},"3813":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3814},{"__isSmartRef__":true,"id":3815},{"__isSmartRef__":true,"id":3816},{"__isSmartRef__":true,"id":3817},{"__isSmartRef__":true,"id":3818},{"__isSmartRef__":true,"id":3819},{"__isSmartRef__":true,"id":3820},{"__isSmartRef__":true,"id":3821}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3814":{"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)\")"},"3815":{"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)\")"},"3816":{"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)\")"},"3817":{"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)\")"},"3818":{"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)\")"},"3819":{"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)\")"},"3820":{"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)\")"},"3821":{"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)\")"},"3822":{"style":{"__isSmartRef__":true,"id":3823},"chunkOwner":{"__isSmartRef__":true,"id":3811},"_id":"_16122","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3823":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3824":{"morph":{"__isSmartRef__":true,"id":3811},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3825":{"resizeWidth":true},"3826":{"_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)"},"3827":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3828},{"__isSmartRef__":true,"id":3829},{"__isSmartRef__":true,"id":3830},{"__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},{"__isSmartRef__":true,"id":3839},{"__isSmartRef__":true,"id":3840},{"__isSmartRef__":true,"id":3841},{"__isSmartRef__":true,"id":3842},{"__isSmartRef__":true,"id":3843},{"__isSmartRef__":true,"id":3844},{"__isSmartRef__":true,"id":3845},{"__isSmartRef__":true,"id":3846}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3828":{"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)\")"},"3829":{"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)\")"},"3830":{"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)\")"},"3831":{"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)\")"},"3832":{"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)\")"},"3833":{"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)\")"},"3834":{"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)\")"},"3835":{"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)\")"},"3836":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3837":{"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)\")"},"3838":{"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)\")"},"3839":{"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)\")"},"3840":{"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)\")"},"3841":{"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)\")"},"3842":{"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)\")"},"3843":{"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)\")"},"3844":{"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)\")"},"3845":{"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)\")"},"3846":{"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)\")"},"3847":{"morph":{"__isSmartRef__":true,"id":3810},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3848":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3849}},"3849":{"test01IsMorph":{"__isSmartRef__":true,"id":3850}},"3850":{"varMapping":{"__isSmartRef__":true,"id":3851},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3851":{"this":{"__isSmartRef__":true,"id":3848}},"3852":{},"3853":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3854},"_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":3855},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3856},"_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)"},"3854":{"_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)"},"3855":{"morph":{"__isSmartRef__":true,"id":3853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3856":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3857}],"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)\")"},"3857":{"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)\")"},"3858":{"submorphs":[{"__isSmartRef__":true,"id":3859}],"scripts":[],"id":"A47B0DBE-D2D1-4562-B177-971F76F904B0","shape":{"__isSmartRef__":true,"id":3874},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3875},"eventHandler":{"__isSmartRef__":true,"id":3895},"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":3896},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3901},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3859},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3666},{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3810},{"__isSmartRef__":true,"id":3906}],"neighborCount":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4676},"__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)"},"3859":{"submorphs":[],"scripts":[],"id":"C172EC14-320E-4B75-828B-26FFDDF2E9B7","shape":{"__isSmartRef__":true,"id":3860},"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":3861},"textChunks":[{"__isSmartRef__":true,"id":3870}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3872},"_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":3873},"owner":{"__isSmartRef__":true,"id":3858},"_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)"},"3860":{"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)"},"3861":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3862},{"__isSmartRef__":true,"id":3863},{"__isSmartRef__":true,"id":3864},{"__isSmartRef__":true,"id":3865},{"__isSmartRef__":true,"id":3866},{"__isSmartRef__":true,"id":3867},{"__isSmartRef__":true,"id":3868},{"__isSmartRef__":true,"id":3869}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3862":{"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)\")"},"3863":{"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)\")"},"3864":{"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)\")"},"3865":{"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)\")"},"3866":{"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)\")"},"3867":{"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)\")"},"3868":{"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)\")"},"3869":{"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)\")"},"3870":{"style":{"__isSmartRef__":true,"id":3871},"chunkOwner":{"__isSmartRef__":true,"id":3859},"_id":"_16123","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3871":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3872":{"morph":{"__isSmartRef__":true,"id":3859},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3873":{"resizeWidth":true},"3874":{"_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)"},"3875":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3876},{"__isSmartRef__":true,"id":3877},{"__isSmartRef__":true,"id":3878},{"__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},{"__isSmartRef__":true,"id":3887},{"__isSmartRef__":true,"id":3888},{"__isSmartRef__":true,"id":3889},{"__isSmartRef__":true,"id":3890},{"__isSmartRef__":true,"id":3891},{"__isSmartRef__":true,"id":3892},{"__isSmartRef__":true,"id":3893},{"__isSmartRef__":true,"id":3894}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3876":{"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)\")"},"3877":{"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)\")"},"3878":{"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)\")"},"3879":{"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)\")"},"3880":{"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)\")"},"3881":{"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)\")"},"3882":{"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)\")"},"3883":{"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)\")"},"3884":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3885":{"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)\")"},"3886":{"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)\")"},"3887":{"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)\")"},"3888":{"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)\")"},"3889":{"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)\")"},"3890":{"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)\")"},"3891":{"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)\")"},"3892":{"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)\")"},"3893":{"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)\")"},"3894":{"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)\")"},"3895":{"morph":{"__isSmartRef__":true,"id":3858},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3896":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3897}},"3897":{"test01IsMorph":{"__isSmartRef__":true,"id":3898}},"3898":{"varMapping":{"__isSmartRef__":true,"id":3899},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3899":{"this":{"__isSmartRef__":true,"id":3896}},"3900":{},"3901":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3902},"_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":3903},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3904},"_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)"},"3902":{"_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)"},"3903":{"morph":{"__isSmartRef__":true,"id":3901},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3904":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3905}],"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)\")"},"3905":{"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)\")"},"3906":{"submorphs":[{"__isSmartRef__":true,"id":3907}],"scripts":[],"id":"D60ED849-9B63-41E5-B85E-42A03036BED7","shape":{"__isSmartRef__":true,"id":3922},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3923},"eventHandler":{"__isSmartRef__":true,"id":3943},"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":3944},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3949},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3907},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3618},{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3858},{"__isSmartRef__":true,"id":3954}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4614},"__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)"},"3907":{"submorphs":[],"scripts":[],"id":"5A14BD08-638F-4C9B-A32F-4D8AC5BDEAA1","shape":{"__isSmartRef__":true,"id":3908},"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":3909},"textChunks":[{"__isSmartRef__":true,"id":3918}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3920},"_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":3921},"owner":{"__isSmartRef__":true,"id":3906},"_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)"},"3908":{"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)"},"3909":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3910},{"__isSmartRef__":true,"id":3911},{"__isSmartRef__":true,"id":3912},{"__isSmartRef__":true,"id":3913},{"__isSmartRef__":true,"id":3914},{"__isSmartRef__":true,"id":3915},{"__isSmartRef__":true,"id":3916},{"__isSmartRef__":true,"id":3917}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3910":{"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)\")"},"3911":{"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)\")"},"3912":{"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)\")"},"3913":{"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)\")"},"3914":{"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)\")"},"3915":{"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)\")"},"3916":{"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)\")"},"3917":{"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)\")"},"3918":{"style":{"__isSmartRef__":true,"id":3919},"chunkOwner":{"__isSmartRef__":true,"id":3907},"_id":"_16124","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3919":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3920":{"morph":{"__isSmartRef__":true,"id":3907},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3921":{"resizeWidth":true},"3922":{"_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)"},"3923":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3924},{"__isSmartRef__":true,"id":3925},{"__isSmartRef__":true,"id":3926},{"__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},{"__isSmartRef__":true,"id":3935},{"__isSmartRef__":true,"id":3936},{"__isSmartRef__":true,"id":3937},{"__isSmartRef__":true,"id":3938},{"__isSmartRef__":true,"id":3939},{"__isSmartRef__":true,"id":3940},{"__isSmartRef__":true,"id":3941},{"__isSmartRef__":true,"id":3942}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3924":{"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)\")"},"3925":{"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)\")"},"3926":{"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)\")"},"3927":{"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)\")"},"3928":{"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)\")"},"3929":{"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)\")"},"3930":{"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)\")"},"3931":{"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)\")"},"3932":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3933":{"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)\")"},"3934":{"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)\")"},"3935":{"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)\")"},"3936":{"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)\")"},"3937":{"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)\")"},"3938":{"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)\")"},"3939":{"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)\")"},"3940":{"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)\")"},"3941":{"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)\")"},"3942":{"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)\")"},"3943":{"morph":{"__isSmartRef__":true,"id":3906},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3944":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3945}},"3945":{"test01IsMorph":{"__isSmartRef__":true,"id":3946}},"3946":{"varMapping":{"__isSmartRef__":true,"id":3947},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3947":{"this":{"__isSmartRef__":true,"id":3944}},"3948":{},"3949":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3950},"_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":3951},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3952},"_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)"},"3950":{"_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)"},"3951":{"morph":{"__isSmartRef__":true,"id":3949},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3952":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":3953}],"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)\")"},"3953":{"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)\")"},"3954":{"submorphs":[{"__isSmartRef__":true,"id":3955}],"scripts":[],"id":"730FEB19-7069-4A51-8C14-9E1950299D0D","shape":{"__isSmartRef__":true,"id":3970},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3971},"eventHandler":{"__isSmartRef__":true,"id":3991},"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":3992},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":3997},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":3955},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3570},{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3906},{"__isSmartRef__":true,"id":4002}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4552},"__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)"},"3955":{"submorphs":[],"scripts":[],"id":"F58129F0-A36A-44F3-AF96-FDD873460212","shape":{"__isSmartRef__":true,"id":3956},"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":3957},"textChunks":[{"__isSmartRef__":true,"id":3966}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3968},"_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":3969},"owner":{"__isSmartRef__":true,"id":3954},"_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)"},"3956":{"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)"},"3957":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3958},{"__isSmartRef__":true,"id":3959},{"__isSmartRef__":true,"id":3960},{"__isSmartRef__":true,"id":3961},{"__isSmartRef__":true,"id":3962},{"__isSmartRef__":true,"id":3963},{"__isSmartRef__":true,"id":3964},{"__isSmartRef__":true,"id":3965}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"3958":{"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)\")"},"3959":{"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)\")"},"3960":{"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)\")"},"3961":{"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)\")"},"3962":{"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)\")"},"3963":{"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)\")"},"3964":{"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)\")"},"3965":{"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)\")"},"3966":{"style":{"__isSmartRef__":true,"id":3967},"chunkOwner":{"__isSmartRef__":true,"id":3955},"_id":"_16125","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3967":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3968":{"morph":{"__isSmartRef__":true,"id":3955},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3969":{"resizeWidth":true},"3970":{"_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)"},"3971":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3972},{"__isSmartRef__":true,"id":3973},{"__isSmartRef__":true,"id":3974},{"__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},{"__isSmartRef__":true,"id":3983},{"__isSmartRef__":true,"id":3984},{"__isSmartRef__":true,"id":3985},{"__isSmartRef__":true,"id":3986},{"__isSmartRef__":true,"id":3987},{"__isSmartRef__":true,"id":3988},{"__isSmartRef__":true,"id":3989},{"__isSmartRef__":true,"id":3990}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"3972":{"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)\")"},"3973":{"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)\")"},"3974":{"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)\")"},"3975":{"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)\")"},"3976":{"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)\")"},"3977":{"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)\")"},"3978":{"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)\")"},"3979":{"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)\")"},"3980":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"3981":{"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)\")"},"3982":{"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)\")"},"3983":{"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)\")"},"3984":{"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)\")"},"3985":{"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)\")"},"3986":{"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)\")"},"3987":{"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)\")"},"3988":{"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)\")"},"3989":{"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)\")"},"3990":{"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)\")"},"3991":{"morph":{"__isSmartRef__":true,"id":3954},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3992":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3993}},"3993":{"test01IsMorph":{"__isSmartRef__":true,"id":3994}},"3994":{"varMapping":{"__isSmartRef__":true,"id":3995},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3995":{"this":{"__isSmartRef__":true,"id":3992}},"3996":{},"3997":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3998},"_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":3999},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4000},"_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)"},"3998":{"_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)"},"3999":{"morph":{"__isSmartRef__":true,"id":3997},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4000":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4001}],"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)\")"},"4001":{"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)\")"},"4002":{"submorphs":[{"__isSmartRef__":true,"id":4003}],"scripts":[],"id":"ADAC0234-92F2-4E31-9537-E3263B9A3449","shape":{"__isSmartRef__":true,"id":4018},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4019},"eventHandler":{"__isSmartRef__":true,"id":4039},"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":4040},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":4045},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":4003},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3522},{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3954},{"__isSmartRef__":true,"id":4050}],"neighborCount":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4490},"__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)"},"4003":{"submorphs":[],"scripts":[],"id":"ECD7D32F-BB87-4321-A380-38451F1A4FE2","shape":{"__isSmartRef__":true,"id":4004},"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":4005},"textChunks":[{"__isSmartRef__":true,"id":4014}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4016},"_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":4017},"owner":{"__isSmartRef__":true,"id":4002},"_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)"},"4004":{"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)"},"4005":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4006},{"__isSmartRef__":true,"id":4007},{"__isSmartRef__":true,"id":4008},{"__isSmartRef__":true,"id":4009},{"__isSmartRef__":true,"id":4010},{"__isSmartRef__":true,"id":4011},{"__isSmartRef__":true,"id":4012},{"__isSmartRef__":true,"id":4013}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"4006":{"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)\")"},"4007":{"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)\")"},"4008":{"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)\")"},"4009":{"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)\")"},"4010":{"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)\")"},"4011":{"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)\")"},"4012":{"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)\")"},"4013":{"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)\")"},"4014":{"style":{"__isSmartRef__":true,"id":4015},"chunkOwner":{"__isSmartRef__":true,"id":4003},"_id":"_16126","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4015":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4016":{"morph":{"__isSmartRef__":true,"id":4003},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4017":{"resizeWidth":true},"4018":{"_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)"},"4019":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4020},{"__isSmartRef__":true,"id":4021},{"__isSmartRef__":true,"id":4022},{"__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},{"__isSmartRef__":true,"id":4031},{"__isSmartRef__":true,"id":4032},{"__isSmartRef__":true,"id":4033},{"__isSmartRef__":true,"id":4034},{"__isSmartRef__":true,"id":4035},{"__isSmartRef__":true,"id":4036},{"__isSmartRef__":true,"id":4037},{"__isSmartRef__":true,"id":4038}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4020":{"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)\")"},"4021":{"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)\")"},"4022":{"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)\")"},"4023":{"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)\")"},"4024":{"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)\")"},"4025":{"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)\")"},"4026":{"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)\")"},"4027":{"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)\")"},"4028":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"4029":{"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)\")"},"4030":{"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)\")"},"4031":{"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)\")"},"4032":{"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)\")"},"4033":{"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)\")"},"4034":{"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)\")"},"4035":{"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)\")"},"4036":{"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)\")"},"4037":{"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)\")"},"4038":{"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)\")"},"4039":{"morph":{"__isSmartRef__":true,"id":4002},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4040":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4041}},"4041":{"test01IsMorph":{"__isSmartRef__":true,"id":4042}},"4042":{"varMapping":{"__isSmartRef__":true,"id":4043},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4043":{"this":{"__isSmartRef__":true,"id":4040}},"4044":{},"4045":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4046},"_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":4047},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4048},"_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)"},"4046":{"_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)"},"4047":{"morph":{"__isSmartRef__":true,"id":4045},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4048":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4049}],"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)\")"},"4049":{"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)\")"},"4050":{"submorphs":[{"__isSmartRef__":true,"id":4051}],"scripts":[],"id":"B930F1E3-D040-45C3-B8E3-E2D3A612D312","shape":{"__isSmartRef__":true,"id":4066},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4067},"eventHandler":{"__isSmartRef__":true,"id":4087},"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":4088},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":4093},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":4051},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":4002},{"__isSmartRef__":true,"id":4098}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4428},"__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)"},"4051":{"submorphs":[],"scripts":[],"id":"9C46AD42-225F-47BD-ABB0-B5AAAE5AA6BB","shape":{"__isSmartRef__":true,"id":4052},"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":4053},"textChunks":[{"__isSmartRef__":true,"id":4062}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4064},"_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":4065},"owner":{"__isSmartRef__":true,"id":4050},"_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)"},"4052":{"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)"},"4053":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4054},{"__isSmartRef__":true,"id":4055},{"__isSmartRef__":true,"id":4056},{"__isSmartRef__":true,"id":4057},{"__isSmartRef__":true,"id":4058},{"__isSmartRef__":true,"id":4059},{"__isSmartRef__":true,"id":4060},{"__isSmartRef__":true,"id":4061}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"4054":{"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)\")"},"4055":{"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)\")"},"4056":{"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)\")"},"4057":{"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)\")"},"4058":{"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)\")"},"4059":{"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)\")"},"4060":{"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)\")"},"4061":{"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)\")"},"4062":{"style":{"__isSmartRef__":true,"id":4063},"chunkOwner":{"__isSmartRef__":true,"id":4051},"_id":"_16127","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4063":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4064":{"morph":{"__isSmartRef__":true,"id":4051},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4065":{"resizeWidth":true},"4066":{"_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)"},"4067":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4068},{"__isSmartRef__":true,"id":4069},{"__isSmartRef__":true,"id":4070},{"__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},{"__isSmartRef__":true,"id":4079},{"__isSmartRef__":true,"id":4080},{"__isSmartRef__":true,"id":4081},{"__isSmartRef__":true,"id":4082},{"__isSmartRef__":true,"id":4083},{"__isSmartRef__":true,"id":4084},{"__isSmartRef__":true,"id":4085},{"__isSmartRef__":true,"id":4086}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4068":{"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)\")"},"4069":{"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)\")"},"4070":{"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)\")"},"4071":{"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)\")"},"4072":{"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)\")"},"4073":{"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)\")"},"4074":{"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)\")"},"4075":{"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)\")"},"4076":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"4077":{"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)\")"},"4078":{"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)\")"},"4079":{"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)\")"},"4080":{"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)\")"},"4081":{"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)\")"},"4082":{"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)\")"},"4083":{"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)\")"},"4084":{"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)\")"},"4085":{"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)\")"},"4086":{"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)\")"},"4087":{"morph":{"__isSmartRef__":true,"id":4050},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4088":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4089}},"4089":{"test01IsMorph":{"__isSmartRef__":true,"id":4090}},"4090":{"varMapping":{"__isSmartRef__":true,"id":4091},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4091":{"this":{"__isSmartRef__":true,"id":4088}},"4092":{},"4093":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4094},"_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":4095},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4096},"_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)"},"4094":{"_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)"},"4095":{"morph":{"__isSmartRef__":true,"id":4093},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4096":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4097}],"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)\")"},"4097":{"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)\")"},"4098":{"submorphs":[{"__isSmartRef__":true,"id":4099}],"scripts":[],"id":"90E843A3-F98E-437C-9604-7BF078AF77C7","shape":{"__isSmartRef__":true,"id":4114},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4115},"eventHandler":{"__isSmartRef__":true,"id":4135},"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":4136},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":4141},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":4099},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":4146},{"__isSmartRef__":true,"id":4050},{"__isSmartRef__":true,"id":4194}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4366},"__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)"},"4099":{"submorphs":[],"scripts":[],"id":"14DEA65D-3BBE-4B21-B606-878652B14277","shape":{"__isSmartRef__":true,"id":4100},"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":4101},"textChunks":[{"__isSmartRef__":true,"id":4110}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4112},"_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":4113},"owner":{"__isSmartRef__":true,"id":4098},"_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)"},"4100":{"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)"},"4101":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4102},{"__isSmartRef__":true,"id":4103},{"__isSmartRef__":true,"id":4104},{"__isSmartRef__":true,"id":4105},{"__isSmartRef__":true,"id":4106},{"__isSmartRef__":true,"id":4107},{"__isSmartRef__":true,"id":4108},{"__isSmartRef__":true,"id":4109}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"4102":{"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)\")"},"4103":{"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)\")"},"4104":{"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)\")"},"4105":{"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)\")"},"4106":{"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)\")"},"4107":{"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)\")"},"4108":{"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)\")"},"4109":{"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)\")"},"4110":{"style":{"__isSmartRef__":true,"id":4111},"chunkOwner":{"__isSmartRef__":true,"id":4099},"_id":"_16128","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4111":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4112":{"morph":{"__isSmartRef__":true,"id":4099},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4113":{"resizeWidth":true},"4114":{"_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)"},"4115":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4116},{"__isSmartRef__":true,"id":4117},{"__isSmartRef__":true,"id":4118},{"__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},{"__isSmartRef__":true,"id":4127},{"__isSmartRef__":true,"id":4128},{"__isSmartRef__":true,"id":4129},{"__isSmartRef__":true,"id":4130},{"__isSmartRef__":true,"id":4131},{"__isSmartRef__":true,"id":4132},{"__isSmartRef__":true,"id":4133},{"__isSmartRef__":true,"id":4134}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4116":{"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)\")"},"4117":{"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)\")"},"4118":{"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)\")"},"4119":{"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)\")"},"4120":{"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)\")"},"4121":{"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)\")"},"4122":{"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)\")"},"4123":{"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)\")"},"4124":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"4125":{"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)\")"},"4126":{"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)\")"},"4127":{"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)\")"},"4128":{"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)\")"},"4129":{"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)\")"},"4130":{"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)\")"},"4131":{"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)\")"},"4132":{"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)\")"},"4133":{"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)\")"},"4134":{"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)\")"},"4135":{"morph":{"__isSmartRef__":true,"id":4098},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4136":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4137}},"4137":{"test01IsMorph":{"__isSmartRef__":true,"id":4138}},"4138":{"varMapping":{"__isSmartRef__":true,"id":4139},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4139":{"this":{"__isSmartRef__":true,"id":4136}},"4140":{},"4141":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4142},"_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":4143},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4144},"_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)"},"4142":{"_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)"},"4143":{"morph":{"__isSmartRef__":true,"id":4141},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4144":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4145}],"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)\")"},"4145":{"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)\")"},"4146":{"submorphs":[{"__isSmartRef__":true,"id":4147}],"scripts":[],"id":"99D50B87-E544-4E42-8E97-601EE45076B2","shape":{"__isSmartRef__":true,"id":4162},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4163},"eventHandler":{"__isSmartRef__":true,"id":4183},"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":4184},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":4189},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":4147},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3234},{"__isSmartRef__":true,"id":3330},{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":4098},{"__isSmartRef__":true,"id":4194}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4304},"__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)"},"4147":{"submorphs":[],"scripts":[],"id":"9CA533A4-DB44-4143-AB77-25C1B85B7B23","shape":{"__isSmartRef__":true,"id":4148},"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":4149},"textChunks":[{"__isSmartRef__":true,"id":4158}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4160},"_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":4161},"owner":{"__isSmartRef__":true,"id":4146},"_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)"},"4148":{"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)"},"4149":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4150},{"__isSmartRef__":true,"id":4151},{"__isSmartRef__":true,"id":4152},{"__isSmartRef__":true,"id":4153},{"__isSmartRef__":true,"id":4154},{"__isSmartRef__":true,"id":4155},{"__isSmartRef__":true,"id":4156},{"__isSmartRef__":true,"id":4157}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"4150":{"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)\")"},"4151":{"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)\")"},"4152":{"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)\")"},"4153":{"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)\")"},"4154":{"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)\")"},"4155":{"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)\")"},"4156":{"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)\")"},"4157":{"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)\")"},"4158":{"style":{"__isSmartRef__":true,"id":4159},"chunkOwner":{"__isSmartRef__":true,"id":4147},"_id":"_16120","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4159":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4160":{"morph":{"__isSmartRef__":true,"id":4147},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4161":{"resizeWidth":true},"4162":{"_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)"},"4163":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4164},{"__isSmartRef__":true,"id":4165},{"__isSmartRef__":true,"id":4166},{"__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},{"__isSmartRef__":true,"id":4175},{"__isSmartRef__":true,"id":4176},{"__isSmartRef__":true,"id":4177},{"__isSmartRef__":true,"id":4178},{"__isSmartRef__":true,"id":4179},{"__isSmartRef__":true,"id":4180},{"__isSmartRef__":true,"id":4181},{"__isSmartRef__":true,"id":4182}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4164":{"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)\")"},"4165":{"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)\")"},"4166":{"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)\")"},"4167":{"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)\")"},"4168":{"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)\")"},"4169":{"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)\")"},"4170":{"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)\")"},"4171":{"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)\")"},"4172":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"4173":{"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)\")"},"4174":{"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)\")"},"4175":{"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)\")"},"4176":{"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)\")"},"4177":{"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)\")"},"4178":{"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)\")"},"4179":{"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)\")"},"4180":{"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)\")"},"4181":{"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)\")"},"4182":{"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)\")"},"4183":{"morph":{"__isSmartRef__":true,"id":4146},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4184":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4185}},"4185":{"test01IsMorph":{"__isSmartRef__":true,"id":4186}},"4186":{"varMapping":{"__isSmartRef__":true,"id":4187},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4187":{"this":{"__isSmartRef__":true,"id":4184}},"4188":{},"4189":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4190},"_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":4191},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4192},"_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)"},"4190":{"_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)"},"4191":{"morph":{"__isSmartRef__":true,"id":4189},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4192":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4193}],"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)\")"},"4193":{"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)\")"},"4194":{"submorphs":[{"__isSmartRef__":true,"id":4195}],"scripts":[],"id":"E8894348-E587-4EEA-8012-3898EABE07A5","shape":{"__isSmartRef__":true,"id":4210},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4211},"eventHandler":{"__isSmartRef__":true,"id":4231},"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":4232},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":4237},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":4195},"isRevealed":false,"hasBomb":false,"_Visible":true,"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent","coordinates"],"owner":{"__isSmartRef__":true,"id":0},"neighbors":[{"__isSmartRef__":true,"id":3378},{"__isSmartRef__":true,"id":4146},{"__isSmartRef__":true,"id":4098}],"neighborCount":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4242},"__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)"},"4195":{"submorphs":[],"scripts":[],"id":"D33FCACE-D934-48BE-A98A-D47AC0B6CEB2","shape":{"__isSmartRef__":true,"id":4196},"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":4197},"textChunks":[{"__isSmartRef__":true,"id":4206}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":4208},"_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":4209},"owner":{"__isSmartRef__":true,"id":4194},"_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)"},"4196":{"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)"},"4197":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":4198},{"__isSmartRef__":true,"id":4199},{"__isSmartRef__":true,"id":4200},{"__isSmartRef__":true,"id":4201},{"__isSmartRef__":true,"id":4202},{"__isSmartRef__":true,"id":4203},{"__isSmartRef__":true,"id":4204},{"__isSmartRef__":true,"id":4205}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"4198":{"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)\")"},"4199":{"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)\")"},"4200":{"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)\")"},"4201":{"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)\")"},"4202":{"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)\")"},"4203":{"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)\")"},"4204":{"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)\")"},"4205":{"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)\")"},"4206":{"style":{"__isSmartRef__":true,"id":4207},"chunkOwner":{"__isSmartRef__":true,"id":4195},"_id":"_16129","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4207":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4208":{"morph":{"__isSmartRef__":true,"id":4195},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4209":{"resizeWidth":true},"4210":{"_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)"},"4211":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4212},{"__isSmartRef__":true,"id":4213},{"__isSmartRef__":true,"id":4214},{"__isSmartRef__":true,"id":4215},{"__isSmartRef__":true,"id":4216},{"__isSmartRef__":true,"id":4217},{"__isSmartRef__":true,"id":4218},{"__isSmartRef__":true,"id":4219},{"__isSmartRef__":true,"id":4220},{"__isSmartRef__":true,"id":4221},{"__isSmartRef__":true,"id":4222},{"__isSmartRef__":true,"id":4223},{"__isSmartRef__":true,"id":4224},{"__isSmartRef__":true,"id":4225},{"__isSmartRef__":true,"id":4226},{"__isSmartRef__":true,"id":4227},{"__isSmartRef__":true,"id":4228},{"__isSmartRef__":true,"id":4229},{"__isSmartRef__":true,"id":4230}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"4212":{"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)\")"},"4213":{"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)\")"},"4214":{"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)\")"},"4215":{"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)\")"},"4216":{"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)\")"},"4217":{"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)\")"},"4218":{"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)\")"},"4219":{"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)\")"},"4220":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"4221":{"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)\")"},"4222":{"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)\")"},"4223":{"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)\")"},"4224":{"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)\")"},"4225":{"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)\")"},"4226":{"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)\")"},"4227":{"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)\")"},"4228":{"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)\")"},"4229":{"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)\")"},"4230":{"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)\")"},"4231":{"morph":{"__isSmartRef__":true,"id":4194},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4232":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4233}},"4233":{"test01IsMorph":{"__isSmartRef__":true,"id":4234}},"4234":{"varMapping":{"__isSmartRef__":true,"id":4235},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4235":{"this":{"__isSmartRef__":true,"id":4232}},"4236":{},"4237":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4238},"_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":4239},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4240},"_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)"},"4238":{"_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)"},"4239":{"morph":{"__isSmartRef__":true,"id":4237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4240":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":4241}],"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)\")"},"4241":{"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)\")"},"4242":{"addBomb":{"__isSmartRef__":true,"id":4243},"clearFlag":{"__isSmartRef__":true,"id":4246},"countNeighborBombs":{"__isSmartRef__":true,"id":4249},"fixSubmorph":{"__isSmartRef__":true,"id":4252},"initAppearance":{"__isSmartRef__":true,"id":4255},"initMorphs":{"__isSmartRef__":true,"id":4258},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4261},"isClosed":{"__isSmartRef__":true,"id":4264},"neighborPoints":{"__isSmartRef__":true,"id":4267},"onMouseDown":{"__isSmartRef__":true,"id":4270},"restoreGameAppearance":{"__isSmartRef__":true,"id":4277},"reveal":{"__isSmartRef__":true,"id":4280},"setCoordinates":{"__isSmartRef__":true,"id":4283},"showBomb":{"__isSmartRef__":true,"id":4286},"showDebugState":{"__isSmartRef__":true,"id":4289},"showFlag":{"__isSmartRef__":true,"id":4292},"showState":{"__isSmartRef__":true,"id":4295},"copyImageMorph":{"__isSmartRef__":true,"id":4298},"prepareToPublish":{"__isSmartRef__":true,"id":4301}},"4243":{"varMapping":{"__isSmartRef__":true,"id":4244},"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":4245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4244":{"this":{"__isSmartRef__":true,"id":4194}},"4245":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4246":{"varMapping":{"__isSmartRef__":true,"id":4247},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4247":{"this":{"__isSmartRef__":true,"id":4194}},"4248":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4249":{"varMapping":{"__isSmartRef__":true,"id":4250},"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":4251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4250":{"this":{"__isSmartRef__":true,"id":4194}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4253":{"this":{"__isSmartRef__":true,"id":4194}},"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 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":4257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4256":{"this":{"__isSmartRef__":true,"id":4194}},"4257":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4258":{"varMapping":{"__isSmartRef__":true,"id":4259},"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":4260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4259":{"this":{"__isSmartRef__":true,"id":4194}},"4260":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4261":{"varMapping":{"__isSmartRef__":true,"id":4262},"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":4263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4262":{"this":{"__isSmartRef__":true,"id":4194}},"4263":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4264":{"varMapping":{"__isSmartRef__":true,"id":4265},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4265":{"this":{"__isSmartRef__":true,"id":4194}},"4266":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4267":{"varMapping":{"__isSmartRef__":true,"id":4268},"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":4269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4268":{"this":{"__isSmartRef__":true,"id":4194}},"4269":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4270":{"varMapping":{"__isSmartRef__":true,"id":4271},"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":4276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4271":{"this":{"__isSmartRef__":true,"id":4194},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4272}},"4272":{"$super":{"__isSmartRef__":true,"id":4273}},"4273":{"varMapping":{"__isSmartRef__":true,"id":4274},"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":4275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4274":{"obj":{"__isSmartRef__":true,"id":4194},"name":"onMouseDown"},"4275":{},"4276":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4277":{"varMapping":{"__isSmartRef__":true,"id":4278},"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":4279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4278":{"this":{"__isSmartRef__":true,"id":4194}},"4279":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4280":{"varMapping":{"__isSmartRef__":true,"id":4281},"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":4282},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4281":{"this":{"__isSmartRef__":true,"id":4194}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4284":{"this":{"__isSmartRef__":true,"id":4194}},"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 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":4288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4287":{"this":{"__isSmartRef__":true,"id":4194}},"4288":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4289":{"varMapping":{"__isSmartRef__":true,"id":4290},"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":4291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4290":{"this":{"__isSmartRef__":true,"id":4194}},"4291":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4292":{"varMapping":{"__isSmartRef__":true,"id":4293},"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":4294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4293":{"this":{"__isSmartRef__":true,"id":4194}},"4294":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4295":{"varMapping":{"__isSmartRef__":true,"id":4296},"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":4297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4296":{"this":{"__isSmartRef__":true,"id":4194}},"4297":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4298":{"varMapping":{"__isSmartRef__":true,"id":4299},"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":4300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4299":{"this":{"__isSmartRef__":true,"id":4194}},"4300":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4301":{"varMapping":{"__isSmartRef__":true,"id":4302},"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":4303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4302":{"this":{"__isSmartRef__":true,"id":4194}},"4303":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4304":{"addBomb":{"__isSmartRef__":true,"id":4305},"clearFlag":{"__isSmartRef__":true,"id":4308},"countNeighborBombs":{"__isSmartRef__":true,"id":4311},"fixSubmorph":{"__isSmartRef__":true,"id":4314},"initAppearance":{"__isSmartRef__":true,"id":4317},"initMorphs":{"__isSmartRef__":true,"id":4320},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4323},"isClosed":{"__isSmartRef__":true,"id":4326},"neighborPoints":{"__isSmartRef__":true,"id":4329},"onMouseDown":{"__isSmartRef__":true,"id":4332},"restoreGameAppearance":{"__isSmartRef__":true,"id":4339},"reveal":{"__isSmartRef__":true,"id":4342},"setCoordinates":{"__isSmartRef__":true,"id":4345},"showBomb":{"__isSmartRef__":true,"id":4348},"showDebugState":{"__isSmartRef__":true,"id":4351},"showFlag":{"__isSmartRef__":true,"id":4354},"showState":{"__isSmartRef__":true,"id":4357},"copyImageMorph":{"__isSmartRef__":true,"id":4360},"prepareToPublish":{"__isSmartRef__":true,"id":4363}},"4305":{"varMapping":{"__isSmartRef__":true,"id":4306},"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":4307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4306":{"this":{"__isSmartRef__":true,"id":4146}},"4307":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4308":{"varMapping":{"__isSmartRef__":true,"id":4309},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4309":{"this":{"__isSmartRef__":true,"id":4146}},"4310":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4311":{"varMapping":{"__isSmartRef__":true,"id":4312},"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":4313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4312":{"this":{"__isSmartRef__":true,"id":4146}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4315":{"this":{"__isSmartRef__":true,"id":4146}},"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 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":4319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4318":{"this":{"__isSmartRef__":true,"id":4146}},"4319":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4320":{"varMapping":{"__isSmartRef__":true,"id":4321},"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":4322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4321":{"this":{"__isSmartRef__":true,"id":4146}},"4322":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4323":{"varMapping":{"__isSmartRef__":true,"id":4324},"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":4325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4324":{"this":{"__isSmartRef__":true,"id":4146}},"4325":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4326":{"varMapping":{"__isSmartRef__":true,"id":4327},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4327":{"this":{"__isSmartRef__":true,"id":4146}},"4328":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4329":{"varMapping":{"__isSmartRef__":true,"id":4330},"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":4331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4330":{"this":{"__isSmartRef__":true,"id":4146}},"4331":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4332":{"varMapping":{"__isSmartRef__":true,"id":4333},"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":4338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4333":{"this":{"__isSmartRef__":true,"id":4146},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4334}},"4334":{"$super":{"__isSmartRef__":true,"id":4335}},"4335":{"varMapping":{"__isSmartRef__":true,"id":4336},"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":4337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4336":{"obj":{"__isSmartRef__":true,"id":4146},"name":"onMouseDown"},"4337":{},"4338":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4339":{"varMapping":{"__isSmartRef__":true,"id":4340},"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":4341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4340":{"this":{"__isSmartRef__":true,"id":4146}},"4341":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4342":{"varMapping":{"__isSmartRef__":true,"id":4343},"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":4344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4343":{"this":{"__isSmartRef__":true,"id":4146}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4346":{"this":{"__isSmartRef__":true,"id":4146}},"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 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":4350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4349":{"this":{"__isSmartRef__":true,"id":4146}},"4350":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4351":{"varMapping":{"__isSmartRef__":true,"id":4352},"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":4353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4352":{"this":{"__isSmartRef__":true,"id":4146}},"4353":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4354":{"varMapping":{"__isSmartRef__":true,"id":4355},"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":4356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4355":{"this":{"__isSmartRef__":true,"id":4146}},"4356":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4357":{"varMapping":{"__isSmartRef__":true,"id":4358},"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":4359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4358":{"this":{"__isSmartRef__":true,"id":4146}},"4359":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4360":{"varMapping":{"__isSmartRef__":true,"id":4361},"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":4362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4361":{"this":{"__isSmartRef__":true,"id":4146}},"4362":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4363":{"varMapping":{"__isSmartRef__":true,"id":4364},"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":4365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4364":{"this":{"__isSmartRef__":true,"id":4146}},"4365":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4366":{"addBomb":{"__isSmartRef__":true,"id":4367},"clearFlag":{"__isSmartRef__":true,"id":4370},"countNeighborBombs":{"__isSmartRef__":true,"id":4373},"fixSubmorph":{"__isSmartRef__":true,"id":4376},"initAppearance":{"__isSmartRef__":true,"id":4379},"initMorphs":{"__isSmartRef__":true,"id":4382},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4385},"isClosed":{"__isSmartRef__":true,"id":4388},"neighborPoints":{"__isSmartRef__":true,"id":4391},"onMouseDown":{"__isSmartRef__":true,"id":4394},"restoreGameAppearance":{"__isSmartRef__":true,"id":4401},"reveal":{"__isSmartRef__":true,"id":4404},"setCoordinates":{"__isSmartRef__":true,"id":4407},"showBomb":{"__isSmartRef__":true,"id":4410},"showDebugState":{"__isSmartRef__":true,"id":4413},"showFlag":{"__isSmartRef__":true,"id":4416},"showState":{"__isSmartRef__":true,"id":4419},"copyImageMorph":{"__isSmartRef__":true,"id":4422},"prepareToPublish":{"__isSmartRef__":true,"id":4425}},"4367":{"varMapping":{"__isSmartRef__":true,"id":4368},"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":4369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4368":{"this":{"__isSmartRef__":true,"id":4098}},"4369":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4370":{"varMapping":{"__isSmartRef__":true,"id":4371},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4371":{"this":{"__isSmartRef__":true,"id":4098}},"4372":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4373":{"varMapping":{"__isSmartRef__":true,"id":4374},"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":4375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4374":{"this":{"__isSmartRef__":true,"id":4098}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4377":{"this":{"__isSmartRef__":true,"id":4098}},"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 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":4381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4380":{"this":{"__isSmartRef__":true,"id":4098}},"4381":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4382":{"varMapping":{"__isSmartRef__":true,"id":4383},"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":4384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4383":{"this":{"__isSmartRef__":true,"id":4098}},"4384":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4385":{"varMapping":{"__isSmartRef__":true,"id":4386},"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":4387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4386":{"this":{"__isSmartRef__":true,"id":4098}},"4387":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4388":{"varMapping":{"__isSmartRef__":true,"id":4389},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4389":{"this":{"__isSmartRef__":true,"id":4098}},"4390":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4391":{"varMapping":{"__isSmartRef__":true,"id":4392},"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":4393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4392":{"this":{"__isSmartRef__":true,"id":4098}},"4393":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4394":{"varMapping":{"__isSmartRef__":true,"id":4395},"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":4400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4395":{"this":{"__isSmartRef__":true,"id":4098},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4396}},"4396":{"$super":{"__isSmartRef__":true,"id":4397}},"4397":{"varMapping":{"__isSmartRef__":true,"id":4398},"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":4399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4398":{"obj":{"__isSmartRef__":true,"id":4098},"name":"onMouseDown"},"4399":{},"4400":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4401":{"varMapping":{"__isSmartRef__":true,"id":4402},"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":4403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4402":{"this":{"__isSmartRef__":true,"id":4098}},"4403":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4404":{"varMapping":{"__isSmartRef__":true,"id":4405},"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":4406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4405":{"this":{"__isSmartRef__":true,"id":4098}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4408":{"this":{"__isSmartRef__":true,"id":4098}},"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 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":4412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4411":{"this":{"__isSmartRef__":true,"id":4098}},"4412":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4413":{"varMapping":{"__isSmartRef__":true,"id":4414},"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":4415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4414":{"this":{"__isSmartRef__":true,"id":4098}},"4415":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4416":{"varMapping":{"__isSmartRef__":true,"id":4417},"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":4418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4417":{"this":{"__isSmartRef__":true,"id":4098}},"4418":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4419":{"varMapping":{"__isSmartRef__":true,"id":4420},"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":4421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4420":{"this":{"__isSmartRef__":true,"id":4098}},"4421":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4422":{"varMapping":{"__isSmartRef__":true,"id":4423},"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":4424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4423":{"this":{"__isSmartRef__":true,"id":4098}},"4424":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4425":{"varMapping":{"__isSmartRef__":true,"id":4426},"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":4427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4426":{"this":{"__isSmartRef__":true,"id":4098}},"4427":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4428":{"addBomb":{"__isSmartRef__":true,"id":4429},"clearFlag":{"__isSmartRef__":true,"id":4432},"countNeighborBombs":{"__isSmartRef__":true,"id":4435},"fixSubmorph":{"__isSmartRef__":true,"id":4438},"initAppearance":{"__isSmartRef__":true,"id":4441},"initMorphs":{"__isSmartRef__":true,"id":4444},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4447},"isClosed":{"__isSmartRef__":true,"id":4450},"neighborPoints":{"__isSmartRef__":true,"id":4453},"onMouseDown":{"__isSmartRef__":true,"id":4456},"restoreGameAppearance":{"__isSmartRef__":true,"id":4463},"reveal":{"__isSmartRef__":true,"id":4466},"setCoordinates":{"__isSmartRef__":true,"id":4469},"showBomb":{"__isSmartRef__":true,"id":4472},"showDebugState":{"__isSmartRef__":true,"id":4475},"showFlag":{"__isSmartRef__":true,"id":4478},"showState":{"__isSmartRef__":true,"id":4481},"copyImageMorph":{"__isSmartRef__":true,"id":4484},"prepareToPublish":{"__isSmartRef__":true,"id":4487}},"4429":{"varMapping":{"__isSmartRef__":true,"id":4430},"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":4431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4430":{"this":{"__isSmartRef__":true,"id":4050}},"4431":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4432":{"varMapping":{"__isSmartRef__":true,"id":4433},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4433":{"this":{"__isSmartRef__":true,"id":4050}},"4434":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4435":{"varMapping":{"__isSmartRef__":true,"id":4436},"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":4437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4436":{"this":{"__isSmartRef__":true,"id":4050}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4439":{"this":{"__isSmartRef__":true,"id":4050}},"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 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":4443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4442":{"this":{"__isSmartRef__":true,"id":4050}},"4443":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4444":{"varMapping":{"__isSmartRef__":true,"id":4445},"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":4446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4445":{"this":{"__isSmartRef__":true,"id":4050}},"4446":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4447":{"varMapping":{"__isSmartRef__":true,"id":4448},"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":4449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4448":{"this":{"__isSmartRef__":true,"id":4050}},"4449":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4450":{"varMapping":{"__isSmartRef__":true,"id":4451},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4451":{"this":{"__isSmartRef__":true,"id":4050}},"4452":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4453":{"varMapping":{"__isSmartRef__":true,"id":4454},"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":4455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4454":{"this":{"__isSmartRef__":true,"id":4050}},"4455":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4456":{"varMapping":{"__isSmartRef__":true,"id":4457},"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":4462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4457":{"this":{"__isSmartRef__":true,"id":4050},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4458}},"4458":{"$super":{"__isSmartRef__":true,"id":4459}},"4459":{"varMapping":{"__isSmartRef__":true,"id":4460},"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":4461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4460":{"obj":{"__isSmartRef__":true,"id":4050},"name":"onMouseDown"},"4461":{},"4462":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4463":{"varMapping":{"__isSmartRef__":true,"id":4464},"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":4465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4464":{"this":{"__isSmartRef__":true,"id":4050}},"4465":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4466":{"varMapping":{"__isSmartRef__":true,"id":4467},"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":4468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4467":{"this":{"__isSmartRef__":true,"id":4050}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4471},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4470":{"this":{"__isSmartRef__":true,"id":4050}},"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 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":4474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4473":{"this":{"__isSmartRef__":true,"id":4050}},"4474":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4475":{"varMapping":{"__isSmartRef__":true,"id":4476},"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":4477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4476":{"this":{"__isSmartRef__":true,"id":4050}},"4477":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4478":{"varMapping":{"__isSmartRef__":true,"id":4479},"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":4480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4479":{"this":{"__isSmartRef__":true,"id":4050}},"4480":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4481":{"varMapping":{"__isSmartRef__":true,"id":4482},"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":4483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4482":{"this":{"__isSmartRef__":true,"id":4050}},"4483":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4484":{"varMapping":{"__isSmartRef__":true,"id":4485},"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":4486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4485":{"this":{"__isSmartRef__":true,"id":4050}},"4486":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4487":{"varMapping":{"__isSmartRef__":true,"id":4488},"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":4489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4488":{"this":{"__isSmartRef__":true,"id":4050}},"4489":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4490":{"addBomb":{"__isSmartRef__":true,"id":4491},"clearFlag":{"__isSmartRef__":true,"id":4494},"countNeighborBombs":{"__isSmartRef__":true,"id":4497},"fixSubmorph":{"__isSmartRef__":true,"id":4500},"initAppearance":{"__isSmartRef__":true,"id":4503},"initMorphs":{"__isSmartRef__":true,"id":4506},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4509},"isClosed":{"__isSmartRef__":true,"id":4512},"neighborPoints":{"__isSmartRef__":true,"id":4515},"onMouseDown":{"__isSmartRef__":true,"id":4518},"restoreGameAppearance":{"__isSmartRef__":true,"id":4525},"reveal":{"__isSmartRef__":true,"id":4528},"setCoordinates":{"__isSmartRef__":true,"id":4531},"showBomb":{"__isSmartRef__":true,"id":4534},"showDebugState":{"__isSmartRef__":true,"id":4537},"showFlag":{"__isSmartRef__":true,"id":4540},"showState":{"__isSmartRef__":true,"id":4543},"copyImageMorph":{"__isSmartRef__":true,"id":4546},"prepareToPublish":{"__isSmartRef__":true,"id":4549}},"4491":{"varMapping":{"__isSmartRef__":true,"id":4492},"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":4493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4492":{"this":{"__isSmartRef__":true,"id":4002}},"4493":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4494":{"varMapping":{"__isSmartRef__":true,"id":4495},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4495":{"this":{"__isSmartRef__":true,"id":4002}},"4496":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4497":{"varMapping":{"__isSmartRef__":true,"id":4498},"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":4499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4498":{"this":{"__isSmartRef__":true,"id":4002}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4501":{"this":{"__isSmartRef__":true,"id":4002}},"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 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":4505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4504":{"this":{"__isSmartRef__":true,"id":4002}},"4505":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4506":{"varMapping":{"__isSmartRef__":true,"id":4507},"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":4508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4507":{"this":{"__isSmartRef__":true,"id":4002}},"4508":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4509":{"varMapping":{"__isSmartRef__":true,"id":4510},"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":4511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4510":{"this":{"__isSmartRef__":true,"id":4002}},"4511":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4512":{"varMapping":{"__isSmartRef__":true,"id":4513},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4513":{"this":{"__isSmartRef__":true,"id":4002}},"4514":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4515":{"varMapping":{"__isSmartRef__":true,"id":4516},"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":4517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4516":{"this":{"__isSmartRef__":true,"id":4002}},"4517":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4518":{"varMapping":{"__isSmartRef__":true,"id":4519},"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":4524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4519":{"this":{"__isSmartRef__":true,"id":4002},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4520}},"4520":{"$super":{"__isSmartRef__":true,"id":4521}},"4521":{"varMapping":{"__isSmartRef__":true,"id":4522},"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":4523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4522":{"obj":{"__isSmartRef__":true,"id":4002},"name":"onMouseDown"},"4523":{},"4524":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4525":{"varMapping":{"__isSmartRef__":true,"id":4526},"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":4527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4526":{"this":{"__isSmartRef__":true,"id":4002}},"4527":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4528":{"varMapping":{"__isSmartRef__":true,"id":4529},"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":4530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4529":{"this":{"__isSmartRef__":true,"id":4002}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4532":{"this":{"__isSmartRef__":true,"id":4002}},"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 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":4536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4535":{"this":{"__isSmartRef__":true,"id":4002}},"4536":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4537":{"varMapping":{"__isSmartRef__":true,"id":4538},"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":4539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4538":{"this":{"__isSmartRef__":true,"id":4002}},"4539":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4540":{"varMapping":{"__isSmartRef__":true,"id":4541},"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":4542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4541":{"this":{"__isSmartRef__":true,"id":4002}},"4542":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4543":{"varMapping":{"__isSmartRef__":true,"id":4544},"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":4545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4544":{"this":{"__isSmartRef__":true,"id":4002}},"4545":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4546":{"varMapping":{"__isSmartRef__":true,"id":4547},"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":4548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4547":{"this":{"__isSmartRef__":true,"id":4002}},"4548":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4549":{"varMapping":{"__isSmartRef__":true,"id":4550},"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":4551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4550":{"this":{"__isSmartRef__":true,"id":4002}},"4551":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4552":{"addBomb":{"__isSmartRef__":true,"id":4553},"clearFlag":{"__isSmartRef__":true,"id":4556},"countNeighborBombs":{"__isSmartRef__":true,"id":4559},"fixSubmorph":{"__isSmartRef__":true,"id":4562},"initAppearance":{"__isSmartRef__":true,"id":4565},"initMorphs":{"__isSmartRef__":true,"id":4568},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4571},"isClosed":{"__isSmartRef__":true,"id":4574},"neighborPoints":{"__isSmartRef__":true,"id":4577},"onMouseDown":{"__isSmartRef__":true,"id":4580},"restoreGameAppearance":{"__isSmartRef__":true,"id":4587},"reveal":{"__isSmartRef__":true,"id":4590},"setCoordinates":{"__isSmartRef__":true,"id":4593},"showBomb":{"__isSmartRef__":true,"id":4596},"showDebugState":{"__isSmartRef__":true,"id":4599},"showFlag":{"__isSmartRef__":true,"id":4602},"showState":{"__isSmartRef__":true,"id":4605},"copyImageMorph":{"__isSmartRef__":true,"id":4608},"prepareToPublish":{"__isSmartRef__":true,"id":4611}},"4553":{"varMapping":{"__isSmartRef__":true,"id":4554},"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":4555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4554":{"this":{"__isSmartRef__":true,"id":3954}},"4555":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4556":{"varMapping":{"__isSmartRef__":true,"id":4557},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4557":{"this":{"__isSmartRef__":true,"id":3954}},"4558":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4559":{"varMapping":{"__isSmartRef__":true,"id":4560},"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":4561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4560":{"this":{"__isSmartRef__":true,"id":3954}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4564},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4563":{"this":{"__isSmartRef__":true,"id":3954}},"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 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":4567},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4566":{"this":{"__isSmartRef__":true,"id":3954}},"4567":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4568":{"varMapping":{"__isSmartRef__":true,"id":4569},"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":4570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4569":{"this":{"__isSmartRef__":true,"id":3954}},"4570":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4571":{"varMapping":{"__isSmartRef__":true,"id":4572},"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":4573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4572":{"this":{"__isSmartRef__":true,"id":3954}},"4573":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4574":{"varMapping":{"__isSmartRef__":true,"id":4575},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4575":{"this":{"__isSmartRef__":true,"id":3954}},"4576":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4577":{"varMapping":{"__isSmartRef__":true,"id":4578},"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":4579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4578":{"this":{"__isSmartRef__":true,"id":3954}},"4579":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4580":{"varMapping":{"__isSmartRef__":true,"id":4581},"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":4586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4581":{"this":{"__isSmartRef__":true,"id":3954},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4582}},"4582":{"$super":{"__isSmartRef__":true,"id":4583}},"4583":{"varMapping":{"__isSmartRef__":true,"id":4584},"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":4585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4584":{"obj":{"__isSmartRef__":true,"id":3954},"name":"onMouseDown"},"4585":{},"4586":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4587":{"varMapping":{"__isSmartRef__":true,"id":4588},"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":4589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4588":{"this":{"__isSmartRef__":true,"id":3954}},"4589":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4590":{"varMapping":{"__isSmartRef__":true,"id":4591},"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":4592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4591":{"this":{"__isSmartRef__":true,"id":3954}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4594":{"this":{"__isSmartRef__":true,"id":3954}},"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 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":4598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4597":{"this":{"__isSmartRef__":true,"id":3954}},"4598":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4599":{"varMapping":{"__isSmartRef__":true,"id":4600},"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":4601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4600":{"this":{"__isSmartRef__":true,"id":3954}},"4601":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4602":{"varMapping":{"__isSmartRef__":true,"id":4603},"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":4604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4603":{"this":{"__isSmartRef__":true,"id":3954}},"4604":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4605":{"varMapping":{"__isSmartRef__":true,"id":4606},"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":4607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4606":{"this":{"__isSmartRef__":true,"id":3954}},"4607":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4608":{"varMapping":{"__isSmartRef__":true,"id":4609},"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":4610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4609":{"this":{"__isSmartRef__":true,"id":3954}},"4610":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4611":{"varMapping":{"__isSmartRef__":true,"id":4612},"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":4613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4612":{"this":{"__isSmartRef__":true,"id":3954}},"4613":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4614":{"addBomb":{"__isSmartRef__":true,"id":4615},"clearFlag":{"__isSmartRef__":true,"id":4618},"countNeighborBombs":{"__isSmartRef__":true,"id":4621},"fixSubmorph":{"__isSmartRef__":true,"id":4624},"initAppearance":{"__isSmartRef__":true,"id":4627},"initMorphs":{"__isSmartRef__":true,"id":4630},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4633},"isClosed":{"__isSmartRef__":true,"id":4636},"neighborPoints":{"__isSmartRef__":true,"id":4639},"onMouseDown":{"__isSmartRef__":true,"id":4642},"restoreGameAppearance":{"__isSmartRef__":true,"id":4649},"reveal":{"__isSmartRef__":true,"id":4652},"setCoordinates":{"__isSmartRef__":true,"id":4655},"showBomb":{"__isSmartRef__":true,"id":4658},"showDebugState":{"__isSmartRef__":true,"id":4661},"showFlag":{"__isSmartRef__":true,"id":4664},"showState":{"__isSmartRef__":true,"id":4667},"copyImageMorph":{"__isSmartRef__":true,"id":4670},"prepareToPublish":{"__isSmartRef__":true,"id":4673}},"4615":{"varMapping":{"__isSmartRef__":true,"id":4616},"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":4617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4616":{"this":{"__isSmartRef__":true,"id":3906}},"4617":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4618":{"varMapping":{"__isSmartRef__":true,"id":4619},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4619":{"this":{"__isSmartRef__":true,"id":3906}},"4620":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4621":{"varMapping":{"__isSmartRef__":true,"id":4622},"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":4623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4622":{"this":{"__isSmartRef__":true,"id":3906}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4625":{"this":{"__isSmartRef__":true,"id":3906}},"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 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":4629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4628":{"this":{"__isSmartRef__":true,"id":3906}},"4629":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4630":{"varMapping":{"__isSmartRef__":true,"id":4631},"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":4632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4631":{"this":{"__isSmartRef__":true,"id":3906}},"4632":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4633":{"varMapping":{"__isSmartRef__":true,"id":4634},"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":4635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4634":{"this":{"__isSmartRef__":true,"id":3906}},"4635":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4636":{"varMapping":{"__isSmartRef__":true,"id":4637},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4637":{"this":{"__isSmartRef__":true,"id":3906}},"4638":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4639":{"varMapping":{"__isSmartRef__":true,"id":4640},"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":4641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4640":{"this":{"__isSmartRef__":true,"id":3906}},"4641":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4642":{"varMapping":{"__isSmartRef__":true,"id":4643},"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":4648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4643":{"this":{"__isSmartRef__":true,"id":3906},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4644}},"4644":{"$super":{"__isSmartRef__":true,"id":4645}},"4645":{"varMapping":{"__isSmartRef__":true,"id":4646},"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":4647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4646":{"obj":{"__isSmartRef__":true,"id":3906},"name":"onMouseDown"},"4647":{},"4648":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4649":{"varMapping":{"__isSmartRef__":true,"id":4650},"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":4651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4650":{"this":{"__isSmartRef__":true,"id":3906}},"4651":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4652":{"varMapping":{"__isSmartRef__":true,"id":4653},"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":4654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4653":{"this":{"__isSmartRef__":true,"id":3906}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4657},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4656":{"this":{"__isSmartRef__":true,"id":3906}},"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 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":4660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4659":{"this":{"__isSmartRef__":true,"id":3906}},"4660":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4661":{"varMapping":{"__isSmartRef__":true,"id":4662},"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":4663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4662":{"this":{"__isSmartRef__":true,"id":3906}},"4663":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4664":{"varMapping":{"__isSmartRef__":true,"id":4665},"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":4666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4665":{"this":{"__isSmartRef__":true,"id":3906}},"4666":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4667":{"varMapping":{"__isSmartRef__":true,"id":4668},"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":4669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4668":{"this":{"__isSmartRef__":true,"id":3906}},"4669":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4670":{"varMapping":{"__isSmartRef__":true,"id":4671},"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":4672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4671":{"this":{"__isSmartRef__":true,"id":3906}},"4672":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4673":{"varMapping":{"__isSmartRef__":true,"id":4674},"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":4675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4674":{"this":{"__isSmartRef__":true,"id":3906}},"4675":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4676":{"addBomb":{"__isSmartRef__":true,"id":4677},"clearFlag":{"__isSmartRef__":true,"id":4680},"countNeighborBombs":{"__isSmartRef__":true,"id":4683},"fixSubmorph":{"__isSmartRef__":true,"id":4686},"initAppearance":{"__isSmartRef__":true,"id":4689},"initMorphs":{"__isSmartRef__":true,"id":4692},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4695},"isClosed":{"__isSmartRef__":true,"id":4698},"neighborPoints":{"__isSmartRef__":true,"id":4701},"onMouseDown":{"__isSmartRef__":true,"id":4704},"restoreGameAppearance":{"__isSmartRef__":true,"id":4711},"reveal":{"__isSmartRef__":true,"id":4714},"setCoordinates":{"__isSmartRef__":true,"id":4717},"showBomb":{"__isSmartRef__":true,"id":4720},"showDebugState":{"__isSmartRef__":true,"id":4723},"showFlag":{"__isSmartRef__":true,"id":4726},"showState":{"__isSmartRef__":true,"id":4729},"copyImageMorph":{"__isSmartRef__":true,"id":4732},"prepareToPublish":{"__isSmartRef__":true,"id":4735}},"4677":{"varMapping":{"__isSmartRef__":true,"id":4678},"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":4679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4678":{"this":{"__isSmartRef__":true,"id":3858}},"4679":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4680":{"varMapping":{"__isSmartRef__":true,"id":4681},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4681":{"this":{"__isSmartRef__":true,"id":3858}},"4682":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4683":{"varMapping":{"__isSmartRef__":true,"id":4684},"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":4685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4684":{"this":{"__isSmartRef__":true,"id":3858}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4687":{"this":{"__isSmartRef__":true,"id":3858}},"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 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":4691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4690":{"this":{"__isSmartRef__":true,"id":3858}},"4691":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4692":{"varMapping":{"__isSmartRef__":true,"id":4693},"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":4694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4693":{"this":{"__isSmartRef__":true,"id":3858}},"4694":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4695":{"varMapping":{"__isSmartRef__":true,"id":4696},"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":4697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4696":{"this":{"__isSmartRef__":true,"id":3858}},"4697":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4698":{"varMapping":{"__isSmartRef__":true,"id":4699},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4699":{"this":{"__isSmartRef__":true,"id":3858}},"4700":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4701":{"varMapping":{"__isSmartRef__":true,"id":4702},"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":4703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4702":{"this":{"__isSmartRef__":true,"id":3858}},"4703":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4704":{"varMapping":{"__isSmartRef__":true,"id":4705},"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":4710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4705":{"this":{"__isSmartRef__":true,"id":3858},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4706}},"4706":{"$super":{"__isSmartRef__":true,"id":4707}},"4707":{"varMapping":{"__isSmartRef__":true,"id":4708},"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":4709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4708":{"obj":{"__isSmartRef__":true,"id":3858},"name":"onMouseDown"},"4709":{},"4710":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4711":{"varMapping":{"__isSmartRef__":true,"id":4712},"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":4713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4712":{"this":{"__isSmartRef__":true,"id":3858}},"4713":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4714":{"varMapping":{"__isSmartRef__":true,"id":4715},"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":4716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4715":{"this":{"__isSmartRef__":true,"id":3858}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4718":{"this":{"__isSmartRef__":true,"id":3858}},"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 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":4722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4721":{"this":{"__isSmartRef__":true,"id":3858}},"4722":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4723":{"varMapping":{"__isSmartRef__":true,"id":4724},"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":4725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4724":{"this":{"__isSmartRef__":true,"id":3858}},"4725":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4726":{"varMapping":{"__isSmartRef__":true,"id":4727},"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":4728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4727":{"this":{"__isSmartRef__":true,"id":3858}},"4728":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4729":{"varMapping":{"__isSmartRef__":true,"id":4730},"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":4731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4730":{"this":{"__isSmartRef__":true,"id":3858}},"4731":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4732":{"varMapping":{"__isSmartRef__":true,"id":4733},"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":4734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4733":{"this":{"__isSmartRef__":true,"id":3858}},"4734":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4735":{"varMapping":{"__isSmartRef__":true,"id":4736},"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":4737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4736":{"this":{"__isSmartRef__":true,"id":3858}},"4737":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4738":{"addBomb":{"__isSmartRef__":true,"id":4739},"clearFlag":{"__isSmartRef__":true,"id":4742},"countNeighborBombs":{"__isSmartRef__":true,"id":4745},"fixSubmorph":{"__isSmartRef__":true,"id":4748},"initAppearance":{"__isSmartRef__":true,"id":4751},"initMorphs":{"__isSmartRef__":true,"id":4754},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4757},"isClosed":{"__isSmartRef__":true,"id":4760},"neighborPoints":{"__isSmartRef__":true,"id":4763},"onMouseDown":{"__isSmartRef__":true,"id":4766},"restoreGameAppearance":{"__isSmartRef__":true,"id":4773},"reveal":{"__isSmartRef__":true,"id":4776},"setCoordinates":{"__isSmartRef__":true,"id":4779},"showBomb":{"__isSmartRef__":true,"id":4782},"showDebugState":{"__isSmartRef__":true,"id":4785},"showFlag":{"__isSmartRef__":true,"id":4788},"showState":{"__isSmartRef__":true,"id":4791},"copyImageMorph":{"__isSmartRef__":true,"id":4794},"prepareToPublish":{"__isSmartRef__":true,"id":4797}},"4739":{"varMapping":{"__isSmartRef__":true,"id":4740},"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":4741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4740":{"this":{"__isSmartRef__":true,"id":3810}},"4741":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4742":{"varMapping":{"__isSmartRef__":true,"id":4743},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4743":{"this":{"__isSmartRef__":true,"id":3810}},"4744":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4745":{"varMapping":{"__isSmartRef__":true,"id":4746},"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":4747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4746":{"this":{"__isSmartRef__":true,"id":3810}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4749":{"this":{"__isSmartRef__":true,"id":3810}},"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 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":4753},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4752":{"this":{"__isSmartRef__":true,"id":3810}},"4753":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4754":{"varMapping":{"__isSmartRef__":true,"id":4755},"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":4756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4755":{"this":{"__isSmartRef__":true,"id":3810}},"4756":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4757":{"varMapping":{"__isSmartRef__":true,"id":4758},"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":4759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4758":{"this":{"__isSmartRef__":true,"id":3810}},"4759":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4760":{"varMapping":{"__isSmartRef__":true,"id":4761},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4761":{"this":{"__isSmartRef__":true,"id":3810}},"4762":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4763":{"varMapping":{"__isSmartRef__":true,"id":4764},"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":4765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4764":{"this":{"__isSmartRef__":true,"id":3810}},"4765":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4766":{"varMapping":{"__isSmartRef__":true,"id":4767},"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":4772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4767":{"this":{"__isSmartRef__":true,"id":3810},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4768}},"4768":{"$super":{"__isSmartRef__":true,"id":4769}},"4769":{"varMapping":{"__isSmartRef__":true,"id":4770},"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":4771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4770":{"obj":{"__isSmartRef__":true,"id":3810},"name":"onMouseDown"},"4771":{},"4772":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4773":{"varMapping":{"__isSmartRef__":true,"id":4774},"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":4775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4774":{"this":{"__isSmartRef__":true,"id":3810}},"4775":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4776":{"varMapping":{"__isSmartRef__":true,"id":4777},"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":4778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4777":{"this":{"__isSmartRef__":true,"id":3810}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4781},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4780":{"this":{"__isSmartRef__":true,"id":3810}},"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 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":4784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4783":{"this":{"__isSmartRef__":true,"id":3810}},"4784":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4785":{"varMapping":{"__isSmartRef__":true,"id":4786},"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":4787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4786":{"this":{"__isSmartRef__":true,"id":3810}},"4787":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4788":{"varMapping":{"__isSmartRef__":true,"id":4789},"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":4790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4789":{"this":{"__isSmartRef__":true,"id":3810}},"4790":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4791":{"varMapping":{"__isSmartRef__":true,"id":4792},"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":4793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4792":{"this":{"__isSmartRef__":true,"id":3810}},"4793":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4794":{"varMapping":{"__isSmartRef__":true,"id":4795},"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":4796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4795":{"this":{"__isSmartRef__":true,"id":3810}},"4796":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4797":{"varMapping":{"__isSmartRef__":true,"id":4798},"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":4799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4798":{"this":{"__isSmartRef__":true,"id":3810}},"4799":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4800":{"addBomb":{"__isSmartRef__":true,"id":4801},"clearFlag":{"__isSmartRef__":true,"id":4804},"countNeighborBombs":{"__isSmartRef__":true,"id":4807},"fixSubmorph":{"__isSmartRef__":true,"id":4810},"initAppearance":{"__isSmartRef__":true,"id":4813},"initMorphs":{"__isSmartRef__":true,"id":4816},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4819},"isClosed":{"__isSmartRef__":true,"id":4822},"neighborPoints":{"__isSmartRef__":true,"id":4825},"onMouseDown":{"__isSmartRef__":true,"id":4828},"restoreGameAppearance":{"__isSmartRef__":true,"id":4835},"reveal":{"__isSmartRef__":true,"id":4838},"setCoordinates":{"__isSmartRef__":true,"id":4841},"showBomb":{"__isSmartRef__":true,"id":4844},"showDebugState":{"__isSmartRef__":true,"id":4847},"showFlag":{"__isSmartRef__":true,"id":4850},"showState":{"__isSmartRef__":true,"id":4853},"copyImageMorph":{"__isSmartRef__":true,"id":4856},"prepareToPublish":{"__isSmartRef__":true,"id":4859}},"4801":{"varMapping":{"__isSmartRef__":true,"id":4802},"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":4803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4802":{"this":{"__isSmartRef__":true,"id":3762}},"4803":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4804":{"varMapping":{"__isSmartRef__":true,"id":4805},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4805":{"this":{"__isSmartRef__":true,"id":3762}},"4806":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4807":{"varMapping":{"__isSmartRef__":true,"id":4808},"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":4809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4808":{"this":{"__isSmartRef__":true,"id":3762}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4811":{"this":{"__isSmartRef__":true,"id":3762}},"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 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":4815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4814":{"this":{"__isSmartRef__":true,"id":3762}},"4815":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4816":{"varMapping":{"__isSmartRef__":true,"id":4817},"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":4818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4817":{"this":{"__isSmartRef__":true,"id":3762}},"4818":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4819":{"varMapping":{"__isSmartRef__":true,"id":4820},"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":4821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4820":{"this":{"__isSmartRef__":true,"id":3762}},"4821":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4822":{"varMapping":{"__isSmartRef__":true,"id":4823},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4823":{"this":{"__isSmartRef__":true,"id":3762}},"4824":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4825":{"varMapping":{"__isSmartRef__":true,"id":4826},"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":4827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4826":{"this":{"__isSmartRef__":true,"id":3762}},"4827":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4828":{"varMapping":{"__isSmartRef__":true,"id":4829},"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":4834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4829":{"this":{"__isSmartRef__":true,"id":3762},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4830}},"4830":{"$super":{"__isSmartRef__":true,"id":4831}},"4831":{"varMapping":{"__isSmartRef__":true,"id":4832},"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":4833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4832":{"obj":{"__isSmartRef__":true,"id":3762},"name":"onMouseDown"},"4833":{},"4834":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4835":{"varMapping":{"__isSmartRef__":true,"id":4836},"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":4837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4836":{"this":{"__isSmartRef__":true,"id":3762}},"4837":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4838":{"varMapping":{"__isSmartRef__":true,"id":4839},"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":4840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4839":{"this":{"__isSmartRef__":true,"id":3762}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4842":{"this":{"__isSmartRef__":true,"id":3762}},"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 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":4846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4845":{"this":{"__isSmartRef__":true,"id":3762}},"4846":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4847":{"varMapping":{"__isSmartRef__":true,"id":4848},"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":4849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4848":{"this":{"__isSmartRef__":true,"id":3762}},"4849":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4850":{"varMapping":{"__isSmartRef__":true,"id":4851},"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":4852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4851":{"this":{"__isSmartRef__":true,"id":3762}},"4852":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4853":{"varMapping":{"__isSmartRef__":true,"id":4854},"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":4855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4854":{"this":{"__isSmartRef__":true,"id":3762}},"4855":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4856":{"varMapping":{"__isSmartRef__":true,"id":4857},"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":4858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4857":{"this":{"__isSmartRef__":true,"id":3762}},"4858":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4859":{"varMapping":{"__isSmartRef__":true,"id":4860},"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":4861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4860":{"this":{"__isSmartRef__":true,"id":3762}},"4861":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4862":{"addBomb":{"__isSmartRef__":true,"id":4863},"clearFlag":{"__isSmartRef__":true,"id":4866},"countNeighborBombs":{"__isSmartRef__":true,"id":4869},"fixSubmorph":{"__isSmartRef__":true,"id":4872},"initAppearance":{"__isSmartRef__":true,"id":4875},"initMorphs":{"__isSmartRef__":true,"id":4878},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4881},"isClosed":{"__isSmartRef__":true,"id":4884},"neighborPoints":{"__isSmartRef__":true,"id":4887},"onMouseDown":{"__isSmartRef__":true,"id":4890},"restoreGameAppearance":{"__isSmartRef__":true,"id":4897},"reveal":{"__isSmartRef__":true,"id":4900},"setCoordinates":{"__isSmartRef__":true,"id":4903},"showBomb":{"__isSmartRef__":true,"id":4906},"showDebugState":{"__isSmartRef__":true,"id":4909},"showFlag":{"__isSmartRef__":true,"id":4912},"showState":{"__isSmartRef__":true,"id":4915},"copyImageMorph":{"__isSmartRef__":true,"id":4918},"prepareToPublish":{"__isSmartRef__":true,"id":4921}},"4863":{"varMapping":{"__isSmartRef__":true,"id":4864},"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":4865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4864":{"this":{"__isSmartRef__":true,"id":3714}},"4865":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4866":{"varMapping":{"__isSmartRef__":true,"id":4867},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4867":{"this":{"__isSmartRef__":true,"id":3714}},"4868":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4869":{"varMapping":{"__isSmartRef__":true,"id":4870},"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":4871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4870":{"this":{"__isSmartRef__":true,"id":3714}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4873":{"this":{"__isSmartRef__":true,"id":3714}},"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 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":4877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4876":{"this":{"__isSmartRef__":true,"id":3714}},"4877":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4878":{"varMapping":{"__isSmartRef__":true,"id":4879},"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":4880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4879":{"this":{"__isSmartRef__":true,"id":3714}},"4880":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4881":{"varMapping":{"__isSmartRef__":true,"id":4882},"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":4883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4882":{"this":{"__isSmartRef__":true,"id":3714}},"4883":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4884":{"varMapping":{"__isSmartRef__":true,"id":4885},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4885":{"this":{"__isSmartRef__":true,"id":3714}},"4886":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4887":{"varMapping":{"__isSmartRef__":true,"id":4888},"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":4889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4888":{"this":{"__isSmartRef__":true,"id":3714}},"4889":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4890":{"varMapping":{"__isSmartRef__":true,"id":4891},"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":4896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4891":{"this":{"__isSmartRef__":true,"id":3714},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4892}},"4892":{"$super":{"__isSmartRef__":true,"id":4893}},"4893":{"varMapping":{"__isSmartRef__":true,"id":4894},"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":4895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4894":{"obj":{"__isSmartRef__":true,"id":3714},"name":"onMouseDown"},"4895":{},"4896":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4897":{"varMapping":{"__isSmartRef__":true,"id":4898},"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":4899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4898":{"this":{"__isSmartRef__":true,"id":3714}},"4899":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4900":{"varMapping":{"__isSmartRef__":true,"id":4901},"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":4902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4901":{"this":{"__isSmartRef__":true,"id":3714}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4904":{"this":{"__isSmartRef__":true,"id":3714}},"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 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":4908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4907":{"this":{"__isSmartRef__":true,"id":3714}},"4908":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4909":{"varMapping":{"__isSmartRef__":true,"id":4910},"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":4911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4910":{"this":{"__isSmartRef__":true,"id":3714}},"4911":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4912":{"varMapping":{"__isSmartRef__":true,"id":4913},"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":4914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4913":{"this":{"__isSmartRef__":true,"id":3714}},"4914":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4915":{"varMapping":{"__isSmartRef__":true,"id":4916},"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":4917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4916":{"this":{"__isSmartRef__":true,"id":3714}},"4917":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4918":{"varMapping":{"__isSmartRef__":true,"id":4919},"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":4920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4919":{"this":{"__isSmartRef__":true,"id":3714}},"4920":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4921":{"varMapping":{"__isSmartRef__":true,"id":4922},"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":4923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4922":{"this":{"__isSmartRef__":true,"id":3714}},"4923":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4924":{"addBomb":{"__isSmartRef__":true,"id":4925},"clearFlag":{"__isSmartRef__":true,"id":4928},"countNeighborBombs":{"__isSmartRef__":true,"id":4931},"fixSubmorph":{"__isSmartRef__":true,"id":4934},"initAppearance":{"__isSmartRef__":true,"id":4937},"initMorphs":{"__isSmartRef__":true,"id":4940},"initNeighborsAndCount":{"__isSmartRef__":true,"id":4943},"isClosed":{"__isSmartRef__":true,"id":4946},"neighborPoints":{"__isSmartRef__":true,"id":4949},"onMouseDown":{"__isSmartRef__":true,"id":4952},"restoreGameAppearance":{"__isSmartRef__":true,"id":4959},"reveal":{"__isSmartRef__":true,"id":4962},"setCoordinates":{"__isSmartRef__":true,"id":4965},"showBomb":{"__isSmartRef__":true,"id":4968},"showDebugState":{"__isSmartRef__":true,"id":4971},"showFlag":{"__isSmartRef__":true,"id":4974},"showState":{"__isSmartRef__":true,"id":4977},"copyImageMorph":{"__isSmartRef__":true,"id":4980},"prepareToPublish":{"__isSmartRef__":true,"id":4983}},"4925":{"varMapping":{"__isSmartRef__":true,"id":4926},"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":4927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4926":{"this":{"__isSmartRef__":true,"id":3666}},"4927":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4928":{"varMapping":{"__isSmartRef__":true,"id":4929},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4929":{"this":{"__isSmartRef__":true,"id":3666}},"4930":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4931":{"varMapping":{"__isSmartRef__":true,"id":4932},"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":4933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4932":{"this":{"__isSmartRef__":true,"id":3666}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4935":{"this":{"__isSmartRef__":true,"id":3666}},"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 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":4939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4938":{"this":{"__isSmartRef__":true,"id":3666}},"4939":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"4940":{"varMapping":{"__isSmartRef__":true,"id":4941},"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":4942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4941":{"this":{"__isSmartRef__":true,"id":3666}},"4942":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"4943":{"varMapping":{"__isSmartRef__":true,"id":4944},"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":4945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4944":{"this":{"__isSmartRef__":true,"id":3666}},"4945":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4946":{"varMapping":{"__isSmartRef__":true,"id":4947},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":4948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4947":{"this":{"__isSmartRef__":true,"id":3666}},"4948":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4949":{"varMapping":{"__isSmartRef__":true,"id":4950},"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":4951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4950":{"this":{"__isSmartRef__":true,"id":3666}},"4951":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"4952":{"varMapping":{"__isSmartRef__":true,"id":4953},"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":4958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4953":{"this":{"__isSmartRef__":true,"id":3666},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4954}},"4954":{"$super":{"__isSmartRef__":true,"id":4955}},"4955":{"varMapping":{"__isSmartRef__":true,"id":4956},"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":4957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4956":{"obj":{"__isSmartRef__":true,"id":3666},"name":"onMouseDown"},"4957":{},"4958":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"4959":{"varMapping":{"__isSmartRef__":true,"id":4960},"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":4961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4960":{"this":{"__isSmartRef__":true,"id":3666}},"4961":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"4962":{"varMapping":{"__isSmartRef__":true,"id":4963},"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":4964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4963":{"this":{"__isSmartRef__":true,"id":3666}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":4967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4966":{"this":{"__isSmartRef__":true,"id":3666}},"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 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":4970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4969":{"this":{"__isSmartRef__":true,"id":3666}},"4970":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"4971":{"varMapping":{"__isSmartRef__":true,"id":4972},"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":4973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4972":{"this":{"__isSmartRef__":true,"id":3666}},"4973":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"4974":{"varMapping":{"__isSmartRef__":true,"id":4975},"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":4976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4975":{"this":{"__isSmartRef__":true,"id":3666}},"4976":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"4977":{"varMapping":{"__isSmartRef__":true,"id":4978},"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":4979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4978":{"this":{"__isSmartRef__":true,"id":3666}},"4979":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"4980":{"varMapping":{"__isSmartRef__":true,"id":4981},"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":4982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4981":{"this":{"__isSmartRef__":true,"id":3666}},"4982":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"4983":{"varMapping":{"__isSmartRef__":true,"id":4984},"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":4985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4984":{"this":{"__isSmartRef__":true,"id":3666}},"4985":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"4986":{"addBomb":{"__isSmartRef__":true,"id":4987},"clearFlag":{"__isSmartRef__":true,"id":4990},"countNeighborBombs":{"__isSmartRef__":true,"id":4993},"fixSubmorph":{"__isSmartRef__":true,"id":4996},"initAppearance":{"__isSmartRef__":true,"id":4999},"initMorphs":{"__isSmartRef__":true,"id":5002},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5005},"isClosed":{"__isSmartRef__":true,"id":5008},"neighborPoints":{"__isSmartRef__":true,"id":5011},"onMouseDown":{"__isSmartRef__":true,"id":5014},"restoreGameAppearance":{"__isSmartRef__":true,"id":5021},"reveal":{"__isSmartRef__":true,"id":5024},"setCoordinates":{"__isSmartRef__":true,"id":5027},"showBomb":{"__isSmartRef__":true,"id":5030},"showDebugState":{"__isSmartRef__":true,"id":5033},"showFlag":{"__isSmartRef__":true,"id":5036},"showState":{"__isSmartRef__":true,"id":5039},"copyImageMorph":{"__isSmartRef__":true,"id":5042},"prepareToPublish":{"__isSmartRef__":true,"id":5045}},"4987":{"varMapping":{"__isSmartRef__":true,"id":4988},"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":4989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4988":{"this":{"__isSmartRef__":true,"id":3618}},"4989":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"4990":{"varMapping":{"__isSmartRef__":true,"id":4991},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":4992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4991":{"this":{"__isSmartRef__":true,"id":3618}},"4992":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"4993":{"varMapping":{"__isSmartRef__":true,"id":4994},"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":4995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4994":{"this":{"__isSmartRef__":true,"id":3618}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":4998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4997":{"this":{"__isSmartRef__":true,"id":3618}},"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 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":5001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5000":{"this":{"__isSmartRef__":true,"id":3618}},"5001":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5002":{"varMapping":{"__isSmartRef__":true,"id":5003},"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":5004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5003":{"this":{"__isSmartRef__":true,"id":3618}},"5004":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5005":{"varMapping":{"__isSmartRef__":true,"id":5006},"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":5007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5006":{"this":{"__isSmartRef__":true,"id":3618}},"5007":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5008":{"varMapping":{"__isSmartRef__":true,"id":5009},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5009":{"this":{"__isSmartRef__":true,"id":3618}},"5010":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5011":{"varMapping":{"__isSmartRef__":true,"id":5012},"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":5013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5012":{"this":{"__isSmartRef__":true,"id":3618}},"5013":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5014":{"varMapping":{"__isSmartRef__":true,"id":5015},"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":5020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5015":{"this":{"__isSmartRef__":true,"id":3618},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5016}},"5016":{"$super":{"__isSmartRef__":true,"id":5017}},"5017":{"varMapping":{"__isSmartRef__":true,"id":5018},"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":5019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5018":{"obj":{"__isSmartRef__":true,"id":3618},"name":"onMouseDown"},"5019":{},"5020":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5021":{"varMapping":{"__isSmartRef__":true,"id":5022},"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":5023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5022":{"this":{"__isSmartRef__":true,"id":3618}},"5023":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5024":{"varMapping":{"__isSmartRef__":true,"id":5025},"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":5026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5025":{"this":{"__isSmartRef__":true,"id":3618}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5028":{"this":{"__isSmartRef__":true,"id":3618}},"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 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":5032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5031":{"this":{"__isSmartRef__":true,"id":3618}},"5032":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5033":{"varMapping":{"__isSmartRef__":true,"id":5034},"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":5035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5034":{"this":{"__isSmartRef__":true,"id":3618}},"5035":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5036":{"varMapping":{"__isSmartRef__":true,"id":5037},"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":5038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5037":{"this":{"__isSmartRef__":true,"id":3618}},"5038":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5039":{"varMapping":{"__isSmartRef__":true,"id":5040},"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":5041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5040":{"this":{"__isSmartRef__":true,"id":3618}},"5041":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5042":{"varMapping":{"__isSmartRef__":true,"id":5043},"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":5044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5043":{"this":{"__isSmartRef__":true,"id":3618}},"5044":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5045":{"varMapping":{"__isSmartRef__":true,"id":5046},"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":5047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5046":{"this":{"__isSmartRef__":true,"id":3618}},"5047":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5048":{"addBomb":{"__isSmartRef__":true,"id":5049},"clearFlag":{"__isSmartRef__":true,"id":5052},"countNeighborBombs":{"__isSmartRef__":true,"id":5055},"fixSubmorph":{"__isSmartRef__":true,"id":5058},"initAppearance":{"__isSmartRef__":true,"id":5061},"initMorphs":{"__isSmartRef__":true,"id":5064},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5067},"isClosed":{"__isSmartRef__":true,"id":5070},"neighborPoints":{"__isSmartRef__":true,"id":5073},"onMouseDown":{"__isSmartRef__":true,"id":5076},"restoreGameAppearance":{"__isSmartRef__":true,"id":5083},"reveal":{"__isSmartRef__":true,"id":5086},"setCoordinates":{"__isSmartRef__":true,"id":5089},"showBomb":{"__isSmartRef__":true,"id":5092},"showDebugState":{"__isSmartRef__":true,"id":5095},"showFlag":{"__isSmartRef__":true,"id":5098},"showState":{"__isSmartRef__":true,"id":5101},"copyImageMorph":{"__isSmartRef__":true,"id":5104},"prepareToPublish":{"__isSmartRef__":true,"id":5107}},"5049":{"varMapping":{"__isSmartRef__":true,"id":5050},"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":5051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5050":{"this":{"__isSmartRef__":true,"id":3570}},"5051":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5052":{"varMapping":{"__isSmartRef__":true,"id":5053},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5053":{"this":{"__isSmartRef__":true,"id":3570}},"5054":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5055":{"varMapping":{"__isSmartRef__":true,"id":5056},"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":5057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5056":{"this":{"__isSmartRef__":true,"id":3570}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5060},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5059":{"this":{"__isSmartRef__":true,"id":3570}},"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 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":5063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5062":{"this":{"__isSmartRef__":true,"id":3570}},"5063":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5064":{"varMapping":{"__isSmartRef__":true,"id":5065},"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":5066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5065":{"this":{"__isSmartRef__":true,"id":3570}},"5066":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5067":{"varMapping":{"__isSmartRef__":true,"id":5068},"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":5069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5068":{"this":{"__isSmartRef__":true,"id":3570}},"5069":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5070":{"varMapping":{"__isSmartRef__":true,"id":5071},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5071":{"this":{"__isSmartRef__":true,"id":3570}},"5072":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5073":{"varMapping":{"__isSmartRef__":true,"id":5074},"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":5075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5074":{"this":{"__isSmartRef__":true,"id":3570}},"5075":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5076":{"varMapping":{"__isSmartRef__":true,"id":5077},"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":5082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5077":{"this":{"__isSmartRef__":true,"id":3570},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5078}},"5078":{"$super":{"__isSmartRef__":true,"id":5079}},"5079":{"varMapping":{"__isSmartRef__":true,"id":5080},"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":5081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5080":{"obj":{"__isSmartRef__":true,"id":3570},"name":"onMouseDown"},"5081":{},"5082":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5083":{"varMapping":{"__isSmartRef__":true,"id":5084},"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":5085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5084":{"this":{"__isSmartRef__":true,"id":3570}},"5085":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5086":{"varMapping":{"__isSmartRef__":true,"id":5087},"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":5088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5087":{"this":{"__isSmartRef__":true,"id":3570}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5090":{"this":{"__isSmartRef__":true,"id":3570}},"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 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":5094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5093":{"this":{"__isSmartRef__":true,"id":3570}},"5094":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5095":{"varMapping":{"__isSmartRef__":true,"id":5096},"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":5097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5096":{"this":{"__isSmartRef__":true,"id":3570}},"5097":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5098":{"varMapping":{"__isSmartRef__":true,"id":5099},"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":5100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5099":{"this":{"__isSmartRef__":true,"id":3570}},"5100":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5101":{"varMapping":{"__isSmartRef__":true,"id":5102},"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":5103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5102":{"this":{"__isSmartRef__":true,"id":3570}},"5103":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5104":{"varMapping":{"__isSmartRef__":true,"id":5105},"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":5106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5105":{"this":{"__isSmartRef__":true,"id":3570}},"5106":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5107":{"varMapping":{"__isSmartRef__":true,"id":5108},"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":5109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5108":{"this":{"__isSmartRef__":true,"id":3570}},"5109":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5110":{"addBomb":{"__isSmartRef__":true,"id":5111},"clearFlag":{"__isSmartRef__":true,"id":5114},"countNeighborBombs":{"__isSmartRef__":true,"id":5117},"fixSubmorph":{"__isSmartRef__":true,"id":5120},"initAppearance":{"__isSmartRef__":true,"id":5123},"initMorphs":{"__isSmartRef__":true,"id":5126},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5129},"isClosed":{"__isSmartRef__":true,"id":5132},"neighborPoints":{"__isSmartRef__":true,"id":5135},"onMouseDown":{"__isSmartRef__":true,"id":5138},"restoreGameAppearance":{"__isSmartRef__":true,"id":5145},"reveal":{"__isSmartRef__":true,"id":5148},"setCoordinates":{"__isSmartRef__":true,"id":5151},"showBomb":{"__isSmartRef__":true,"id":5154},"showDebugState":{"__isSmartRef__":true,"id":5157},"showFlag":{"__isSmartRef__":true,"id":5160},"showState":{"__isSmartRef__":true,"id":5163},"copyImageMorph":{"__isSmartRef__":true,"id":5166},"prepareToPublish":{"__isSmartRef__":true,"id":5169}},"5111":{"varMapping":{"__isSmartRef__":true,"id":5112},"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":5113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5112":{"this":{"__isSmartRef__":true,"id":3522}},"5113":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5114":{"varMapping":{"__isSmartRef__":true,"id":5115},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5115":{"this":{"__isSmartRef__":true,"id":3522}},"5116":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5117":{"varMapping":{"__isSmartRef__":true,"id":5118},"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":5119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5118":{"this":{"__isSmartRef__":true,"id":3522}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5121":{"this":{"__isSmartRef__":true,"id":3522}},"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 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":5125},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5124":{"this":{"__isSmartRef__":true,"id":3522}},"5125":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5126":{"varMapping":{"__isSmartRef__":true,"id":5127},"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":5128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5127":{"this":{"__isSmartRef__":true,"id":3522}},"5128":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5129":{"varMapping":{"__isSmartRef__":true,"id":5130},"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":5131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5130":{"this":{"__isSmartRef__":true,"id":3522}},"5131":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5132":{"varMapping":{"__isSmartRef__":true,"id":5133},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5133":{"this":{"__isSmartRef__":true,"id":3522}},"5134":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5135":{"varMapping":{"__isSmartRef__":true,"id":5136},"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":5137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5136":{"this":{"__isSmartRef__":true,"id":3522}},"5137":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5138":{"varMapping":{"__isSmartRef__":true,"id":5139},"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":5144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5139":{"this":{"__isSmartRef__":true,"id":3522},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5140}},"5140":{"$super":{"__isSmartRef__":true,"id":5141}},"5141":{"varMapping":{"__isSmartRef__":true,"id":5142},"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":5143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5142":{"obj":{"__isSmartRef__":true,"id":3522},"name":"onMouseDown"},"5143":{},"5144":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5145":{"varMapping":{"__isSmartRef__":true,"id":5146},"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":5147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5146":{"this":{"__isSmartRef__":true,"id":3522}},"5147":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5148":{"varMapping":{"__isSmartRef__":true,"id":5149},"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":5150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5149":{"this":{"__isSmartRef__":true,"id":3522}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5152":{"this":{"__isSmartRef__":true,"id":3522}},"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 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":5156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5155":{"this":{"__isSmartRef__":true,"id":3522}},"5156":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5157":{"varMapping":{"__isSmartRef__":true,"id":5158},"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":5159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5158":{"this":{"__isSmartRef__":true,"id":3522}},"5159":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5160":{"varMapping":{"__isSmartRef__":true,"id":5161},"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":5162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5161":{"this":{"__isSmartRef__":true,"id":3522}},"5162":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5163":{"varMapping":{"__isSmartRef__":true,"id":5164},"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":5165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5164":{"this":{"__isSmartRef__":true,"id":3522}},"5165":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5166":{"varMapping":{"__isSmartRef__":true,"id":5167},"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":5168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5167":{"this":{"__isSmartRef__":true,"id":3522}},"5168":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5169":{"varMapping":{"__isSmartRef__":true,"id":5170},"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":5171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5170":{"this":{"__isSmartRef__":true,"id":3522}},"5171":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5172":{"addBomb":{"__isSmartRef__":true,"id":5173},"clearFlag":{"__isSmartRef__":true,"id":5176},"countNeighborBombs":{"__isSmartRef__":true,"id":5179},"fixSubmorph":{"__isSmartRef__":true,"id":5182},"initAppearance":{"__isSmartRef__":true,"id":5185},"initMorphs":{"__isSmartRef__":true,"id":5188},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5191},"isClosed":{"__isSmartRef__":true,"id":5194},"neighborPoints":{"__isSmartRef__":true,"id":5197},"onMouseDown":{"__isSmartRef__":true,"id":5200},"restoreGameAppearance":{"__isSmartRef__":true,"id":5207},"reveal":{"__isSmartRef__":true,"id":5210},"setCoordinates":{"__isSmartRef__":true,"id":5213},"showBomb":{"__isSmartRef__":true,"id":5216},"showDebugState":{"__isSmartRef__":true,"id":5219},"showFlag":{"__isSmartRef__":true,"id":5222},"showState":{"__isSmartRef__":true,"id":5225},"copyImageMorph":{"__isSmartRef__":true,"id":5228},"prepareToPublish":{"__isSmartRef__":true,"id":5231}},"5173":{"varMapping":{"__isSmartRef__":true,"id":5174},"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":5175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5174":{"this":{"__isSmartRef__":true,"id":3474}},"5175":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5176":{"varMapping":{"__isSmartRef__":true,"id":5177},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5177":{"this":{"__isSmartRef__":true,"id":3474}},"5178":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5179":{"varMapping":{"__isSmartRef__":true,"id":5180},"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":5181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5180":{"this":{"__isSmartRef__":true,"id":3474}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5183":{"this":{"__isSmartRef__":true,"id":3474}},"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 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":5187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5186":{"this":{"__isSmartRef__":true,"id":3474}},"5187":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5188":{"varMapping":{"__isSmartRef__":true,"id":5189},"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":5190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5189":{"this":{"__isSmartRef__":true,"id":3474}},"5190":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5191":{"varMapping":{"__isSmartRef__":true,"id":5192},"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":5193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5192":{"this":{"__isSmartRef__":true,"id":3474}},"5193":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5194":{"varMapping":{"__isSmartRef__":true,"id":5195},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5195":{"this":{"__isSmartRef__":true,"id":3474}},"5196":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5197":{"varMapping":{"__isSmartRef__":true,"id":5198},"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":5199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5198":{"this":{"__isSmartRef__":true,"id":3474}},"5199":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5200":{"varMapping":{"__isSmartRef__":true,"id":5201},"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":5206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5201":{"this":{"__isSmartRef__":true,"id":3474},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5202}},"5202":{"$super":{"__isSmartRef__":true,"id":5203}},"5203":{"varMapping":{"__isSmartRef__":true,"id":5204},"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":5205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5204":{"obj":{"__isSmartRef__":true,"id":3474},"name":"onMouseDown"},"5205":{},"5206":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5207":{"varMapping":{"__isSmartRef__":true,"id":5208},"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":5209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5208":{"this":{"__isSmartRef__":true,"id":3474}},"5209":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5210":{"varMapping":{"__isSmartRef__":true,"id":5211},"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":5212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5211":{"this":{"__isSmartRef__":true,"id":3474}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5214":{"this":{"__isSmartRef__":true,"id":3474}},"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 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":5218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5217":{"this":{"__isSmartRef__":true,"id":3474}},"5218":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5219":{"varMapping":{"__isSmartRef__":true,"id":5220},"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":5221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5220":{"this":{"__isSmartRef__":true,"id":3474}},"5221":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5222":{"varMapping":{"__isSmartRef__":true,"id":5223},"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":5224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5223":{"this":{"__isSmartRef__":true,"id":3474}},"5224":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5225":{"varMapping":{"__isSmartRef__":true,"id":5226},"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":5227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5226":{"this":{"__isSmartRef__":true,"id":3474}},"5227":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5228":{"varMapping":{"__isSmartRef__":true,"id":5229},"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":5230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5229":{"this":{"__isSmartRef__":true,"id":3474}},"5230":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5231":{"varMapping":{"__isSmartRef__":true,"id":5232},"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":5233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5232":{"this":{"__isSmartRef__":true,"id":3474}},"5233":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5234":{"addBomb":{"__isSmartRef__":true,"id":5235},"clearFlag":{"__isSmartRef__":true,"id":5238},"countNeighborBombs":{"__isSmartRef__":true,"id":5241},"fixSubmorph":{"__isSmartRef__":true,"id":5244},"initAppearance":{"__isSmartRef__":true,"id":5247},"initMorphs":{"__isSmartRef__":true,"id":5250},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5253},"isClosed":{"__isSmartRef__":true,"id":5256},"neighborPoints":{"__isSmartRef__":true,"id":5259},"onMouseDown":{"__isSmartRef__":true,"id":5262},"restoreGameAppearance":{"__isSmartRef__":true,"id":5269},"reveal":{"__isSmartRef__":true,"id":5272},"setCoordinates":{"__isSmartRef__":true,"id":5275},"showBomb":{"__isSmartRef__":true,"id":5278},"showDebugState":{"__isSmartRef__":true,"id":5281},"showFlag":{"__isSmartRef__":true,"id":5284},"showState":{"__isSmartRef__":true,"id":5287},"copyImageMorph":{"__isSmartRef__":true,"id":5290},"prepareToPublish":{"__isSmartRef__":true,"id":5293}},"5235":{"varMapping":{"__isSmartRef__":true,"id":5236},"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":5237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5236":{"this":{"__isSmartRef__":true,"id":3426}},"5237":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5238":{"varMapping":{"__isSmartRef__":true,"id":5239},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5239":{"this":{"__isSmartRef__":true,"id":3426}},"5240":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5241":{"varMapping":{"__isSmartRef__":true,"id":5242},"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":5243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5242":{"this":{"__isSmartRef__":true,"id":3426}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5245":{"this":{"__isSmartRef__":true,"id":3426}},"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 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":5249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5248":{"this":{"__isSmartRef__":true,"id":3426}},"5249":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5250":{"varMapping":{"__isSmartRef__":true,"id":5251},"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":5252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5251":{"this":{"__isSmartRef__":true,"id":3426}},"5252":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5253":{"varMapping":{"__isSmartRef__":true,"id":5254},"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":5255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5254":{"this":{"__isSmartRef__":true,"id":3426}},"5255":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5256":{"varMapping":{"__isSmartRef__":true,"id":5257},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5257":{"this":{"__isSmartRef__":true,"id":3426}},"5258":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5259":{"varMapping":{"__isSmartRef__":true,"id":5260},"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":5261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5260":{"this":{"__isSmartRef__":true,"id":3426}},"5261":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5262":{"varMapping":{"__isSmartRef__":true,"id":5263},"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":5268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5263":{"this":{"__isSmartRef__":true,"id":3426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5264}},"5264":{"$super":{"__isSmartRef__":true,"id":5265}},"5265":{"varMapping":{"__isSmartRef__":true,"id":5266},"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":5267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5266":{"obj":{"__isSmartRef__":true,"id":3426},"name":"onMouseDown"},"5267":{},"5268":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5269":{"varMapping":{"__isSmartRef__":true,"id":5270},"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":5271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5270":{"this":{"__isSmartRef__":true,"id":3426}},"5271":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5272":{"varMapping":{"__isSmartRef__":true,"id":5273},"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":5274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5273":{"this":{"__isSmartRef__":true,"id":3426}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5276":{"this":{"__isSmartRef__":true,"id":3426}},"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 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":5280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5279":{"this":{"__isSmartRef__":true,"id":3426}},"5280":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5281":{"varMapping":{"__isSmartRef__":true,"id":5282},"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":5283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5282":{"this":{"__isSmartRef__":true,"id":3426}},"5283":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5284":{"varMapping":{"__isSmartRef__":true,"id":5285},"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":5286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5285":{"this":{"__isSmartRef__":true,"id":3426}},"5286":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5287":{"varMapping":{"__isSmartRef__":true,"id":5288},"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":5289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5288":{"this":{"__isSmartRef__":true,"id":3426}},"5289":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5290":{"varMapping":{"__isSmartRef__":true,"id":5291},"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":5292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5291":{"this":{"__isSmartRef__":true,"id":3426}},"5292":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5293":{"varMapping":{"__isSmartRef__":true,"id":5294},"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":5295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5294":{"this":{"__isSmartRef__":true,"id":3426}},"5295":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5296":{"addBomb":{"__isSmartRef__":true,"id":5297},"clearFlag":{"__isSmartRef__":true,"id":5300},"countNeighborBombs":{"__isSmartRef__":true,"id":5303},"fixSubmorph":{"__isSmartRef__":true,"id":5306},"initAppearance":{"__isSmartRef__":true,"id":5309},"initMorphs":{"__isSmartRef__":true,"id":5312},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5315},"isClosed":{"__isSmartRef__":true,"id":5318},"neighborPoints":{"__isSmartRef__":true,"id":5321},"onMouseDown":{"__isSmartRef__":true,"id":5324},"restoreGameAppearance":{"__isSmartRef__":true,"id":5331},"reveal":{"__isSmartRef__":true,"id":5334},"setCoordinates":{"__isSmartRef__":true,"id":5337},"showBomb":{"__isSmartRef__":true,"id":5340},"showDebugState":{"__isSmartRef__":true,"id":5343},"showFlag":{"__isSmartRef__":true,"id":5346},"showState":{"__isSmartRef__":true,"id":5349},"copyImageMorph":{"__isSmartRef__":true,"id":5352},"prepareToPublish":{"__isSmartRef__":true,"id":5355}},"5297":{"varMapping":{"__isSmartRef__":true,"id":5298},"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":5299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5298":{"this":{"__isSmartRef__":true,"id":3378}},"5299":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5300":{"varMapping":{"__isSmartRef__":true,"id":5301},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5301":{"this":{"__isSmartRef__":true,"id":3378}},"5302":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5303":{"varMapping":{"__isSmartRef__":true,"id":5304},"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":5305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5304":{"this":{"__isSmartRef__":true,"id":3378}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5307":{"this":{"__isSmartRef__":true,"id":3378}},"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 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":5311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5310":{"this":{"__isSmartRef__":true,"id":3378}},"5311":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5312":{"varMapping":{"__isSmartRef__":true,"id":5313},"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":5314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5313":{"this":{"__isSmartRef__":true,"id":3378}},"5314":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5315":{"varMapping":{"__isSmartRef__":true,"id":5316},"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":5317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5316":{"this":{"__isSmartRef__":true,"id":3378}},"5317":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5318":{"varMapping":{"__isSmartRef__":true,"id":5319},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5319":{"this":{"__isSmartRef__":true,"id":3378}},"5320":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5321":{"varMapping":{"__isSmartRef__":true,"id":5322},"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":5323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5322":{"this":{"__isSmartRef__":true,"id":3378}},"5323":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5324":{"varMapping":{"__isSmartRef__":true,"id":5325},"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":5330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5325":{"this":{"__isSmartRef__":true,"id":3378},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5326}},"5326":{"$super":{"__isSmartRef__":true,"id":5327}},"5327":{"varMapping":{"__isSmartRef__":true,"id":5328},"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":5329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5328":{"obj":{"__isSmartRef__":true,"id":3378},"name":"onMouseDown"},"5329":{},"5330":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5331":{"varMapping":{"__isSmartRef__":true,"id":5332},"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":5333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5332":{"this":{"__isSmartRef__":true,"id":3378}},"5333":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5334":{"varMapping":{"__isSmartRef__":true,"id":5335},"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":5336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5335":{"this":{"__isSmartRef__":true,"id":3378}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5339},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5338":{"this":{"__isSmartRef__":true,"id":3378}},"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 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":5342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5341":{"this":{"__isSmartRef__":true,"id":3378}},"5342":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5343":{"varMapping":{"__isSmartRef__":true,"id":5344},"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":5345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5344":{"this":{"__isSmartRef__":true,"id":3378}},"5345":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5346":{"varMapping":{"__isSmartRef__":true,"id":5347},"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":5348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5347":{"this":{"__isSmartRef__":true,"id":3378}},"5348":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5349":{"varMapping":{"__isSmartRef__":true,"id":5350},"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":5351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5350":{"this":{"__isSmartRef__":true,"id":3378}},"5351":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5352":{"varMapping":{"__isSmartRef__":true,"id":5353},"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":5354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5353":{"this":{"__isSmartRef__":true,"id":3378}},"5354":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5355":{"varMapping":{"__isSmartRef__":true,"id":5356},"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":5357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5356":{"this":{"__isSmartRef__":true,"id":3378}},"5357":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5358":{"addBomb":{"__isSmartRef__":true,"id":5359},"clearFlag":{"__isSmartRef__":true,"id":5362},"countNeighborBombs":{"__isSmartRef__":true,"id":5365},"fixSubmorph":{"__isSmartRef__":true,"id":5368},"initAppearance":{"__isSmartRef__":true,"id":5371},"initMorphs":{"__isSmartRef__":true,"id":5374},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5377},"isClosed":{"__isSmartRef__":true,"id":5380},"neighborPoints":{"__isSmartRef__":true,"id":5383},"onMouseDown":{"__isSmartRef__":true,"id":5386},"restoreGameAppearance":{"__isSmartRef__":true,"id":5393},"reveal":{"__isSmartRef__":true,"id":5396},"setCoordinates":{"__isSmartRef__":true,"id":5399},"showBomb":{"__isSmartRef__":true,"id":5402},"showDebugState":{"__isSmartRef__":true,"id":5405},"showFlag":{"__isSmartRef__":true,"id":5408},"showState":{"__isSmartRef__":true,"id":5411},"copyImageMorph":{"__isSmartRef__":true,"id":5414},"prepareToPublish":{"__isSmartRef__":true,"id":5417}},"5359":{"varMapping":{"__isSmartRef__":true,"id":5360},"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":5361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5360":{"this":{"__isSmartRef__":true,"id":3330}},"5361":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5362":{"varMapping":{"__isSmartRef__":true,"id":5363},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5363":{"this":{"__isSmartRef__":true,"id":3330}},"5364":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5365":{"varMapping":{"__isSmartRef__":true,"id":5366},"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":5367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5366":{"this":{"__isSmartRef__":true,"id":3330}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5369":{"this":{"__isSmartRef__":true,"id":3330}},"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 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":5373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5372":{"this":{"__isSmartRef__":true,"id":3330}},"5373":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5374":{"varMapping":{"__isSmartRef__":true,"id":5375},"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":5376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5375":{"this":{"__isSmartRef__":true,"id":3330}},"5376":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5377":{"varMapping":{"__isSmartRef__":true,"id":5378},"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":5379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5378":{"this":{"__isSmartRef__":true,"id":3330}},"5379":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5380":{"varMapping":{"__isSmartRef__":true,"id":5381},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5381":{"this":{"__isSmartRef__":true,"id":3330}},"5382":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5383":{"varMapping":{"__isSmartRef__":true,"id":5384},"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":5385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5384":{"this":{"__isSmartRef__":true,"id":3330}},"5385":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5386":{"varMapping":{"__isSmartRef__":true,"id":5387},"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":5392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5387":{"this":{"__isSmartRef__":true,"id":3330},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5388}},"5388":{"$super":{"__isSmartRef__":true,"id":5389}},"5389":{"varMapping":{"__isSmartRef__":true,"id":5390},"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":5391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5390":{"obj":{"__isSmartRef__":true,"id":3330},"name":"onMouseDown"},"5391":{},"5392":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5393":{"varMapping":{"__isSmartRef__":true,"id":5394},"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":5395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5394":{"this":{"__isSmartRef__":true,"id":3330}},"5395":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5396":{"varMapping":{"__isSmartRef__":true,"id":5397},"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":5398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5397":{"this":{"__isSmartRef__":true,"id":3330}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5400":{"this":{"__isSmartRef__":true,"id":3330}},"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 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":5404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5403":{"this":{"__isSmartRef__":true,"id":3330}},"5404":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5405":{"varMapping":{"__isSmartRef__":true,"id":5406},"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":5407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5406":{"this":{"__isSmartRef__":true,"id":3330}},"5407":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5408":{"varMapping":{"__isSmartRef__":true,"id":5409},"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":5410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5409":{"this":{"__isSmartRef__":true,"id":3330}},"5410":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5411":{"varMapping":{"__isSmartRef__":true,"id":5412},"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":5413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5412":{"this":{"__isSmartRef__":true,"id":3330}},"5413":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5414":{"varMapping":{"__isSmartRef__":true,"id":5415},"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":5416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5415":{"this":{"__isSmartRef__":true,"id":3330}},"5416":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5417":{"varMapping":{"__isSmartRef__":true,"id":5418},"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":5419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5418":{"this":{"__isSmartRef__":true,"id":3330}},"5419":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5420":{"addBomb":{"__isSmartRef__":true,"id":5421},"clearFlag":{"__isSmartRef__":true,"id":5424},"countNeighborBombs":{"__isSmartRef__":true,"id":5427},"fixSubmorph":{"__isSmartRef__":true,"id":5430},"initAppearance":{"__isSmartRef__":true,"id":5433},"initMorphs":{"__isSmartRef__":true,"id":5436},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5439},"isClosed":{"__isSmartRef__":true,"id":5442},"neighborPoints":{"__isSmartRef__":true,"id":5445},"onMouseDown":{"__isSmartRef__":true,"id":5448},"restoreGameAppearance":{"__isSmartRef__":true,"id":5455},"reveal":{"__isSmartRef__":true,"id":5458},"setCoordinates":{"__isSmartRef__":true,"id":5461},"showBomb":{"__isSmartRef__":true,"id":5464},"showDebugState":{"__isSmartRef__":true,"id":5467},"showFlag":{"__isSmartRef__":true,"id":5470},"showState":{"__isSmartRef__":true,"id":5473},"copyImageMorph":{"__isSmartRef__":true,"id":5476},"prepareToPublish":{"__isSmartRef__":true,"id":5479}},"5421":{"varMapping":{"__isSmartRef__":true,"id":5422},"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":5423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5422":{"this":{"__isSmartRef__":true,"id":3282}},"5423":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5424":{"varMapping":{"__isSmartRef__":true,"id":5425},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5426},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5425":{"this":{"__isSmartRef__":true,"id":3282}},"5426":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5427":{"varMapping":{"__isSmartRef__":true,"id":5428},"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":5429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5428":{"this":{"__isSmartRef__":true,"id":3282}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5431":{"this":{"__isSmartRef__":true,"id":3282}},"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 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":5435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5434":{"this":{"__isSmartRef__":true,"id":3282}},"5435":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5436":{"varMapping":{"__isSmartRef__":true,"id":5437},"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":5438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5437":{"this":{"__isSmartRef__":true,"id":3282}},"5438":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5439":{"varMapping":{"__isSmartRef__":true,"id":5440},"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":5441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5440":{"this":{"__isSmartRef__":true,"id":3282}},"5441":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5442":{"varMapping":{"__isSmartRef__":true,"id":5443},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5443":{"this":{"__isSmartRef__":true,"id":3282}},"5444":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5445":{"varMapping":{"__isSmartRef__":true,"id":5446},"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":5447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5446":{"this":{"__isSmartRef__":true,"id":3282}},"5447":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5448":{"varMapping":{"__isSmartRef__":true,"id":5449},"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":5454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5449":{"this":{"__isSmartRef__":true,"id":3282},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5450}},"5450":{"$super":{"__isSmartRef__":true,"id":5451}},"5451":{"varMapping":{"__isSmartRef__":true,"id":5452},"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":5453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5452":{"obj":{"__isSmartRef__":true,"id":3282},"name":"onMouseDown"},"5453":{},"5454":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5455":{"varMapping":{"__isSmartRef__":true,"id":5456},"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":5457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5456":{"this":{"__isSmartRef__":true,"id":3282}},"5457":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5458":{"varMapping":{"__isSmartRef__":true,"id":5459},"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":5460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5459":{"this":{"__isSmartRef__":true,"id":3282}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5462":{"this":{"__isSmartRef__":true,"id":3282}},"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 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":5466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5465":{"this":{"__isSmartRef__":true,"id":3282}},"5466":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5467":{"varMapping":{"__isSmartRef__":true,"id":5468},"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":5469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5468":{"this":{"__isSmartRef__":true,"id":3282}},"5469":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5470":{"varMapping":{"__isSmartRef__":true,"id":5471},"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":5472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5471":{"this":{"__isSmartRef__":true,"id":3282}},"5472":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5473":{"varMapping":{"__isSmartRef__":true,"id":5474},"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":5475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5474":{"this":{"__isSmartRef__":true,"id":3282}},"5475":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5476":{"varMapping":{"__isSmartRef__":true,"id":5477},"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":5478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5477":{"this":{"__isSmartRef__":true,"id":3282}},"5478":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5479":{"varMapping":{"__isSmartRef__":true,"id":5480},"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":5481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5480":{"this":{"__isSmartRef__":true,"id":3282}},"5481":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5482":{"addBomb":{"__isSmartRef__":true,"id":5483},"clearFlag":{"__isSmartRef__":true,"id":5486},"countNeighborBombs":{"__isSmartRef__":true,"id":5489},"fixSubmorph":{"__isSmartRef__":true,"id":5492},"initAppearance":{"__isSmartRef__":true,"id":5495},"initMorphs":{"__isSmartRef__":true,"id":5498},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5501},"isClosed":{"__isSmartRef__":true,"id":5504},"neighborPoints":{"__isSmartRef__":true,"id":5507},"onMouseDown":{"__isSmartRef__":true,"id":5510},"restoreGameAppearance":{"__isSmartRef__":true,"id":5517},"reveal":{"__isSmartRef__":true,"id":5520},"setCoordinates":{"__isSmartRef__":true,"id":5523},"showBomb":{"__isSmartRef__":true,"id":5526},"showDebugState":{"__isSmartRef__":true,"id":5529},"showFlag":{"__isSmartRef__":true,"id":5532},"showState":{"__isSmartRef__":true,"id":5535},"copyImageMorph":{"__isSmartRef__":true,"id":5538},"prepareToPublish":{"__isSmartRef__":true,"id":5541}},"5483":{"varMapping":{"__isSmartRef__":true,"id":5484},"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":5485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5484":{"this":{"__isSmartRef__":true,"id":3234}},"5485":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5486":{"varMapping":{"__isSmartRef__":true,"id":5487},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5487":{"this":{"__isSmartRef__":true,"id":3234}},"5488":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5489":{"varMapping":{"__isSmartRef__":true,"id":5490},"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":5491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5490":{"this":{"__isSmartRef__":true,"id":3234}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5493":{"this":{"__isSmartRef__":true,"id":3234}},"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 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":5497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5496":{"this":{"__isSmartRef__":true,"id":3234}},"5497":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5498":{"varMapping":{"__isSmartRef__":true,"id":5499},"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":5500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5499":{"this":{"__isSmartRef__":true,"id":3234}},"5500":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5501":{"varMapping":{"__isSmartRef__":true,"id":5502},"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":5503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5502":{"this":{"__isSmartRef__":true,"id":3234}},"5503":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5504":{"varMapping":{"__isSmartRef__":true,"id":5505},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5505":{"this":{"__isSmartRef__":true,"id":3234}},"5506":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5507":{"varMapping":{"__isSmartRef__":true,"id":5508},"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":5509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5508":{"this":{"__isSmartRef__":true,"id":3234}},"5509":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5510":{"varMapping":{"__isSmartRef__":true,"id":5511},"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":5516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5511":{"this":{"__isSmartRef__":true,"id":3234},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5512}},"5512":{"$super":{"__isSmartRef__":true,"id":5513}},"5513":{"varMapping":{"__isSmartRef__":true,"id":5514},"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":5515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5514":{"obj":{"__isSmartRef__":true,"id":3234},"name":"onMouseDown"},"5515":{},"5516":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5517":{"varMapping":{"__isSmartRef__":true,"id":5518},"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":5519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5518":{"this":{"__isSmartRef__":true,"id":3234}},"5519":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5520":{"varMapping":{"__isSmartRef__":true,"id":5521},"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":5522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5521":{"this":{"__isSmartRef__":true,"id":3234}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5524":{"this":{"__isSmartRef__":true,"id":3234}},"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 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":5528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5527":{"this":{"__isSmartRef__":true,"id":3234}},"5528":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5529":{"varMapping":{"__isSmartRef__":true,"id":5530},"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":5531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5530":{"this":{"__isSmartRef__":true,"id":3234}},"5531":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5532":{"varMapping":{"__isSmartRef__":true,"id":5533},"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":5534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5533":{"this":{"__isSmartRef__":true,"id":3234}},"5534":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5535":{"varMapping":{"__isSmartRef__":true,"id":5536},"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":5537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5536":{"this":{"__isSmartRef__":true,"id":3234}},"5537":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5538":{"varMapping":{"__isSmartRef__":true,"id":5539},"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":5540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5539":{"this":{"__isSmartRef__":true,"id":3234}},"5540":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5541":{"varMapping":{"__isSmartRef__":true,"id":5542},"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":5543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5542":{"this":{"__isSmartRef__":true,"id":3234}},"5543":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5544":{"addBomb":{"__isSmartRef__":true,"id":5545},"clearFlag":{"__isSmartRef__":true,"id":5548},"countNeighborBombs":{"__isSmartRef__":true,"id":5551},"fixSubmorph":{"__isSmartRef__":true,"id":5554},"initAppearance":{"__isSmartRef__":true,"id":5557},"initMorphs":{"__isSmartRef__":true,"id":5560},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5563},"isClosed":{"__isSmartRef__":true,"id":5566},"neighborPoints":{"__isSmartRef__":true,"id":5569},"onMouseDown":{"__isSmartRef__":true,"id":5572},"restoreGameAppearance":{"__isSmartRef__":true,"id":5579},"reveal":{"__isSmartRef__":true,"id":5582},"setCoordinates":{"__isSmartRef__":true,"id":5585},"showBomb":{"__isSmartRef__":true,"id":5588},"showDebugState":{"__isSmartRef__":true,"id":5591},"showFlag":{"__isSmartRef__":true,"id":5594},"showState":{"__isSmartRef__":true,"id":5597},"copyImageMorph":{"__isSmartRef__":true,"id":5600},"prepareToPublish":{"__isSmartRef__":true,"id":5603}},"5545":{"varMapping":{"__isSmartRef__":true,"id":5546},"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":5547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5546":{"this":{"__isSmartRef__":true,"id":3186}},"5547":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5548":{"varMapping":{"__isSmartRef__":true,"id":5549},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5549":{"this":{"__isSmartRef__":true,"id":3186}},"5550":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5551":{"varMapping":{"__isSmartRef__":true,"id":5552},"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":5553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5552":{"this":{"__isSmartRef__":true,"id":3186}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5556},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5555":{"this":{"__isSmartRef__":true,"id":3186}},"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 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":5559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5558":{"this":{"__isSmartRef__":true,"id":3186}},"5559":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5560":{"varMapping":{"__isSmartRef__":true,"id":5561},"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":5562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5561":{"this":{"__isSmartRef__":true,"id":3186}},"5562":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5563":{"varMapping":{"__isSmartRef__":true,"id":5564},"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":5565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5564":{"this":{"__isSmartRef__":true,"id":3186}},"5565":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5566":{"varMapping":{"__isSmartRef__":true,"id":5567},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5567":{"this":{"__isSmartRef__":true,"id":3186}},"5568":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5569":{"varMapping":{"__isSmartRef__":true,"id":5570},"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":5571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5570":{"this":{"__isSmartRef__":true,"id":3186}},"5571":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5572":{"varMapping":{"__isSmartRef__":true,"id":5573},"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":5578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5573":{"this":{"__isSmartRef__":true,"id":3186},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5574}},"5574":{"$super":{"__isSmartRef__":true,"id":5575}},"5575":{"varMapping":{"__isSmartRef__":true,"id":5576},"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":5577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5576":{"obj":{"__isSmartRef__":true,"id":3186},"name":"onMouseDown"},"5577":{},"5578":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5579":{"varMapping":{"__isSmartRef__":true,"id":5580},"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":5581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5580":{"this":{"__isSmartRef__":true,"id":3186}},"5581":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5582":{"varMapping":{"__isSmartRef__":true,"id":5583},"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":5584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5583":{"this":{"__isSmartRef__":true,"id":3186}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5586":{"this":{"__isSmartRef__":true,"id":3186}},"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 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":5590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5589":{"this":{"__isSmartRef__":true,"id":3186}},"5590":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5591":{"varMapping":{"__isSmartRef__":true,"id":5592},"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":5593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5592":{"this":{"__isSmartRef__":true,"id":3186}},"5593":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5594":{"varMapping":{"__isSmartRef__":true,"id":5595},"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":5596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5595":{"this":{"__isSmartRef__":true,"id":3186}},"5596":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5597":{"varMapping":{"__isSmartRef__":true,"id":5598},"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":5599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5598":{"this":{"__isSmartRef__":true,"id":3186}},"5599":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5600":{"varMapping":{"__isSmartRef__":true,"id":5601},"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":5602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5601":{"this":{"__isSmartRef__":true,"id":3186}},"5602":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5603":{"varMapping":{"__isSmartRef__":true,"id":5604},"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":5605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5604":{"this":{"__isSmartRef__":true,"id":3186}},"5605":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5606":{"addBomb":{"__isSmartRef__":true,"id":5607},"clearFlag":{"__isSmartRef__":true,"id":5610},"countNeighborBombs":{"__isSmartRef__":true,"id":5613},"fixSubmorph":{"__isSmartRef__":true,"id":5616},"initAppearance":{"__isSmartRef__":true,"id":5619},"initMorphs":{"__isSmartRef__":true,"id":5622},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5625},"isClosed":{"__isSmartRef__":true,"id":5628},"neighborPoints":{"__isSmartRef__":true,"id":5631},"onMouseDown":{"__isSmartRef__":true,"id":5634},"restoreGameAppearance":{"__isSmartRef__":true,"id":5641},"reveal":{"__isSmartRef__":true,"id":5644},"setCoordinates":{"__isSmartRef__":true,"id":5647},"showBomb":{"__isSmartRef__":true,"id":5650},"showDebugState":{"__isSmartRef__":true,"id":5653},"showFlag":{"__isSmartRef__":true,"id":5656},"showState":{"__isSmartRef__":true,"id":5659},"copyImageMorph":{"__isSmartRef__":true,"id":5662},"prepareToPublish":{"__isSmartRef__":true,"id":5665}},"5607":{"varMapping":{"__isSmartRef__":true,"id":5608},"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":5609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5608":{"this":{"__isSmartRef__":true,"id":3138}},"5609":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5610":{"varMapping":{"__isSmartRef__":true,"id":5611},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5611":{"this":{"__isSmartRef__":true,"id":3138}},"5612":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5613":{"varMapping":{"__isSmartRef__":true,"id":5614},"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":5615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5614":{"this":{"__isSmartRef__":true,"id":3138}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5617":{"this":{"__isSmartRef__":true,"id":3138}},"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 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":5621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5620":{"this":{"__isSmartRef__":true,"id":3138}},"5621":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5622":{"varMapping":{"__isSmartRef__":true,"id":5623},"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":5624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5623":{"this":{"__isSmartRef__":true,"id":3138}},"5624":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5625":{"varMapping":{"__isSmartRef__":true,"id":5626},"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":5627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5626":{"this":{"__isSmartRef__":true,"id":3138}},"5627":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5628":{"varMapping":{"__isSmartRef__":true,"id":5629},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5629":{"this":{"__isSmartRef__":true,"id":3138}},"5630":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5631":{"varMapping":{"__isSmartRef__":true,"id":5632},"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":5633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5632":{"this":{"__isSmartRef__":true,"id":3138}},"5633":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5634":{"varMapping":{"__isSmartRef__":true,"id":5635},"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":5640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5635":{"this":{"__isSmartRef__":true,"id":3138},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5636}},"5636":{"$super":{"__isSmartRef__":true,"id":5637}},"5637":{"varMapping":{"__isSmartRef__":true,"id":5638},"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":5639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5638":{"obj":{"__isSmartRef__":true,"id":3138},"name":"onMouseDown"},"5639":{},"5640":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5641":{"varMapping":{"__isSmartRef__":true,"id":5642},"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":5643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5642":{"this":{"__isSmartRef__":true,"id":3138}},"5643":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5644":{"varMapping":{"__isSmartRef__":true,"id":5645},"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":5646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5645":{"this":{"__isSmartRef__":true,"id":3138}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5648":{"this":{"__isSmartRef__":true,"id":3138}},"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 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":5652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5651":{"this":{"__isSmartRef__":true,"id":3138}},"5652":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5653":{"varMapping":{"__isSmartRef__":true,"id":5654},"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":5655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5654":{"this":{"__isSmartRef__":true,"id":3138}},"5655":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5656":{"varMapping":{"__isSmartRef__":true,"id":5657},"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":5658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5657":{"this":{"__isSmartRef__":true,"id":3138}},"5658":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5659":{"varMapping":{"__isSmartRef__":true,"id":5660},"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":5661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5660":{"this":{"__isSmartRef__":true,"id":3138}},"5661":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5662":{"varMapping":{"__isSmartRef__":true,"id":5663},"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":5664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5663":{"this":{"__isSmartRef__":true,"id":3138}},"5664":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5665":{"varMapping":{"__isSmartRef__":true,"id":5666},"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":5667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5666":{"this":{"__isSmartRef__":true,"id":3138}},"5667":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5668":{"addBomb":{"__isSmartRef__":true,"id":5669},"clearFlag":{"__isSmartRef__":true,"id":5672},"countNeighborBombs":{"__isSmartRef__":true,"id":5675},"fixSubmorph":{"__isSmartRef__":true,"id":5678},"initAppearance":{"__isSmartRef__":true,"id":5681},"initMorphs":{"__isSmartRef__":true,"id":5684},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5687},"isClosed":{"__isSmartRef__":true,"id":5690},"neighborPoints":{"__isSmartRef__":true,"id":5693},"onMouseDown":{"__isSmartRef__":true,"id":5696},"restoreGameAppearance":{"__isSmartRef__":true,"id":5703},"reveal":{"__isSmartRef__":true,"id":5706},"setCoordinates":{"__isSmartRef__":true,"id":5709},"showBomb":{"__isSmartRef__":true,"id":5712},"showDebugState":{"__isSmartRef__":true,"id":5715},"showFlag":{"__isSmartRef__":true,"id":5718},"showState":{"__isSmartRef__":true,"id":5721},"copyImageMorph":{"__isSmartRef__":true,"id":5724},"prepareToPublish":{"__isSmartRef__":true,"id":5727}},"5669":{"varMapping":{"__isSmartRef__":true,"id":5670},"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":5671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5670":{"this":{"__isSmartRef__":true,"id":3090}},"5671":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5672":{"varMapping":{"__isSmartRef__":true,"id":5673},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5673":{"this":{"__isSmartRef__":true,"id":3090}},"5674":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5675":{"varMapping":{"__isSmartRef__":true,"id":5676},"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":5677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5676":{"this":{"__isSmartRef__":true,"id":3090}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5679":{"this":{"__isSmartRef__":true,"id":3090}},"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 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":5683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5682":{"this":{"__isSmartRef__":true,"id":3090}},"5683":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5684":{"varMapping":{"__isSmartRef__":true,"id":5685},"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":5686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5685":{"this":{"__isSmartRef__":true,"id":3090}},"5686":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5687":{"varMapping":{"__isSmartRef__":true,"id":5688},"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":5689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5688":{"this":{"__isSmartRef__":true,"id":3090}},"5689":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5690":{"varMapping":{"__isSmartRef__":true,"id":5691},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5691":{"this":{"__isSmartRef__":true,"id":3090}},"5692":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5693":{"varMapping":{"__isSmartRef__":true,"id":5694},"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":5695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5694":{"this":{"__isSmartRef__":true,"id":3090}},"5695":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5696":{"varMapping":{"__isSmartRef__":true,"id":5697},"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":5702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5697":{"this":{"__isSmartRef__":true,"id":3090},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5698}},"5698":{"$super":{"__isSmartRef__":true,"id":5699}},"5699":{"varMapping":{"__isSmartRef__":true,"id":5700},"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":5701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5700":{"obj":{"__isSmartRef__":true,"id":3090},"name":"onMouseDown"},"5701":{},"5702":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5703":{"varMapping":{"__isSmartRef__":true,"id":5704},"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":5705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5704":{"this":{"__isSmartRef__":true,"id":3090}},"5705":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5706":{"varMapping":{"__isSmartRef__":true,"id":5707},"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":5708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5707":{"this":{"__isSmartRef__":true,"id":3090}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5710":{"this":{"__isSmartRef__":true,"id":3090}},"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 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":5714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5713":{"this":{"__isSmartRef__":true,"id":3090}},"5714":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5715":{"varMapping":{"__isSmartRef__":true,"id":5716},"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":5717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5716":{"this":{"__isSmartRef__":true,"id":3090}},"5717":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5718":{"varMapping":{"__isSmartRef__":true,"id":5719},"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":5720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5719":{"this":{"__isSmartRef__":true,"id":3090}},"5720":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5721":{"varMapping":{"__isSmartRef__":true,"id":5722},"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":5723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5722":{"this":{"__isSmartRef__":true,"id":3090}},"5723":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5724":{"varMapping":{"__isSmartRef__":true,"id":5725},"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":5726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5725":{"this":{"__isSmartRef__":true,"id":3090}},"5726":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5727":{"varMapping":{"__isSmartRef__":true,"id":5728},"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":5729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5728":{"this":{"__isSmartRef__":true,"id":3090}},"5729":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5730":{"addBomb":{"__isSmartRef__":true,"id":5731},"clearFlag":{"__isSmartRef__":true,"id":5734},"countNeighborBombs":{"__isSmartRef__":true,"id":5737},"fixSubmorph":{"__isSmartRef__":true,"id":5740},"initAppearance":{"__isSmartRef__":true,"id":5743},"initMorphs":{"__isSmartRef__":true,"id":5746},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5749},"isClosed":{"__isSmartRef__":true,"id":5752},"neighborPoints":{"__isSmartRef__":true,"id":5755},"onMouseDown":{"__isSmartRef__":true,"id":5758},"restoreGameAppearance":{"__isSmartRef__":true,"id":5765},"reveal":{"__isSmartRef__":true,"id":5768},"setCoordinates":{"__isSmartRef__":true,"id":5771},"showBomb":{"__isSmartRef__":true,"id":5774},"showDebugState":{"__isSmartRef__":true,"id":5777},"showFlag":{"__isSmartRef__":true,"id":5780},"showState":{"__isSmartRef__":true,"id":5783},"copyImageMorph":{"__isSmartRef__":true,"id":5786},"prepareToPublish":{"__isSmartRef__":true,"id":5789}},"5731":{"varMapping":{"__isSmartRef__":true,"id":5732},"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":5733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5732":{"this":{"__isSmartRef__":true,"id":3042}},"5733":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5734":{"varMapping":{"__isSmartRef__":true,"id":5735},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5735":{"this":{"__isSmartRef__":true,"id":3042}},"5736":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5737":{"varMapping":{"__isSmartRef__":true,"id":5738},"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":5739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5738":{"this":{"__isSmartRef__":true,"id":3042}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5741":{"this":{"__isSmartRef__":true,"id":3042}},"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 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":5745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5744":{"this":{"__isSmartRef__":true,"id":3042}},"5745":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5746":{"varMapping":{"__isSmartRef__":true,"id":5747},"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":5748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5747":{"this":{"__isSmartRef__":true,"id":3042}},"5748":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5749":{"varMapping":{"__isSmartRef__":true,"id":5750},"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":5751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5750":{"this":{"__isSmartRef__":true,"id":3042}},"5751":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5752":{"varMapping":{"__isSmartRef__":true,"id":5753},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5753":{"this":{"__isSmartRef__":true,"id":3042}},"5754":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5755":{"varMapping":{"__isSmartRef__":true,"id":5756},"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":5757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5756":{"this":{"__isSmartRef__":true,"id":3042}},"5757":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5758":{"varMapping":{"__isSmartRef__":true,"id":5759},"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":5764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5759":{"this":{"__isSmartRef__":true,"id":3042},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5760}},"5760":{"$super":{"__isSmartRef__":true,"id":5761}},"5761":{"varMapping":{"__isSmartRef__":true,"id":5762},"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":5763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5762":{"obj":{"__isSmartRef__":true,"id":3042},"name":"onMouseDown"},"5763":{},"5764":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5765":{"varMapping":{"__isSmartRef__":true,"id":5766},"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":5767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5766":{"this":{"__isSmartRef__":true,"id":3042}},"5767":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5768":{"varMapping":{"__isSmartRef__":true,"id":5769},"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":5770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5769":{"this":{"__isSmartRef__":true,"id":3042}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5772":{"this":{"__isSmartRef__":true,"id":3042}},"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 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":5776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5775":{"this":{"__isSmartRef__":true,"id":3042}},"5776":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5777":{"varMapping":{"__isSmartRef__":true,"id":5778},"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":5779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5778":{"this":{"__isSmartRef__":true,"id":3042}},"5779":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5780":{"varMapping":{"__isSmartRef__":true,"id":5781},"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":5782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5781":{"this":{"__isSmartRef__":true,"id":3042}},"5782":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5783":{"varMapping":{"__isSmartRef__":true,"id":5784},"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":5785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5784":{"this":{"__isSmartRef__":true,"id":3042}},"5785":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5786":{"varMapping":{"__isSmartRef__":true,"id":5787},"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":5788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5787":{"this":{"__isSmartRef__":true,"id":3042}},"5788":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5789":{"varMapping":{"__isSmartRef__":true,"id":5790},"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":5791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5790":{"this":{"__isSmartRef__":true,"id":3042}},"5791":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5792":{"addBomb":{"__isSmartRef__":true,"id":5793},"clearFlag":{"__isSmartRef__":true,"id":5796},"countNeighborBombs":{"__isSmartRef__":true,"id":5799},"fixSubmorph":{"__isSmartRef__":true,"id":5802},"initAppearance":{"__isSmartRef__":true,"id":5805},"initMorphs":{"__isSmartRef__":true,"id":5808},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5811},"isClosed":{"__isSmartRef__":true,"id":5814},"neighborPoints":{"__isSmartRef__":true,"id":5817},"onMouseDown":{"__isSmartRef__":true,"id":5820},"restoreGameAppearance":{"__isSmartRef__":true,"id":5827},"reveal":{"__isSmartRef__":true,"id":5830},"setCoordinates":{"__isSmartRef__":true,"id":5833},"showBomb":{"__isSmartRef__":true,"id":5836},"showDebugState":{"__isSmartRef__":true,"id":5839},"showFlag":{"__isSmartRef__":true,"id":5842},"showState":{"__isSmartRef__":true,"id":5845},"copyImageMorph":{"__isSmartRef__":true,"id":5848},"prepareToPublish":{"__isSmartRef__":true,"id":5851}},"5793":{"varMapping":{"__isSmartRef__":true,"id":5794},"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":5795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5794":{"this":{"__isSmartRef__":true,"id":2994}},"5795":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5796":{"varMapping":{"__isSmartRef__":true,"id":5797},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5797":{"this":{"__isSmartRef__":true,"id":2994}},"5798":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5799":{"varMapping":{"__isSmartRef__":true,"id":5800},"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":5801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5800":{"this":{"__isSmartRef__":true,"id":2994}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5803":{"this":{"__isSmartRef__":true,"id":2994}},"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 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":5807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5806":{"this":{"__isSmartRef__":true,"id":2994}},"5807":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5808":{"varMapping":{"__isSmartRef__":true,"id":5809},"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":5810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5809":{"this":{"__isSmartRef__":true,"id":2994}},"5810":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5811":{"varMapping":{"__isSmartRef__":true,"id":5812},"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":5813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5812":{"this":{"__isSmartRef__":true,"id":2994}},"5813":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5814":{"varMapping":{"__isSmartRef__":true,"id":5815},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5815":{"this":{"__isSmartRef__":true,"id":2994}},"5816":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5817":{"varMapping":{"__isSmartRef__":true,"id":5818},"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":5819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5818":{"this":{"__isSmartRef__":true,"id":2994}},"5819":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5820":{"varMapping":{"__isSmartRef__":true,"id":5821},"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":5826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5821":{"this":{"__isSmartRef__":true,"id":2994},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5822}},"5822":{"$super":{"__isSmartRef__":true,"id":5823}},"5823":{"varMapping":{"__isSmartRef__":true,"id":5824},"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":5825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5824":{"obj":{"__isSmartRef__":true,"id":2994},"name":"onMouseDown"},"5825":{},"5826":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5827":{"varMapping":{"__isSmartRef__":true,"id":5828},"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":5829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5828":{"this":{"__isSmartRef__":true,"id":2994}},"5829":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5830":{"varMapping":{"__isSmartRef__":true,"id":5831},"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":5832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5831":{"this":{"__isSmartRef__":true,"id":2994}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5834":{"this":{"__isSmartRef__":true,"id":2994}},"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 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":5838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5837":{"this":{"__isSmartRef__":true,"id":2994}},"5838":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5839":{"varMapping":{"__isSmartRef__":true,"id":5840},"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":5841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5840":{"this":{"__isSmartRef__":true,"id":2994}},"5841":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5842":{"varMapping":{"__isSmartRef__":true,"id":5843},"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":5844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5843":{"this":{"__isSmartRef__":true,"id":2994}},"5844":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5845":{"varMapping":{"__isSmartRef__":true,"id":5846},"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":5847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5846":{"this":{"__isSmartRef__":true,"id":2994}},"5847":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5848":{"varMapping":{"__isSmartRef__":true,"id":5849},"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":5850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5849":{"this":{"__isSmartRef__":true,"id":2994}},"5850":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5851":{"varMapping":{"__isSmartRef__":true,"id":5852},"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":5853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5852":{"this":{"__isSmartRef__":true,"id":2994}},"5853":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5854":{"addBomb":{"__isSmartRef__":true,"id":5855},"clearFlag":{"__isSmartRef__":true,"id":5858},"countNeighborBombs":{"__isSmartRef__":true,"id":5861},"fixSubmorph":{"__isSmartRef__":true,"id":5864},"initAppearance":{"__isSmartRef__":true,"id":5867},"initMorphs":{"__isSmartRef__":true,"id":5870},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5873},"isClosed":{"__isSmartRef__":true,"id":5876},"neighborPoints":{"__isSmartRef__":true,"id":5879},"onMouseDown":{"__isSmartRef__":true,"id":5882},"restoreGameAppearance":{"__isSmartRef__":true,"id":5889},"reveal":{"__isSmartRef__":true,"id":5892},"setCoordinates":{"__isSmartRef__":true,"id":5895},"showBomb":{"__isSmartRef__":true,"id":5898},"showDebugState":{"__isSmartRef__":true,"id":5901},"showFlag":{"__isSmartRef__":true,"id":5904},"showState":{"__isSmartRef__":true,"id":5907},"copyImageMorph":{"__isSmartRef__":true,"id":5910},"prepareToPublish":{"__isSmartRef__":true,"id":5913}},"5855":{"varMapping":{"__isSmartRef__":true,"id":5856},"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":5857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5856":{"this":{"__isSmartRef__":true,"id":2946}},"5857":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5858":{"varMapping":{"__isSmartRef__":true,"id":5859},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5859":{"this":{"__isSmartRef__":true,"id":2946}},"5860":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5861":{"varMapping":{"__isSmartRef__":true,"id":5862},"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":5863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5862":{"this":{"__isSmartRef__":true,"id":2946}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5865":{"this":{"__isSmartRef__":true,"id":2946}},"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 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":5869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5868":{"this":{"__isSmartRef__":true,"id":2946}},"5869":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5870":{"varMapping":{"__isSmartRef__":true,"id":5871},"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":5872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5871":{"this":{"__isSmartRef__":true,"id":2946}},"5872":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5873":{"varMapping":{"__isSmartRef__":true,"id":5874},"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":5875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5874":{"this":{"__isSmartRef__":true,"id":2946}},"5875":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5876":{"varMapping":{"__isSmartRef__":true,"id":5877},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5877":{"this":{"__isSmartRef__":true,"id":2946}},"5878":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5879":{"varMapping":{"__isSmartRef__":true,"id":5880},"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":5881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5880":{"this":{"__isSmartRef__":true,"id":2946}},"5881":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5882":{"varMapping":{"__isSmartRef__":true,"id":5883},"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":5888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5883":{"this":{"__isSmartRef__":true,"id":2946},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5884}},"5884":{"$super":{"__isSmartRef__":true,"id":5885}},"5885":{"varMapping":{"__isSmartRef__":true,"id":5886},"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":5887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5886":{"obj":{"__isSmartRef__":true,"id":2946},"name":"onMouseDown"},"5887":{},"5888":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5889":{"varMapping":{"__isSmartRef__":true,"id":5890},"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":5891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5890":{"this":{"__isSmartRef__":true,"id":2946}},"5891":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5892":{"varMapping":{"__isSmartRef__":true,"id":5893},"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":5894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5893":{"this":{"__isSmartRef__":true,"id":2946}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5896":{"this":{"__isSmartRef__":true,"id":2946}},"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 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":5900},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5899":{"this":{"__isSmartRef__":true,"id":2946}},"5900":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5901":{"varMapping":{"__isSmartRef__":true,"id":5902},"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":5903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5902":{"this":{"__isSmartRef__":true,"id":2946}},"5903":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5904":{"varMapping":{"__isSmartRef__":true,"id":5905},"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":5906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5905":{"this":{"__isSmartRef__":true,"id":2946}},"5906":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5907":{"varMapping":{"__isSmartRef__":true,"id":5908},"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":5909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5908":{"this":{"__isSmartRef__":true,"id":2946}},"5909":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5910":{"varMapping":{"__isSmartRef__":true,"id":5911},"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":5912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5911":{"this":{"__isSmartRef__":true,"id":2946}},"5912":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5913":{"varMapping":{"__isSmartRef__":true,"id":5914},"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":5915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5914":{"this":{"__isSmartRef__":true,"id":2946}},"5915":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5916":{"addBomb":{"__isSmartRef__":true,"id":5917},"clearFlag":{"__isSmartRef__":true,"id":5920},"countNeighborBombs":{"__isSmartRef__":true,"id":5923},"fixSubmorph":{"__isSmartRef__":true,"id":5926},"initAppearance":{"__isSmartRef__":true,"id":5929},"initMorphs":{"__isSmartRef__":true,"id":5932},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5935},"isClosed":{"__isSmartRef__":true,"id":5938},"neighborPoints":{"__isSmartRef__":true,"id":5941},"onMouseDown":{"__isSmartRef__":true,"id":5944},"restoreGameAppearance":{"__isSmartRef__":true,"id":5951},"reveal":{"__isSmartRef__":true,"id":5954},"setCoordinates":{"__isSmartRef__":true,"id":5957},"showBomb":{"__isSmartRef__":true,"id":5960},"showDebugState":{"__isSmartRef__":true,"id":5963},"showFlag":{"__isSmartRef__":true,"id":5966},"showState":{"__isSmartRef__":true,"id":5969},"copyImageMorph":{"__isSmartRef__":true,"id":5972},"prepareToPublish":{"__isSmartRef__":true,"id":5975}},"5917":{"varMapping":{"__isSmartRef__":true,"id":5918},"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":5919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5918":{"this":{"__isSmartRef__":true,"id":2898}},"5919":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5920":{"varMapping":{"__isSmartRef__":true,"id":5921},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5921":{"this":{"__isSmartRef__":true,"id":2898}},"5922":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5923":{"varMapping":{"__isSmartRef__":true,"id":5924},"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":5925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5924":{"this":{"__isSmartRef__":true,"id":2898}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5927":{"this":{"__isSmartRef__":true,"id":2898}},"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 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":5931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5930":{"this":{"__isSmartRef__":true,"id":2898}},"5931":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5932":{"varMapping":{"__isSmartRef__":true,"id":5933},"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":5934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5933":{"this":{"__isSmartRef__":true,"id":2898}},"5934":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5935":{"varMapping":{"__isSmartRef__":true,"id":5936},"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":5937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5936":{"this":{"__isSmartRef__":true,"id":2898}},"5937":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5938":{"varMapping":{"__isSmartRef__":true,"id":5939},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":5940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5939":{"this":{"__isSmartRef__":true,"id":2898}},"5940":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5941":{"varMapping":{"__isSmartRef__":true,"id":5942},"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":5943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5942":{"this":{"__isSmartRef__":true,"id":2898}},"5943":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"5944":{"varMapping":{"__isSmartRef__":true,"id":5945},"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":5950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5945":{"this":{"__isSmartRef__":true,"id":2898},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5946}},"5946":{"$super":{"__isSmartRef__":true,"id":5947}},"5947":{"varMapping":{"__isSmartRef__":true,"id":5948},"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":5949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5948":{"obj":{"__isSmartRef__":true,"id":2898},"name":"onMouseDown"},"5949":{},"5950":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"5951":{"varMapping":{"__isSmartRef__":true,"id":5952},"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":5953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5952":{"this":{"__isSmartRef__":true,"id":2898}},"5953":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"5954":{"varMapping":{"__isSmartRef__":true,"id":5955},"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":5956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5955":{"this":{"__isSmartRef__":true,"id":2898}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":5959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5958":{"this":{"__isSmartRef__":true,"id":2898}},"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 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":5962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5961":{"this":{"__isSmartRef__":true,"id":2898}},"5962":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"5963":{"varMapping":{"__isSmartRef__":true,"id":5964},"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":5965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5964":{"this":{"__isSmartRef__":true,"id":2898}},"5965":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"5966":{"varMapping":{"__isSmartRef__":true,"id":5967},"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":5968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5967":{"this":{"__isSmartRef__":true,"id":2898}},"5968":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"5969":{"varMapping":{"__isSmartRef__":true,"id":5970},"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":5971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5970":{"this":{"__isSmartRef__":true,"id":2898}},"5971":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"5972":{"varMapping":{"__isSmartRef__":true,"id":5973},"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":5974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5973":{"this":{"__isSmartRef__":true,"id":2898}},"5974":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"5975":{"varMapping":{"__isSmartRef__":true,"id":5976},"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":5977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5976":{"this":{"__isSmartRef__":true,"id":2898}},"5977":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"5978":{"addBomb":{"__isSmartRef__":true,"id":5979},"clearFlag":{"__isSmartRef__":true,"id":5982},"countNeighborBombs":{"__isSmartRef__":true,"id":5985},"fixSubmorph":{"__isSmartRef__":true,"id":5988},"initAppearance":{"__isSmartRef__":true,"id":5991},"initMorphs":{"__isSmartRef__":true,"id":5994},"initNeighborsAndCount":{"__isSmartRef__":true,"id":5997},"isClosed":{"__isSmartRef__":true,"id":6000},"neighborPoints":{"__isSmartRef__":true,"id":6003},"onMouseDown":{"__isSmartRef__":true,"id":6006},"restoreGameAppearance":{"__isSmartRef__":true,"id":6013},"reveal":{"__isSmartRef__":true,"id":6016},"setCoordinates":{"__isSmartRef__":true,"id":6019},"showBomb":{"__isSmartRef__":true,"id":6022},"showDebugState":{"__isSmartRef__":true,"id":6025},"showFlag":{"__isSmartRef__":true,"id":6028},"showState":{"__isSmartRef__":true,"id":6031},"copyImageMorph":{"__isSmartRef__":true,"id":6034},"prepareToPublish":{"__isSmartRef__":true,"id":6037}},"5979":{"varMapping":{"__isSmartRef__":true,"id":5980},"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":5981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5980":{"this":{"__isSmartRef__":true,"id":2850}},"5981":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"5982":{"varMapping":{"__isSmartRef__":true,"id":5983},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":5984},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5983":{"this":{"__isSmartRef__":true,"id":2850}},"5984":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"5985":{"varMapping":{"__isSmartRef__":true,"id":5986},"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":5987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5986":{"this":{"__isSmartRef__":true,"id":2850}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":5990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5989":{"this":{"__isSmartRef__":true,"id":2850}},"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 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":5993},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5992":{"this":{"__isSmartRef__":true,"id":2850}},"5993":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"5994":{"varMapping":{"__isSmartRef__":true,"id":5995},"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":5996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5995":{"this":{"__isSmartRef__":true,"id":2850}},"5996":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"5997":{"varMapping":{"__isSmartRef__":true,"id":5998},"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":5999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5998":{"this":{"__isSmartRef__":true,"id":2850}},"5999":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6000":{"varMapping":{"__isSmartRef__":true,"id":6001},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6001":{"this":{"__isSmartRef__":true,"id":2850}},"6002":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6003":{"varMapping":{"__isSmartRef__":true,"id":6004},"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":6005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6004":{"this":{"__isSmartRef__":true,"id":2850}},"6005":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6006":{"varMapping":{"__isSmartRef__":true,"id":6007},"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":6012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6007":{"this":{"__isSmartRef__":true,"id":2850},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6008}},"6008":{"$super":{"__isSmartRef__":true,"id":6009}},"6009":{"varMapping":{"__isSmartRef__":true,"id":6010},"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":6011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6010":{"obj":{"__isSmartRef__":true,"id":2850},"name":"onMouseDown"},"6011":{},"6012":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6013":{"varMapping":{"__isSmartRef__":true,"id":6014},"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":6015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6014":{"this":{"__isSmartRef__":true,"id":2850}},"6015":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6016":{"varMapping":{"__isSmartRef__":true,"id":6017},"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":6018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6017":{"this":{"__isSmartRef__":true,"id":2850}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6021},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6020":{"this":{"__isSmartRef__":true,"id":2850}},"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 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":6024},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6023":{"this":{"__isSmartRef__":true,"id":2850}},"6024":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6025":{"varMapping":{"__isSmartRef__":true,"id":6026},"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":6027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6026":{"this":{"__isSmartRef__":true,"id":2850}},"6027":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6028":{"varMapping":{"__isSmartRef__":true,"id":6029},"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":6030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6029":{"this":{"__isSmartRef__":true,"id":2850}},"6030":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6031":{"varMapping":{"__isSmartRef__":true,"id":6032},"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":6033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6032":{"this":{"__isSmartRef__":true,"id":2850}},"6033":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6034":{"varMapping":{"__isSmartRef__":true,"id":6035},"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":6036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6035":{"this":{"__isSmartRef__":true,"id":2850}},"6036":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6037":{"varMapping":{"__isSmartRef__":true,"id":6038},"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":6039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6038":{"this":{"__isSmartRef__":true,"id":2850}},"6039":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6040":{"addBomb":{"__isSmartRef__":true,"id":6041},"clearFlag":{"__isSmartRef__":true,"id":6044},"countNeighborBombs":{"__isSmartRef__":true,"id":6047},"fixSubmorph":{"__isSmartRef__":true,"id":6050},"initAppearance":{"__isSmartRef__":true,"id":6053},"initMorphs":{"__isSmartRef__":true,"id":6056},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6059},"isClosed":{"__isSmartRef__":true,"id":6062},"neighborPoints":{"__isSmartRef__":true,"id":6065},"onMouseDown":{"__isSmartRef__":true,"id":6068},"restoreGameAppearance":{"__isSmartRef__":true,"id":6075},"reveal":{"__isSmartRef__":true,"id":6078},"setCoordinates":{"__isSmartRef__":true,"id":6081},"showBomb":{"__isSmartRef__":true,"id":6084},"showDebugState":{"__isSmartRef__":true,"id":6087},"showFlag":{"__isSmartRef__":true,"id":6090},"showState":{"__isSmartRef__":true,"id":6093},"copyImageMorph":{"__isSmartRef__":true,"id":6096},"prepareToPublish":{"__isSmartRef__":true,"id":6099}},"6041":{"varMapping":{"__isSmartRef__":true,"id":6042},"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":6043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6042":{"this":{"__isSmartRef__":true,"id":2802}},"6043":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6044":{"varMapping":{"__isSmartRef__":true,"id":6045},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6045":{"this":{"__isSmartRef__":true,"id":2802}},"6046":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6047":{"varMapping":{"__isSmartRef__":true,"id":6048},"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":6049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6048":{"this":{"__isSmartRef__":true,"id":2802}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6051":{"this":{"__isSmartRef__":true,"id":2802}},"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 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":6055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6054":{"this":{"__isSmartRef__":true,"id":2802}},"6055":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6056":{"varMapping":{"__isSmartRef__":true,"id":6057},"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":6058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6057":{"this":{"__isSmartRef__":true,"id":2802}},"6058":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6059":{"varMapping":{"__isSmartRef__":true,"id":6060},"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":6061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6060":{"this":{"__isSmartRef__":true,"id":2802}},"6061":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6062":{"varMapping":{"__isSmartRef__":true,"id":6063},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6063":{"this":{"__isSmartRef__":true,"id":2802}},"6064":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6065":{"varMapping":{"__isSmartRef__":true,"id":6066},"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":6067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6066":{"this":{"__isSmartRef__":true,"id":2802}},"6067":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6068":{"varMapping":{"__isSmartRef__":true,"id":6069},"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":6074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6069":{"this":{"__isSmartRef__":true,"id":2802},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6070}},"6070":{"$super":{"__isSmartRef__":true,"id":6071}},"6071":{"varMapping":{"__isSmartRef__":true,"id":6072},"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":6073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6072":{"obj":{"__isSmartRef__":true,"id":2802},"name":"onMouseDown"},"6073":{},"6074":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6075":{"varMapping":{"__isSmartRef__":true,"id":6076},"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":6077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6076":{"this":{"__isSmartRef__":true,"id":2802}},"6077":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6078":{"varMapping":{"__isSmartRef__":true,"id":6079},"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":6080},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6079":{"this":{"__isSmartRef__":true,"id":2802}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6082":{"this":{"__isSmartRef__":true,"id":2802}},"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 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":6086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6085":{"this":{"__isSmartRef__":true,"id":2802}},"6086":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6087":{"varMapping":{"__isSmartRef__":true,"id":6088},"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":6089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6088":{"this":{"__isSmartRef__":true,"id":2802}},"6089":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6090":{"varMapping":{"__isSmartRef__":true,"id":6091},"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":6092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6091":{"this":{"__isSmartRef__":true,"id":2802}},"6092":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6093":{"varMapping":{"__isSmartRef__":true,"id":6094},"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":6095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6094":{"this":{"__isSmartRef__":true,"id":2802}},"6095":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6096":{"varMapping":{"__isSmartRef__":true,"id":6097},"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":6098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6097":{"this":{"__isSmartRef__":true,"id":2802}},"6098":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6099":{"varMapping":{"__isSmartRef__":true,"id":6100},"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":6101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6100":{"this":{"__isSmartRef__":true,"id":2802}},"6101":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6102":{"addBomb":{"__isSmartRef__":true,"id":6103},"clearFlag":{"__isSmartRef__":true,"id":6106},"countNeighborBombs":{"__isSmartRef__":true,"id":6109},"fixSubmorph":{"__isSmartRef__":true,"id":6112},"initAppearance":{"__isSmartRef__":true,"id":6115},"initMorphs":{"__isSmartRef__":true,"id":6118},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6121},"isClosed":{"__isSmartRef__":true,"id":6124},"neighborPoints":{"__isSmartRef__":true,"id":6127},"onMouseDown":{"__isSmartRef__":true,"id":6130},"restoreGameAppearance":{"__isSmartRef__":true,"id":6137},"reveal":{"__isSmartRef__":true,"id":6140},"setCoordinates":{"__isSmartRef__":true,"id":6143},"showBomb":{"__isSmartRef__":true,"id":6146},"showDebugState":{"__isSmartRef__":true,"id":6149},"showFlag":{"__isSmartRef__":true,"id":6152},"showState":{"__isSmartRef__":true,"id":6155},"copyImageMorph":{"__isSmartRef__":true,"id":6158},"prepareToPublish":{"__isSmartRef__":true,"id":6161}},"6103":{"varMapping":{"__isSmartRef__":true,"id":6104},"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":6105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6104":{"this":{"__isSmartRef__":true,"id":2754}},"6105":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6106":{"varMapping":{"__isSmartRef__":true,"id":6107},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6107":{"this":{"__isSmartRef__":true,"id":2754}},"6108":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6109":{"varMapping":{"__isSmartRef__":true,"id":6110},"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":6111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6110":{"this":{"__isSmartRef__":true,"id":2754}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6113":{"this":{"__isSmartRef__":true,"id":2754}},"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 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":6117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6116":{"this":{"__isSmartRef__":true,"id":2754}},"6117":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6118":{"varMapping":{"__isSmartRef__":true,"id":6119},"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":6120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6119":{"this":{"__isSmartRef__":true,"id":2754}},"6120":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6121":{"varMapping":{"__isSmartRef__":true,"id":6122},"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":6123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6122":{"this":{"__isSmartRef__":true,"id":2754}},"6123":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6124":{"varMapping":{"__isSmartRef__":true,"id":6125},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6125":{"this":{"__isSmartRef__":true,"id":2754}},"6126":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6127":{"varMapping":{"__isSmartRef__":true,"id":6128},"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":6129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6128":{"this":{"__isSmartRef__":true,"id":2754}},"6129":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6130":{"varMapping":{"__isSmartRef__":true,"id":6131},"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":6136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6131":{"this":{"__isSmartRef__":true,"id":2754},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6132}},"6132":{"$super":{"__isSmartRef__":true,"id":6133}},"6133":{"varMapping":{"__isSmartRef__":true,"id":6134},"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":6135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6134":{"obj":{"__isSmartRef__":true,"id":2754},"name":"onMouseDown"},"6135":{},"6136":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6137":{"varMapping":{"__isSmartRef__":true,"id":6138},"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":6139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6138":{"this":{"__isSmartRef__":true,"id":2754}},"6139":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6140":{"varMapping":{"__isSmartRef__":true,"id":6141},"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":6142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6141":{"this":{"__isSmartRef__":true,"id":2754}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6144":{"this":{"__isSmartRef__":true,"id":2754}},"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 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":6148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6147":{"this":{"__isSmartRef__":true,"id":2754}},"6148":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6149":{"varMapping":{"__isSmartRef__":true,"id":6150},"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":6151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6150":{"this":{"__isSmartRef__":true,"id":2754}},"6151":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6152":{"varMapping":{"__isSmartRef__":true,"id":6153},"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":6154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6153":{"this":{"__isSmartRef__":true,"id":2754}},"6154":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6155":{"varMapping":{"__isSmartRef__":true,"id":6156},"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":6157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6156":{"this":{"__isSmartRef__":true,"id":2754}},"6157":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6158":{"varMapping":{"__isSmartRef__":true,"id":6159},"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":6160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6159":{"this":{"__isSmartRef__":true,"id":2754}},"6160":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6161":{"varMapping":{"__isSmartRef__":true,"id":6162},"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":6163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6162":{"this":{"__isSmartRef__":true,"id":2754}},"6163":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6164":{"addBomb":{"__isSmartRef__":true,"id":6165},"clearFlag":{"__isSmartRef__":true,"id":6168},"countNeighborBombs":{"__isSmartRef__":true,"id":6171},"fixSubmorph":{"__isSmartRef__":true,"id":6174},"initAppearance":{"__isSmartRef__":true,"id":6177},"initMorphs":{"__isSmartRef__":true,"id":6180},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6183},"isClosed":{"__isSmartRef__":true,"id":6186},"neighborPoints":{"__isSmartRef__":true,"id":6189},"onMouseDown":{"__isSmartRef__":true,"id":6192},"restoreGameAppearance":{"__isSmartRef__":true,"id":6199},"reveal":{"__isSmartRef__":true,"id":6202},"setCoordinates":{"__isSmartRef__":true,"id":6205},"showBomb":{"__isSmartRef__":true,"id":6208},"showDebugState":{"__isSmartRef__":true,"id":6211},"showFlag":{"__isSmartRef__":true,"id":6214},"showState":{"__isSmartRef__":true,"id":6217},"copyImageMorph":{"__isSmartRef__":true,"id":6220},"prepareToPublish":{"__isSmartRef__":true,"id":6223}},"6165":{"varMapping":{"__isSmartRef__":true,"id":6166},"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":6167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6166":{"this":{"__isSmartRef__":true,"id":2706}},"6167":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6168":{"varMapping":{"__isSmartRef__":true,"id":6169},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6169":{"this":{"__isSmartRef__":true,"id":2706}},"6170":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6171":{"varMapping":{"__isSmartRef__":true,"id":6172},"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":6173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6172":{"this":{"__isSmartRef__":true,"id":2706}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6175":{"this":{"__isSmartRef__":true,"id":2706}},"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 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":6179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6178":{"this":{"__isSmartRef__":true,"id":2706}},"6179":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6180":{"varMapping":{"__isSmartRef__":true,"id":6181},"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":6182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6181":{"this":{"__isSmartRef__":true,"id":2706}},"6182":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6183":{"varMapping":{"__isSmartRef__":true,"id":6184},"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":6185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6184":{"this":{"__isSmartRef__":true,"id":2706}},"6185":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6186":{"varMapping":{"__isSmartRef__":true,"id":6187},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6187":{"this":{"__isSmartRef__":true,"id":2706}},"6188":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6189":{"varMapping":{"__isSmartRef__":true,"id":6190},"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":6191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6190":{"this":{"__isSmartRef__":true,"id":2706}},"6191":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6192":{"varMapping":{"__isSmartRef__":true,"id":6193},"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":6198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6193":{"this":{"__isSmartRef__":true,"id":2706},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6194}},"6194":{"$super":{"__isSmartRef__":true,"id":6195}},"6195":{"varMapping":{"__isSmartRef__":true,"id":6196},"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":6197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6196":{"obj":{"__isSmartRef__":true,"id":2706},"name":"onMouseDown"},"6197":{},"6198":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6199":{"varMapping":{"__isSmartRef__":true,"id":6200},"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":6201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6200":{"this":{"__isSmartRef__":true,"id":2706}},"6201":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6202":{"varMapping":{"__isSmartRef__":true,"id":6203},"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":6204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6203":{"this":{"__isSmartRef__":true,"id":2706}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6206":{"this":{"__isSmartRef__":true,"id":2706}},"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 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":6210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6209":{"this":{"__isSmartRef__":true,"id":2706}},"6210":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6211":{"varMapping":{"__isSmartRef__":true,"id":6212},"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":6213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6212":{"this":{"__isSmartRef__":true,"id":2706}},"6213":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6214":{"varMapping":{"__isSmartRef__":true,"id":6215},"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":6216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6215":{"this":{"__isSmartRef__":true,"id":2706}},"6216":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6217":{"varMapping":{"__isSmartRef__":true,"id":6218},"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":6219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6218":{"this":{"__isSmartRef__":true,"id":2706}},"6219":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6220":{"varMapping":{"__isSmartRef__":true,"id":6221},"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":6222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6221":{"this":{"__isSmartRef__":true,"id":2706}},"6222":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6223":{"varMapping":{"__isSmartRef__":true,"id":6224},"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":6225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6224":{"this":{"__isSmartRef__":true,"id":2706}},"6225":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6226":{"addBomb":{"__isSmartRef__":true,"id":6227},"clearFlag":{"__isSmartRef__":true,"id":6230},"countNeighborBombs":{"__isSmartRef__":true,"id":6233},"fixSubmorph":{"__isSmartRef__":true,"id":6236},"initAppearance":{"__isSmartRef__":true,"id":6239},"initMorphs":{"__isSmartRef__":true,"id":6242},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6245},"isClosed":{"__isSmartRef__":true,"id":6248},"neighborPoints":{"__isSmartRef__":true,"id":6251},"onMouseDown":{"__isSmartRef__":true,"id":6254},"restoreGameAppearance":{"__isSmartRef__":true,"id":6261},"reveal":{"__isSmartRef__":true,"id":6264},"setCoordinates":{"__isSmartRef__":true,"id":6267},"showBomb":{"__isSmartRef__":true,"id":6270},"showDebugState":{"__isSmartRef__":true,"id":6273},"showFlag":{"__isSmartRef__":true,"id":6276},"showState":{"__isSmartRef__":true,"id":6279},"copyImageMorph":{"__isSmartRef__":true,"id":6282},"prepareToPublish":{"__isSmartRef__":true,"id":6285}},"6227":{"varMapping":{"__isSmartRef__":true,"id":6228},"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":6229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6228":{"this":{"__isSmartRef__":true,"id":2658}},"6229":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6230":{"varMapping":{"__isSmartRef__":true,"id":6231},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6231":{"this":{"__isSmartRef__":true,"id":2658}},"6232":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6233":{"varMapping":{"__isSmartRef__":true,"id":6234},"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":6235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6234":{"this":{"__isSmartRef__":true,"id":2658}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6238},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6237":{"this":{"__isSmartRef__":true,"id":2658}},"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 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":6241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6240":{"this":{"__isSmartRef__":true,"id":2658}},"6241":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6242":{"varMapping":{"__isSmartRef__":true,"id":6243},"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":6244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6243":{"this":{"__isSmartRef__":true,"id":2658}},"6244":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6245":{"varMapping":{"__isSmartRef__":true,"id":6246},"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":6247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6246":{"this":{"__isSmartRef__":true,"id":2658}},"6247":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6248":{"varMapping":{"__isSmartRef__":true,"id":6249},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6249":{"this":{"__isSmartRef__":true,"id":2658}},"6250":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6251":{"varMapping":{"__isSmartRef__":true,"id":6252},"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":6253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6252":{"this":{"__isSmartRef__":true,"id":2658}},"6253":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6254":{"varMapping":{"__isSmartRef__":true,"id":6255},"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":6260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6255":{"this":{"__isSmartRef__":true,"id":2658},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6256}},"6256":{"$super":{"__isSmartRef__":true,"id":6257}},"6257":{"varMapping":{"__isSmartRef__":true,"id":6258},"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":6259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6258":{"obj":{"__isSmartRef__":true,"id":2658},"name":"onMouseDown"},"6259":{},"6260":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6261":{"varMapping":{"__isSmartRef__":true,"id":6262},"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":6263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6262":{"this":{"__isSmartRef__":true,"id":2658}},"6263":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6264":{"varMapping":{"__isSmartRef__":true,"id":6265},"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":6266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6265":{"this":{"__isSmartRef__":true,"id":2658}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6268":{"this":{"__isSmartRef__":true,"id":2658}},"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 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":6272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6271":{"this":{"__isSmartRef__":true,"id":2658}},"6272":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6273":{"varMapping":{"__isSmartRef__":true,"id":6274},"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":6275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6274":{"this":{"__isSmartRef__":true,"id":2658}},"6275":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6276":{"varMapping":{"__isSmartRef__":true,"id":6277},"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":6278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6277":{"this":{"__isSmartRef__":true,"id":2658}},"6278":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6279":{"varMapping":{"__isSmartRef__":true,"id":6280},"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":6281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6280":{"this":{"__isSmartRef__":true,"id":2658}},"6281":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6282":{"varMapping":{"__isSmartRef__":true,"id":6283},"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":6284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6283":{"this":{"__isSmartRef__":true,"id":2658}},"6284":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6285":{"varMapping":{"__isSmartRef__":true,"id":6286},"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":6287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6286":{"this":{"__isSmartRef__":true,"id":2658}},"6287":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6288":{"addBomb":{"__isSmartRef__":true,"id":6289},"clearFlag":{"__isSmartRef__":true,"id":6292},"countNeighborBombs":{"__isSmartRef__":true,"id":6295},"fixSubmorph":{"__isSmartRef__":true,"id":6298},"initAppearance":{"__isSmartRef__":true,"id":6301},"initMorphs":{"__isSmartRef__":true,"id":6304},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6307},"isClosed":{"__isSmartRef__":true,"id":6310},"neighborPoints":{"__isSmartRef__":true,"id":6313},"onMouseDown":{"__isSmartRef__":true,"id":6316},"restoreGameAppearance":{"__isSmartRef__":true,"id":6323},"reveal":{"__isSmartRef__":true,"id":6326},"setCoordinates":{"__isSmartRef__":true,"id":6329},"showBomb":{"__isSmartRef__":true,"id":6332},"showDebugState":{"__isSmartRef__":true,"id":6335},"showFlag":{"__isSmartRef__":true,"id":6338},"showState":{"__isSmartRef__":true,"id":6341},"copyImageMorph":{"__isSmartRef__":true,"id":6344},"prepareToPublish":{"__isSmartRef__":true,"id":6347}},"6289":{"varMapping":{"__isSmartRef__":true,"id":6290},"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":6291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6290":{"this":{"__isSmartRef__":true,"id":2610}},"6291":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6292":{"varMapping":{"__isSmartRef__":true,"id":6293},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6293":{"this":{"__isSmartRef__":true,"id":2610}},"6294":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6295":{"varMapping":{"__isSmartRef__":true,"id":6296},"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":6297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6296":{"this":{"__isSmartRef__":true,"id":2610}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6299":{"this":{"__isSmartRef__":true,"id":2610}},"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 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":6303},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6302":{"this":{"__isSmartRef__":true,"id":2610}},"6303":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6304":{"varMapping":{"__isSmartRef__":true,"id":6305},"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":6306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6305":{"this":{"__isSmartRef__":true,"id":2610}},"6306":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6307":{"varMapping":{"__isSmartRef__":true,"id":6308},"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":6309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6308":{"this":{"__isSmartRef__":true,"id":2610}},"6309":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6310":{"varMapping":{"__isSmartRef__":true,"id":6311},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6311":{"this":{"__isSmartRef__":true,"id":2610}},"6312":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6313":{"varMapping":{"__isSmartRef__":true,"id":6314},"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":6315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6314":{"this":{"__isSmartRef__":true,"id":2610}},"6315":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6316":{"varMapping":{"__isSmartRef__":true,"id":6317},"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":6322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6317":{"this":{"__isSmartRef__":true,"id":2610},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6318}},"6318":{"$super":{"__isSmartRef__":true,"id":6319}},"6319":{"varMapping":{"__isSmartRef__":true,"id":6320},"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":6321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6320":{"obj":{"__isSmartRef__":true,"id":2610},"name":"onMouseDown"},"6321":{},"6322":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6323":{"varMapping":{"__isSmartRef__":true,"id":6324},"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":6325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6324":{"this":{"__isSmartRef__":true,"id":2610}},"6325":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6326":{"varMapping":{"__isSmartRef__":true,"id":6327},"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":6328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6327":{"this":{"__isSmartRef__":true,"id":2610}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6330":{"this":{"__isSmartRef__":true,"id":2610}},"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 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":6334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6333":{"this":{"__isSmartRef__":true,"id":2610}},"6334":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6335":{"varMapping":{"__isSmartRef__":true,"id":6336},"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":6337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6336":{"this":{"__isSmartRef__":true,"id":2610}},"6337":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6338":{"varMapping":{"__isSmartRef__":true,"id":6339},"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":6340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6339":{"this":{"__isSmartRef__":true,"id":2610}},"6340":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6341":{"varMapping":{"__isSmartRef__":true,"id":6342},"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":6343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6342":{"this":{"__isSmartRef__":true,"id":2610}},"6343":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6344":{"varMapping":{"__isSmartRef__":true,"id":6345},"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":6346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6345":{"this":{"__isSmartRef__":true,"id":2610}},"6346":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6347":{"varMapping":{"__isSmartRef__":true,"id":6348},"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":6349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6348":{"this":{"__isSmartRef__":true,"id":2610}},"6349":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6350":{"addBomb":{"__isSmartRef__":true,"id":6351},"clearFlag":{"__isSmartRef__":true,"id":6354},"countNeighborBombs":{"__isSmartRef__":true,"id":6357},"fixSubmorph":{"__isSmartRef__":true,"id":6360},"initAppearance":{"__isSmartRef__":true,"id":6363},"initMorphs":{"__isSmartRef__":true,"id":6366},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6369},"isClosed":{"__isSmartRef__":true,"id":6372},"neighborPoints":{"__isSmartRef__":true,"id":6375},"onMouseDown":{"__isSmartRef__":true,"id":6378},"restoreGameAppearance":{"__isSmartRef__":true,"id":6385},"reveal":{"__isSmartRef__":true,"id":6388},"setCoordinates":{"__isSmartRef__":true,"id":6391},"showBomb":{"__isSmartRef__":true,"id":6394},"showDebugState":{"__isSmartRef__":true,"id":6397},"showFlag":{"__isSmartRef__":true,"id":6400},"showState":{"__isSmartRef__":true,"id":6403},"copyImageMorph":{"__isSmartRef__":true,"id":6406},"prepareToPublish":{"__isSmartRef__":true,"id":6409}},"6351":{"varMapping":{"__isSmartRef__":true,"id":6352},"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":6353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6352":{"this":{"__isSmartRef__":true,"id":2562}},"6353":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6354":{"varMapping":{"__isSmartRef__":true,"id":6355},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6355":{"this":{"__isSmartRef__":true,"id":2562}},"6356":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6357":{"varMapping":{"__isSmartRef__":true,"id":6358},"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":6359},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6358":{"this":{"__isSmartRef__":true,"id":2562}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6361":{"this":{"__isSmartRef__":true,"id":2562}},"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 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":6365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6364":{"this":{"__isSmartRef__":true,"id":2562}},"6365":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6366":{"varMapping":{"__isSmartRef__":true,"id":6367},"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":6368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6367":{"this":{"__isSmartRef__":true,"id":2562}},"6368":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6369":{"varMapping":{"__isSmartRef__":true,"id":6370},"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":6371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6370":{"this":{"__isSmartRef__":true,"id":2562}},"6371":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6372":{"varMapping":{"__isSmartRef__":true,"id":6373},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6373":{"this":{"__isSmartRef__":true,"id":2562}},"6374":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6375":{"varMapping":{"__isSmartRef__":true,"id":6376},"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":6377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6376":{"this":{"__isSmartRef__":true,"id":2562}},"6377":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6378":{"varMapping":{"__isSmartRef__":true,"id":6379},"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":6384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6379":{"this":{"__isSmartRef__":true,"id":2562},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6380}},"6380":{"$super":{"__isSmartRef__":true,"id":6381}},"6381":{"varMapping":{"__isSmartRef__":true,"id":6382},"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":6383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6382":{"obj":{"__isSmartRef__":true,"id":2562},"name":"onMouseDown"},"6383":{},"6384":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6385":{"varMapping":{"__isSmartRef__":true,"id":6386},"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":6387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6386":{"this":{"__isSmartRef__":true,"id":2562}},"6387":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6388":{"varMapping":{"__isSmartRef__":true,"id":6389},"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":6390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6389":{"this":{"__isSmartRef__":true,"id":2562}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6392":{"this":{"__isSmartRef__":true,"id":2562}},"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 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":6396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6395":{"this":{"__isSmartRef__":true,"id":2562}},"6396":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6397":{"varMapping":{"__isSmartRef__":true,"id":6398},"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":6399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6398":{"this":{"__isSmartRef__":true,"id":2562}},"6399":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6400":{"varMapping":{"__isSmartRef__":true,"id":6401},"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":6402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6401":{"this":{"__isSmartRef__":true,"id":2562}},"6402":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6403":{"varMapping":{"__isSmartRef__":true,"id":6404},"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":6405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6404":{"this":{"__isSmartRef__":true,"id":2562}},"6405":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6406":{"varMapping":{"__isSmartRef__":true,"id":6407},"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":6408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6407":{"this":{"__isSmartRef__":true,"id":2562}},"6408":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6409":{"varMapping":{"__isSmartRef__":true,"id":6410},"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":6411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6410":{"this":{"__isSmartRef__":true,"id":2562}},"6411":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6412":{"addBomb":{"__isSmartRef__":true,"id":6413},"clearFlag":{"__isSmartRef__":true,"id":6416},"countNeighborBombs":{"__isSmartRef__":true,"id":6419},"fixSubmorph":{"__isSmartRef__":true,"id":6422},"initAppearance":{"__isSmartRef__":true,"id":6425},"initMorphs":{"__isSmartRef__":true,"id":6428},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6431},"isClosed":{"__isSmartRef__":true,"id":6434},"neighborPoints":{"__isSmartRef__":true,"id":6437},"onMouseDown":{"__isSmartRef__":true,"id":6440},"restoreGameAppearance":{"__isSmartRef__":true,"id":6447},"reveal":{"__isSmartRef__":true,"id":6450},"setCoordinates":{"__isSmartRef__":true,"id":6453},"showBomb":{"__isSmartRef__":true,"id":6456},"showDebugState":{"__isSmartRef__":true,"id":6459},"showFlag":{"__isSmartRef__":true,"id":6462},"showState":{"__isSmartRef__":true,"id":6465},"copyImageMorph":{"__isSmartRef__":true,"id":6468},"prepareToPublish":{"__isSmartRef__":true,"id":6471}},"6413":{"varMapping":{"__isSmartRef__":true,"id":6414},"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":6415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6414":{"this":{"__isSmartRef__":true,"id":2514}},"6415":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6416":{"varMapping":{"__isSmartRef__":true,"id":6417},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6417":{"this":{"__isSmartRef__":true,"id":2514}},"6418":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6419":{"varMapping":{"__isSmartRef__":true,"id":6420},"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":6421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6420":{"this":{"__isSmartRef__":true,"id":2514}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6423":{"this":{"__isSmartRef__":true,"id":2514}},"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 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":6427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6426":{"this":{"__isSmartRef__":true,"id":2514}},"6427":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6428":{"varMapping":{"__isSmartRef__":true,"id":6429},"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":6430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6429":{"this":{"__isSmartRef__":true,"id":2514}},"6430":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6431":{"varMapping":{"__isSmartRef__":true,"id":6432},"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":6433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6432":{"this":{"__isSmartRef__":true,"id":2514}},"6433":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6434":{"varMapping":{"__isSmartRef__":true,"id":6435},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6435":{"this":{"__isSmartRef__":true,"id":2514}},"6436":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6437":{"varMapping":{"__isSmartRef__":true,"id":6438},"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":6439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6438":{"this":{"__isSmartRef__":true,"id":2514}},"6439":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6440":{"varMapping":{"__isSmartRef__":true,"id":6441},"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":6446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6441":{"this":{"__isSmartRef__":true,"id":2514},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6442}},"6442":{"$super":{"__isSmartRef__":true,"id":6443}},"6443":{"varMapping":{"__isSmartRef__":true,"id":6444},"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":6445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6444":{"obj":{"__isSmartRef__":true,"id":2514},"name":"onMouseDown"},"6445":{},"6446":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6447":{"varMapping":{"__isSmartRef__":true,"id":6448},"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":6449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6448":{"this":{"__isSmartRef__":true,"id":2514}},"6449":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6450":{"varMapping":{"__isSmartRef__":true,"id":6451},"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":6452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6451":{"this":{"__isSmartRef__":true,"id":2514}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6454":{"this":{"__isSmartRef__":true,"id":2514}},"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 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":6458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6457":{"this":{"__isSmartRef__":true,"id":2514}},"6458":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6459":{"varMapping":{"__isSmartRef__":true,"id":6460},"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":6461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6460":{"this":{"__isSmartRef__":true,"id":2514}},"6461":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6462":{"varMapping":{"__isSmartRef__":true,"id":6463},"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":6464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6463":{"this":{"__isSmartRef__":true,"id":2514}},"6464":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6465":{"varMapping":{"__isSmartRef__":true,"id":6466},"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":6467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6466":{"this":{"__isSmartRef__":true,"id":2514}},"6467":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6468":{"varMapping":{"__isSmartRef__":true,"id":6469},"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":6470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6469":{"this":{"__isSmartRef__":true,"id":2514}},"6470":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6471":{"varMapping":{"__isSmartRef__":true,"id":6472},"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":6473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6472":{"this":{"__isSmartRef__":true,"id":2514}},"6473":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6474":{"addBomb":{"__isSmartRef__":true,"id":6475},"clearFlag":{"__isSmartRef__":true,"id":6478},"countNeighborBombs":{"__isSmartRef__":true,"id":6481},"fixSubmorph":{"__isSmartRef__":true,"id":6484},"initAppearance":{"__isSmartRef__":true,"id":6487},"initMorphs":{"__isSmartRef__":true,"id":6490},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6493},"isClosed":{"__isSmartRef__":true,"id":6496},"neighborPoints":{"__isSmartRef__":true,"id":6499},"onMouseDown":{"__isSmartRef__":true,"id":6502},"restoreGameAppearance":{"__isSmartRef__":true,"id":6509},"reveal":{"__isSmartRef__":true,"id":6512},"setCoordinates":{"__isSmartRef__":true,"id":6515},"showBomb":{"__isSmartRef__":true,"id":6518},"showDebugState":{"__isSmartRef__":true,"id":6521},"showFlag":{"__isSmartRef__":true,"id":6524},"showState":{"__isSmartRef__":true,"id":6527},"copyImageMorph":{"__isSmartRef__":true,"id":6530},"prepareToPublish":{"__isSmartRef__":true,"id":6533}},"6475":{"varMapping":{"__isSmartRef__":true,"id":6476},"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":6477},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6476":{"this":{"__isSmartRef__":true,"id":2466}},"6477":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6478":{"varMapping":{"__isSmartRef__":true,"id":6479},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6480},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6479":{"this":{"__isSmartRef__":true,"id":2466}},"6480":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6481":{"varMapping":{"__isSmartRef__":true,"id":6482},"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":6483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6482":{"this":{"__isSmartRef__":true,"id":2466}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6485":{"this":{"__isSmartRef__":true,"id":2466}},"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 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":6489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6488":{"this":{"__isSmartRef__":true,"id":2466}},"6489":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6490":{"varMapping":{"__isSmartRef__":true,"id":6491},"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":6492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6491":{"this":{"__isSmartRef__":true,"id":2466}},"6492":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6493":{"varMapping":{"__isSmartRef__":true,"id":6494},"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":6495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6494":{"this":{"__isSmartRef__":true,"id":2466}},"6495":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6496":{"varMapping":{"__isSmartRef__":true,"id":6497},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6497":{"this":{"__isSmartRef__":true,"id":2466}},"6498":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6499":{"varMapping":{"__isSmartRef__":true,"id":6500},"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":6501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6500":{"this":{"__isSmartRef__":true,"id":2466}},"6501":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6502":{"varMapping":{"__isSmartRef__":true,"id":6503},"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":6508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6503":{"this":{"__isSmartRef__":true,"id":2466},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6504}},"6504":{"$super":{"__isSmartRef__":true,"id":6505}},"6505":{"varMapping":{"__isSmartRef__":true,"id":6506},"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":6507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6506":{"obj":{"__isSmartRef__":true,"id":2466},"name":"onMouseDown"},"6507":{},"6508":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6509":{"varMapping":{"__isSmartRef__":true,"id":6510},"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":6511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6510":{"this":{"__isSmartRef__":true,"id":2466}},"6511":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6512":{"varMapping":{"__isSmartRef__":true,"id":6513},"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":6514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6513":{"this":{"__isSmartRef__":true,"id":2466}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6517},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6516":{"this":{"__isSmartRef__":true,"id":2466}},"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 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":6520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6519":{"this":{"__isSmartRef__":true,"id":2466}},"6520":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6521":{"varMapping":{"__isSmartRef__":true,"id":6522},"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":6523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6522":{"this":{"__isSmartRef__":true,"id":2466}},"6523":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6524":{"varMapping":{"__isSmartRef__":true,"id":6525},"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":6526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6525":{"this":{"__isSmartRef__":true,"id":2466}},"6526":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6527":{"varMapping":{"__isSmartRef__":true,"id":6528},"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":6529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6528":{"this":{"__isSmartRef__":true,"id":2466}},"6529":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6530":{"varMapping":{"__isSmartRef__":true,"id":6531},"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":6532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6531":{"this":{"__isSmartRef__":true,"id":2466}},"6532":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6533":{"varMapping":{"__isSmartRef__":true,"id":6534},"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":6535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6534":{"this":{"__isSmartRef__":true,"id":2466}},"6535":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6536":{"addBomb":{"__isSmartRef__":true,"id":6537},"clearFlag":{"__isSmartRef__":true,"id":6540},"countNeighborBombs":{"__isSmartRef__":true,"id":6543},"fixSubmorph":{"__isSmartRef__":true,"id":6546},"initAppearance":{"__isSmartRef__":true,"id":6549},"initMorphs":{"__isSmartRef__":true,"id":6552},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6555},"isClosed":{"__isSmartRef__":true,"id":6558},"neighborPoints":{"__isSmartRef__":true,"id":6561},"onMouseDown":{"__isSmartRef__":true,"id":6564},"restoreGameAppearance":{"__isSmartRef__":true,"id":6571},"reveal":{"__isSmartRef__":true,"id":6574},"setCoordinates":{"__isSmartRef__":true,"id":6577},"showBomb":{"__isSmartRef__":true,"id":6580},"showDebugState":{"__isSmartRef__":true,"id":6583},"showFlag":{"__isSmartRef__":true,"id":6586},"showState":{"__isSmartRef__":true,"id":6589},"copyImageMorph":{"__isSmartRef__":true,"id":6592},"prepareToPublish":{"__isSmartRef__":true,"id":6595}},"6537":{"varMapping":{"__isSmartRef__":true,"id":6538},"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":6539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6538":{"this":{"__isSmartRef__":true,"id":2418}},"6539":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6540":{"varMapping":{"__isSmartRef__":true,"id":6541},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6541":{"this":{"__isSmartRef__":true,"id":2418}},"6542":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6543":{"varMapping":{"__isSmartRef__":true,"id":6544},"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":6545},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6544":{"this":{"__isSmartRef__":true,"id":2418}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6547":{"this":{"__isSmartRef__":true,"id":2418}},"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 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":6551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6550":{"this":{"__isSmartRef__":true,"id":2418}},"6551":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6552":{"varMapping":{"__isSmartRef__":true,"id":6553},"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":6554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6553":{"this":{"__isSmartRef__":true,"id":2418}},"6554":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6555":{"varMapping":{"__isSmartRef__":true,"id":6556},"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":6557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6556":{"this":{"__isSmartRef__":true,"id":2418}},"6557":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6558":{"varMapping":{"__isSmartRef__":true,"id":6559},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6559":{"this":{"__isSmartRef__":true,"id":2418}},"6560":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6561":{"varMapping":{"__isSmartRef__":true,"id":6562},"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":6563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6562":{"this":{"__isSmartRef__":true,"id":2418}},"6563":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6564":{"varMapping":{"__isSmartRef__":true,"id":6565},"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":6570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6565":{"this":{"__isSmartRef__":true,"id":2418},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6566}},"6566":{"$super":{"__isSmartRef__":true,"id":6567}},"6567":{"varMapping":{"__isSmartRef__":true,"id":6568},"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":6569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6568":{"obj":{"__isSmartRef__":true,"id":2418},"name":"onMouseDown"},"6569":{},"6570":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6571":{"varMapping":{"__isSmartRef__":true,"id":6572},"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":6573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6572":{"this":{"__isSmartRef__":true,"id":2418}},"6573":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6574":{"varMapping":{"__isSmartRef__":true,"id":6575},"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":6576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6575":{"this":{"__isSmartRef__":true,"id":2418}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6578":{"this":{"__isSmartRef__":true,"id":2418}},"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 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":6582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6581":{"this":{"__isSmartRef__":true,"id":2418}},"6582":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6583":{"varMapping":{"__isSmartRef__":true,"id":6584},"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":6585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6584":{"this":{"__isSmartRef__":true,"id":2418}},"6585":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6586":{"varMapping":{"__isSmartRef__":true,"id":6587},"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":6588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6587":{"this":{"__isSmartRef__":true,"id":2418}},"6588":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6589":{"varMapping":{"__isSmartRef__":true,"id":6590},"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":6591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6590":{"this":{"__isSmartRef__":true,"id":2418}},"6591":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6592":{"varMapping":{"__isSmartRef__":true,"id":6593},"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":6594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6593":{"this":{"__isSmartRef__":true,"id":2418}},"6594":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6595":{"varMapping":{"__isSmartRef__":true,"id":6596},"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":6597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6596":{"this":{"__isSmartRef__":true,"id":2418}},"6597":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6598":{"addBomb":{"__isSmartRef__":true,"id":6599},"clearFlag":{"__isSmartRef__":true,"id":6602},"countNeighborBombs":{"__isSmartRef__":true,"id":6605},"fixSubmorph":{"__isSmartRef__":true,"id":6608},"initAppearance":{"__isSmartRef__":true,"id":6611},"initMorphs":{"__isSmartRef__":true,"id":6614},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6617},"isClosed":{"__isSmartRef__":true,"id":6620},"neighborPoints":{"__isSmartRef__":true,"id":6623},"onMouseDown":{"__isSmartRef__":true,"id":6626},"restoreGameAppearance":{"__isSmartRef__":true,"id":6633},"reveal":{"__isSmartRef__":true,"id":6636},"setCoordinates":{"__isSmartRef__":true,"id":6639},"showBomb":{"__isSmartRef__":true,"id":6642},"showDebugState":{"__isSmartRef__":true,"id":6645},"showFlag":{"__isSmartRef__":true,"id":6648},"showState":{"__isSmartRef__":true,"id":6651},"copyImageMorph":{"__isSmartRef__":true,"id":6654},"prepareToPublish":{"__isSmartRef__":true,"id":6657}},"6599":{"varMapping":{"__isSmartRef__":true,"id":6600},"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":6601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6600":{"this":{"__isSmartRef__":true,"id":2370}},"6601":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6602":{"varMapping":{"__isSmartRef__":true,"id":6603},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6604},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6603":{"this":{"__isSmartRef__":true,"id":2370}},"6604":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6605":{"varMapping":{"__isSmartRef__":true,"id":6606},"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":6607},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6606":{"this":{"__isSmartRef__":true,"id":2370}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6609":{"this":{"__isSmartRef__":true,"id":2370}},"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 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":6613},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6612":{"this":{"__isSmartRef__":true,"id":2370}},"6613":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6614":{"varMapping":{"__isSmartRef__":true,"id":6615},"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":6616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6615":{"this":{"__isSmartRef__":true,"id":2370}},"6616":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6617":{"varMapping":{"__isSmartRef__":true,"id":6618},"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":6619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6618":{"this":{"__isSmartRef__":true,"id":2370}},"6619":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6620":{"varMapping":{"__isSmartRef__":true,"id":6621},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6621":{"this":{"__isSmartRef__":true,"id":2370}},"6622":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6623":{"varMapping":{"__isSmartRef__":true,"id":6624},"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":6625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6624":{"this":{"__isSmartRef__":true,"id":2370}},"6625":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6626":{"varMapping":{"__isSmartRef__":true,"id":6627},"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":6632},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6627":{"this":{"__isSmartRef__":true,"id":2370},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6628}},"6628":{"$super":{"__isSmartRef__":true,"id":6629}},"6629":{"varMapping":{"__isSmartRef__":true,"id":6630},"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":6631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6630":{"obj":{"__isSmartRef__":true,"id":2370},"name":"onMouseDown"},"6631":{},"6632":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6633":{"varMapping":{"__isSmartRef__":true,"id":6634},"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":6635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6634":{"this":{"__isSmartRef__":true,"id":2370}},"6635":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6636":{"varMapping":{"__isSmartRef__":true,"id":6637},"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":6638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6637":{"this":{"__isSmartRef__":true,"id":2370}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6640":{"this":{"__isSmartRef__":true,"id":2370}},"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 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":6644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6643":{"this":{"__isSmartRef__":true,"id":2370}},"6644":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6645":{"varMapping":{"__isSmartRef__":true,"id":6646},"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":6647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6646":{"this":{"__isSmartRef__":true,"id":2370}},"6647":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6648":{"varMapping":{"__isSmartRef__":true,"id":6649},"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":6650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6649":{"this":{"__isSmartRef__":true,"id":2370}},"6650":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6651":{"varMapping":{"__isSmartRef__":true,"id":6652},"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":6653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6652":{"this":{"__isSmartRef__":true,"id":2370}},"6653":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6654":{"varMapping":{"__isSmartRef__":true,"id":6655},"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":6656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6655":{"this":{"__isSmartRef__":true,"id":2370}},"6656":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6657":{"varMapping":{"__isSmartRef__":true,"id":6658},"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":6659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6658":{"this":{"__isSmartRef__":true,"id":2370}},"6659":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6660":{"addBomb":{"__isSmartRef__":true,"id":6661},"clearFlag":{"__isSmartRef__":true,"id":6664},"countNeighborBombs":{"__isSmartRef__":true,"id":6667},"fixSubmorph":{"__isSmartRef__":true,"id":6670},"initAppearance":{"__isSmartRef__":true,"id":6673},"initMorphs":{"__isSmartRef__":true,"id":6676},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6679},"isClosed":{"__isSmartRef__":true,"id":6682},"neighborPoints":{"__isSmartRef__":true,"id":6685},"onMouseDown":{"__isSmartRef__":true,"id":6688},"restoreGameAppearance":{"__isSmartRef__":true,"id":6695},"reveal":{"__isSmartRef__":true,"id":6698},"setCoordinates":{"__isSmartRef__":true,"id":6701},"showBomb":{"__isSmartRef__":true,"id":6704},"showDebugState":{"__isSmartRef__":true,"id":6707},"showFlag":{"__isSmartRef__":true,"id":6710},"showState":{"__isSmartRef__":true,"id":6713},"copyImageMorph":{"__isSmartRef__":true,"id":6716},"prepareToPublish":{"__isSmartRef__":true,"id":6719}},"6661":{"varMapping":{"__isSmartRef__":true,"id":6662},"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":6663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6662":{"this":{"__isSmartRef__":true,"id":2322}},"6663":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6664":{"varMapping":{"__isSmartRef__":true,"id":6665},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6665":{"this":{"__isSmartRef__":true,"id":2322}},"6666":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6667":{"varMapping":{"__isSmartRef__":true,"id":6668},"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":6669},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6668":{"this":{"__isSmartRef__":true,"id":2322}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6671":{"this":{"__isSmartRef__":true,"id":2322}},"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 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":6675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6674":{"this":{"__isSmartRef__":true,"id":2322}},"6675":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6676":{"varMapping":{"__isSmartRef__":true,"id":6677},"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":6678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6677":{"this":{"__isSmartRef__":true,"id":2322}},"6678":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6679":{"varMapping":{"__isSmartRef__":true,"id":6680},"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":6681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6680":{"this":{"__isSmartRef__":true,"id":2322}},"6681":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6682":{"varMapping":{"__isSmartRef__":true,"id":6683},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6683":{"this":{"__isSmartRef__":true,"id":2322}},"6684":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6685":{"varMapping":{"__isSmartRef__":true,"id":6686},"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":6687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6686":{"this":{"__isSmartRef__":true,"id":2322}},"6687":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6688":{"varMapping":{"__isSmartRef__":true,"id":6689},"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":6694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6689":{"this":{"__isSmartRef__":true,"id":2322},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6690}},"6690":{"$super":{"__isSmartRef__":true,"id":6691}},"6691":{"varMapping":{"__isSmartRef__":true,"id":6692},"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":6693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6692":{"obj":{"__isSmartRef__":true,"id":2322},"name":"onMouseDown"},"6693":{},"6694":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6695":{"varMapping":{"__isSmartRef__":true,"id":6696},"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":6697},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6696":{"this":{"__isSmartRef__":true,"id":2322}},"6697":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6698":{"varMapping":{"__isSmartRef__":true,"id":6699},"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":6700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6699":{"this":{"__isSmartRef__":true,"id":2322}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6702":{"this":{"__isSmartRef__":true,"id":2322}},"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 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":6706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6705":{"this":{"__isSmartRef__":true,"id":2322}},"6706":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6707":{"varMapping":{"__isSmartRef__":true,"id":6708},"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":6709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6708":{"this":{"__isSmartRef__":true,"id":2322}},"6709":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6710":{"varMapping":{"__isSmartRef__":true,"id":6711},"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":6712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6711":{"this":{"__isSmartRef__":true,"id":2322}},"6712":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6713":{"varMapping":{"__isSmartRef__":true,"id":6714},"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":6715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6714":{"this":{"__isSmartRef__":true,"id":2322}},"6715":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6716":{"varMapping":{"__isSmartRef__":true,"id":6717},"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":6718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6717":{"this":{"__isSmartRef__":true,"id":2322}},"6718":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6719":{"varMapping":{"__isSmartRef__":true,"id":6720},"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":6721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6720":{"this":{"__isSmartRef__":true,"id":2322}},"6721":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6722":{"addBomb":{"__isSmartRef__":true,"id":6723},"clearFlag":{"__isSmartRef__":true,"id":6726},"countNeighborBombs":{"__isSmartRef__":true,"id":6729},"fixSubmorph":{"__isSmartRef__":true,"id":6732},"initAppearance":{"__isSmartRef__":true,"id":6735},"initMorphs":{"__isSmartRef__":true,"id":6738},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6741},"isClosed":{"__isSmartRef__":true,"id":6744},"neighborPoints":{"__isSmartRef__":true,"id":6747},"onMouseDown":{"__isSmartRef__":true,"id":6750},"restoreGameAppearance":{"__isSmartRef__":true,"id":6757},"reveal":{"__isSmartRef__":true,"id":6760},"setCoordinates":{"__isSmartRef__":true,"id":6763},"showBomb":{"__isSmartRef__":true,"id":6766},"showDebugState":{"__isSmartRef__":true,"id":6769},"showFlag":{"__isSmartRef__":true,"id":6772},"showState":{"__isSmartRef__":true,"id":6775},"copyImageMorph":{"__isSmartRef__":true,"id":6778},"prepareToPublish":{"__isSmartRef__":true,"id":6781}},"6723":{"varMapping":{"__isSmartRef__":true,"id":6724},"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":6725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6724":{"this":{"__isSmartRef__":true,"id":2274}},"6725":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6726":{"varMapping":{"__isSmartRef__":true,"id":6727},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6727":{"this":{"__isSmartRef__":true,"id":2274}},"6728":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6729":{"varMapping":{"__isSmartRef__":true,"id":6730},"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":6731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6730":{"this":{"__isSmartRef__":true,"id":2274}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6733":{"this":{"__isSmartRef__":true,"id":2274}},"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 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":6737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6736":{"this":{"__isSmartRef__":true,"id":2274}},"6737":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6738":{"varMapping":{"__isSmartRef__":true,"id":6739},"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":6740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6739":{"this":{"__isSmartRef__":true,"id":2274}},"6740":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6741":{"varMapping":{"__isSmartRef__":true,"id":6742},"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":6743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6742":{"this":{"__isSmartRef__":true,"id":2274}},"6743":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6744":{"varMapping":{"__isSmartRef__":true,"id":6745},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6745":{"this":{"__isSmartRef__":true,"id":2274}},"6746":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6747":{"varMapping":{"__isSmartRef__":true,"id":6748},"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":6749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6748":{"this":{"__isSmartRef__":true,"id":2274}},"6749":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6750":{"varMapping":{"__isSmartRef__":true,"id":6751},"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":6756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6751":{"this":{"__isSmartRef__":true,"id":2274},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6752}},"6752":{"$super":{"__isSmartRef__":true,"id":6753}},"6753":{"varMapping":{"__isSmartRef__":true,"id":6754},"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":6755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6754":{"obj":{"__isSmartRef__":true,"id":2274},"name":"onMouseDown"},"6755":{},"6756":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6757":{"varMapping":{"__isSmartRef__":true,"id":6758},"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":6759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6758":{"this":{"__isSmartRef__":true,"id":2274}},"6759":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6760":{"varMapping":{"__isSmartRef__":true,"id":6761},"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":6762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6761":{"this":{"__isSmartRef__":true,"id":2274}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6764":{"this":{"__isSmartRef__":true,"id":2274}},"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 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":6768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6767":{"this":{"__isSmartRef__":true,"id":2274}},"6768":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6769":{"varMapping":{"__isSmartRef__":true,"id":6770},"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":6771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6770":{"this":{"__isSmartRef__":true,"id":2274}},"6771":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6772":{"varMapping":{"__isSmartRef__":true,"id":6773},"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":6774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6773":{"this":{"__isSmartRef__":true,"id":2274}},"6774":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6775":{"varMapping":{"__isSmartRef__":true,"id":6776},"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":6777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6776":{"this":{"__isSmartRef__":true,"id":2274}},"6777":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6778":{"varMapping":{"__isSmartRef__":true,"id":6779},"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":6780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6779":{"this":{"__isSmartRef__":true,"id":2274}},"6780":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6781":{"varMapping":{"__isSmartRef__":true,"id":6782},"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":6783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6782":{"this":{"__isSmartRef__":true,"id":2274}},"6783":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6784":{"addBomb":{"__isSmartRef__":true,"id":6785},"clearFlag":{"__isSmartRef__":true,"id":6788},"countNeighborBombs":{"__isSmartRef__":true,"id":6791},"fixSubmorph":{"__isSmartRef__":true,"id":6794},"initAppearance":{"__isSmartRef__":true,"id":6797},"initMorphs":{"__isSmartRef__":true,"id":6800},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6803},"isClosed":{"__isSmartRef__":true,"id":6806},"neighborPoints":{"__isSmartRef__":true,"id":6809},"onMouseDown":{"__isSmartRef__":true,"id":6812},"restoreGameAppearance":{"__isSmartRef__":true,"id":6819},"reveal":{"__isSmartRef__":true,"id":6822},"setCoordinates":{"__isSmartRef__":true,"id":6825},"showBomb":{"__isSmartRef__":true,"id":6828},"showDebugState":{"__isSmartRef__":true,"id":6831},"showFlag":{"__isSmartRef__":true,"id":6834},"showState":{"__isSmartRef__":true,"id":6837},"copyImageMorph":{"__isSmartRef__":true,"id":6840},"prepareToPublish":{"__isSmartRef__":true,"id":6843}},"6785":{"varMapping":{"__isSmartRef__":true,"id":6786},"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":6787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6786":{"this":{"__isSmartRef__":true,"id":2226}},"6787":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6788":{"varMapping":{"__isSmartRef__":true,"id":6789},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6789":{"this":{"__isSmartRef__":true,"id":2226}},"6790":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6791":{"varMapping":{"__isSmartRef__":true,"id":6792},"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":6793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6792":{"this":{"__isSmartRef__":true,"id":2226}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6795":{"this":{"__isSmartRef__":true,"id":2226}},"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 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":6799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6798":{"this":{"__isSmartRef__":true,"id":2226}},"6799":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6800":{"varMapping":{"__isSmartRef__":true,"id":6801},"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":6802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6801":{"this":{"__isSmartRef__":true,"id":2226}},"6802":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6803":{"varMapping":{"__isSmartRef__":true,"id":6804},"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":6805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6804":{"this":{"__isSmartRef__":true,"id":2226}},"6805":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6806":{"varMapping":{"__isSmartRef__":true,"id":6807},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6807":{"this":{"__isSmartRef__":true,"id":2226}},"6808":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6809":{"varMapping":{"__isSmartRef__":true,"id":6810},"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":6811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6810":{"this":{"__isSmartRef__":true,"id":2226}},"6811":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6812":{"varMapping":{"__isSmartRef__":true,"id":6813},"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":6818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6813":{"this":{"__isSmartRef__":true,"id":2226},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6814}},"6814":{"$super":{"__isSmartRef__":true,"id":6815}},"6815":{"varMapping":{"__isSmartRef__":true,"id":6816},"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":6817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6816":{"obj":{"__isSmartRef__":true,"id":2226},"name":"onMouseDown"},"6817":{},"6818":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6819":{"varMapping":{"__isSmartRef__":true,"id":6820},"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":6821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6820":{"this":{"__isSmartRef__":true,"id":2226}},"6821":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6822":{"varMapping":{"__isSmartRef__":true,"id":6823},"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":6824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6823":{"this":{"__isSmartRef__":true,"id":2226}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6826":{"this":{"__isSmartRef__":true,"id":2226}},"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 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":6830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6829":{"this":{"__isSmartRef__":true,"id":2226}},"6830":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6831":{"varMapping":{"__isSmartRef__":true,"id":6832},"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":6833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6832":{"this":{"__isSmartRef__":true,"id":2226}},"6833":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6834":{"varMapping":{"__isSmartRef__":true,"id":6835},"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":6836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6835":{"this":{"__isSmartRef__":true,"id":2226}},"6836":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6837":{"varMapping":{"__isSmartRef__":true,"id":6838},"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":6839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6838":{"this":{"__isSmartRef__":true,"id":2226}},"6839":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6840":{"varMapping":{"__isSmartRef__":true,"id":6841},"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":6842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6841":{"this":{"__isSmartRef__":true,"id":2226}},"6842":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6843":{"varMapping":{"__isSmartRef__":true,"id":6844},"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":6845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6844":{"this":{"__isSmartRef__":true,"id":2226}},"6845":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6846":{"addBomb":{"__isSmartRef__":true,"id":6847},"clearFlag":{"__isSmartRef__":true,"id":6850},"countNeighborBombs":{"__isSmartRef__":true,"id":6853},"fixSubmorph":{"__isSmartRef__":true,"id":6856},"initAppearance":{"__isSmartRef__":true,"id":6859},"initMorphs":{"__isSmartRef__":true,"id":6862},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6865},"isClosed":{"__isSmartRef__":true,"id":6868},"neighborPoints":{"__isSmartRef__":true,"id":6871},"onMouseDown":{"__isSmartRef__":true,"id":6874},"restoreGameAppearance":{"__isSmartRef__":true,"id":6881},"reveal":{"__isSmartRef__":true,"id":6884},"setCoordinates":{"__isSmartRef__":true,"id":6887},"showBomb":{"__isSmartRef__":true,"id":6890},"showDebugState":{"__isSmartRef__":true,"id":6893},"showFlag":{"__isSmartRef__":true,"id":6896},"showState":{"__isSmartRef__":true,"id":6899},"copyImageMorph":{"__isSmartRef__":true,"id":6902},"prepareToPublish":{"__isSmartRef__":true,"id":6905}},"6847":{"varMapping":{"__isSmartRef__":true,"id":6848},"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":6849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6848":{"this":{"__isSmartRef__":true,"id":2178}},"6849":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6850":{"varMapping":{"__isSmartRef__":true,"id":6851},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6851":{"this":{"__isSmartRef__":true,"id":2178}},"6852":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6853":{"varMapping":{"__isSmartRef__":true,"id":6854},"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":6855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6854":{"this":{"__isSmartRef__":true,"id":2178}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6857":{"this":{"__isSmartRef__":true,"id":2178}},"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 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":6861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6860":{"this":{"__isSmartRef__":true,"id":2178}},"6861":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6862":{"varMapping":{"__isSmartRef__":true,"id":6863},"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":6864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6863":{"this":{"__isSmartRef__":true,"id":2178}},"6864":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6865":{"varMapping":{"__isSmartRef__":true,"id":6866},"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":6867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6866":{"this":{"__isSmartRef__":true,"id":2178}},"6867":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6868":{"varMapping":{"__isSmartRef__":true,"id":6869},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6869":{"this":{"__isSmartRef__":true,"id":2178}},"6870":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6871":{"varMapping":{"__isSmartRef__":true,"id":6872},"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":6873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6872":{"this":{"__isSmartRef__":true,"id":2178}},"6873":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6874":{"varMapping":{"__isSmartRef__":true,"id":6875},"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":6880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6875":{"this":{"__isSmartRef__":true,"id":2178},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6876}},"6876":{"$super":{"__isSmartRef__":true,"id":6877}},"6877":{"varMapping":{"__isSmartRef__":true,"id":6878},"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":6879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6878":{"obj":{"__isSmartRef__":true,"id":2178},"name":"onMouseDown"},"6879":{},"6880":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6881":{"varMapping":{"__isSmartRef__":true,"id":6882},"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":6883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6882":{"this":{"__isSmartRef__":true,"id":2178}},"6883":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6884":{"varMapping":{"__isSmartRef__":true,"id":6885},"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":6886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6885":{"this":{"__isSmartRef__":true,"id":2178}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6888":{"this":{"__isSmartRef__":true,"id":2178}},"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 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":6892},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6891":{"this":{"__isSmartRef__":true,"id":2178}},"6892":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6893":{"varMapping":{"__isSmartRef__":true,"id":6894},"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":6895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6894":{"this":{"__isSmartRef__":true,"id":2178}},"6895":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6896":{"varMapping":{"__isSmartRef__":true,"id":6897},"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":6898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6897":{"this":{"__isSmartRef__":true,"id":2178}},"6898":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6899":{"varMapping":{"__isSmartRef__":true,"id":6900},"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":6901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6900":{"this":{"__isSmartRef__":true,"id":2178}},"6901":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6902":{"varMapping":{"__isSmartRef__":true,"id":6903},"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":6904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6903":{"this":{"__isSmartRef__":true,"id":2178}},"6904":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6905":{"varMapping":{"__isSmartRef__":true,"id":6906},"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":6907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6906":{"this":{"__isSmartRef__":true,"id":2178}},"6907":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6908":{"addBomb":{"__isSmartRef__":true,"id":6909},"clearFlag":{"__isSmartRef__":true,"id":6912},"countNeighborBombs":{"__isSmartRef__":true,"id":6915},"fixSubmorph":{"__isSmartRef__":true,"id":6918},"initAppearance":{"__isSmartRef__":true,"id":6921},"initMorphs":{"__isSmartRef__":true,"id":6924},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6927},"isClosed":{"__isSmartRef__":true,"id":6930},"neighborPoints":{"__isSmartRef__":true,"id":6933},"onMouseDown":{"__isSmartRef__":true,"id":6936},"restoreGameAppearance":{"__isSmartRef__":true,"id":6943},"reveal":{"__isSmartRef__":true,"id":6946},"setCoordinates":{"__isSmartRef__":true,"id":6949},"showBomb":{"__isSmartRef__":true,"id":6952},"showDebugState":{"__isSmartRef__":true,"id":6955},"showFlag":{"__isSmartRef__":true,"id":6958},"showState":{"__isSmartRef__":true,"id":6961},"copyImageMorph":{"__isSmartRef__":true,"id":6964},"prepareToPublish":{"__isSmartRef__":true,"id":6967}},"6909":{"varMapping":{"__isSmartRef__":true,"id":6910},"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":6911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6910":{"this":{"__isSmartRef__":true,"id":2130}},"6911":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6912":{"varMapping":{"__isSmartRef__":true,"id":6913},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6913":{"this":{"__isSmartRef__":true,"id":2130}},"6914":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6915":{"varMapping":{"__isSmartRef__":true,"id":6916},"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":6917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6916":{"this":{"__isSmartRef__":true,"id":2130}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6919":{"this":{"__isSmartRef__":true,"id":2130}},"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 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":6923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6922":{"this":{"__isSmartRef__":true,"id":2130}},"6923":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6924":{"varMapping":{"__isSmartRef__":true,"id":6925},"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":6926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6925":{"this":{"__isSmartRef__":true,"id":2130}},"6926":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6927":{"varMapping":{"__isSmartRef__":true,"id":6928},"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":6929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6928":{"this":{"__isSmartRef__":true,"id":2130}},"6929":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6930":{"varMapping":{"__isSmartRef__":true,"id":6931},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6931":{"this":{"__isSmartRef__":true,"id":2130}},"6932":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6933":{"varMapping":{"__isSmartRef__":true,"id":6934},"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":6935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6934":{"this":{"__isSmartRef__":true,"id":2130}},"6935":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6936":{"varMapping":{"__isSmartRef__":true,"id":6937},"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":6942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6937":{"this":{"__isSmartRef__":true,"id":2130},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6938}},"6938":{"$super":{"__isSmartRef__":true,"id":6939}},"6939":{"varMapping":{"__isSmartRef__":true,"id":6940},"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":6941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6940":{"obj":{"__isSmartRef__":true,"id":2130},"name":"onMouseDown"},"6941":{},"6942":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"6943":{"varMapping":{"__isSmartRef__":true,"id":6944},"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":6945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6944":{"this":{"__isSmartRef__":true,"id":2130}},"6945":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"6946":{"varMapping":{"__isSmartRef__":true,"id":6947},"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":6948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6947":{"this":{"__isSmartRef__":true,"id":2130}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":6951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6950":{"this":{"__isSmartRef__":true,"id":2130}},"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 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":6954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6953":{"this":{"__isSmartRef__":true,"id":2130}},"6954":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"6955":{"varMapping":{"__isSmartRef__":true,"id":6956},"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":6957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6956":{"this":{"__isSmartRef__":true,"id":2130}},"6957":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"6958":{"varMapping":{"__isSmartRef__":true,"id":6959},"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":6960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6959":{"this":{"__isSmartRef__":true,"id":2130}},"6960":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"6961":{"varMapping":{"__isSmartRef__":true,"id":6962},"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":6963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6962":{"this":{"__isSmartRef__":true,"id":2130}},"6963":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"6964":{"varMapping":{"__isSmartRef__":true,"id":6965},"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":6966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6965":{"this":{"__isSmartRef__":true,"id":2130}},"6966":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"6967":{"varMapping":{"__isSmartRef__":true,"id":6968},"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":6969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6968":{"this":{"__isSmartRef__":true,"id":2130}},"6969":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"6970":{"addBomb":{"__isSmartRef__":true,"id":6971},"clearFlag":{"__isSmartRef__":true,"id":6974},"countNeighborBombs":{"__isSmartRef__":true,"id":6977},"fixSubmorph":{"__isSmartRef__":true,"id":6980},"initAppearance":{"__isSmartRef__":true,"id":6983},"initMorphs":{"__isSmartRef__":true,"id":6986},"initNeighborsAndCount":{"__isSmartRef__":true,"id":6989},"isClosed":{"__isSmartRef__":true,"id":6992},"neighborPoints":{"__isSmartRef__":true,"id":6995},"onMouseDown":{"__isSmartRef__":true,"id":6998},"restoreGameAppearance":{"__isSmartRef__":true,"id":7005},"reveal":{"__isSmartRef__":true,"id":7008},"setCoordinates":{"__isSmartRef__":true,"id":7011},"showBomb":{"__isSmartRef__":true,"id":7014},"showDebugState":{"__isSmartRef__":true,"id":7017},"showFlag":{"__isSmartRef__":true,"id":7020},"showState":{"__isSmartRef__":true,"id":7023},"copyImageMorph":{"__isSmartRef__":true,"id":7026},"prepareToPublish":{"__isSmartRef__":true,"id":7029}},"6971":{"varMapping":{"__isSmartRef__":true,"id":6972},"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":6973},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6972":{"this":{"__isSmartRef__":true,"id":2082}},"6973":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"6974":{"varMapping":{"__isSmartRef__":true,"id":6975},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":6976},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6975":{"this":{"__isSmartRef__":true,"id":2082}},"6976":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"6977":{"varMapping":{"__isSmartRef__":true,"id":6978},"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":6979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6978":{"this":{"__isSmartRef__":true,"id":2082}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":6982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6981":{"this":{"__isSmartRef__":true,"id":2082}},"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 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":6985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6984":{"this":{"__isSmartRef__":true,"id":2082}},"6985":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"6986":{"varMapping":{"__isSmartRef__":true,"id":6987},"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":6988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6987":{"this":{"__isSmartRef__":true,"id":2082}},"6988":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"6989":{"varMapping":{"__isSmartRef__":true,"id":6990},"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":6991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6990":{"this":{"__isSmartRef__":true,"id":2082}},"6991":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6992":{"varMapping":{"__isSmartRef__":true,"id":6993},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":6994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6993":{"this":{"__isSmartRef__":true,"id":2082}},"6994":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6995":{"varMapping":{"__isSmartRef__":true,"id":6996},"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":6997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6996":{"this":{"__isSmartRef__":true,"id":2082}},"6997":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"6998":{"varMapping":{"__isSmartRef__":true,"id":6999},"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":7004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6999":{"this":{"__isSmartRef__":true,"id":2082},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7000}},"7000":{"$super":{"__isSmartRef__":true,"id":7001}},"7001":{"varMapping":{"__isSmartRef__":true,"id":7002},"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":7003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7002":{"obj":{"__isSmartRef__":true,"id":2082},"name":"onMouseDown"},"7003":{},"7004":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7005":{"varMapping":{"__isSmartRef__":true,"id":7006},"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":7007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7006":{"this":{"__isSmartRef__":true,"id":2082}},"7007":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7008":{"varMapping":{"__isSmartRef__":true,"id":7009},"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":7010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7009":{"this":{"__isSmartRef__":true,"id":2082}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7013},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7012":{"this":{"__isSmartRef__":true,"id":2082}},"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 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":7016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7015":{"this":{"__isSmartRef__":true,"id":2082}},"7016":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7017":{"varMapping":{"__isSmartRef__":true,"id":7018},"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":7019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7018":{"this":{"__isSmartRef__":true,"id":2082}},"7019":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7020":{"varMapping":{"__isSmartRef__":true,"id":7021},"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":7022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7021":{"this":{"__isSmartRef__":true,"id":2082}},"7022":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7023":{"varMapping":{"__isSmartRef__":true,"id":7024},"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":7025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7024":{"this":{"__isSmartRef__":true,"id":2082}},"7025":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7026":{"varMapping":{"__isSmartRef__":true,"id":7027},"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":7028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7027":{"this":{"__isSmartRef__":true,"id":2082}},"7028":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7029":{"varMapping":{"__isSmartRef__":true,"id":7030},"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":7031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7030":{"this":{"__isSmartRef__":true,"id":2082}},"7031":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7032":{"addBomb":{"__isSmartRef__":true,"id":7033},"clearFlag":{"__isSmartRef__":true,"id":7036},"countNeighborBombs":{"__isSmartRef__":true,"id":7039},"fixSubmorph":{"__isSmartRef__":true,"id":7042},"initAppearance":{"__isSmartRef__":true,"id":7045},"initMorphs":{"__isSmartRef__":true,"id":7048},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7051},"isClosed":{"__isSmartRef__":true,"id":7054},"neighborPoints":{"__isSmartRef__":true,"id":7057},"onMouseDown":{"__isSmartRef__":true,"id":7060},"restoreGameAppearance":{"__isSmartRef__":true,"id":7067},"reveal":{"__isSmartRef__":true,"id":7070},"setCoordinates":{"__isSmartRef__":true,"id":7073},"showBomb":{"__isSmartRef__":true,"id":7076},"showDebugState":{"__isSmartRef__":true,"id":7079},"showFlag":{"__isSmartRef__":true,"id":7082},"showState":{"__isSmartRef__":true,"id":7085},"copyImageMorph":{"__isSmartRef__":true,"id":7088},"prepareToPublish":{"__isSmartRef__":true,"id":7091}},"7033":{"varMapping":{"__isSmartRef__":true,"id":7034},"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":7035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7034":{"this":{"__isSmartRef__":true,"id":2034}},"7035":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7036":{"varMapping":{"__isSmartRef__":true,"id":7037},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7037":{"this":{"__isSmartRef__":true,"id":2034}},"7038":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7039":{"varMapping":{"__isSmartRef__":true,"id":7040},"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":7041},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7040":{"this":{"__isSmartRef__":true,"id":2034}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7043":{"this":{"__isSmartRef__":true,"id":2034}},"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 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":7047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7046":{"this":{"__isSmartRef__":true,"id":2034}},"7047":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7048":{"varMapping":{"__isSmartRef__":true,"id":7049},"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":7050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7049":{"this":{"__isSmartRef__":true,"id":2034}},"7050":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7051":{"varMapping":{"__isSmartRef__":true,"id":7052},"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":7053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7052":{"this":{"__isSmartRef__":true,"id":2034}},"7053":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7054":{"varMapping":{"__isSmartRef__":true,"id":7055},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7055":{"this":{"__isSmartRef__":true,"id":2034}},"7056":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7057":{"varMapping":{"__isSmartRef__":true,"id":7058},"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":7059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7058":{"this":{"__isSmartRef__":true,"id":2034}},"7059":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7060":{"varMapping":{"__isSmartRef__":true,"id":7061},"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":7066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7061":{"this":{"__isSmartRef__":true,"id":2034},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7062}},"7062":{"$super":{"__isSmartRef__":true,"id":7063}},"7063":{"varMapping":{"__isSmartRef__":true,"id":7064},"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":7065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7064":{"obj":{"__isSmartRef__":true,"id":2034},"name":"onMouseDown"},"7065":{},"7066":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7067":{"varMapping":{"__isSmartRef__":true,"id":7068},"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":7069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7068":{"this":{"__isSmartRef__":true,"id":2034}},"7069":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7070":{"varMapping":{"__isSmartRef__":true,"id":7071},"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":7072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7071":{"this":{"__isSmartRef__":true,"id":2034}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7074":{"this":{"__isSmartRef__":true,"id":2034}},"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 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":7078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7077":{"this":{"__isSmartRef__":true,"id":2034}},"7078":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7079":{"varMapping":{"__isSmartRef__":true,"id":7080},"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":7081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7080":{"this":{"__isSmartRef__":true,"id":2034}},"7081":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7082":{"varMapping":{"__isSmartRef__":true,"id":7083},"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":7084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7083":{"this":{"__isSmartRef__":true,"id":2034}},"7084":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7085":{"varMapping":{"__isSmartRef__":true,"id":7086},"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":7087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7086":{"this":{"__isSmartRef__":true,"id":2034}},"7087":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7088":{"varMapping":{"__isSmartRef__":true,"id":7089},"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":7090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7089":{"this":{"__isSmartRef__":true,"id":2034}},"7090":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7091":{"varMapping":{"__isSmartRef__":true,"id":7092},"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":7093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7092":{"this":{"__isSmartRef__":true,"id":2034}},"7093":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7094":{"addBomb":{"__isSmartRef__":true,"id":7095},"clearFlag":{"__isSmartRef__":true,"id":7098},"countNeighborBombs":{"__isSmartRef__":true,"id":7101},"fixSubmorph":{"__isSmartRef__":true,"id":7104},"initAppearance":{"__isSmartRef__":true,"id":7107},"initMorphs":{"__isSmartRef__":true,"id":7110},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7113},"isClosed":{"__isSmartRef__":true,"id":7116},"neighborPoints":{"__isSmartRef__":true,"id":7119},"onMouseDown":{"__isSmartRef__":true,"id":7122},"restoreGameAppearance":{"__isSmartRef__":true,"id":7129},"reveal":{"__isSmartRef__":true,"id":7132},"setCoordinates":{"__isSmartRef__":true,"id":7135},"showBomb":{"__isSmartRef__":true,"id":7138},"showDebugState":{"__isSmartRef__":true,"id":7141},"showFlag":{"__isSmartRef__":true,"id":7144},"showState":{"__isSmartRef__":true,"id":7147},"copyImageMorph":{"__isSmartRef__":true,"id":7150},"prepareToPublish":{"__isSmartRef__":true,"id":7153}},"7095":{"varMapping":{"__isSmartRef__":true,"id":7096},"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":7097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7096":{"this":{"__isSmartRef__":true,"id":1986}},"7097":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7098":{"varMapping":{"__isSmartRef__":true,"id":7099},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7099":{"this":{"__isSmartRef__":true,"id":1986}},"7100":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7101":{"varMapping":{"__isSmartRef__":true,"id":7102},"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":7103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7102":{"this":{"__isSmartRef__":true,"id":1986}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7105":{"this":{"__isSmartRef__":true,"id":1986}},"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 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":7109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7108":{"this":{"__isSmartRef__":true,"id":1986}},"7109":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7110":{"varMapping":{"__isSmartRef__":true,"id":7111},"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":7112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7111":{"this":{"__isSmartRef__":true,"id":1986}},"7112":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7113":{"varMapping":{"__isSmartRef__":true,"id":7114},"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":7115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7114":{"this":{"__isSmartRef__":true,"id":1986}},"7115":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7116":{"varMapping":{"__isSmartRef__":true,"id":7117},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7117":{"this":{"__isSmartRef__":true,"id":1986}},"7118":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7119":{"varMapping":{"__isSmartRef__":true,"id":7120},"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":7121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7120":{"this":{"__isSmartRef__":true,"id":1986}},"7121":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7122":{"varMapping":{"__isSmartRef__":true,"id":7123},"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":7128},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7123":{"this":{"__isSmartRef__":true,"id":1986},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7124}},"7124":{"$super":{"__isSmartRef__":true,"id":7125}},"7125":{"varMapping":{"__isSmartRef__":true,"id":7126},"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":7127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7126":{"obj":{"__isSmartRef__":true,"id":1986},"name":"onMouseDown"},"7127":{},"7128":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7129":{"varMapping":{"__isSmartRef__":true,"id":7130},"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":7131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7130":{"this":{"__isSmartRef__":true,"id":1986}},"7131":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7132":{"varMapping":{"__isSmartRef__":true,"id":7133},"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":7134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7133":{"this":{"__isSmartRef__":true,"id":1986}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7136":{"this":{"__isSmartRef__":true,"id":1986}},"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 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":7140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7139":{"this":{"__isSmartRef__":true,"id":1986}},"7140":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7141":{"varMapping":{"__isSmartRef__":true,"id":7142},"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":7143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7142":{"this":{"__isSmartRef__":true,"id":1986}},"7143":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7144":{"varMapping":{"__isSmartRef__":true,"id":7145},"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":7146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7145":{"this":{"__isSmartRef__":true,"id":1986}},"7146":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7147":{"varMapping":{"__isSmartRef__":true,"id":7148},"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":7149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7148":{"this":{"__isSmartRef__":true,"id":1986}},"7149":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7150":{"varMapping":{"__isSmartRef__":true,"id":7151},"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":7152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7151":{"this":{"__isSmartRef__":true,"id":1986}},"7152":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7153":{"varMapping":{"__isSmartRef__":true,"id":7154},"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":7155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7154":{"this":{"__isSmartRef__":true,"id":1986}},"7155":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7156":{"addBomb":{"__isSmartRef__":true,"id":7157},"clearFlag":{"__isSmartRef__":true,"id":7160},"countNeighborBombs":{"__isSmartRef__":true,"id":7163},"fixSubmorph":{"__isSmartRef__":true,"id":7166},"initAppearance":{"__isSmartRef__":true,"id":7169},"initMorphs":{"__isSmartRef__":true,"id":7172},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7175},"isClosed":{"__isSmartRef__":true,"id":7178},"neighborPoints":{"__isSmartRef__":true,"id":7181},"onMouseDown":{"__isSmartRef__":true,"id":7184},"restoreGameAppearance":{"__isSmartRef__":true,"id":7191},"reveal":{"__isSmartRef__":true,"id":7194},"setCoordinates":{"__isSmartRef__":true,"id":7197},"showBomb":{"__isSmartRef__":true,"id":7200},"showDebugState":{"__isSmartRef__":true,"id":7203},"showFlag":{"__isSmartRef__":true,"id":7206},"showState":{"__isSmartRef__":true,"id":7209},"copyImageMorph":{"__isSmartRef__":true,"id":7212},"prepareToPublish":{"__isSmartRef__":true,"id":7215}},"7157":{"varMapping":{"__isSmartRef__":true,"id":7158},"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":7159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7158":{"this":{"__isSmartRef__":true,"id":1938}},"7159":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7160":{"varMapping":{"__isSmartRef__":true,"id":7161},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7161":{"this":{"__isSmartRef__":true,"id":1938}},"7162":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7163":{"varMapping":{"__isSmartRef__":true,"id":7164},"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":7165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7164":{"this":{"__isSmartRef__":true,"id":1938}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7167":{"this":{"__isSmartRef__":true,"id":1938}},"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 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":7171},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7170":{"this":{"__isSmartRef__":true,"id":1938}},"7171":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7172":{"varMapping":{"__isSmartRef__":true,"id":7173},"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":7174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7173":{"this":{"__isSmartRef__":true,"id":1938}},"7174":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7175":{"varMapping":{"__isSmartRef__":true,"id":7176},"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":7177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7176":{"this":{"__isSmartRef__":true,"id":1938}},"7177":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7178":{"varMapping":{"__isSmartRef__":true,"id":7179},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7179":{"this":{"__isSmartRef__":true,"id":1938}},"7180":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7181":{"varMapping":{"__isSmartRef__":true,"id":7182},"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":7183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7182":{"this":{"__isSmartRef__":true,"id":1938}},"7183":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7184":{"varMapping":{"__isSmartRef__":true,"id":7185},"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":7190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7185":{"this":{"__isSmartRef__":true,"id":1938},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7186}},"7186":{"$super":{"__isSmartRef__":true,"id":7187}},"7187":{"varMapping":{"__isSmartRef__":true,"id":7188},"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":7189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7188":{"obj":{"__isSmartRef__":true,"id":1938},"name":"onMouseDown"},"7189":{},"7190":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7191":{"varMapping":{"__isSmartRef__":true,"id":7192},"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":7193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7192":{"this":{"__isSmartRef__":true,"id":1938}},"7193":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7194":{"varMapping":{"__isSmartRef__":true,"id":7195},"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":7196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7195":{"this":{"__isSmartRef__":true,"id":1938}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7198":{"this":{"__isSmartRef__":true,"id":1938}},"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 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":7202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7201":{"this":{"__isSmartRef__":true,"id":1938}},"7202":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7203":{"varMapping":{"__isSmartRef__":true,"id":7204},"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":7205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7204":{"this":{"__isSmartRef__":true,"id":1938}},"7205":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7206":{"varMapping":{"__isSmartRef__":true,"id":7207},"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":7208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7207":{"this":{"__isSmartRef__":true,"id":1938}},"7208":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7209":{"varMapping":{"__isSmartRef__":true,"id":7210},"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":7211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7210":{"this":{"__isSmartRef__":true,"id":1938}},"7211":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7212":{"varMapping":{"__isSmartRef__":true,"id":7213},"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":7214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7213":{"this":{"__isSmartRef__":true,"id":1938}},"7214":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7215":{"varMapping":{"__isSmartRef__":true,"id":7216},"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":7217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7216":{"this":{"__isSmartRef__":true,"id":1938}},"7217":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7218":{"addBomb":{"__isSmartRef__":true,"id":7219},"clearFlag":{"__isSmartRef__":true,"id":7222},"countNeighborBombs":{"__isSmartRef__":true,"id":7225},"fixSubmorph":{"__isSmartRef__":true,"id":7228},"initAppearance":{"__isSmartRef__":true,"id":7231},"initMorphs":{"__isSmartRef__":true,"id":7234},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7237},"isClosed":{"__isSmartRef__":true,"id":7240},"neighborPoints":{"__isSmartRef__":true,"id":7243},"onMouseDown":{"__isSmartRef__":true,"id":7246},"restoreGameAppearance":{"__isSmartRef__":true,"id":7253},"reveal":{"__isSmartRef__":true,"id":7256},"setCoordinates":{"__isSmartRef__":true,"id":7259},"showBomb":{"__isSmartRef__":true,"id":7262},"showDebugState":{"__isSmartRef__":true,"id":7265},"showFlag":{"__isSmartRef__":true,"id":7268},"showState":{"__isSmartRef__":true,"id":7271},"copyImageMorph":{"__isSmartRef__":true,"id":7274},"prepareToPublish":{"__isSmartRef__":true,"id":7277}},"7219":{"varMapping":{"__isSmartRef__":true,"id":7220},"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":7221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7220":{"this":{"__isSmartRef__":true,"id":1890}},"7221":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7222":{"varMapping":{"__isSmartRef__":true,"id":7223},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7223":{"this":{"__isSmartRef__":true,"id":1890}},"7224":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7225":{"varMapping":{"__isSmartRef__":true,"id":7226},"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":7227},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7226":{"this":{"__isSmartRef__":true,"id":1890}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7229":{"this":{"__isSmartRef__":true,"id":1890}},"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 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":7233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7232":{"this":{"__isSmartRef__":true,"id":1890}},"7233":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7234":{"varMapping":{"__isSmartRef__":true,"id":7235},"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":7236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7235":{"this":{"__isSmartRef__":true,"id":1890}},"7236":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7237":{"varMapping":{"__isSmartRef__":true,"id":7238},"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":7239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7238":{"this":{"__isSmartRef__":true,"id":1890}},"7239":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7240":{"varMapping":{"__isSmartRef__":true,"id":7241},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7241":{"this":{"__isSmartRef__":true,"id":1890}},"7242":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7243":{"varMapping":{"__isSmartRef__":true,"id":7244},"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":7245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7244":{"this":{"__isSmartRef__":true,"id":1890}},"7245":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7246":{"varMapping":{"__isSmartRef__":true,"id":7247},"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":7252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7247":{"this":{"__isSmartRef__":true,"id":1890},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7248}},"7248":{"$super":{"__isSmartRef__":true,"id":7249}},"7249":{"varMapping":{"__isSmartRef__":true,"id":7250},"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":7251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7250":{"obj":{"__isSmartRef__":true,"id":1890},"name":"onMouseDown"},"7251":{},"7252":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7253":{"varMapping":{"__isSmartRef__":true,"id":7254},"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":7255},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7254":{"this":{"__isSmartRef__":true,"id":1890}},"7255":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7256":{"varMapping":{"__isSmartRef__":true,"id":7257},"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":7258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7257":{"this":{"__isSmartRef__":true,"id":1890}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7260":{"this":{"__isSmartRef__":true,"id":1890}},"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 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":7264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7263":{"this":{"__isSmartRef__":true,"id":1890}},"7264":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7265":{"varMapping":{"__isSmartRef__":true,"id":7266},"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":7267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7266":{"this":{"__isSmartRef__":true,"id":1890}},"7267":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7268":{"varMapping":{"__isSmartRef__":true,"id":7269},"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":7270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7269":{"this":{"__isSmartRef__":true,"id":1890}},"7270":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7271":{"varMapping":{"__isSmartRef__":true,"id":7272},"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":7273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7272":{"this":{"__isSmartRef__":true,"id":1890}},"7273":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7274":{"varMapping":{"__isSmartRef__":true,"id":7275},"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":7276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7275":{"this":{"__isSmartRef__":true,"id":1890}},"7276":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7277":{"varMapping":{"__isSmartRef__":true,"id":7278},"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":7279},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7278":{"this":{"__isSmartRef__":true,"id":1890}},"7279":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7280":{"addBomb":{"__isSmartRef__":true,"id":7281},"clearFlag":{"__isSmartRef__":true,"id":7284},"countNeighborBombs":{"__isSmartRef__":true,"id":7287},"fixSubmorph":{"__isSmartRef__":true,"id":7290},"initAppearance":{"__isSmartRef__":true,"id":7293},"initMorphs":{"__isSmartRef__":true,"id":7296},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7299},"isClosed":{"__isSmartRef__":true,"id":7302},"neighborPoints":{"__isSmartRef__":true,"id":7305},"onMouseDown":{"__isSmartRef__":true,"id":7308},"restoreGameAppearance":{"__isSmartRef__":true,"id":7315},"reveal":{"__isSmartRef__":true,"id":7318},"setCoordinates":{"__isSmartRef__":true,"id":7321},"showBomb":{"__isSmartRef__":true,"id":7324},"showDebugState":{"__isSmartRef__":true,"id":7327},"showFlag":{"__isSmartRef__":true,"id":7330},"showState":{"__isSmartRef__":true,"id":7333},"copyImageMorph":{"__isSmartRef__":true,"id":7336},"prepareToPublish":{"__isSmartRef__":true,"id":7339}},"7281":{"varMapping":{"__isSmartRef__":true,"id":7282},"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":7283},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7282":{"this":{"__isSmartRef__":true,"id":1842}},"7283":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7284":{"varMapping":{"__isSmartRef__":true,"id":7285},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7286},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7285":{"this":{"__isSmartRef__":true,"id":1842}},"7286":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7287":{"varMapping":{"__isSmartRef__":true,"id":7288},"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":7289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7288":{"this":{"__isSmartRef__":true,"id":1842}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7291":{"this":{"__isSmartRef__":true,"id":1842}},"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 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":7295},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7294":{"this":{"__isSmartRef__":true,"id":1842}},"7295":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7296":{"varMapping":{"__isSmartRef__":true,"id":7297},"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":7298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7297":{"this":{"__isSmartRef__":true,"id":1842}},"7298":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7299":{"varMapping":{"__isSmartRef__":true,"id":7300},"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":7301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7300":{"this":{"__isSmartRef__":true,"id":1842}},"7301":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7302":{"varMapping":{"__isSmartRef__":true,"id":7303},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7303":{"this":{"__isSmartRef__":true,"id":1842}},"7304":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7305":{"varMapping":{"__isSmartRef__":true,"id":7306},"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":7307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7306":{"this":{"__isSmartRef__":true,"id":1842}},"7307":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7308":{"varMapping":{"__isSmartRef__":true,"id":7309},"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":7314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7309":{"this":{"__isSmartRef__":true,"id":1842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7310}},"7310":{"$super":{"__isSmartRef__":true,"id":7311}},"7311":{"varMapping":{"__isSmartRef__":true,"id":7312},"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":7313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7312":{"obj":{"__isSmartRef__":true,"id":1842},"name":"onMouseDown"},"7313":{},"7314":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7315":{"varMapping":{"__isSmartRef__":true,"id":7316},"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":7317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7316":{"this":{"__isSmartRef__":true,"id":1842}},"7317":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7318":{"varMapping":{"__isSmartRef__":true,"id":7319},"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":7320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7319":{"this":{"__isSmartRef__":true,"id":1842}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7322":{"this":{"__isSmartRef__":true,"id":1842}},"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 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":7326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7325":{"this":{"__isSmartRef__":true,"id":1842}},"7326":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7327":{"varMapping":{"__isSmartRef__":true,"id":7328},"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":7329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7328":{"this":{"__isSmartRef__":true,"id":1842}},"7329":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7330":{"varMapping":{"__isSmartRef__":true,"id":7331},"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":7332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7331":{"this":{"__isSmartRef__":true,"id":1842}},"7332":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7333":{"varMapping":{"__isSmartRef__":true,"id":7334},"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":7335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7334":{"this":{"__isSmartRef__":true,"id":1842}},"7335":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7336":{"varMapping":{"__isSmartRef__":true,"id":7337},"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":7338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7337":{"this":{"__isSmartRef__":true,"id":1842}},"7338":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7339":{"varMapping":{"__isSmartRef__":true,"id":7340},"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":7341},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7340":{"this":{"__isSmartRef__":true,"id":1842}},"7341":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7342":{"addBomb":{"__isSmartRef__":true,"id":7343},"clearFlag":{"__isSmartRef__":true,"id":7346},"countNeighborBombs":{"__isSmartRef__":true,"id":7349},"fixSubmorph":{"__isSmartRef__":true,"id":7352},"initAppearance":{"__isSmartRef__":true,"id":7355},"initMorphs":{"__isSmartRef__":true,"id":7358},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7361},"isClosed":{"__isSmartRef__":true,"id":7364},"neighborPoints":{"__isSmartRef__":true,"id":7367},"onMouseDown":{"__isSmartRef__":true,"id":7370},"restoreGameAppearance":{"__isSmartRef__":true,"id":7377},"reveal":{"__isSmartRef__":true,"id":7380},"setCoordinates":{"__isSmartRef__":true,"id":7383},"showBomb":{"__isSmartRef__":true,"id":7386},"showDebugState":{"__isSmartRef__":true,"id":7389},"showFlag":{"__isSmartRef__":true,"id":7392},"showState":{"__isSmartRef__":true,"id":7395},"copyImageMorph":{"__isSmartRef__":true,"id":7398},"prepareToPublish":{"__isSmartRef__":true,"id":7401}},"7343":{"varMapping":{"__isSmartRef__":true,"id":7344},"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":7345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7344":{"this":{"__isSmartRef__":true,"id":1794}},"7345":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7346":{"varMapping":{"__isSmartRef__":true,"id":7347},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7347":{"this":{"__isSmartRef__":true,"id":1794}},"7348":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7349":{"varMapping":{"__isSmartRef__":true,"id":7350},"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":7351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7350":{"this":{"__isSmartRef__":true,"id":1794}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7353":{"this":{"__isSmartRef__":true,"id":1794}},"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 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":7357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7356":{"this":{"__isSmartRef__":true,"id":1794}},"7357":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7358":{"varMapping":{"__isSmartRef__":true,"id":7359},"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":7360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7359":{"this":{"__isSmartRef__":true,"id":1794}},"7360":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7361":{"varMapping":{"__isSmartRef__":true,"id":7362},"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":7363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7362":{"this":{"__isSmartRef__":true,"id":1794}},"7363":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7364":{"varMapping":{"__isSmartRef__":true,"id":7365},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7365":{"this":{"__isSmartRef__":true,"id":1794}},"7366":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7367":{"varMapping":{"__isSmartRef__":true,"id":7368},"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":7369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7368":{"this":{"__isSmartRef__":true,"id":1794}},"7369":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7370":{"varMapping":{"__isSmartRef__":true,"id":7371},"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":7376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7371":{"this":{"__isSmartRef__":true,"id":1794},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7372}},"7372":{"$super":{"__isSmartRef__":true,"id":7373}},"7373":{"varMapping":{"__isSmartRef__":true,"id":7374},"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":7375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7374":{"obj":{"__isSmartRef__":true,"id":1794},"name":"onMouseDown"},"7375":{},"7376":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7377":{"varMapping":{"__isSmartRef__":true,"id":7378},"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":7379},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7378":{"this":{"__isSmartRef__":true,"id":1794}},"7379":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7380":{"varMapping":{"__isSmartRef__":true,"id":7381},"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":7382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7381":{"this":{"__isSmartRef__":true,"id":1794}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7385},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7384":{"this":{"__isSmartRef__":true,"id":1794}},"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 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":7388},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7387":{"this":{"__isSmartRef__":true,"id":1794}},"7388":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7389":{"varMapping":{"__isSmartRef__":true,"id":7390},"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":7391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7390":{"this":{"__isSmartRef__":true,"id":1794}},"7391":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7392":{"varMapping":{"__isSmartRef__":true,"id":7393},"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":7394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7393":{"this":{"__isSmartRef__":true,"id":1794}},"7394":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7395":{"varMapping":{"__isSmartRef__":true,"id":7396},"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":7397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7396":{"this":{"__isSmartRef__":true,"id":1794}},"7397":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7398":{"varMapping":{"__isSmartRef__":true,"id":7399},"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":7400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7399":{"this":{"__isSmartRef__":true,"id":1794}},"7400":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7401":{"varMapping":{"__isSmartRef__":true,"id":7402},"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":7403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7402":{"this":{"__isSmartRef__":true,"id":1794}},"7403":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7404":{"addBomb":{"__isSmartRef__":true,"id":7405},"clearFlag":{"__isSmartRef__":true,"id":7408},"countNeighborBombs":{"__isSmartRef__":true,"id":7411},"fixSubmorph":{"__isSmartRef__":true,"id":7414},"initAppearance":{"__isSmartRef__":true,"id":7417},"initMorphs":{"__isSmartRef__":true,"id":7420},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7423},"isClosed":{"__isSmartRef__":true,"id":7426},"neighborPoints":{"__isSmartRef__":true,"id":7429},"onMouseDown":{"__isSmartRef__":true,"id":7432},"restoreGameAppearance":{"__isSmartRef__":true,"id":7439},"reveal":{"__isSmartRef__":true,"id":7442},"setCoordinates":{"__isSmartRef__":true,"id":7445},"showBomb":{"__isSmartRef__":true,"id":7448},"showDebugState":{"__isSmartRef__":true,"id":7451},"showFlag":{"__isSmartRef__":true,"id":7454},"showState":{"__isSmartRef__":true,"id":7457},"copyImageMorph":{"__isSmartRef__":true,"id":7460},"prepareToPublish":{"__isSmartRef__":true,"id":7463}},"7405":{"varMapping":{"__isSmartRef__":true,"id":7406},"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":7407},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7406":{"this":{"__isSmartRef__":true,"id":1746}},"7407":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7408":{"varMapping":{"__isSmartRef__":true,"id":7409},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7409":{"this":{"__isSmartRef__":true,"id":1746}},"7410":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7411":{"varMapping":{"__isSmartRef__":true,"id":7412},"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":7413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7412":{"this":{"__isSmartRef__":true,"id":1746}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7415":{"this":{"__isSmartRef__":true,"id":1746}},"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 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":7419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7418":{"this":{"__isSmartRef__":true,"id":1746}},"7419":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7420":{"varMapping":{"__isSmartRef__":true,"id":7421},"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":7422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7421":{"this":{"__isSmartRef__":true,"id":1746}},"7422":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7423":{"varMapping":{"__isSmartRef__":true,"id":7424},"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":7425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7424":{"this":{"__isSmartRef__":true,"id":1746}},"7425":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7426":{"varMapping":{"__isSmartRef__":true,"id":7427},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7427":{"this":{"__isSmartRef__":true,"id":1746}},"7428":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7429":{"varMapping":{"__isSmartRef__":true,"id":7430},"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":7431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7430":{"this":{"__isSmartRef__":true,"id":1746}},"7431":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7432":{"varMapping":{"__isSmartRef__":true,"id":7433},"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":7438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7433":{"this":{"__isSmartRef__":true,"id":1746},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7434}},"7434":{"$super":{"__isSmartRef__":true,"id":7435}},"7435":{"varMapping":{"__isSmartRef__":true,"id":7436},"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":7437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7436":{"obj":{"__isSmartRef__":true,"id":1746},"name":"onMouseDown"},"7437":{},"7438":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7439":{"varMapping":{"__isSmartRef__":true,"id":7440},"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":7441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7440":{"this":{"__isSmartRef__":true,"id":1746}},"7441":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7442":{"varMapping":{"__isSmartRef__":true,"id":7443},"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":7444},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7443":{"this":{"__isSmartRef__":true,"id":1746}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7446":{"this":{"__isSmartRef__":true,"id":1746}},"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 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":7450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7449":{"this":{"__isSmartRef__":true,"id":1746}},"7450":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7451":{"varMapping":{"__isSmartRef__":true,"id":7452},"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":7453},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7452":{"this":{"__isSmartRef__":true,"id":1746}},"7453":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7454":{"varMapping":{"__isSmartRef__":true,"id":7455},"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":7456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7455":{"this":{"__isSmartRef__":true,"id":1746}},"7456":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7457":{"varMapping":{"__isSmartRef__":true,"id":7458},"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":7459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7458":{"this":{"__isSmartRef__":true,"id":1746}},"7459":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7460":{"varMapping":{"__isSmartRef__":true,"id":7461},"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":7462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7461":{"this":{"__isSmartRef__":true,"id":1746}},"7462":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7463":{"varMapping":{"__isSmartRef__":true,"id":7464},"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":7465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7464":{"this":{"__isSmartRef__":true,"id":1746}},"7465":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7466":{"addBomb":{"__isSmartRef__":true,"id":7467},"clearFlag":{"__isSmartRef__":true,"id":7470},"countNeighborBombs":{"__isSmartRef__":true,"id":7473},"fixSubmorph":{"__isSmartRef__":true,"id":7476},"initAppearance":{"__isSmartRef__":true,"id":7479},"initMorphs":{"__isSmartRef__":true,"id":7482},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7485},"isClosed":{"__isSmartRef__":true,"id":7488},"neighborPoints":{"__isSmartRef__":true,"id":7491},"onMouseDown":{"__isSmartRef__":true,"id":7494},"restoreGameAppearance":{"__isSmartRef__":true,"id":7501},"reveal":{"__isSmartRef__":true,"id":7504},"setCoordinates":{"__isSmartRef__":true,"id":7507},"showBomb":{"__isSmartRef__":true,"id":7510},"showDebugState":{"__isSmartRef__":true,"id":7513},"showFlag":{"__isSmartRef__":true,"id":7516},"showState":{"__isSmartRef__":true,"id":7519},"copyImageMorph":{"__isSmartRef__":true,"id":7522},"prepareToPublish":{"__isSmartRef__":true,"id":7525}},"7467":{"varMapping":{"__isSmartRef__":true,"id":7468},"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":7469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7468":{"this":{"__isSmartRef__":true,"id":1698}},"7469":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7470":{"varMapping":{"__isSmartRef__":true,"id":7471},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7471":{"this":{"__isSmartRef__":true,"id":1698}},"7472":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7473":{"varMapping":{"__isSmartRef__":true,"id":7474},"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":7475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7474":{"this":{"__isSmartRef__":true,"id":1698}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7477":{"this":{"__isSmartRef__":true,"id":1698}},"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 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":7481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7480":{"this":{"__isSmartRef__":true,"id":1698}},"7481":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7482":{"varMapping":{"__isSmartRef__":true,"id":7483},"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":7484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7483":{"this":{"__isSmartRef__":true,"id":1698}},"7484":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7485":{"varMapping":{"__isSmartRef__":true,"id":7486},"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":7487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7486":{"this":{"__isSmartRef__":true,"id":1698}},"7487":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7488":{"varMapping":{"__isSmartRef__":true,"id":7489},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7489":{"this":{"__isSmartRef__":true,"id":1698}},"7490":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7491":{"varMapping":{"__isSmartRef__":true,"id":7492},"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":7493},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7492":{"this":{"__isSmartRef__":true,"id":1698}},"7493":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7494":{"varMapping":{"__isSmartRef__":true,"id":7495},"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":7500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7495":{"this":{"__isSmartRef__":true,"id":1698},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7496}},"7496":{"$super":{"__isSmartRef__":true,"id":7497}},"7497":{"varMapping":{"__isSmartRef__":true,"id":7498},"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":7499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7498":{"obj":{"__isSmartRef__":true,"id":1698},"name":"onMouseDown"},"7499":{},"7500":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7501":{"varMapping":{"__isSmartRef__":true,"id":7502},"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":7503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7502":{"this":{"__isSmartRef__":true,"id":1698}},"7503":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7504":{"varMapping":{"__isSmartRef__":true,"id":7505},"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":7506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7505":{"this":{"__isSmartRef__":true,"id":1698}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7509},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7508":{"this":{"__isSmartRef__":true,"id":1698}},"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 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":7512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7511":{"this":{"__isSmartRef__":true,"id":1698}},"7512":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7513":{"varMapping":{"__isSmartRef__":true,"id":7514},"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":7515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7514":{"this":{"__isSmartRef__":true,"id":1698}},"7515":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7516":{"varMapping":{"__isSmartRef__":true,"id":7517},"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":7518},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7517":{"this":{"__isSmartRef__":true,"id":1698}},"7518":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7519":{"varMapping":{"__isSmartRef__":true,"id":7520},"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":7521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7520":{"this":{"__isSmartRef__":true,"id":1698}},"7521":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7522":{"varMapping":{"__isSmartRef__":true,"id":7523},"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":7524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7523":{"this":{"__isSmartRef__":true,"id":1698}},"7524":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7525":{"varMapping":{"__isSmartRef__":true,"id":7526},"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":7527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7526":{"this":{"__isSmartRef__":true,"id":1698}},"7527":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7528":{"addBomb":{"__isSmartRef__":true,"id":7529},"clearFlag":{"__isSmartRef__":true,"id":7532},"countNeighborBombs":{"__isSmartRef__":true,"id":7535},"fixSubmorph":{"__isSmartRef__":true,"id":7538},"initAppearance":{"__isSmartRef__":true,"id":7541},"initMorphs":{"__isSmartRef__":true,"id":7544},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7547},"isClosed":{"__isSmartRef__":true,"id":7550},"neighborPoints":{"__isSmartRef__":true,"id":7553},"onMouseDown":{"__isSmartRef__":true,"id":7556},"restoreGameAppearance":{"__isSmartRef__":true,"id":7563},"reveal":{"__isSmartRef__":true,"id":7566},"setCoordinates":{"__isSmartRef__":true,"id":7569},"showBomb":{"__isSmartRef__":true,"id":7572},"showDebugState":{"__isSmartRef__":true,"id":7575},"showFlag":{"__isSmartRef__":true,"id":7578},"showState":{"__isSmartRef__":true,"id":7581},"copyImageMorph":{"__isSmartRef__":true,"id":7584},"prepareToPublish":{"__isSmartRef__":true,"id":7587}},"7529":{"varMapping":{"__isSmartRef__":true,"id":7530},"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":7531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7530":{"this":{"__isSmartRef__":true,"id":1650}},"7531":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7532":{"varMapping":{"__isSmartRef__":true,"id":7533},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7533":{"this":{"__isSmartRef__":true,"id":1650}},"7534":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7535":{"varMapping":{"__isSmartRef__":true,"id":7536},"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":7537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7536":{"this":{"__isSmartRef__":true,"id":1650}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7539":{"this":{"__isSmartRef__":true,"id":1650}},"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 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":7543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7542":{"this":{"__isSmartRef__":true,"id":1650}},"7543":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7544":{"varMapping":{"__isSmartRef__":true,"id":7545},"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":7546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7545":{"this":{"__isSmartRef__":true,"id":1650}},"7546":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7547":{"varMapping":{"__isSmartRef__":true,"id":7548},"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":7549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7548":{"this":{"__isSmartRef__":true,"id":1650}},"7549":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7550":{"varMapping":{"__isSmartRef__":true,"id":7551},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7551":{"this":{"__isSmartRef__":true,"id":1650}},"7552":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7553":{"varMapping":{"__isSmartRef__":true,"id":7554},"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":7555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7554":{"this":{"__isSmartRef__":true,"id":1650}},"7555":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7556":{"varMapping":{"__isSmartRef__":true,"id":7557},"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":7562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7557":{"this":{"__isSmartRef__":true,"id":1650},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7558}},"7558":{"$super":{"__isSmartRef__":true,"id":7559}},"7559":{"varMapping":{"__isSmartRef__":true,"id":7560},"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":7561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7560":{"obj":{"__isSmartRef__":true,"id":1650},"name":"onMouseDown"},"7561":{},"7562":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7563":{"varMapping":{"__isSmartRef__":true,"id":7564},"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":7565},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7564":{"this":{"__isSmartRef__":true,"id":1650}},"7565":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7566":{"varMapping":{"__isSmartRef__":true,"id":7567},"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":7568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7567":{"this":{"__isSmartRef__":true,"id":1650}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7570":{"this":{"__isSmartRef__":true,"id":1650}},"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 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":7574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7573":{"this":{"__isSmartRef__":true,"id":1650}},"7574":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7575":{"varMapping":{"__isSmartRef__":true,"id":7576},"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":7577},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7576":{"this":{"__isSmartRef__":true,"id":1650}},"7577":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7578":{"varMapping":{"__isSmartRef__":true,"id":7579},"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":7580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7579":{"this":{"__isSmartRef__":true,"id":1650}},"7580":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7581":{"varMapping":{"__isSmartRef__":true,"id":7582},"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":7583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7582":{"this":{"__isSmartRef__":true,"id":1650}},"7583":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7584":{"varMapping":{"__isSmartRef__":true,"id":7585},"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":7586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7585":{"this":{"__isSmartRef__":true,"id":1650}},"7586":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7587":{"varMapping":{"__isSmartRef__":true,"id":7588},"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":7589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7588":{"this":{"__isSmartRef__":true,"id":1650}},"7589":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7590":{"addBomb":{"__isSmartRef__":true,"id":7591},"clearFlag":{"__isSmartRef__":true,"id":7594},"countNeighborBombs":{"__isSmartRef__":true,"id":7597},"fixSubmorph":{"__isSmartRef__":true,"id":7600},"initAppearance":{"__isSmartRef__":true,"id":7603},"initMorphs":{"__isSmartRef__":true,"id":7606},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7609},"isClosed":{"__isSmartRef__":true,"id":7612},"neighborPoints":{"__isSmartRef__":true,"id":7615},"onMouseDown":{"__isSmartRef__":true,"id":7618},"restoreGameAppearance":{"__isSmartRef__":true,"id":7625},"reveal":{"__isSmartRef__":true,"id":7628},"setCoordinates":{"__isSmartRef__":true,"id":7631},"showBomb":{"__isSmartRef__":true,"id":7634},"showDebugState":{"__isSmartRef__":true,"id":7637},"showFlag":{"__isSmartRef__":true,"id":7640},"showState":{"__isSmartRef__":true,"id":7643},"copyImageMorph":{"__isSmartRef__":true,"id":7646},"prepareToPublish":{"__isSmartRef__":true,"id":7649}},"7591":{"varMapping":{"__isSmartRef__":true,"id":7592},"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":7593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7592":{"this":{"__isSmartRef__":true,"id":1602}},"7593":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7594":{"varMapping":{"__isSmartRef__":true,"id":7595},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7595":{"this":{"__isSmartRef__":true,"id":1602}},"7596":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7597":{"varMapping":{"__isSmartRef__":true,"id":7598},"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":7599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7598":{"this":{"__isSmartRef__":true,"id":1602}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7601":{"this":{"__isSmartRef__":true,"id":1602}},"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 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":7605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7604":{"this":{"__isSmartRef__":true,"id":1602}},"7605":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7606":{"varMapping":{"__isSmartRef__":true,"id":7607},"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":7608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7607":{"this":{"__isSmartRef__":true,"id":1602}},"7608":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7609":{"varMapping":{"__isSmartRef__":true,"id":7610},"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":7611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7610":{"this":{"__isSmartRef__":true,"id":1602}},"7611":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7612":{"varMapping":{"__isSmartRef__":true,"id":7613},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7613":{"this":{"__isSmartRef__":true,"id":1602}},"7614":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7615":{"varMapping":{"__isSmartRef__":true,"id":7616},"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":7617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7616":{"this":{"__isSmartRef__":true,"id":1602}},"7617":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7618":{"varMapping":{"__isSmartRef__":true,"id":7619},"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":7624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7619":{"this":{"__isSmartRef__":true,"id":1602},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7620}},"7620":{"$super":{"__isSmartRef__":true,"id":7621}},"7621":{"varMapping":{"__isSmartRef__":true,"id":7622},"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":7623},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7622":{"obj":{"__isSmartRef__":true,"id":1602},"name":"onMouseDown"},"7623":{},"7624":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7625":{"varMapping":{"__isSmartRef__":true,"id":7626},"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":7627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7626":{"this":{"__isSmartRef__":true,"id":1602}},"7627":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7628":{"varMapping":{"__isSmartRef__":true,"id":7629},"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":7630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7629":{"this":{"__isSmartRef__":true,"id":1602}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7632":{"this":{"__isSmartRef__":true,"id":1602}},"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 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":7636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7635":{"this":{"__isSmartRef__":true,"id":1602}},"7636":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7637":{"varMapping":{"__isSmartRef__":true,"id":7638},"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":7639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7638":{"this":{"__isSmartRef__":true,"id":1602}},"7639":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7640":{"varMapping":{"__isSmartRef__":true,"id":7641},"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":7642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7641":{"this":{"__isSmartRef__":true,"id":1602}},"7642":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7643":{"varMapping":{"__isSmartRef__":true,"id":7644},"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":7645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7644":{"this":{"__isSmartRef__":true,"id":1602}},"7645":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7646":{"varMapping":{"__isSmartRef__":true,"id":7647},"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":7648},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7647":{"this":{"__isSmartRef__":true,"id":1602}},"7648":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7649":{"varMapping":{"__isSmartRef__":true,"id":7650},"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":7651},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7650":{"this":{"__isSmartRef__":true,"id":1602}},"7651":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7652":{"addBomb":{"__isSmartRef__":true,"id":7653},"clearFlag":{"__isSmartRef__":true,"id":7656},"countNeighborBombs":{"__isSmartRef__":true,"id":7659},"fixSubmorph":{"__isSmartRef__":true,"id":7662},"initAppearance":{"__isSmartRef__":true,"id":7665},"initMorphs":{"__isSmartRef__":true,"id":7668},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7671},"isClosed":{"__isSmartRef__":true,"id":7674},"neighborPoints":{"__isSmartRef__":true,"id":7677},"onMouseDown":{"__isSmartRef__":true,"id":7680},"restoreGameAppearance":{"__isSmartRef__":true,"id":7687},"reveal":{"__isSmartRef__":true,"id":7690},"setCoordinates":{"__isSmartRef__":true,"id":7693},"showBomb":{"__isSmartRef__":true,"id":7696},"showDebugState":{"__isSmartRef__":true,"id":7699},"showFlag":{"__isSmartRef__":true,"id":7702},"showState":{"__isSmartRef__":true,"id":7705},"copyImageMorph":{"__isSmartRef__":true,"id":7708},"prepareToPublish":{"__isSmartRef__":true,"id":7711}},"7653":{"varMapping":{"__isSmartRef__":true,"id":7654},"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":7655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7654":{"this":{"__isSmartRef__":true,"id":1554}},"7655":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7656":{"varMapping":{"__isSmartRef__":true,"id":7657},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7657":{"this":{"__isSmartRef__":true,"id":1554}},"7658":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7659":{"varMapping":{"__isSmartRef__":true,"id":7660},"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":7661},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7660":{"this":{"__isSmartRef__":true,"id":1554}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7663":{"this":{"__isSmartRef__":true,"id":1554}},"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 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":7667},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7666":{"this":{"__isSmartRef__":true,"id":1554}},"7667":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7668":{"varMapping":{"__isSmartRef__":true,"id":7669},"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":7670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7669":{"this":{"__isSmartRef__":true,"id":1554}},"7670":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7671":{"varMapping":{"__isSmartRef__":true,"id":7672},"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":7673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7672":{"this":{"__isSmartRef__":true,"id":1554}},"7673":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7674":{"varMapping":{"__isSmartRef__":true,"id":7675},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7675":{"this":{"__isSmartRef__":true,"id":1554}},"7676":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7677":{"varMapping":{"__isSmartRef__":true,"id":7678},"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":7679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7678":{"this":{"__isSmartRef__":true,"id":1554}},"7679":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7680":{"varMapping":{"__isSmartRef__":true,"id":7681},"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":7686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7681":{"this":{"__isSmartRef__":true,"id":1554},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7682}},"7682":{"$super":{"__isSmartRef__":true,"id":7683}},"7683":{"varMapping":{"__isSmartRef__":true,"id":7684},"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":7685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7684":{"obj":{"__isSmartRef__":true,"id":1554},"name":"onMouseDown"},"7685":{},"7686":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7687":{"varMapping":{"__isSmartRef__":true,"id":7688},"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":7689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7688":{"this":{"__isSmartRef__":true,"id":1554}},"7689":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7690":{"varMapping":{"__isSmartRef__":true,"id":7691},"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":7692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7691":{"this":{"__isSmartRef__":true,"id":1554}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7694":{"this":{"__isSmartRef__":true,"id":1554}},"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 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":7698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7697":{"this":{"__isSmartRef__":true,"id":1554}},"7698":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7699":{"varMapping":{"__isSmartRef__":true,"id":7700},"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":7701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7700":{"this":{"__isSmartRef__":true,"id":1554}},"7701":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7702":{"varMapping":{"__isSmartRef__":true,"id":7703},"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":7704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7703":{"this":{"__isSmartRef__":true,"id":1554}},"7704":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7705":{"varMapping":{"__isSmartRef__":true,"id":7706},"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":7707},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7706":{"this":{"__isSmartRef__":true,"id":1554}},"7707":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7708":{"varMapping":{"__isSmartRef__":true,"id":7709},"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":7710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7709":{"this":{"__isSmartRef__":true,"id":1554}},"7710":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7711":{"varMapping":{"__isSmartRef__":true,"id":7712},"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":7713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7712":{"this":{"__isSmartRef__":true,"id":1554}},"7713":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7714":{"addBomb":{"__isSmartRef__":true,"id":7715},"clearFlag":{"__isSmartRef__":true,"id":7718},"countNeighborBombs":{"__isSmartRef__":true,"id":7721},"fixSubmorph":{"__isSmartRef__":true,"id":7724},"initAppearance":{"__isSmartRef__":true,"id":7727},"initMorphs":{"__isSmartRef__":true,"id":7730},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7733},"isClosed":{"__isSmartRef__":true,"id":7736},"neighborPoints":{"__isSmartRef__":true,"id":7739},"onMouseDown":{"__isSmartRef__":true,"id":7742},"restoreGameAppearance":{"__isSmartRef__":true,"id":7749},"reveal":{"__isSmartRef__":true,"id":7752},"setCoordinates":{"__isSmartRef__":true,"id":7755},"showBomb":{"__isSmartRef__":true,"id":7758},"showDebugState":{"__isSmartRef__":true,"id":7761},"showFlag":{"__isSmartRef__":true,"id":7764},"showState":{"__isSmartRef__":true,"id":7767},"copyImageMorph":{"__isSmartRef__":true,"id":7770},"prepareToPublish":{"__isSmartRef__":true,"id":7773}},"7715":{"varMapping":{"__isSmartRef__":true,"id":7716},"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":7717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7716":{"this":{"__isSmartRef__":true,"id":1506}},"7717":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7718":{"varMapping":{"__isSmartRef__":true,"id":7719},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7719":{"this":{"__isSmartRef__":true,"id":1506}},"7720":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7721":{"varMapping":{"__isSmartRef__":true,"id":7722},"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":7723},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7722":{"this":{"__isSmartRef__":true,"id":1506}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7725":{"this":{"__isSmartRef__":true,"id":1506}},"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 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":7729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7728":{"this":{"__isSmartRef__":true,"id":1506}},"7729":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7730":{"varMapping":{"__isSmartRef__":true,"id":7731},"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":7732},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7731":{"this":{"__isSmartRef__":true,"id":1506}},"7732":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7733":{"varMapping":{"__isSmartRef__":true,"id":7734},"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":7735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7734":{"this":{"__isSmartRef__":true,"id":1506}},"7735":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7736":{"varMapping":{"__isSmartRef__":true,"id":7737},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7737":{"this":{"__isSmartRef__":true,"id":1506}},"7738":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7739":{"varMapping":{"__isSmartRef__":true,"id":7740},"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":7741},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7740":{"this":{"__isSmartRef__":true,"id":1506}},"7741":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7742":{"varMapping":{"__isSmartRef__":true,"id":7743},"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":7748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7743":{"this":{"__isSmartRef__":true,"id":1506},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7744}},"7744":{"$super":{"__isSmartRef__":true,"id":7745}},"7745":{"varMapping":{"__isSmartRef__":true,"id":7746},"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":7747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7746":{"obj":{"__isSmartRef__":true,"id":1506},"name":"onMouseDown"},"7747":{},"7748":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7749":{"varMapping":{"__isSmartRef__":true,"id":7750},"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":7751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7750":{"this":{"__isSmartRef__":true,"id":1506}},"7751":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7752":{"varMapping":{"__isSmartRef__":true,"id":7753},"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":7754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7753":{"this":{"__isSmartRef__":true,"id":1506}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7756":{"this":{"__isSmartRef__":true,"id":1506}},"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 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":7760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7759":{"this":{"__isSmartRef__":true,"id":1506}},"7760":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7761":{"varMapping":{"__isSmartRef__":true,"id":7762},"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":7763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7762":{"this":{"__isSmartRef__":true,"id":1506}},"7763":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7764":{"varMapping":{"__isSmartRef__":true,"id":7765},"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":7766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7765":{"this":{"__isSmartRef__":true,"id":1506}},"7766":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7767":{"varMapping":{"__isSmartRef__":true,"id":7768},"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":7769},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7768":{"this":{"__isSmartRef__":true,"id":1506}},"7769":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7770":{"varMapping":{"__isSmartRef__":true,"id":7771},"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":7772},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7771":{"this":{"__isSmartRef__":true,"id":1506}},"7772":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7773":{"varMapping":{"__isSmartRef__":true,"id":7774},"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":7775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7774":{"this":{"__isSmartRef__":true,"id":1506}},"7775":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7776":{"addBomb":{"__isSmartRef__":true,"id":7777},"clearFlag":{"__isSmartRef__":true,"id":7780},"countNeighborBombs":{"__isSmartRef__":true,"id":7783},"fixSubmorph":{"__isSmartRef__":true,"id":7786},"initAppearance":{"__isSmartRef__":true,"id":7789},"initMorphs":{"__isSmartRef__":true,"id":7792},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7795},"isClosed":{"__isSmartRef__":true,"id":7798},"neighborPoints":{"__isSmartRef__":true,"id":7801},"onMouseDown":{"__isSmartRef__":true,"id":7804},"restoreGameAppearance":{"__isSmartRef__":true,"id":7811},"reveal":{"__isSmartRef__":true,"id":7814},"setCoordinates":{"__isSmartRef__":true,"id":7817},"showBomb":{"__isSmartRef__":true,"id":7820},"showDebugState":{"__isSmartRef__":true,"id":7823},"showFlag":{"__isSmartRef__":true,"id":7826},"showState":{"__isSmartRef__":true,"id":7829},"copyImageMorph":{"__isSmartRef__":true,"id":7832},"prepareToPublish":{"__isSmartRef__":true,"id":7835}},"7777":{"varMapping":{"__isSmartRef__":true,"id":7778},"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":7779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7778":{"this":{"__isSmartRef__":true,"id":1458}},"7779":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7780":{"varMapping":{"__isSmartRef__":true,"id":7781},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7781":{"this":{"__isSmartRef__":true,"id":1458}},"7782":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7783":{"varMapping":{"__isSmartRef__":true,"id":7784},"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":7785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7784":{"this":{"__isSmartRef__":true,"id":1458}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7787":{"this":{"__isSmartRef__":true,"id":1458}},"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 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":7791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7790":{"this":{"__isSmartRef__":true,"id":1458}},"7791":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7792":{"varMapping":{"__isSmartRef__":true,"id":7793},"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":7794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7793":{"this":{"__isSmartRef__":true,"id":1458}},"7794":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7795":{"varMapping":{"__isSmartRef__":true,"id":7796},"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":7797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7796":{"this":{"__isSmartRef__":true,"id":1458}},"7797":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7798":{"varMapping":{"__isSmartRef__":true,"id":7799},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7799":{"this":{"__isSmartRef__":true,"id":1458}},"7800":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7801":{"varMapping":{"__isSmartRef__":true,"id":7802},"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":7803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7802":{"this":{"__isSmartRef__":true,"id":1458}},"7803":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7804":{"varMapping":{"__isSmartRef__":true,"id":7805},"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":7810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7805":{"this":{"__isSmartRef__":true,"id":1458},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7806}},"7806":{"$super":{"__isSmartRef__":true,"id":7807}},"7807":{"varMapping":{"__isSmartRef__":true,"id":7808},"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":7809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7808":{"obj":{"__isSmartRef__":true,"id":1458},"name":"onMouseDown"},"7809":{},"7810":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7811":{"varMapping":{"__isSmartRef__":true,"id":7812},"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":7813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7812":{"this":{"__isSmartRef__":true,"id":1458}},"7813":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7814":{"varMapping":{"__isSmartRef__":true,"id":7815},"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":7816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7815":{"this":{"__isSmartRef__":true,"id":1458}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7819},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7818":{"this":{"__isSmartRef__":true,"id":1458}},"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 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":7822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7821":{"this":{"__isSmartRef__":true,"id":1458}},"7822":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7823":{"varMapping":{"__isSmartRef__":true,"id":7824},"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":7825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7824":{"this":{"__isSmartRef__":true,"id":1458}},"7825":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7826":{"varMapping":{"__isSmartRef__":true,"id":7827},"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":7828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7827":{"this":{"__isSmartRef__":true,"id":1458}},"7828":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7829":{"varMapping":{"__isSmartRef__":true,"id":7830},"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":7831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7830":{"this":{"__isSmartRef__":true,"id":1458}},"7831":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7832":{"varMapping":{"__isSmartRef__":true,"id":7833},"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":7834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7833":{"this":{"__isSmartRef__":true,"id":1458}},"7834":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7835":{"varMapping":{"__isSmartRef__":true,"id":7836},"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":7837},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7836":{"this":{"__isSmartRef__":true,"id":1458}},"7837":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7838":{"addBomb":{"__isSmartRef__":true,"id":7839},"clearFlag":{"__isSmartRef__":true,"id":7842},"countNeighborBombs":{"__isSmartRef__":true,"id":7845},"fixSubmorph":{"__isSmartRef__":true,"id":7848},"initAppearance":{"__isSmartRef__":true,"id":7851},"initMorphs":{"__isSmartRef__":true,"id":7854},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7857},"isClosed":{"__isSmartRef__":true,"id":7860},"neighborPoints":{"__isSmartRef__":true,"id":7863},"onMouseDown":{"__isSmartRef__":true,"id":7866},"restoreGameAppearance":{"__isSmartRef__":true,"id":7873},"reveal":{"__isSmartRef__":true,"id":7876},"setCoordinates":{"__isSmartRef__":true,"id":7879},"showBomb":{"__isSmartRef__":true,"id":7882},"showDebugState":{"__isSmartRef__":true,"id":7885},"showFlag":{"__isSmartRef__":true,"id":7888},"showState":{"__isSmartRef__":true,"id":7891},"copyImageMorph":{"__isSmartRef__":true,"id":7894},"prepareToPublish":{"__isSmartRef__":true,"id":7897}},"7839":{"varMapping":{"__isSmartRef__":true,"id":7840},"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":7841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7840":{"this":{"__isSmartRef__":true,"id":1410}},"7841":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7842":{"varMapping":{"__isSmartRef__":true,"id":7843},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7843":{"this":{"__isSmartRef__":true,"id":1410}},"7844":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7845":{"varMapping":{"__isSmartRef__":true,"id":7846},"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":7847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7846":{"this":{"__isSmartRef__":true,"id":1410}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7849":{"this":{"__isSmartRef__":true,"id":1410}},"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 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":7853},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7852":{"this":{"__isSmartRef__":true,"id":1410}},"7853":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7854":{"varMapping":{"__isSmartRef__":true,"id":7855},"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":7856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7855":{"this":{"__isSmartRef__":true,"id":1410}},"7856":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7857":{"varMapping":{"__isSmartRef__":true,"id":7858},"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":7859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7858":{"this":{"__isSmartRef__":true,"id":1410}},"7859":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7860":{"varMapping":{"__isSmartRef__":true,"id":7861},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7861":{"this":{"__isSmartRef__":true,"id":1410}},"7862":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7863":{"varMapping":{"__isSmartRef__":true,"id":7864},"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":7865},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7864":{"this":{"__isSmartRef__":true,"id":1410}},"7865":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7866":{"varMapping":{"__isSmartRef__":true,"id":7867},"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":7872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7867":{"this":{"__isSmartRef__":true,"id":1410},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7868}},"7868":{"$super":{"__isSmartRef__":true,"id":7869}},"7869":{"varMapping":{"__isSmartRef__":true,"id":7870},"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":7871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7870":{"obj":{"__isSmartRef__":true,"id":1410},"name":"onMouseDown"},"7871":{},"7872":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7873":{"varMapping":{"__isSmartRef__":true,"id":7874},"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":7875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7874":{"this":{"__isSmartRef__":true,"id":1410}},"7875":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7876":{"varMapping":{"__isSmartRef__":true,"id":7877},"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":7878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7877":{"this":{"__isSmartRef__":true,"id":1410}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7881},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7880":{"this":{"__isSmartRef__":true,"id":1410}},"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 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":7884},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7883":{"this":{"__isSmartRef__":true,"id":1410}},"7884":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7885":{"varMapping":{"__isSmartRef__":true,"id":7886},"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":7887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7886":{"this":{"__isSmartRef__":true,"id":1410}},"7887":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7888":{"varMapping":{"__isSmartRef__":true,"id":7889},"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":7890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7889":{"this":{"__isSmartRef__":true,"id":1410}},"7890":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7891":{"varMapping":{"__isSmartRef__":true,"id":7892},"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":7893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7892":{"this":{"__isSmartRef__":true,"id":1410}},"7893":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7894":{"varMapping":{"__isSmartRef__":true,"id":7895},"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":7896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7895":{"this":{"__isSmartRef__":true,"id":1410}},"7896":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7897":{"varMapping":{"__isSmartRef__":true,"id":7898},"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":7899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7898":{"this":{"__isSmartRef__":true,"id":1410}},"7899":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7900":{"addBomb":{"__isSmartRef__":true,"id":7901},"clearFlag":{"__isSmartRef__":true,"id":7904},"countNeighborBombs":{"__isSmartRef__":true,"id":7907},"fixSubmorph":{"__isSmartRef__":true,"id":7910},"initAppearance":{"__isSmartRef__":true,"id":7913},"initMorphs":{"__isSmartRef__":true,"id":7916},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7919},"isClosed":{"__isSmartRef__":true,"id":7922},"neighborPoints":{"__isSmartRef__":true,"id":7925},"onMouseDown":{"__isSmartRef__":true,"id":7928},"restoreGameAppearance":{"__isSmartRef__":true,"id":7935},"reveal":{"__isSmartRef__":true,"id":7938},"setCoordinates":{"__isSmartRef__":true,"id":7941},"showBomb":{"__isSmartRef__":true,"id":7944},"showDebugState":{"__isSmartRef__":true,"id":7947},"showFlag":{"__isSmartRef__":true,"id":7950},"showState":{"__isSmartRef__":true,"id":7953},"copyImageMorph":{"__isSmartRef__":true,"id":7956},"prepareToPublish":{"__isSmartRef__":true,"id":7959}},"7901":{"varMapping":{"__isSmartRef__":true,"id":7902},"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":7903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7902":{"this":{"__isSmartRef__":true,"id":1362}},"7903":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7904":{"varMapping":{"__isSmartRef__":true,"id":7905},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7905":{"this":{"__isSmartRef__":true,"id":1362}},"7906":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7907":{"varMapping":{"__isSmartRef__":true,"id":7908},"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":7909},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7908":{"this":{"__isSmartRef__":true,"id":1362}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7911":{"this":{"__isSmartRef__":true,"id":1362}},"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 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":7915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7914":{"this":{"__isSmartRef__":true,"id":1362}},"7915":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7916":{"varMapping":{"__isSmartRef__":true,"id":7917},"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":7918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7917":{"this":{"__isSmartRef__":true,"id":1362}},"7918":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7919":{"varMapping":{"__isSmartRef__":true,"id":7920},"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":7921},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7920":{"this":{"__isSmartRef__":true,"id":1362}},"7921":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7922":{"varMapping":{"__isSmartRef__":true,"id":7923},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7923":{"this":{"__isSmartRef__":true,"id":1362}},"7924":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7925":{"varMapping":{"__isSmartRef__":true,"id":7926},"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":7927},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7926":{"this":{"__isSmartRef__":true,"id":1362}},"7927":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7928":{"varMapping":{"__isSmartRef__":true,"id":7929},"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":7934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7929":{"this":{"__isSmartRef__":true,"id":1362},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7930}},"7930":{"$super":{"__isSmartRef__":true,"id":7931}},"7931":{"varMapping":{"__isSmartRef__":true,"id":7932},"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":7933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7932":{"obj":{"__isSmartRef__":true,"id":1362},"name":"onMouseDown"},"7933":{},"7934":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7935":{"varMapping":{"__isSmartRef__":true,"id":7936},"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":7937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7936":{"this":{"__isSmartRef__":true,"id":1362}},"7937":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"7938":{"varMapping":{"__isSmartRef__":true,"id":7939},"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":7940},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7939":{"this":{"__isSmartRef__":true,"id":1362}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":7943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7942":{"this":{"__isSmartRef__":true,"id":1362}},"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 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":7946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7945":{"this":{"__isSmartRef__":true,"id":1362}},"7946":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"7947":{"varMapping":{"__isSmartRef__":true,"id":7948},"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":7949},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7948":{"this":{"__isSmartRef__":true,"id":1362}},"7949":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"7950":{"varMapping":{"__isSmartRef__":true,"id":7951},"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":7952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7951":{"this":{"__isSmartRef__":true,"id":1362}},"7952":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"7953":{"varMapping":{"__isSmartRef__":true,"id":7954},"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":7955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7954":{"this":{"__isSmartRef__":true,"id":1362}},"7955":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"7956":{"varMapping":{"__isSmartRef__":true,"id":7957},"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":7958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7957":{"this":{"__isSmartRef__":true,"id":1362}},"7958":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"7959":{"varMapping":{"__isSmartRef__":true,"id":7960},"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":7961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7960":{"this":{"__isSmartRef__":true,"id":1362}},"7961":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"7962":{"addBomb":{"__isSmartRef__":true,"id":7963},"clearFlag":{"__isSmartRef__":true,"id":7966},"countNeighborBombs":{"__isSmartRef__":true,"id":7969},"fixSubmorph":{"__isSmartRef__":true,"id":7972},"initAppearance":{"__isSmartRef__":true,"id":7975},"initMorphs":{"__isSmartRef__":true,"id":7978},"initNeighborsAndCount":{"__isSmartRef__":true,"id":7981},"isClosed":{"__isSmartRef__":true,"id":7984},"neighborPoints":{"__isSmartRef__":true,"id":7987},"onMouseDown":{"__isSmartRef__":true,"id":7990},"restoreGameAppearance":{"__isSmartRef__":true,"id":7997},"reveal":{"__isSmartRef__":true,"id":8000},"setCoordinates":{"__isSmartRef__":true,"id":8003},"showBomb":{"__isSmartRef__":true,"id":8006},"showDebugState":{"__isSmartRef__":true,"id":8009},"showFlag":{"__isSmartRef__":true,"id":8012},"showState":{"__isSmartRef__":true,"id":8015},"copyImageMorph":{"__isSmartRef__":true,"id":8018},"prepareToPublish":{"__isSmartRef__":true,"id":8021}},"7963":{"varMapping":{"__isSmartRef__":true,"id":7964},"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":7965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7964":{"this":{"__isSmartRef__":true,"id":1314}},"7965":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"7966":{"varMapping":{"__isSmartRef__":true,"id":7967},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":7968},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7967":{"this":{"__isSmartRef__":true,"id":1314}},"7968":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"7969":{"varMapping":{"__isSmartRef__":true,"id":7970},"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":7971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7970":{"this":{"__isSmartRef__":true,"id":1314}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":7974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7973":{"this":{"__isSmartRef__":true,"id":1314}},"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 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":7977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7976":{"this":{"__isSmartRef__":true,"id":1314}},"7977":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"7978":{"varMapping":{"__isSmartRef__":true,"id":7979},"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":7980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7979":{"this":{"__isSmartRef__":true,"id":1314}},"7980":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"7981":{"varMapping":{"__isSmartRef__":true,"id":7982},"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":7983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7982":{"this":{"__isSmartRef__":true,"id":1314}},"7983":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7984":{"varMapping":{"__isSmartRef__":true,"id":7985},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":7986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7985":{"this":{"__isSmartRef__":true,"id":1314}},"7986":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7987":{"varMapping":{"__isSmartRef__":true,"id":7988},"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":7989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7988":{"this":{"__isSmartRef__":true,"id":1314}},"7989":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"7990":{"varMapping":{"__isSmartRef__":true,"id":7991},"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":7996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7991":{"this":{"__isSmartRef__":true,"id":1314},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7992}},"7992":{"$super":{"__isSmartRef__":true,"id":7993}},"7993":{"varMapping":{"__isSmartRef__":true,"id":7994},"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":7995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7994":{"obj":{"__isSmartRef__":true,"id":1314},"name":"onMouseDown"},"7995":{},"7996":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"7997":{"varMapping":{"__isSmartRef__":true,"id":7998},"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":7999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7998":{"this":{"__isSmartRef__":true,"id":1314}},"7999":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8000":{"varMapping":{"__isSmartRef__":true,"id":8001},"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":8002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8001":{"this":{"__isSmartRef__":true,"id":1314}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8004":{"this":{"__isSmartRef__":true,"id":1314}},"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 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":8008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8007":{"this":{"__isSmartRef__":true,"id":1314}},"8008":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8009":{"varMapping":{"__isSmartRef__":true,"id":8010},"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":8011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8010":{"this":{"__isSmartRef__":true,"id":1314}},"8011":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8012":{"varMapping":{"__isSmartRef__":true,"id":8013},"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":8014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8013":{"this":{"__isSmartRef__":true,"id":1314}},"8014":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8015":{"varMapping":{"__isSmartRef__":true,"id":8016},"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":8017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8016":{"this":{"__isSmartRef__":true,"id":1314}},"8017":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8018":{"varMapping":{"__isSmartRef__":true,"id":8019},"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":8020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8019":{"this":{"__isSmartRef__":true,"id":1314}},"8020":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8021":{"varMapping":{"__isSmartRef__":true,"id":8022},"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":8023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8022":{"this":{"__isSmartRef__":true,"id":1314}},"8023":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8024":{"addBomb":{"__isSmartRef__":true,"id":8025},"clearFlag":{"__isSmartRef__":true,"id":8028},"countNeighborBombs":{"__isSmartRef__":true,"id":8031},"fixSubmorph":{"__isSmartRef__":true,"id":8034},"initAppearance":{"__isSmartRef__":true,"id":8037},"initMorphs":{"__isSmartRef__":true,"id":8040},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8043},"isClosed":{"__isSmartRef__":true,"id":8046},"neighborPoints":{"__isSmartRef__":true,"id":8049},"onMouseDown":{"__isSmartRef__":true,"id":8052},"restoreGameAppearance":{"__isSmartRef__":true,"id":8059},"reveal":{"__isSmartRef__":true,"id":8062},"setCoordinates":{"__isSmartRef__":true,"id":8065},"showBomb":{"__isSmartRef__":true,"id":8068},"showDebugState":{"__isSmartRef__":true,"id":8071},"showFlag":{"__isSmartRef__":true,"id":8074},"showState":{"__isSmartRef__":true,"id":8077},"copyImageMorph":{"__isSmartRef__":true,"id":8080},"prepareToPublish":{"__isSmartRef__":true,"id":8083}},"8025":{"varMapping":{"__isSmartRef__":true,"id":8026},"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":8027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8026":{"this":{"__isSmartRef__":true,"id":1266}},"8027":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8028":{"varMapping":{"__isSmartRef__":true,"id":8029},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8029":{"this":{"__isSmartRef__":true,"id":1266}},"8030":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8031":{"varMapping":{"__isSmartRef__":true,"id":8032},"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":8033},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8032":{"this":{"__isSmartRef__":true,"id":1266}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8035":{"this":{"__isSmartRef__":true,"id":1266}},"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 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":8039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8038":{"this":{"__isSmartRef__":true,"id":1266}},"8039":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8040":{"varMapping":{"__isSmartRef__":true,"id":8041},"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":8042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8041":{"this":{"__isSmartRef__":true,"id":1266}},"8042":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8043":{"varMapping":{"__isSmartRef__":true,"id":8044},"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":8045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8044":{"this":{"__isSmartRef__":true,"id":1266}},"8045":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8046":{"varMapping":{"__isSmartRef__":true,"id":8047},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8047":{"this":{"__isSmartRef__":true,"id":1266}},"8048":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8049":{"varMapping":{"__isSmartRef__":true,"id":8050},"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":8051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8050":{"this":{"__isSmartRef__":true,"id":1266}},"8051":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8052":{"varMapping":{"__isSmartRef__":true,"id":8053},"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":8058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8053":{"this":{"__isSmartRef__":true,"id":1266},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8054}},"8054":{"$super":{"__isSmartRef__":true,"id":8055}},"8055":{"varMapping":{"__isSmartRef__":true,"id":8056},"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":8057},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8056":{"obj":{"__isSmartRef__":true,"id":1266},"name":"onMouseDown"},"8057":{},"8058":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8059":{"varMapping":{"__isSmartRef__":true,"id":8060},"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":8061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8060":{"this":{"__isSmartRef__":true,"id":1266}},"8061":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8062":{"varMapping":{"__isSmartRef__":true,"id":8063},"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":8064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8063":{"this":{"__isSmartRef__":true,"id":1266}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8066":{"this":{"__isSmartRef__":true,"id":1266}},"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 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":8070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8069":{"this":{"__isSmartRef__":true,"id":1266}},"8070":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8071":{"varMapping":{"__isSmartRef__":true,"id":8072},"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":8073},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8072":{"this":{"__isSmartRef__":true,"id":1266}},"8073":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8074":{"varMapping":{"__isSmartRef__":true,"id":8075},"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":8076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8075":{"this":{"__isSmartRef__":true,"id":1266}},"8076":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8077":{"varMapping":{"__isSmartRef__":true,"id":8078},"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":8079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8078":{"this":{"__isSmartRef__":true,"id":1266}},"8079":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8080":{"varMapping":{"__isSmartRef__":true,"id":8081},"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":8082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8081":{"this":{"__isSmartRef__":true,"id":1266}},"8082":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8083":{"varMapping":{"__isSmartRef__":true,"id":8084},"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":8085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8084":{"this":{"__isSmartRef__":true,"id":1266}},"8085":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8086":{"addBomb":{"__isSmartRef__":true,"id":8087},"clearFlag":{"__isSmartRef__":true,"id":8090},"countNeighborBombs":{"__isSmartRef__":true,"id":8093},"fixSubmorph":{"__isSmartRef__":true,"id":8096},"initAppearance":{"__isSmartRef__":true,"id":8099},"initMorphs":{"__isSmartRef__":true,"id":8102},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8105},"isClosed":{"__isSmartRef__":true,"id":8108},"neighborPoints":{"__isSmartRef__":true,"id":8111},"onMouseDown":{"__isSmartRef__":true,"id":8114},"restoreGameAppearance":{"__isSmartRef__":true,"id":8121},"reveal":{"__isSmartRef__":true,"id":8124},"setCoordinates":{"__isSmartRef__":true,"id":8127},"showBomb":{"__isSmartRef__":true,"id":8130},"showDebugState":{"__isSmartRef__":true,"id":8133},"showFlag":{"__isSmartRef__":true,"id":8136},"showState":{"__isSmartRef__":true,"id":8139},"copyImageMorph":{"__isSmartRef__":true,"id":8142},"prepareToPublish":{"__isSmartRef__":true,"id":8145}},"8087":{"varMapping":{"__isSmartRef__":true,"id":8088},"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":8089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8088":{"this":{"__isSmartRef__":true,"id":1218}},"8089":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8090":{"varMapping":{"__isSmartRef__":true,"id":8091},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8091":{"this":{"__isSmartRef__":true,"id":1218}},"8092":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8093":{"varMapping":{"__isSmartRef__":true,"id":8094},"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":8095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8094":{"this":{"__isSmartRef__":true,"id":1218}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8097":{"this":{"__isSmartRef__":true,"id":1218}},"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 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":8101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8100":{"this":{"__isSmartRef__":true,"id":1218}},"8101":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8102":{"varMapping":{"__isSmartRef__":true,"id":8103},"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":8104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8103":{"this":{"__isSmartRef__":true,"id":1218}},"8104":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8105":{"varMapping":{"__isSmartRef__":true,"id":8106},"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":8107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8106":{"this":{"__isSmartRef__":true,"id":1218}},"8107":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8108":{"varMapping":{"__isSmartRef__":true,"id":8109},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8109":{"this":{"__isSmartRef__":true,"id":1218}},"8110":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8111":{"varMapping":{"__isSmartRef__":true,"id":8112},"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":8113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8112":{"this":{"__isSmartRef__":true,"id":1218}},"8113":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8114":{"varMapping":{"__isSmartRef__":true,"id":8115},"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":8120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8115":{"this":{"__isSmartRef__":true,"id":1218},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8116}},"8116":{"$super":{"__isSmartRef__":true,"id":8117}},"8117":{"varMapping":{"__isSmartRef__":true,"id":8118},"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":8119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8118":{"obj":{"__isSmartRef__":true,"id":1218},"name":"onMouseDown"},"8119":{},"8120":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8121":{"varMapping":{"__isSmartRef__":true,"id":8122},"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":8123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8122":{"this":{"__isSmartRef__":true,"id":1218}},"8123":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8124":{"varMapping":{"__isSmartRef__":true,"id":8125},"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":8126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8125":{"this":{"__isSmartRef__":true,"id":1218}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8128":{"this":{"__isSmartRef__":true,"id":1218}},"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 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":8132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8131":{"this":{"__isSmartRef__":true,"id":1218}},"8132":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8133":{"varMapping":{"__isSmartRef__":true,"id":8134},"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":8135},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8134":{"this":{"__isSmartRef__":true,"id":1218}},"8135":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8136":{"varMapping":{"__isSmartRef__":true,"id":8137},"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":8138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8137":{"this":{"__isSmartRef__":true,"id":1218}},"8138":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8139":{"varMapping":{"__isSmartRef__":true,"id":8140},"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":8141},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8140":{"this":{"__isSmartRef__":true,"id":1218}},"8141":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8142":{"varMapping":{"__isSmartRef__":true,"id":8143},"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":8144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8143":{"this":{"__isSmartRef__":true,"id":1218}},"8144":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8145":{"varMapping":{"__isSmartRef__":true,"id":8146},"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":8147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8146":{"this":{"__isSmartRef__":true,"id":1218}},"8147":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8148":{"addBomb":{"__isSmartRef__":true,"id":8149},"clearFlag":{"__isSmartRef__":true,"id":8152},"countNeighborBombs":{"__isSmartRef__":true,"id":8155},"fixSubmorph":{"__isSmartRef__":true,"id":8158},"initAppearance":{"__isSmartRef__":true,"id":8161},"initMorphs":{"__isSmartRef__":true,"id":8164},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8167},"isClosed":{"__isSmartRef__":true,"id":8170},"neighborPoints":{"__isSmartRef__":true,"id":8173},"onMouseDown":{"__isSmartRef__":true,"id":8176},"restoreGameAppearance":{"__isSmartRef__":true,"id":8183},"reveal":{"__isSmartRef__":true,"id":8186},"setCoordinates":{"__isSmartRef__":true,"id":8189},"showBomb":{"__isSmartRef__":true,"id":8192},"showDebugState":{"__isSmartRef__":true,"id":8195},"showFlag":{"__isSmartRef__":true,"id":8198},"showState":{"__isSmartRef__":true,"id":8201},"copyImageMorph":{"__isSmartRef__":true,"id":8204},"prepareToPublish":{"__isSmartRef__":true,"id":8207}},"8149":{"varMapping":{"__isSmartRef__":true,"id":8150},"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":8151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8150":{"this":{"__isSmartRef__":true,"id":1170}},"8151":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8152":{"varMapping":{"__isSmartRef__":true,"id":8153},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8153":{"this":{"__isSmartRef__":true,"id":1170}},"8154":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8155":{"varMapping":{"__isSmartRef__":true,"id":8156},"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":8157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8156":{"this":{"__isSmartRef__":true,"id":1170}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8159":{"this":{"__isSmartRef__":true,"id":1170}},"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 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":8163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8162":{"this":{"__isSmartRef__":true,"id":1170}},"8163":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8164":{"varMapping":{"__isSmartRef__":true,"id":8165},"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":8166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8165":{"this":{"__isSmartRef__":true,"id":1170}},"8166":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8167":{"varMapping":{"__isSmartRef__":true,"id":8168},"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":8169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8168":{"this":{"__isSmartRef__":true,"id":1170}},"8169":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8170":{"varMapping":{"__isSmartRef__":true,"id":8171},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8171":{"this":{"__isSmartRef__":true,"id":1170}},"8172":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8173":{"varMapping":{"__isSmartRef__":true,"id":8174},"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":8175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8174":{"this":{"__isSmartRef__":true,"id":1170}},"8175":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8176":{"varMapping":{"__isSmartRef__":true,"id":8177},"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":8182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8177":{"this":{"__isSmartRef__":true,"id":1170},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8178}},"8178":{"$super":{"__isSmartRef__":true,"id":8179}},"8179":{"varMapping":{"__isSmartRef__":true,"id":8180},"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":8181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8180":{"obj":{"__isSmartRef__":true,"id":1170},"name":"onMouseDown"},"8181":{},"8182":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8183":{"varMapping":{"__isSmartRef__":true,"id":8184},"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":8185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8184":{"this":{"__isSmartRef__":true,"id":1170}},"8185":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8186":{"varMapping":{"__isSmartRef__":true,"id":8187},"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":8188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8187":{"this":{"__isSmartRef__":true,"id":1170}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8190":{"this":{"__isSmartRef__":true,"id":1170}},"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 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":8194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8193":{"this":{"__isSmartRef__":true,"id":1170}},"8194":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8195":{"varMapping":{"__isSmartRef__":true,"id":8196},"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":8197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8196":{"this":{"__isSmartRef__":true,"id":1170}},"8197":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8198":{"varMapping":{"__isSmartRef__":true,"id":8199},"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":8200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8199":{"this":{"__isSmartRef__":true,"id":1170}},"8200":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8201":{"varMapping":{"__isSmartRef__":true,"id":8202},"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":8203},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8202":{"this":{"__isSmartRef__":true,"id":1170}},"8203":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8204":{"varMapping":{"__isSmartRef__":true,"id":8205},"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":8206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8205":{"this":{"__isSmartRef__":true,"id":1170}},"8206":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8207":{"varMapping":{"__isSmartRef__":true,"id":8208},"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":8209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8208":{"this":{"__isSmartRef__":true,"id":1170}},"8209":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8210":{"addBomb":{"__isSmartRef__":true,"id":8211},"clearFlag":{"__isSmartRef__":true,"id":8214},"countNeighborBombs":{"__isSmartRef__":true,"id":8217},"fixSubmorph":{"__isSmartRef__":true,"id":8220},"initAppearance":{"__isSmartRef__":true,"id":8223},"initMorphs":{"__isSmartRef__":true,"id":8226},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8229},"isClosed":{"__isSmartRef__":true,"id":8232},"neighborPoints":{"__isSmartRef__":true,"id":8235},"onMouseDown":{"__isSmartRef__":true,"id":8238},"restoreGameAppearance":{"__isSmartRef__":true,"id":8245},"reveal":{"__isSmartRef__":true,"id":8248},"setCoordinates":{"__isSmartRef__":true,"id":8251},"showBomb":{"__isSmartRef__":true,"id":8254},"showDebugState":{"__isSmartRef__":true,"id":8257},"showFlag":{"__isSmartRef__":true,"id":8260},"showState":{"__isSmartRef__":true,"id":8263},"copyImageMorph":{"__isSmartRef__":true,"id":8266},"prepareToPublish":{"__isSmartRef__":true,"id":8269}},"8211":{"varMapping":{"__isSmartRef__":true,"id":8212},"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":8213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8212":{"this":{"__isSmartRef__":true,"id":1122}},"8213":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8214":{"varMapping":{"__isSmartRef__":true,"id":8215},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8215":{"this":{"__isSmartRef__":true,"id":1122}},"8216":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8217":{"varMapping":{"__isSmartRef__":true,"id":8218},"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":8219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8218":{"this":{"__isSmartRef__":true,"id":1122}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8221":{"this":{"__isSmartRef__":true,"id":1122}},"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 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":8225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8224":{"this":{"__isSmartRef__":true,"id":1122}},"8225":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8226":{"varMapping":{"__isSmartRef__":true,"id":8227},"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":8228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8227":{"this":{"__isSmartRef__":true,"id":1122}},"8228":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8229":{"varMapping":{"__isSmartRef__":true,"id":8230},"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":8231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8230":{"this":{"__isSmartRef__":true,"id":1122}},"8231":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8232":{"varMapping":{"__isSmartRef__":true,"id":8233},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8233":{"this":{"__isSmartRef__":true,"id":1122}},"8234":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8235":{"varMapping":{"__isSmartRef__":true,"id":8236},"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":8237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8236":{"this":{"__isSmartRef__":true,"id":1122}},"8237":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8238":{"varMapping":{"__isSmartRef__":true,"id":8239},"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":8244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8239":{"this":{"__isSmartRef__":true,"id":1122},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8240}},"8240":{"$super":{"__isSmartRef__":true,"id":8241}},"8241":{"varMapping":{"__isSmartRef__":true,"id":8242},"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":8243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8242":{"obj":{"__isSmartRef__":true,"id":1122},"name":"onMouseDown"},"8243":{},"8244":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8245":{"varMapping":{"__isSmartRef__":true,"id":8246},"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":8247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8246":{"this":{"__isSmartRef__":true,"id":1122}},"8247":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8248":{"varMapping":{"__isSmartRef__":true,"id":8249},"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":8250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8249":{"this":{"__isSmartRef__":true,"id":1122}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8252":{"this":{"__isSmartRef__":true,"id":1122}},"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 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":8256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8255":{"this":{"__isSmartRef__":true,"id":1122}},"8256":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8257":{"varMapping":{"__isSmartRef__":true,"id":8258},"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":8259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8258":{"this":{"__isSmartRef__":true,"id":1122}},"8259":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8260":{"varMapping":{"__isSmartRef__":true,"id":8261},"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":8262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8261":{"this":{"__isSmartRef__":true,"id":1122}},"8262":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8263":{"varMapping":{"__isSmartRef__":true,"id":8264},"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":8265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8264":{"this":{"__isSmartRef__":true,"id":1122}},"8265":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8266":{"varMapping":{"__isSmartRef__":true,"id":8267},"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":8268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8267":{"this":{"__isSmartRef__":true,"id":1122}},"8268":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8269":{"varMapping":{"__isSmartRef__":true,"id":8270},"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":8271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8270":{"this":{"__isSmartRef__":true,"id":1122}},"8271":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8272":{"addBomb":{"__isSmartRef__":true,"id":8273},"clearFlag":{"__isSmartRef__":true,"id":8276},"countNeighborBombs":{"__isSmartRef__":true,"id":8279},"fixSubmorph":{"__isSmartRef__":true,"id":8282},"initAppearance":{"__isSmartRef__":true,"id":8285},"initMorphs":{"__isSmartRef__":true,"id":8288},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8291},"isClosed":{"__isSmartRef__":true,"id":8294},"neighborPoints":{"__isSmartRef__":true,"id":8297},"onMouseDown":{"__isSmartRef__":true,"id":8300},"restoreGameAppearance":{"__isSmartRef__":true,"id":8307},"reveal":{"__isSmartRef__":true,"id":8310},"setCoordinates":{"__isSmartRef__":true,"id":8313},"showBomb":{"__isSmartRef__":true,"id":8316},"showDebugState":{"__isSmartRef__":true,"id":8319},"showFlag":{"__isSmartRef__":true,"id":8322},"showState":{"__isSmartRef__":true,"id":8325},"copyImageMorph":{"__isSmartRef__":true,"id":8328},"prepareToPublish":{"__isSmartRef__":true,"id":8331}},"8273":{"varMapping":{"__isSmartRef__":true,"id":8274},"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":8275},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8274":{"this":{"__isSmartRef__":true,"id":1074}},"8275":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8276":{"varMapping":{"__isSmartRef__":true,"id":8277},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8277":{"this":{"__isSmartRef__":true,"id":1074}},"8278":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8279":{"varMapping":{"__isSmartRef__":true,"id":8280},"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":8281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8280":{"this":{"__isSmartRef__":true,"id":1074}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8283":{"this":{"__isSmartRef__":true,"id":1074}},"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 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":8287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8286":{"this":{"__isSmartRef__":true,"id":1074}},"8287":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8288":{"varMapping":{"__isSmartRef__":true,"id":8289},"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":8290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8289":{"this":{"__isSmartRef__":true,"id":1074}},"8290":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8291":{"varMapping":{"__isSmartRef__":true,"id":8292},"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":8293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8292":{"this":{"__isSmartRef__":true,"id":1074}},"8293":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8294":{"varMapping":{"__isSmartRef__":true,"id":8295},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8295":{"this":{"__isSmartRef__":true,"id":1074}},"8296":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8297":{"varMapping":{"__isSmartRef__":true,"id":8298},"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":8299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8298":{"this":{"__isSmartRef__":true,"id":1074}},"8299":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8300":{"varMapping":{"__isSmartRef__":true,"id":8301},"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":8306},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8301":{"this":{"__isSmartRef__":true,"id":1074},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8302}},"8302":{"$super":{"__isSmartRef__":true,"id":8303}},"8303":{"varMapping":{"__isSmartRef__":true,"id":8304},"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":8305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8304":{"obj":{"__isSmartRef__":true,"id":1074},"name":"onMouseDown"},"8305":{},"8306":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8307":{"varMapping":{"__isSmartRef__":true,"id":8308},"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":8309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8308":{"this":{"__isSmartRef__":true,"id":1074}},"8309":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8310":{"varMapping":{"__isSmartRef__":true,"id":8311},"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":8312},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8311":{"this":{"__isSmartRef__":true,"id":1074}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8315},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8314":{"this":{"__isSmartRef__":true,"id":1074}},"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 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":8318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8317":{"this":{"__isSmartRef__":true,"id":1074}},"8318":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8319":{"varMapping":{"__isSmartRef__":true,"id":8320},"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":8321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8320":{"this":{"__isSmartRef__":true,"id":1074}},"8321":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8322":{"varMapping":{"__isSmartRef__":true,"id":8323},"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":8324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8323":{"this":{"__isSmartRef__":true,"id":1074}},"8324":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8325":{"varMapping":{"__isSmartRef__":true,"id":8326},"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":8327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8326":{"this":{"__isSmartRef__":true,"id":1074}},"8327":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8328":{"varMapping":{"__isSmartRef__":true,"id":8329},"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":8330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8329":{"this":{"__isSmartRef__":true,"id":1074}},"8330":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8331":{"varMapping":{"__isSmartRef__":true,"id":8332},"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":8333},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8332":{"this":{"__isSmartRef__":true,"id":1074}},"8333":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8334":{"addBomb":{"__isSmartRef__":true,"id":8335},"clearFlag":{"__isSmartRef__":true,"id":8338},"countNeighborBombs":{"__isSmartRef__":true,"id":8341},"fixSubmorph":{"__isSmartRef__":true,"id":8344},"initAppearance":{"__isSmartRef__":true,"id":8347},"initMorphs":{"__isSmartRef__":true,"id":8350},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8353},"isClosed":{"__isSmartRef__":true,"id":8356},"neighborPoints":{"__isSmartRef__":true,"id":8359},"onMouseDown":{"__isSmartRef__":true,"id":8362},"restoreGameAppearance":{"__isSmartRef__":true,"id":8369},"reveal":{"__isSmartRef__":true,"id":8372},"setCoordinates":{"__isSmartRef__":true,"id":8375},"showBomb":{"__isSmartRef__":true,"id":8378},"showDebugState":{"__isSmartRef__":true,"id":8381},"showFlag":{"__isSmartRef__":true,"id":8384},"showState":{"__isSmartRef__":true,"id":8387},"copyImageMorph":{"__isSmartRef__":true,"id":8390},"prepareToPublish":{"__isSmartRef__":true,"id":8393}},"8335":{"varMapping":{"__isSmartRef__":true,"id":8336},"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":8337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8336":{"this":{"__isSmartRef__":true,"id":1026}},"8337":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8338":{"varMapping":{"__isSmartRef__":true,"id":8339},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8339":{"this":{"__isSmartRef__":true,"id":1026}},"8340":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8341":{"varMapping":{"__isSmartRef__":true,"id":8342},"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":8343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8342":{"this":{"__isSmartRef__":true,"id":1026}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8345":{"this":{"__isSmartRef__":true,"id":1026}},"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 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":8349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8348":{"this":{"__isSmartRef__":true,"id":1026}},"8349":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8350":{"varMapping":{"__isSmartRef__":true,"id":8351},"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":8352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8351":{"this":{"__isSmartRef__":true,"id":1026}},"8352":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8353":{"varMapping":{"__isSmartRef__":true,"id":8354},"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":8355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8354":{"this":{"__isSmartRef__":true,"id":1026}},"8355":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8356":{"varMapping":{"__isSmartRef__":true,"id":8357},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8357":{"this":{"__isSmartRef__":true,"id":1026}},"8358":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8359":{"varMapping":{"__isSmartRef__":true,"id":8360},"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":8361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8360":{"this":{"__isSmartRef__":true,"id":1026}},"8361":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8362":{"varMapping":{"__isSmartRef__":true,"id":8363},"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":8368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8363":{"this":{"__isSmartRef__":true,"id":1026},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8364}},"8364":{"$super":{"__isSmartRef__":true,"id":8365}},"8365":{"varMapping":{"__isSmartRef__":true,"id":8366},"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":8367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8366":{"obj":{"__isSmartRef__":true,"id":1026},"name":"onMouseDown"},"8367":{},"8368":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8369":{"varMapping":{"__isSmartRef__":true,"id":8370},"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":8371},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8370":{"this":{"__isSmartRef__":true,"id":1026}},"8371":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8372":{"varMapping":{"__isSmartRef__":true,"id":8373},"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":8374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8373":{"this":{"__isSmartRef__":true,"id":1026}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8376":{"this":{"__isSmartRef__":true,"id":1026}},"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 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":8380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8379":{"this":{"__isSmartRef__":true,"id":1026}},"8380":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8381":{"varMapping":{"__isSmartRef__":true,"id":8382},"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":8383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8382":{"this":{"__isSmartRef__":true,"id":1026}},"8383":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8384":{"varMapping":{"__isSmartRef__":true,"id":8385},"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":8386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8385":{"this":{"__isSmartRef__":true,"id":1026}},"8386":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8387":{"varMapping":{"__isSmartRef__":true,"id":8388},"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":8389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8388":{"this":{"__isSmartRef__":true,"id":1026}},"8389":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8390":{"varMapping":{"__isSmartRef__":true,"id":8391},"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":8392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8391":{"this":{"__isSmartRef__":true,"id":1026}},"8392":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8393":{"varMapping":{"__isSmartRef__":true,"id":8394},"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":8395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8394":{"this":{"__isSmartRef__":true,"id":1026}},"8395":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8396":{"addBomb":{"__isSmartRef__":true,"id":8397},"clearFlag":{"__isSmartRef__":true,"id":8400},"countNeighborBombs":{"__isSmartRef__":true,"id":8403},"fixSubmorph":{"__isSmartRef__":true,"id":8406},"initAppearance":{"__isSmartRef__":true,"id":8409},"initMorphs":{"__isSmartRef__":true,"id":8412},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8415},"isClosed":{"__isSmartRef__":true,"id":8418},"neighborPoints":{"__isSmartRef__":true,"id":8421},"onMouseDown":{"__isSmartRef__":true,"id":8424},"restoreGameAppearance":{"__isSmartRef__":true,"id":8431},"reveal":{"__isSmartRef__":true,"id":8434},"setCoordinates":{"__isSmartRef__":true,"id":8437},"showBomb":{"__isSmartRef__":true,"id":8440},"showDebugState":{"__isSmartRef__":true,"id":8443},"showFlag":{"__isSmartRef__":true,"id":8446},"showState":{"__isSmartRef__":true,"id":8449},"copyImageMorph":{"__isSmartRef__":true,"id":8452},"prepareToPublish":{"__isSmartRef__":true,"id":8455}},"8397":{"varMapping":{"__isSmartRef__":true,"id":8398},"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":8399},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8398":{"this":{"__isSmartRef__":true,"id":978}},"8399":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8400":{"varMapping":{"__isSmartRef__":true,"id":8401},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8401":{"this":{"__isSmartRef__":true,"id":978}},"8402":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8403":{"varMapping":{"__isSmartRef__":true,"id":8404},"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":8405},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8404":{"this":{"__isSmartRef__":true,"id":978}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8407":{"this":{"__isSmartRef__":true,"id":978}},"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 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":8411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8410":{"this":{"__isSmartRef__":true,"id":978}},"8411":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8412":{"varMapping":{"__isSmartRef__":true,"id":8413},"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":8414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8413":{"this":{"__isSmartRef__":true,"id":978}},"8414":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8415":{"varMapping":{"__isSmartRef__":true,"id":8416},"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":8417},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8416":{"this":{"__isSmartRef__":true,"id":978}},"8417":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8418":{"varMapping":{"__isSmartRef__":true,"id":8419},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8419":{"this":{"__isSmartRef__":true,"id":978}},"8420":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8421":{"varMapping":{"__isSmartRef__":true,"id":8422},"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":8423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8422":{"this":{"__isSmartRef__":true,"id":978}},"8423":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8424":{"varMapping":{"__isSmartRef__":true,"id":8425},"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":8430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8425":{"this":{"__isSmartRef__":true,"id":978},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8426}},"8426":{"$super":{"__isSmartRef__":true,"id":8427}},"8427":{"varMapping":{"__isSmartRef__":true,"id":8428},"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":8429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8428":{"obj":{"__isSmartRef__":true,"id":978},"name":"onMouseDown"},"8429":{},"8430":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8431":{"varMapping":{"__isSmartRef__":true,"id":8432},"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":8433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8432":{"this":{"__isSmartRef__":true,"id":978}},"8433":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8434":{"varMapping":{"__isSmartRef__":true,"id":8435},"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":8436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8435":{"this":{"__isSmartRef__":true,"id":978}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8438":{"this":{"__isSmartRef__":true,"id":978}},"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 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":8442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8441":{"this":{"__isSmartRef__":true,"id":978}},"8442":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8443":{"varMapping":{"__isSmartRef__":true,"id":8444},"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":8445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8444":{"this":{"__isSmartRef__":true,"id":978}},"8445":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8446":{"varMapping":{"__isSmartRef__":true,"id":8447},"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":8448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8447":{"this":{"__isSmartRef__":true,"id":978}},"8448":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8449":{"varMapping":{"__isSmartRef__":true,"id":8450},"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":8451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8450":{"this":{"__isSmartRef__":true,"id":978}},"8451":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8452":{"varMapping":{"__isSmartRef__":true,"id":8453},"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":8454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8453":{"this":{"__isSmartRef__":true,"id":978}},"8454":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8455":{"varMapping":{"__isSmartRef__":true,"id":8456},"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":8457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8456":{"this":{"__isSmartRef__":true,"id":978}},"8457":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8458":{"addBomb":{"__isSmartRef__":true,"id":8459},"clearFlag":{"__isSmartRef__":true,"id":8462},"countNeighborBombs":{"__isSmartRef__":true,"id":8465},"fixSubmorph":{"__isSmartRef__":true,"id":8468},"initAppearance":{"__isSmartRef__":true,"id":8471},"initMorphs":{"__isSmartRef__":true,"id":8474},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8477},"isClosed":{"__isSmartRef__":true,"id":8480},"neighborPoints":{"__isSmartRef__":true,"id":8483},"onMouseDown":{"__isSmartRef__":true,"id":8486},"restoreGameAppearance":{"__isSmartRef__":true,"id":8493},"reveal":{"__isSmartRef__":true,"id":8496},"setCoordinates":{"__isSmartRef__":true,"id":8499},"showBomb":{"__isSmartRef__":true,"id":8502},"showDebugState":{"__isSmartRef__":true,"id":8505},"showFlag":{"__isSmartRef__":true,"id":8508},"showState":{"__isSmartRef__":true,"id":8511},"copyImageMorph":{"__isSmartRef__":true,"id":8514},"prepareToPublish":{"__isSmartRef__":true,"id":8517}},"8459":{"varMapping":{"__isSmartRef__":true,"id":8460},"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":8461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8460":{"this":{"__isSmartRef__":true,"id":930}},"8461":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8462":{"varMapping":{"__isSmartRef__":true,"id":8463},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8464},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8463":{"this":{"__isSmartRef__":true,"id":930}},"8464":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8465":{"varMapping":{"__isSmartRef__":true,"id":8466},"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":8467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8466":{"this":{"__isSmartRef__":true,"id":930}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8469":{"this":{"__isSmartRef__":true,"id":930}},"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 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":8473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8472":{"this":{"__isSmartRef__":true,"id":930}},"8473":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8474":{"varMapping":{"__isSmartRef__":true,"id":8475},"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":8476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8475":{"this":{"__isSmartRef__":true,"id":930}},"8476":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8477":{"varMapping":{"__isSmartRef__":true,"id":8478},"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":8479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8478":{"this":{"__isSmartRef__":true,"id":930}},"8479":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8480":{"varMapping":{"__isSmartRef__":true,"id":8481},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8482},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8481":{"this":{"__isSmartRef__":true,"id":930}},"8482":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8483":{"varMapping":{"__isSmartRef__":true,"id":8484},"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":8485},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8484":{"this":{"__isSmartRef__":true,"id":930}},"8485":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8486":{"varMapping":{"__isSmartRef__":true,"id":8487},"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":8492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8487":{"this":{"__isSmartRef__":true,"id":930},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8488}},"8488":{"$super":{"__isSmartRef__":true,"id":8489}},"8489":{"varMapping":{"__isSmartRef__":true,"id":8490},"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":8491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8490":{"obj":{"__isSmartRef__":true,"id":930},"name":"onMouseDown"},"8491":{},"8492":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8493":{"varMapping":{"__isSmartRef__":true,"id":8494},"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":8495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8494":{"this":{"__isSmartRef__":true,"id":930}},"8495":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8496":{"varMapping":{"__isSmartRef__":true,"id":8497},"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":8498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8497":{"this":{"__isSmartRef__":true,"id":930}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8500":{"this":{"__isSmartRef__":true,"id":930}},"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 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":8504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8503":{"this":{"__isSmartRef__":true,"id":930}},"8504":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8505":{"varMapping":{"__isSmartRef__":true,"id":8506},"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":8507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8506":{"this":{"__isSmartRef__":true,"id":930}},"8507":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8508":{"varMapping":{"__isSmartRef__":true,"id":8509},"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":8510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8509":{"this":{"__isSmartRef__":true,"id":930}},"8510":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8511":{"varMapping":{"__isSmartRef__":true,"id":8512},"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":8513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8512":{"this":{"__isSmartRef__":true,"id":930}},"8513":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8514":{"varMapping":{"__isSmartRef__":true,"id":8515},"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":8516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8515":{"this":{"__isSmartRef__":true,"id":930}},"8516":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8517":{"varMapping":{"__isSmartRef__":true,"id":8518},"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":8519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8518":{"this":{"__isSmartRef__":true,"id":930}},"8519":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8520":{"addBomb":{"__isSmartRef__":true,"id":8521},"clearFlag":{"__isSmartRef__":true,"id":8524},"countNeighborBombs":{"__isSmartRef__":true,"id":8527},"fixSubmorph":{"__isSmartRef__":true,"id":8530},"initAppearance":{"__isSmartRef__":true,"id":8533},"initMorphs":{"__isSmartRef__":true,"id":8536},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8539},"isClosed":{"__isSmartRef__":true,"id":8542},"neighborPoints":{"__isSmartRef__":true,"id":8545},"onMouseDown":{"__isSmartRef__":true,"id":8548},"restoreGameAppearance":{"__isSmartRef__":true,"id":8555},"reveal":{"__isSmartRef__":true,"id":8558},"setCoordinates":{"__isSmartRef__":true,"id":8561},"showBomb":{"__isSmartRef__":true,"id":8564},"showDebugState":{"__isSmartRef__":true,"id":8567},"showFlag":{"__isSmartRef__":true,"id":8570},"showState":{"__isSmartRef__":true,"id":8573},"copyImageMorph":{"__isSmartRef__":true,"id":8576},"prepareToPublish":{"__isSmartRef__":true,"id":8579}},"8521":{"varMapping":{"__isSmartRef__":true,"id":8522},"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":8523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8522":{"this":{"__isSmartRef__":true,"id":882}},"8523":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8524":{"varMapping":{"__isSmartRef__":true,"id":8525},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8525":{"this":{"__isSmartRef__":true,"id":882}},"8526":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8527":{"varMapping":{"__isSmartRef__":true,"id":8528},"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":8529},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8528":{"this":{"__isSmartRef__":true,"id":882}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8531":{"this":{"__isSmartRef__":true,"id":882}},"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 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":8535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8534":{"this":{"__isSmartRef__":true,"id":882}},"8535":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8536":{"varMapping":{"__isSmartRef__":true,"id":8537},"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":8538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8537":{"this":{"__isSmartRef__":true,"id":882}},"8538":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8539":{"varMapping":{"__isSmartRef__":true,"id":8540},"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":8541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8540":{"this":{"__isSmartRef__":true,"id":882}},"8541":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8542":{"varMapping":{"__isSmartRef__":true,"id":8543},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8543":{"this":{"__isSmartRef__":true,"id":882}},"8544":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8545":{"varMapping":{"__isSmartRef__":true,"id":8546},"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":8547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8546":{"this":{"__isSmartRef__":true,"id":882}},"8547":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8548":{"varMapping":{"__isSmartRef__":true,"id":8549},"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":8554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8549":{"this":{"__isSmartRef__":true,"id":882},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8550}},"8550":{"$super":{"__isSmartRef__":true,"id":8551}},"8551":{"varMapping":{"__isSmartRef__":true,"id":8552},"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":8553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8552":{"obj":{"__isSmartRef__":true,"id":882},"name":"onMouseDown"},"8553":{},"8554":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8555":{"varMapping":{"__isSmartRef__":true,"id":8556},"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":8557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8556":{"this":{"__isSmartRef__":true,"id":882}},"8557":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8558":{"varMapping":{"__isSmartRef__":true,"id":8559},"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":8560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8559":{"this":{"__isSmartRef__":true,"id":882}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8562":{"this":{"__isSmartRef__":true,"id":882}},"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 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":8566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8565":{"this":{"__isSmartRef__":true,"id":882}},"8566":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8567":{"varMapping":{"__isSmartRef__":true,"id":8568},"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":8569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8568":{"this":{"__isSmartRef__":true,"id":882}},"8569":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8570":{"varMapping":{"__isSmartRef__":true,"id":8571},"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":8572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8571":{"this":{"__isSmartRef__":true,"id":882}},"8572":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8573":{"varMapping":{"__isSmartRef__":true,"id":8574},"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":8575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8574":{"this":{"__isSmartRef__":true,"id":882}},"8575":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8576":{"varMapping":{"__isSmartRef__":true,"id":8577},"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":8578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8577":{"this":{"__isSmartRef__":true,"id":882}},"8578":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8579":{"varMapping":{"__isSmartRef__":true,"id":8580},"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":8581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8580":{"this":{"__isSmartRef__":true,"id":882}},"8581":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8582":{"addBomb":{"__isSmartRef__":true,"id":8583},"clearFlag":{"__isSmartRef__":true,"id":8586},"countNeighborBombs":{"__isSmartRef__":true,"id":8589},"fixSubmorph":{"__isSmartRef__":true,"id":8592},"initAppearance":{"__isSmartRef__":true,"id":8595},"initMorphs":{"__isSmartRef__":true,"id":8598},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8601},"isClosed":{"__isSmartRef__":true,"id":8604},"neighborPoints":{"__isSmartRef__":true,"id":8607},"onMouseDown":{"__isSmartRef__":true,"id":8610},"restoreGameAppearance":{"__isSmartRef__":true,"id":8617},"reveal":{"__isSmartRef__":true,"id":8620},"setCoordinates":{"__isSmartRef__":true,"id":8623},"showBomb":{"__isSmartRef__":true,"id":8626},"showDebugState":{"__isSmartRef__":true,"id":8629},"showFlag":{"__isSmartRef__":true,"id":8632},"showState":{"__isSmartRef__":true,"id":8635},"copyImageMorph":{"__isSmartRef__":true,"id":8638},"prepareToPublish":{"__isSmartRef__":true,"id":8641}},"8583":{"varMapping":{"__isSmartRef__":true,"id":8584},"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":8585},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8584":{"this":{"__isSmartRef__":true,"id":834}},"8585":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8586":{"varMapping":{"__isSmartRef__":true,"id":8587},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8587":{"this":{"__isSmartRef__":true,"id":834}},"8588":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8589":{"varMapping":{"__isSmartRef__":true,"id":8590},"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":8591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8590":{"this":{"__isSmartRef__":true,"id":834}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8593":{"this":{"__isSmartRef__":true,"id":834}},"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 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":8597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8596":{"this":{"__isSmartRef__":true,"id":834}},"8597":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8598":{"varMapping":{"__isSmartRef__":true,"id":8599},"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":8600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8599":{"this":{"__isSmartRef__":true,"id":834}},"8600":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8601":{"varMapping":{"__isSmartRef__":true,"id":8602},"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":8603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8602":{"this":{"__isSmartRef__":true,"id":834}},"8603":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8604":{"varMapping":{"__isSmartRef__":true,"id":8605},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8605":{"this":{"__isSmartRef__":true,"id":834}},"8606":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8607":{"varMapping":{"__isSmartRef__":true,"id":8608},"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":8609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8608":{"this":{"__isSmartRef__":true,"id":834}},"8609":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8610":{"varMapping":{"__isSmartRef__":true,"id":8611},"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":8616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8611":{"this":{"__isSmartRef__":true,"id":834},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8612}},"8612":{"$super":{"__isSmartRef__":true,"id":8613}},"8613":{"varMapping":{"__isSmartRef__":true,"id":8614},"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":8615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8614":{"obj":{"__isSmartRef__":true,"id":834},"name":"onMouseDown"},"8615":{},"8616":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8617":{"varMapping":{"__isSmartRef__":true,"id":8618},"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":8619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8618":{"this":{"__isSmartRef__":true,"id":834}},"8619":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8620":{"varMapping":{"__isSmartRef__":true,"id":8621},"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":8622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8621":{"this":{"__isSmartRef__":true,"id":834}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8624":{"this":{"__isSmartRef__":true,"id":834}},"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 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":8628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8627":{"this":{"__isSmartRef__":true,"id":834}},"8628":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8629":{"varMapping":{"__isSmartRef__":true,"id":8630},"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":8631},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8630":{"this":{"__isSmartRef__":true,"id":834}},"8631":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8632":{"varMapping":{"__isSmartRef__":true,"id":8633},"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":8634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8633":{"this":{"__isSmartRef__":true,"id":834}},"8634":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8635":{"varMapping":{"__isSmartRef__":true,"id":8636},"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":8637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8636":{"this":{"__isSmartRef__":true,"id":834}},"8637":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8638":{"varMapping":{"__isSmartRef__":true,"id":8639},"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":8640},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8639":{"this":{"__isSmartRef__":true,"id":834}},"8640":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8641":{"varMapping":{"__isSmartRef__":true,"id":8642},"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":8643},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8642":{"this":{"__isSmartRef__":true,"id":834}},"8643":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8644":{"addBomb":{"__isSmartRef__":true,"id":8645},"clearFlag":{"__isSmartRef__":true,"id":8648},"countNeighborBombs":{"__isSmartRef__":true,"id":8651},"fixSubmorph":{"__isSmartRef__":true,"id":8654},"initAppearance":{"__isSmartRef__":true,"id":8657},"initMorphs":{"__isSmartRef__":true,"id":8660},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8663},"isClosed":{"__isSmartRef__":true,"id":8666},"neighborPoints":{"__isSmartRef__":true,"id":8669},"onMouseDown":{"__isSmartRef__":true,"id":8672},"restoreGameAppearance":{"__isSmartRef__":true,"id":8679},"reveal":{"__isSmartRef__":true,"id":8682},"setCoordinates":{"__isSmartRef__":true,"id":8685},"showBomb":{"__isSmartRef__":true,"id":8688},"showDebugState":{"__isSmartRef__":true,"id":8691},"showFlag":{"__isSmartRef__":true,"id":8694},"showState":{"__isSmartRef__":true,"id":8697},"copyImageMorph":{"__isSmartRef__":true,"id":8700},"prepareToPublish":{"__isSmartRef__":true,"id":8703}},"8645":{"varMapping":{"__isSmartRef__":true,"id":8646},"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":8647},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8646":{"this":{"__isSmartRef__":true,"id":786}},"8647":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8648":{"varMapping":{"__isSmartRef__":true,"id":8649},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8649":{"this":{"__isSmartRef__":true,"id":786}},"8650":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8651":{"varMapping":{"__isSmartRef__":true,"id":8652},"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":8653},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8652":{"this":{"__isSmartRef__":true,"id":786}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8655":{"this":{"__isSmartRef__":true,"id":786}},"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 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":8659},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8658":{"this":{"__isSmartRef__":true,"id":786}},"8659":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8660":{"varMapping":{"__isSmartRef__":true,"id":8661},"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":8662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8661":{"this":{"__isSmartRef__":true,"id":786}},"8662":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8663":{"varMapping":{"__isSmartRef__":true,"id":8664},"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":8665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8664":{"this":{"__isSmartRef__":true,"id":786}},"8665":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8666":{"varMapping":{"__isSmartRef__":true,"id":8667},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8667":{"this":{"__isSmartRef__":true,"id":786}},"8668":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8669":{"varMapping":{"__isSmartRef__":true,"id":8670},"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":8671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8670":{"this":{"__isSmartRef__":true,"id":786}},"8671":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8672":{"varMapping":{"__isSmartRef__":true,"id":8673},"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":8678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8673":{"this":{"__isSmartRef__":true,"id":786},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8674}},"8674":{"$super":{"__isSmartRef__":true,"id":8675}},"8675":{"varMapping":{"__isSmartRef__":true,"id":8676},"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":8677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8676":{"obj":{"__isSmartRef__":true,"id":786},"name":"onMouseDown"},"8677":{},"8678":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8679":{"varMapping":{"__isSmartRef__":true,"id":8680},"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":8681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8680":{"this":{"__isSmartRef__":true,"id":786}},"8681":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8682":{"varMapping":{"__isSmartRef__":true,"id":8683},"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":8684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8683":{"this":{"__isSmartRef__":true,"id":786}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8686":{"this":{"__isSmartRef__":true,"id":786}},"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 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":8690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8689":{"this":{"__isSmartRef__":true,"id":786}},"8690":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8691":{"varMapping":{"__isSmartRef__":true,"id":8692},"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":8693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8692":{"this":{"__isSmartRef__":true,"id":786}},"8693":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8694":{"varMapping":{"__isSmartRef__":true,"id":8695},"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":8696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8695":{"this":{"__isSmartRef__":true,"id":786}},"8696":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8697":{"varMapping":{"__isSmartRef__":true,"id":8698},"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":8699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8698":{"this":{"__isSmartRef__":true,"id":786}},"8699":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8700":{"varMapping":{"__isSmartRef__":true,"id":8701},"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":8702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8701":{"this":{"__isSmartRef__":true,"id":786}},"8702":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8703":{"varMapping":{"__isSmartRef__":true,"id":8704},"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":8705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8704":{"this":{"__isSmartRef__":true,"id":786}},"8705":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8706":{"addBomb":{"__isSmartRef__":true,"id":8707},"clearFlag":{"__isSmartRef__":true,"id":8710},"countNeighborBombs":{"__isSmartRef__":true,"id":8713},"fixSubmorph":{"__isSmartRef__":true,"id":8716},"initAppearance":{"__isSmartRef__":true,"id":8719},"initMorphs":{"__isSmartRef__":true,"id":8722},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8725},"isClosed":{"__isSmartRef__":true,"id":8728},"neighborPoints":{"__isSmartRef__":true,"id":8731},"onMouseDown":{"__isSmartRef__":true,"id":8734},"restoreGameAppearance":{"__isSmartRef__":true,"id":8741},"reveal":{"__isSmartRef__":true,"id":8744},"setCoordinates":{"__isSmartRef__":true,"id":8747},"showBomb":{"__isSmartRef__":true,"id":8750},"showDebugState":{"__isSmartRef__":true,"id":8753},"showFlag":{"__isSmartRef__":true,"id":8756},"showState":{"__isSmartRef__":true,"id":8759},"copyImageMorph":{"__isSmartRef__":true,"id":8762},"prepareToPublish":{"__isSmartRef__":true,"id":8765}},"8707":{"varMapping":{"__isSmartRef__":true,"id":8708},"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":8709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8708":{"this":{"__isSmartRef__":true,"id":738}},"8709":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8710":{"varMapping":{"__isSmartRef__":true,"id":8711},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8711":{"this":{"__isSmartRef__":true,"id":738}},"8712":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8713":{"varMapping":{"__isSmartRef__":true,"id":8714},"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":8715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8714":{"this":{"__isSmartRef__":true,"id":738}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8717":{"this":{"__isSmartRef__":true,"id":738}},"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 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":8721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8720":{"this":{"__isSmartRef__":true,"id":738}},"8721":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8722":{"varMapping":{"__isSmartRef__":true,"id":8723},"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":8724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8723":{"this":{"__isSmartRef__":true,"id":738}},"8724":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8725":{"varMapping":{"__isSmartRef__":true,"id":8726},"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":8727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8726":{"this":{"__isSmartRef__":true,"id":738}},"8727":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8728":{"varMapping":{"__isSmartRef__":true,"id":8729},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8729":{"this":{"__isSmartRef__":true,"id":738}},"8730":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8731":{"varMapping":{"__isSmartRef__":true,"id":8732},"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":8733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8732":{"this":{"__isSmartRef__":true,"id":738}},"8733":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8734":{"varMapping":{"__isSmartRef__":true,"id":8735},"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":8740},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8735":{"this":{"__isSmartRef__":true,"id":738},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8736}},"8736":{"$super":{"__isSmartRef__":true,"id":8737}},"8737":{"varMapping":{"__isSmartRef__":true,"id":8738},"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":8739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8738":{"obj":{"__isSmartRef__":true,"id":738},"name":"onMouseDown"},"8739":{},"8740":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8741":{"varMapping":{"__isSmartRef__":true,"id":8742},"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":8743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8742":{"this":{"__isSmartRef__":true,"id":738}},"8743":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8744":{"varMapping":{"__isSmartRef__":true,"id":8745},"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":8746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8745":{"this":{"__isSmartRef__":true,"id":738}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8748":{"this":{"__isSmartRef__":true,"id":738}},"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 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":8752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8751":{"this":{"__isSmartRef__":true,"id":738}},"8752":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8753":{"varMapping":{"__isSmartRef__":true,"id":8754},"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":8755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8754":{"this":{"__isSmartRef__":true,"id":738}},"8755":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8756":{"varMapping":{"__isSmartRef__":true,"id":8757},"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":8758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8757":{"this":{"__isSmartRef__":true,"id":738}},"8758":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8759":{"varMapping":{"__isSmartRef__":true,"id":8760},"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":8761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8760":{"this":{"__isSmartRef__":true,"id":738}},"8761":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8762":{"varMapping":{"__isSmartRef__":true,"id":8763},"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":8764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8763":{"this":{"__isSmartRef__":true,"id":738}},"8764":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8765":{"varMapping":{"__isSmartRef__":true,"id":8766},"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":8767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8766":{"this":{"__isSmartRef__":true,"id":738}},"8767":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8768":{"addBomb":{"__isSmartRef__":true,"id":8769},"clearFlag":{"__isSmartRef__":true,"id":8772},"countNeighborBombs":{"__isSmartRef__":true,"id":8775},"fixSubmorph":{"__isSmartRef__":true,"id":8778},"initAppearance":{"__isSmartRef__":true,"id":8781},"initMorphs":{"__isSmartRef__":true,"id":8784},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8787},"isClosed":{"__isSmartRef__":true,"id":8790},"neighborPoints":{"__isSmartRef__":true,"id":8793},"onMouseDown":{"__isSmartRef__":true,"id":8796},"restoreGameAppearance":{"__isSmartRef__":true,"id":8803},"reveal":{"__isSmartRef__":true,"id":8806},"setCoordinates":{"__isSmartRef__":true,"id":8809},"showBomb":{"__isSmartRef__":true,"id":8812},"showDebugState":{"__isSmartRef__":true,"id":8815},"showFlag":{"__isSmartRef__":true,"id":8818},"showState":{"__isSmartRef__":true,"id":8821},"copyImageMorph":{"__isSmartRef__":true,"id":8824},"prepareToPublish":{"__isSmartRef__":true,"id":8827}},"8769":{"varMapping":{"__isSmartRef__":true,"id":8770},"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":8771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8770":{"this":{"__isSmartRef__":true,"id":690}},"8771":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8772":{"varMapping":{"__isSmartRef__":true,"id":8773},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8773":{"this":{"__isSmartRef__":true,"id":690}},"8774":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8775":{"varMapping":{"__isSmartRef__":true,"id":8776},"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":8777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8776":{"this":{"__isSmartRef__":true,"id":690}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8779":{"this":{"__isSmartRef__":true,"id":690}},"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 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":8783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8782":{"this":{"__isSmartRef__":true,"id":690}},"8783":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8784":{"varMapping":{"__isSmartRef__":true,"id":8785},"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":8786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8785":{"this":{"__isSmartRef__":true,"id":690}},"8786":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8787":{"varMapping":{"__isSmartRef__":true,"id":8788},"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":8789},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8788":{"this":{"__isSmartRef__":true,"id":690}},"8789":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8790":{"varMapping":{"__isSmartRef__":true,"id":8791},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8791":{"this":{"__isSmartRef__":true,"id":690}},"8792":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8793":{"varMapping":{"__isSmartRef__":true,"id":8794},"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":8795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8794":{"this":{"__isSmartRef__":true,"id":690}},"8795":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8796":{"varMapping":{"__isSmartRef__":true,"id":8797},"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":8802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8797":{"this":{"__isSmartRef__":true,"id":690},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8798}},"8798":{"$super":{"__isSmartRef__":true,"id":8799}},"8799":{"varMapping":{"__isSmartRef__":true,"id":8800},"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":8801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8800":{"obj":{"__isSmartRef__":true,"id":690},"name":"onMouseDown"},"8801":{},"8802":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8803":{"varMapping":{"__isSmartRef__":true,"id":8804},"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":8805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8804":{"this":{"__isSmartRef__":true,"id":690}},"8805":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8806":{"varMapping":{"__isSmartRef__":true,"id":8807},"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":8808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8807":{"this":{"__isSmartRef__":true,"id":690}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8810":{"this":{"__isSmartRef__":true,"id":690}},"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 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":8814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8813":{"this":{"__isSmartRef__":true,"id":690}},"8814":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8815":{"varMapping":{"__isSmartRef__":true,"id":8816},"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":8817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8816":{"this":{"__isSmartRef__":true,"id":690}},"8817":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8818":{"varMapping":{"__isSmartRef__":true,"id":8819},"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":8820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8819":{"this":{"__isSmartRef__":true,"id":690}},"8820":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8821":{"varMapping":{"__isSmartRef__":true,"id":8822},"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":8823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8822":{"this":{"__isSmartRef__":true,"id":690}},"8823":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8824":{"varMapping":{"__isSmartRef__":true,"id":8825},"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":8826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8825":{"this":{"__isSmartRef__":true,"id":690}},"8826":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8827":{"varMapping":{"__isSmartRef__":true,"id":8828},"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":8829},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8828":{"this":{"__isSmartRef__":true,"id":690}},"8829":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8830":{"addBomb":{"__isSmartRef__":true,"id":8831},"clearFlag":{"__isSmartRef__":true,"id":8834},"countNeighborBombs":{"__isSmartRef__":true,"id":8837},"fixSubmorph":{"__isSmartRef__":true,"id":8840},"initAppearance":{"__isSmartRef__":true,"id":8843},"initMorphs":{"__isSmartRef__":true,"id":8846},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8849},"isClosed":{"__isSmartRef__":true,"id":8852},"neighborPoints":{"__isSmartRef__":true,"id":8855},"onMouseDown":{"__isSmartRef__":true,"id":8858},"restoreGameAppearance":{"__isSmartRef__":true,"id":8865},"reveal":{"__isSmartRef__":true,"id":8868},"setCoordinates":{"__isSmartRef__":true,"id":8871},"showBomb":{"__isSmartRef__":true,"id":8874},"showDebugState":{"__isSmartRef__":true,"id":8877},"showFlag":{"__isSmartRef__":true,"id":8880},"showState":{"__isSmartRef__":true,"id":8883},"copyImageMorph":{"__isSmartRef__":true,"id":8886},"prepareToPublish":{"__isSmartRef__":true,"id":8889}},"8831":{"varMapping":{"__isSmartRef__":true,"id":8832},"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":8833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8832":{"this":{"__isSmartRef__":true,"id":642}},"8833":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8834":{"varMapping":{"__isSmartRef__":true,"id":8835},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8835":{"this":{"__isSmartRef__":true,"id":642}},"8836":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8837":{"varMapping":{"__isSmartRef__":true,"id":8838},"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":8839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8838":{"this":{"__isSmartRef__":true,"id":642}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8841":{"this":{"__isSmartRef__":true,"id":642}},"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 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":8845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8844":{"this":{"__isSmartRef__":true,"id":642}},"8845":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8846":{"varMapping":{"__isSmartRef__":true,"id":8847},"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":8848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8847":{"this":{"__isSmartRef__":true,"id":642}},"8848":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8849":{"varMapping":{"__isSmartRef__":true,"id":8850},"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":8851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8850":{"this":{"__isSmartRef__":true,"id":642}},"8851":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8852":{"varMapping":{"__isSmartRef__":true,"id":8853},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8853":{"this":{"__isSmartRef__":true,"id":642}},"8854":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8855":{"varMapping":{"__isSmartRef__":true,"id":8856},"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":8857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8856":{"this":{"__isSmartRef__":true,"id":642}},"8857":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8858":{"varMapping":{"__isSmartRef__":true,"id":8859},"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":8864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8859":{"this":{"__isSmartRef__":true,"id":642},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8860}},"8860":{"$super":{"__isSmartRef__":true,"id":8861}},"8861":{"varMapping":{"__isSmartRef__":true,"id":8862},"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":8863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8862":{"obj":{"__isSmartRef__":true,"id":642},"name":"onMouseDown"},"8863":{},"8864":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8865":{"varMapping":{"__isSmartRef__":true,"id":8866},"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":8867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8866":{"this":{"__isSmartRef__":true,"id":642}},"8867":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8868":{"varMapping":{"__isSmartRef__":true,"id":8869},"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":8870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8869":{"this":{"__isSmartRef__":true,"id":642}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8872":{"this":{"__isSmartRef__":true,"id":642}},"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 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":8876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8875":{"this":{"__isSmartRef__":true,"id":642}},"8876":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8877":{"varMapping":{"__isSmartRef__":true,"id":8878},"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":8879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8878":{"this":{"__isSmartRef__":true,"id":642}},"8879":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8880":{"varMapping":{"__isSmartRef__":true,"id":8881},"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":8882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8881":{"this":{"__isSmartRef__":true,"id":642}},"8882":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8883":{"varMapping":{"__isSmartRef__":true,"id":8884},"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":8885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8884":{"this":{"__isSmartRef__":true,"id":642}},"8885":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8886":{"varMapping":{"__isSmartRef__":true,"id":8887},"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":8888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8887":{"this":{"__isSmartRef__":true,"id":642}},"8888":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8889":{"varMapping":{"__isSmartRef__":true,"id":8890},"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":8891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8890":{"this":{"__isSmartRef__":true,"id":642}},"8891":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8892":{"addBomb":{"__isSmartRef__":true,"id":8893},"clearFlag":{"__isSmartRef__":true,"id":8896},"countNeighborBombs":{"__isSmartRef__":true,"id":8899},"fixSubmorph":{"__isSmartRef__":true,"id":8902},"initAppearance":{"__isSmartRef__":true,"id":8905},"initMorphs":{"__isSmartRef__":true,"id":8908},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8911},"isClosed":{"__isSmartRef__":true,"id":8914},"neighborPoints":{"__isSmartRef__":true,"id":8917},"onMouseDown":{"__isSmartRef__":true,"id":8920},"restoreGameAppearance":{"__isSmartRef__":true,"id":8927},"reveal":{"__isSmartRef__":true,"id":8930},"setCoordinates":{"__isSmartRef__":true,"id":8933},"showBomb":{"__isSmartRef__":true,"id":8936},"showDebugState":{"__isSmartRef__":true,"id":8939},"showFlag":{"__isSmartRef__":true,"id":8942},"showState":{"__isSmartRef__":true,"id":8945},"copyImageMorph":{"__isSmartRef__":true,"id":8948},"prepareToPublish":{"__isSmartRef__":true,"id":8951}},"8893":{"varMapping":{"__isSmartRef__":true,"id":8894},"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":8895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8894":{"this":{"__isSmartRef__":true,"id":594}},"8895":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8896":{"varMapping":{"__isSmartRef__":true,"id":8897},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8897":{"this":{"__isSmartRef__":true,"id":594}},"8898":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8899":{"varMapping":{"__isSmartRef__":true,"id":8900},"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":8901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8900":{"this":{"__isSmartRef__":true,"id":594}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8903":{"this":{"__isSmartRef__":true,"id":594}},"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 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":8907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8906":{"this":{"__isSmartRef__":true,"id":594}},"8907":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8908":{"varMapping":{"__isSmartRef__":true,"id":8909},"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":8910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8909":{"this":{"__isSmartRef__":true,"id":594}},"8910":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8911":{"varMapping":{"__isSmartRef__":true,"id":8912},"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":8913},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8912":{"this":{"__isSmartRef__":true,"id":594}},"8913":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8914":{"varMapping":{"__isSmartRef__":true,"id":8915},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8915":{"this":{"__isSmartRef__":true,"id":594}},"8916":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8917":{"varMapping":{"__isSmartRef__":true,"id":8918},"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":8919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8918":{"this":{"__isSmartRef__":true,"id":594}},"8919":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8920":{"varMapping":{"__isSmartRef__":true,"id":8921},"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":8926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8921":{"this":{"__isSmartRef__":true,"id":594},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8922}},"8922":{"$super":{"__isSmartRef__":true,"id":8923}},"8923":{"varMapping":{"__isSmartRef__":true,"id":8924},"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":8925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8924":{"obj":{"__isSmartRef__":true,"id":594},"name":"onMouseDown"},"8925":{},"8926":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8927":{"varMapping":{"__isSmartRef__":true,"id":8928},"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":8929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8928":{"this":{"__isSmartRef__":true,"id":594}},"8929":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8930":{"varMapping":{"__isSmartRef__":true,"id":8931},"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":8932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8931":{"this":{"__isSmartRef__":true,"id":594}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8934":{"this":{"__isSmartRef__":true,"id":594}},"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 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":8938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8937":{"this":{"__isSmartRef__":true,"id":594}},"8938":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"8939":{"varMapping":{"__isSmartRef__":true,"id":8940},"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":8941},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8940":{"this":{"__isSmartRef__":true,"id":594}},"8941":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"8942":{"varMapping":{"__isSmartRef__":true,"id":8943},"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":8944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8943":{"this":{"__isSmartRef__":true,"id":594}},"8944":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"8945":{"varMapping":{"__isSmartRef__":true,"id":8946},"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":8947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8946":{"this":{"__isSmartRef__":true,"id":594}},"8947":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"8948":{"varMapping":{"__isSmartRef__":true,"id":8949},"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":8950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8949":{"this":{"__isSmartRef__":true,"id":594}},"8950":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"8951":{"varMapping":{"__isSmartRef__":true,"id":8952},"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":8953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8952":{"this":{"__isSmartRef__":true,"id":594}},"8953":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"8954":{"addBomb":{"__isSmartRef__":true,"id":8955},"clearFlag":{"__isSmartRef__":true,"id":8958},"countNeighborBombs":{"__isSmartRef__":true,"id":8961},"fixSubmorph":{"__isSmartRef__":true,"id":8964},"initAppearance":{"__isSmartRef__":true,"id":8967},"initMorphs":{"__isSmartRef__":true,"id":8970},"initNeighborsAndCount":{"__isSmartRef__":true,"id":8973},"isClosed":{"__isSmartRef__":true,"id":8976},"neighborPoints":{"__isSmartRef__":true,"id":8979},"onMouseDown":{"__isSmartRef__":true,"id":8982},"restoreGameAppearance":{"__isSmartRef__":true,"id":8989},"reveal":{"__isSmartRef__":true,"id":8992},"setCoordinates":{"__isSmartRef__":true,"id":8995},"showBomb":{"__isSmartRef__":true,"id":8998},"showDebugState":{"__isSmartRef__":true,"id":9001},"showFlag":{"__isSmartRef__":true,"id":9004},"showState":{"__isSmartRef__":true,"id":9007},"copyImageMorph":{"__isSmartRef__":true,"id":9010},"prepareToPublish":{"__isSmartRef__":true,"id":9013}},"8955":{"varMapping":{"__isSmartRef__":true,"id":8956},"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":8957},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8956":{"this":{"__isSmartRef__":true,"id":546}},"8957":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"8958":{"varMapping":{"__isSmartRef__":true,"id":8959},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":8960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8959":{"this":{"__isSmartRef__":true,"id":546}},"8960":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"8961":{"varMapping":{"__isSmartRef__":true,"id":8962},"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":8963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8962":{"this":{"__isSmartRef__":true,"id":546}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":8966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8965":{"this":{"__isSmartRef__":true,"id":546}},"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 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":8969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8968":{"this":{"__isSmartRef__":true,"id":546}},"8969":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"8970":{"varMapping":{"__isSmartRef__":true,"id":8971},"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":8972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8971":{"this":{"__isSmartRef__":true,"id":546}},"8972":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"8973":{"varMapping":{"__isSmartRef__":true,"id":8974},"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":8975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8974":{"this":{"__isSmartRef__":true,"id":546}},"8975":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8976":{"varMapping":{"__isSmartRef__":true,"id":8977},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":8978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8977":{"this":{"__isSmartRef__":true,"id":546}},"8978":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8979":{"varMapping":{"__isSmartRef__":true,"id":8980},"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":8981},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8980":{"this":{"__isSmartRef__":true,"id":546}},"8981":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"8982":{"varMapping":{"__isSmartRef__":true,"id":8983},"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":8988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8983":{"this":{"__isSmartRef__":true,"id":546},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8984}},"8984":{"$super":{"__isSmartRef__":true,"id":8985}},"8985":{"varMapping":{"__isSmartRef__":true,"id":8986},"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":8987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8986":{"obj":{"__isSmartRef__":true,"id":546},"name":"onMouseDown"},"8987":{},"8988":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"8989":{"varMapping":{"__isSmartRef__":true,"id":8990},"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":8991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8990":{"this":{"__isSmartRef__":true,"id":546}},"8991":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"8992":{"varMapping":{"__isSmartRef__":true,"id":8993},"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":8994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8993":{"this":{"__isSmartRef__":true,"id":546}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":8997},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8996":{"this":{"__isSmartRef__":true,"id":546}},"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 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":9000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8999":{"this":{"__isSmartRef__":true,"id":546}},"9000":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9001":{"varMapping":{"__isSmartRef__":true,"id":9002},"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":9003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9002":{"this":{"__isSmartRef__":true,"id":546}},"9003":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9004":{"varMapping":{"__isSmartRef__":true,"id":9005},"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":9006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9005":{"this":{"__isSmartRef__":true,"id":546}},"9006":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9007":{"varMapping":{"__isSmartRef__":true,"id":9008},"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":9009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9008":{"this":{"__isSmartRef__":true,"id":546}},"9009":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9010":{"varMapping":{"__isSmartRef__":true,"id":9011},"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":9012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9011":{"this":{"__isSmartRef__":true,"id":546}},"9012":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9013":{"varMapping":{"__isSmartRef__":true,"id":9014},"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":9015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9014":{"this":{"__isSmartRef__":true,"id":546}},"9015":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9016":{"addBomb":{"__isSmartRef__":true,"id":9017},"clearFlag":{"__isSmartRef__":true,"id":9020},"countNeighborBombs":{"__isSmartRef__":true,"id":9023},"fixSubmorph":{"__isSmartRef__":true,"id":9026},"initAppearance":{"__isSmartRef__":true,"id":9029},"initMorphs":{"__isSmartRef__":true,"id":9032},"initNeighborsAndCount":{"__isSmartRef__":true,"id":9035},"isClosed":{"__isSmartRef__":true,"id":9038},"neighborPoints":{"__isSmartRef__":true,"id":9041},"onMouseDown":{"__isSmartRef__":true,"id":9044},"restoreGameAppearance":{"__isSmartRef__":true,"id":9051},"reveal":{"__isSmartRef__":true,"id":9054},"setCoordinates":{"__isSmartRef__":true,"id":9057},"showBomb":{"__isSmartRef__":true,"id":9060},"showDebugState":{"__isSmartRef__":true,"id":9063},"showFlag":{"__isSmartRef__":true,"id":9066},"showState":{"__isSmartRef__":true,"id":9069},"copyImageMorph":{"__isSmartRef__":true,"id":9072},"prepareToPublish":{"__isSmartRef__":true,"id":9075}},"9017":{"varMapping":{"__isSmartRef__":true,"id":9018},"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":9019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9018":{"this":{"__isSmartRef__":true,"id":498}},"9019":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"9020":{"varMapping":{"__isSmartRef__":true,"id":9021},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":9022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9021":{"this":{"__isSmartRef__":true,"id":498}},"9022":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"9023":{"varMapping":{"__isSmartRef__":true,"id":9024},"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":9025},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9024":{"this":{"__isSmartRef__":true,"id":498}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":9028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9027":{"this":{"__isSmartRef__":true,"id":498}},"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 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":9031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9030":{"this":{"__isSmartRef__":true,"id":498}},"9031":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"9032":{"varMapping":{"__isSmartRef__":true,"id":9033},"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":9034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9033":{"this":{"__isSmartRef__":true,"id":498}},"9034":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"9035":{"varMapping":{"__isSmartRef__":true,"id":9036},"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":9037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9036":{"this":{"__isSmartRef__":true,"id":498}},"9037":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9038":{"varMapping":{"__isSmartRef__":true,"id":9039},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":9040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9039":{"this":{"__isSmartRef__":true,"id":498}},"9040":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9041":{"varMapping":{"__isSmartRef__":true,"id":9042},"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":9043},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9042":{"this":{"__isSmartRef__":true,"id":498}},"9043":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9044":{"varMapping":{"__isSmartRef__":true,"id":9045},"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":9050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9045":{"this":{"__isSmartRef__":true,"id":498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9046}},"9046":{"$super":{"__isSmartRef__":true,"id":9047}},"9047":{"varMapping":{"__isSmartRef__":true,"id":9048},"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":9049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9048":{"obj":{"__isSmartRef__":true,"id":498},"name":"onMouseDown"},"9049":{},"9050":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"9051":{"varMapping":{"__isSmartRef__":true,"id":9052},"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":9053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9052":{"this":{"__isSmartRef__":true,"id":498}},"9053":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"9054":{"varMapping":{"__isSmartRef__":true,"id":9055},"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":9056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9055":{"this":{"__isSmartRef__":true,"id":498}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":9059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9058":{"this":{"__isSmartRef__":true,"id":498}},"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 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":9062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9061":{"this":{"__isSmartRef__":true,"id":498}},"9062":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9063":{"varMapping":{"__isSmartRef__":true,"id":9064},"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":9065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9064":{"this":{"__isSmartRef__":true,"id":498}},"9065":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9066":{"varMapping":{"__isSmartRef__":true,"id":9067},"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":9068},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9067":{"this":{"__isSmartRef__":true,"id":498}},"9068":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9069":{"varMapping":{"__isSmartRef__":true,"id":9070},"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":9071},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9070":{"this":{"__isSmartRef__":true,"id":498}},"9071":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9072":{"varMapping":{"__isSmartRef__":true,"id":9073},"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":9074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9073":{"this":{"__isSmartRef__":true,"id":498}},"9074":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9075":{"varMapping":{"__isSmartRef__":true,"id":9076},"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":9077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9076":{"this":{"__isSmartRef__":true,"id":498}},"9077":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9078":{"addBomb":{"__isSmartRef__":true,"id":9079},"clearFlag":{"__isSmartRef__":true,"id":9082},"countNeighborBombs":{"__isSmartRef__":true,"id":9085},"fixSubmorph":{"__isSmartRef__":true,"id":9088},"initAppearance":{"__isSmartRef__":true,"id":9091},"initMorphs":{"__isSmartRef__":true,"id":9094},"initNeighborsAndCount":{"__isSmartRef__":true,"id":9097},"isClosed":{"__isSmartRef__":true,"id":9100},"neighborPoints":{"__isSmartRef__":true,"id":9103},"onMouseDown":{"__isSmartRef__":true,"id":9106},"restoreGameAppearance":{"__isSmartRef__":true,"id":9113},"reveal":{"__isSmartRef__":true,"id":9116},"setCoordinates":{"__isSmartRef__":true,"id":9119},"showBomb":{"__isSmartRef__":true,"id":9122},"showDebugState":{"__isSmartRef__":true,"id":9125},"showFlag":{"__isSmartRef__":true,"id":9128},"showState":{"__isSmartRef__":true,"id":9131},"copyImageMorph":{"__isSmartRef__":true,"id":9134},"prepareToPublish":{"__isSmartRef__":true,"id":9137}},"9079":{"varMapping":{"__isSmartRef__":true,"id":9080},"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":9081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9080":{"this":{"__isSmartRef__":true,"id":450}},"9081":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"9082":{"varMapping":{"__isSmartRef__":true,"id":9083},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":9084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9083":{"this":{"__isSmartRef__":true,"id":450}},"9084":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"9085":{"varMapping":{"__isSmartRef__":true,"id":9086},"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":9087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9086":{"this":{"__isSmartRef__":true,"id":450}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":9090},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9089":{"this":{"__isSmartRef__":true,"id":450}},"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 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":9093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9092":{"this":{"__isSmartRef__":true,"id":450}},"9093":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"9094":{"varMapping":{"__isSmartRef__":true,"id":9095},"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":9096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9095":{"this":{"__isSmartRef__":true,"id":450}},"9096":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"9097":{"varMapping":{"__isSmartRef__":true,"id":9098},"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":9099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9098":{"this":{"__isSmartRef__":true,"id":450}},"9099":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9100":{"varMapping":{"__isSmartRef__":true,"id":9101},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":9102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9101":{"this":{"__isSmartRef__":true,"id":450}},"9102":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9103":{"varMapping":{"__isSmartRef__":true,"id":9104},"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":9105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9104":{"this":{"__isSmartRef__":true,"id":450}},"9105":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9106":{"varMapping":{"__isSmartRef__":true,"id":9107},"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":9112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9107":{"this":{"__isSmartRef__":true,"id":450},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9108}},"9108":{"$super":{"__isSmartRef__":true,"id":9109}},"9109":{"varMapping":{"__isSmartRef__":true,"id":9110},"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":9111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9110":{"obj":{"__isSmartRef__":true,"id":450},"name":"onMouseDown"},"9111":{},"9112":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"9113":{"varMapping":{"__isSmartRef__":true,"id":9114},"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":9115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9114":{"this":{"__isSmartRef__":true,"id":450}},"9115":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"9116":{"varMapping":{"__isSmartRef__":true,"id":9117},"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":9118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9117":{"this":{"__isSmartRef__":true,"id":450}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":9121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9120":{"this":{"__isSmartRef__":true,"id":450}},"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 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":9124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9123":{"this":{"__isSmartRef__":true,"id":450}},"9124":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9125":{"varMapping":{"__isSmartRef__":true,"id":9126},"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":9127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9126":{"this":{"__isSmartRef__":true,"id":450}},"9127":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9128":{"varMapping":{"__isSmartRef__":true,"id":9129},"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":9130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9129":{"this":{"__isSmartRef__":true,"id":450}},"9130":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9131":{"varMapping":{"__isSmartRef__":true,"id":9132},"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":9133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9132":{"this":{"__isSmartRef__":true,"id":450}},"9133":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9134":{"varMapping":{"__isSmartRef__":true,"id":9135},"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":9136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9135":{"this":{"__isSmartRef__":true,"id":450}},"9136":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9137":{"varMapping":{"__isSmartRef__":true,"id":9138},"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":9139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9138":{"this":{"__isSmartRef__":true,"id":450}},"9139":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9140":{"addBomb":{"__isSmartRef__":true,"id":9141},"clearFlag":{"__isSmartRef__":true,"id":9144},"countNeighborBombs":{"__isSmartRef__":true,"id":9147},"fixSubmorph":{"__isSmartRef__":true,"id":9150},"initAppearance":{"__isSmartRef__":true,"id":9153},"initMorphs":{"__isSmartRef__":true,"id":9156},"initNeighborsAndCount":{"__isSmartRef__":true,"id":9159},"isClosed":{"__isSmartRef__":true,"id":9162},"neighborPoints":{"__isSmartRef__":true,"id":9165},"onMouseDown":{"__isSmartRef__":true,"id":9168},"restoreGameAppearance":{"__isSmartRef__":true,"id":9175},"reveal":{"__isSmartRef__":true,"id":9178},"setCoordinates":{"__isSmartRef__":true,"id":9181},"showBomb":{"__isSmartRef__":true,"id":9184},"showDebugState":{"__isSmartRef__":true,"id":9187},"showFlag":{"__isSmartRef__":true,"id":9190},"showState":{"__isSmartRef__":true,"id":9193},"copyImageMorph":{"__isSmartRef__":true,"id":9196},"prepareToPublish":{"__isSmartRef__":true,"id":9199}},"9141":{"varMapping":{"__isSmartRef__":true,"id":9142},"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":9143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9142":{"this":{"__isSmartRef__":true,"id":402}},"9143":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"9144":{"varMapping":{"__isSmartRef__":true,"id":9145},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":9146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9145":{"this":{"__isSmartRef__":true,"id":402}},"9146":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"9147":{"varMapping":{"__isSmartRef__":true,"id":9148},"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":9149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9148":{"this":{"__isSmartRef__":true,"id":402}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":9152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9151":{"this":{"__isSmartRef__":true,"id":402}},"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 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":9155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9154":{"this":{"__isSmartRef__":true,"id":402}},"9155":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"9156":{"varMapping":{"__isSmartRef__":true,"id":9157},"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":9158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9157":{"this":{"__isSmartRef__":true,"id":402}},"9158":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"9159":{"varMapping":{"__isSmartRef__":true,"id":9160},"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":9161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9160":{"this":{"__isSmartRef__":true,"id":402}},"9161":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9162":{"varMapping":{"__isSmartRef__":true,"id":9163},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":9164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9163":{"this":{"__isSmartRef__":true,"id":402}},"9164":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9165":{"varMapping":{"__isSmartRef__":true,"id":9166},"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":9167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9166":{"this":{"__isSmartRef__":true,"id":402}},"9167":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9168":{"varMapping":{"__isSmartRef__":true,"id":9169},"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":9174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9169":{"this":{"__isSmartRef__":true,"id":402},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9170}},"9170":{"$super":{"__isSmartRef__":true,"id":9171}},"9171":{"varMapping":{"__isSmartRef__":true,"id":9172},"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":9173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9172":{"obj":{"__isSmartRef__":true,"id":402},"name":"onMouseDown"},"9173":{},"9174":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"9175":{"varMapping":{"__isSmartRef__":true,"id":9176},"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":9177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9176":{"this":{"__isSmartRef__":true,"id":402}},"9177":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"9178":{"varMapping":{"__isSmartRef__":true,"id":9179},"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":9180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9179":{"this":{"__isSmartRef__":true,"id":402}},"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 setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":9183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9182":{"this":{"__isSmartRef__":true,"id":402}},"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 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":9186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9185":{"this":{"__isSmartRef__":true,"id":402}},"9186":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9187":{"varMapping":{"__isSmartRef__":true,"id":9188},"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":9189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9188":{"this":{"__isSmartRef__":true,"id":402}},"9189":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9190":{"varMapping":{"__isSmartRef__":true,"id":9191},"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":9192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9191":{"this":{"__isSmartRef__":true,"id":402}},"9192":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9193":{"varMapping":{"__isSmartRef__":true,"id":9194},"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":9195},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9194":{"this":{"__isSmartRef__":true,"id":402}},"9195":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9196":{"varMapping":{"__isSmartRef__":true,"id":9197},"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":9198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9197":{"this":{"__isSmartRef__":true,"id":402}},"9198":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9199":{"varMapping":{"__isSmartRef__":true,"id":9200},"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":9201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9200":{"this":{"__isSmartRef__":true,"id":402}},"9201":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9202":{"addBomb":{"__isSmartRef__":true,"id":9203},"clearFlag":{"__isSmartRef__":true,"id":9206},"countNeighborBombs":{"__isSmartRef__":true,"id":9209},"fixSubmorph":{"__isSmartRef__":true,"id":9212},"initAppearance":{"__isSmartRef__":true,"id":9215},"initMorphs":{"__isSmartRef__":true,"id":9218},"initNeighborsAndCount":{"__isSmartRef__":true,"id":9221},"isClosed":{"__isSmartRef__":true,"id":9224},"neighborPoints":{"__isSmartRef__":true,"id":9227},"onMouseDown":{"__isSmartRef__":true,"id":9230},"restoreGameAppearance":{"__isSmartRef__":true,"id":9237},"reveal":{"__isSmartRef__":true,"id":9240},"setCoordinates":{"__isSmartRef__":true,"id":9243},"showBomb":{"__isSmartRef__":true,"id":9246},"showDebugState":{"__isSmartRef__":true,"id":9249},"showFlag":{"__isSmartRef__":true,"id":9252},"showState":{"__isSmartRef__":true,"id":9255},"copyImageMorph":{"__isSmartRef__":true,"id":9258},"prepareToPublish":{"__isSmartRef__":true,"id":9261}},"9203":{"varMapping":{"__isSmartRef__":true,"id":9204},"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":9205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9204":{"this":{"__isSmartRef__":true,"id":1}},"9205":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"9206":{"varMapping":{"__isSmartRef__":true,"id":9207},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":9208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9207":{"this":{"__isSmartRef__":true,"id":1}},"9208":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"9209":{"varMapping":{"__isSmartRef__":true,"id":9210},"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":9211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9210":{"this":{"__isSmartRef__":true,"id":1}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":9214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9213":{"this":{"__isSmartRef__":true,"id":1}},"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 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":9217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9216":{"this":{"__isSmartRef__":true,"id":1}},"9217":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"9218":{"varMapping":{"__isSmartRef__":true,"id":9219},"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":9220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9219":{"this":{"__isSmartRef__":true,"id":1}},"9220":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"9221":{"varMapping":{"__isSmartRef__":true,"id":9222},"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":9223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9222":{"this":{"__isSmartRef__":true,"id":1}},"9223":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9224":{"varMapping":{"__isSmartRef__":true,"id":9225},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":9226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9225":{"this":{"__isSmartRef__":true,"id":1}},"9226":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9227":{"varMapping":{"__isSmartRef__":true,"id":9228},"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":9229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9228":{"this":{"__isSmartRef__":true,"id":1}},"9229":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9230":{"varMapping":{"__isSmartRef__":true,"id":9231},"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":9236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9231":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9232}},"9232":{"$super":{"__isSmartRef__":true,"id":9233}},"9233":{"varMapping":{"__isSmartRef__":true,"id":9234},"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":9235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9234":{"obj":{"__isSmartRef__":true,"id":1},"name":"onMouseDown"},"9235":{},"9236":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"9237":{"varMapping":{"__isSmartRef__":true,"id":9238},"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":9239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9238":{"this":{"__isSmartRef__":true,"id":1}},"9239":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"9240":{"varMapping":{"__isSmartRef__":true,"id":9241},"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":9242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9241":{"this":{"__isSmartRef__":true,"id":1}},"9242":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9243":{"varMapping":{"__isSmartRef__":true,"id":9244},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":9245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9244":{"this":{"__isSmartRef__":true,"id":1}},"9245":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9246":{"varMapping":{"__isSmartRef__":true,"id":9247},"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":9248},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9247":{"this":{"__isSmartRef__":true,"id":1}},"9248":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9249":{"varMapping":{"__isSmartRef__":true,"id":9250},"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":9251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9250":{"this":{"__isSmartRef__":true,"id":1}},"9251":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9252":{"varMapping":{"__isSmartRef__":true,"id":9253},"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":9254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9253":{"this":{"__isSmartRef__":true,"id":1}},"9254":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9255":{"varMapping":{"__isSmartRef__":true,"id":9256},"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":9257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9256":{"this":{"__isSmartRef__":true,"id":1}},"9257":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9258":{"varMapping":{"__isSmartRef__":true,"id":9259},"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":9260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9259":{"this":{"__isSmartRef__":true,"id":1}},"9260":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9261":{"varMapping":{"__isSmartRef__":true,"id":9262},"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":9263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9262":{"this":{"__isSmartRef__":true,"id":1}},"9263":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9264":{"_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)"},"9265":{"partsSpaceName":"PartsBin/Rick/","comment":"The Board for Minesweeper","migrationLevel":8,"partName":"MinesweeperBoard","changes":[{"__isSmartRef__":true,"id":9266},{"__isSmartRef__":true,"id":9267},{"__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},{"__isSmartRef__":true,"id":9276},{"__isSmartRef__":true,"id":9277},{"__isSmartRef__":true,"id":9278},{"__isSmartRef__":true,"id":9279},{"__isSmartRef__":true,"id":9280},{"__isSmartRef__":true,"id":9281},{"__isSmartRef__":true,"id":9282},{"__isSmartRef__":true,"id":9283},{"__isSmartRef__":true,"id":9284},{"__isSmartRef__":true,"id":9285},{"__isSmartRef__":true,"id":9286}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Mon Aug 18 2014 09:49:38 GMT-0700 (PDT)\")"},"9266":{"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)\")"},"9267":{"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)\")"},"9268":{"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)\")"},"9269":{"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)\")"},"9270":{"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)\")"},"9271":{"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)\")"},"9272":{"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)\")"},"9273":{"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)\")"},"9274":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"9275":{"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)\")"},"9276":{"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)\")"},"9277":{"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)\")"},"9278":{"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)\")"},"9279":{"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)\")"},"9280":{"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)\")"},"9281":{"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)\")"},"9282":{"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)\")"},"9283":{"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)\")"},"9284":{"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)\")"},"9285":{"__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)\")"},"9286":{"__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)\")"},"9287":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9288":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9289}},"9289":{"test01IsMorph":{"__isSmartRef__":true,"id":9290}},"9290":{"varMapping":{"__isSmartRef__":true,"id":9291},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":9292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9291":{"this":{"__isSmartRef__":true,"id":9288}},"9292":{},"9293":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"bombsRemaining","targetObj":{"__isSmartRef__":true,"id":309},"targetMethodName":"textString","varMapping":{"__isSmartRef__":true,"id":9294},"converterString":"function converter(value) {\n    if (!value) {\n        value = '-'\n    }\n    return 'Bombs Remaining: ' + value\n}","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"9294":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":309}},"9295":{"submorphs":[{"__isSmartRef__":true,"id":9296}],"scripts":[],"id":"ECD1BDB7-B392-48C8-8AE0-8239540C4665","shape":{"__isSmartRef__":true,"id":9311},"__layered_droppingEnabled__":true,"halosEnabled":false,"registeredForMouseEvents":true,"showsHalos":false,"name":"MinesweeperSquare","partsBinMetaInfo":{"__isSmartRef__":true,"id":9312},"eventHandler":{"__isSmartRef__":true,"id":9332},"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":9333},"_ClipMode":"visible","moved":true,"droppingEnabled":false,"_Rotation":0,"_Scale":1,"bombMorph":{"__isSmartRef__":true,"id":9338},"flagShowing":false,"neighborCountMorph":{"__isSmartRef__":true,"id":9296},"isRevealed":false,"hasBomb":false,"_Visible":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"utilities":{"__isSmartRef__":true,"id":49},"draggingEnabled":false,"grabbingEnabled":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9343},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(219.0,61.0)","distanceToDragEvent":"lively.pt(29.0,-19.0)"},"9296":{"submorphs":[],"scripts":[],"id":"B6D05680-8C11-491F-A71C-0F0593F50D35","shape":{"__isSmartRef__":true,"id":9297},"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":9298},"textChunks":[{"__isSmartRef__":true,"id":9307}],"charsReplaced":"Some Text","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":9309},"_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":9310},"owner":{"__isSmartRef__":true,"id":9295},"_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)"},"9297":{"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)"},"9298":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":9299},{"__isSmartRef__":true,"id":9300},{"__isSmartRef__":true,"id":9301},{"__isSmartRef__":true,"id":9302},{"__isSmartRef__":true,"id":9303},{"__isSmartRef__":true,"id":9304},{"__isSmartRef__":true,"id":9305},{"__isSmartRef__":true,"id":9306}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Sat Apr 05 2014 01:51:52 GMT-0700 (PDT)\")"},"9299":{"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)\")"},"9300":{"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)\")"},"9301":{"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)\")"},"9302":{"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)\")"},"9303":{"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)\")"},"9304":{"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)\")"},"9305":{"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)\")"},"9306":{"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)\")"},"9307":{"style":{"__isSmartRef__":true,"id":9308},"chunkOwner":{"__isSmartRef__":true,"id":9296},"_id":"_6017","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9308":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"9309":{"morph":{"__isSmartRef__":true,"id":9296},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9310":{"resizeWidth":true},"9311":{"_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)"},"9312":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":9313},{"__isSmartRef__":true,"id":9314},{"__isSmartRef__":true,"id":9315},{"__isSmartRef__":true,"id":9316},{"__isSmartRef__":true,"id":9317},{"__isSmartRef__":true,"id":9318},{"__isSmartRef__":true,"id":9319},{"__isSmartRef__":true,"id":9320},{"__isSmartRef__":true,"id":9321},{"__isSmartRef__":true,"id":9322},{"__isSmartRef__":true,"id":9323},{"__isSmartRef__":true,"id":9324},{"__isSmartRef__":true,"id":9325},{"__isSmartRef__":true,"id":9326},{"__isSmartRef__":true,"id":9327},{"__isSmartRef__":true,"id":9328},{"__isSmartRef__":true,"id":9329},{"__isSmartRef__":true,"id":9330},{"__isSmartRef__":true,"id":9331}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 07:00:28 GMT-0700 (PDT)\")"},"9313":{"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)\")"},"9314":{"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)\")"},"9315":{"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)\")"},"9316":{"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)\")"},"9317":{"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)\")"},"9318":{"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)\")"},"9319":{"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)\")"},"9320":{"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)\")"},"9321":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"9322":{"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)\")"},"9323":{"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)\")"},"9324":{"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)\")"},"9325":{"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)\")"},"9326":{"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)\")"},"9327":{"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)\")"},"9328":{"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)\")"},"9329":{"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)\")"},"9330":{"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)\")"},"9331":{"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)\")"},"9332":{"morph":{"__isSmartRef__":true,"id":9295},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9333":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9334}},"9334":{"test01IsMorph":{"__isSmartRef__":true,"id":9335}},"9335":{"varMapping":{"__isSmartRef__":true,"id":9336},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":9337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9336":{"this":{"__isSmartRef__":true,"id":9333}},"9337":{},"9338":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9339},"_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":9340},"name":"Bomb","showsHalos":false,"_Visible":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":9341},"_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)"},"9339":{"_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)"},"9340":{"morph":{"__isSmartRef__":true,"id":9338},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9341":{"partName":"Bomb","requiredModules":[],"partsSpaceName":"PartsBin/Rick/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":9342}],"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)\")"},"9342":{"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)\")"},"9343":{"addBomb":{"__isSmartRef__":true,"id":9344},"clearFlag":{"__isSmartRef__":true,"id":9347},"countNeighborBombs":{"__isSmartRef__":true,"id":9350},"fixSubmorph":{"__isSmartRef__":true,"id":9353},"initAppearance":{"__isSmartRef__":true,"id":9356},"initMorphs":{"__isSmartRef__":true,"id":9359},"initNeighborsAndCount":{"__isSmartRef__":true,"id":9362},"isClosed":{"__isSmartRef__":true,"id":9365},"neighborPoints":{"__isSmartRef__":true,"id":9368},"onMouseDown":{"__isSmartRef__":true,"id":9371},"restoreGameAppearance":{"__isSmartRef__":true,"id":9378},"reveal":{"__isSmartRef__":true,"id":9381},"setCoordinates":{"__isSmartRef__":true,"id":9384},"showBomb":{"__isSmartRef__":true,"id":9387},"showDebugState":{"__isSmartRef__":true,"id":9390},"showFlag":{"__isSmartRef__":true,"id":9393},"showState":{"__isSmartRef__":true,"id":9396},"copyImageMorph":{"__isSmartRef__":true,"id":9399},"prepareToPublish":{"__isSmartRef__":true,"id":9402}},"9344":{"varMapping":{"__isSmartRef__":true,"id":9345},"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":9346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9345":{"this":{"__isSmartRef__":true,"id":9295}},"9346":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:56:41 GMT-0700 (PDT)\")"},"9347":{"varMapping":{"__isSmartRef__":true,"id":9348},"source":"function clearFlag() {\n    this.flagMorph.setVisible(false);\n    this.flagShowing = false;\n}","funcProperties":{"__isSmartRef__":true,"id":9349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9348":{"this":{"__isSmartRef__":true,"id":9295}},"9349":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:09:57 GMT-0700 (PDT)\")"},"9350":{"varMapping":{"__isSmartRef__":true,"id":9351},"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":9352},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9351":{"this":{"__isSmartRef__":true,"id":9295}},"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 fixSubmorph(aMorph) {\n    aMorph.disableDragging()\n    aMorph.disableDropping()\n    aMorph.disableGrabbing()\n    aMorph.disableHalos()\n}","funcProperties":{"__isSmartRef__":true,"id":9355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9354":{"this":{"__isSmartRef__":true,"id":9295}},"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 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":9358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9357":{"this":{"__isSmartRef__":true,"id":9295}},"9358":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:21:16 GMT-0700 (PDT)\")"},"9359":{"varMapping":{"__isSmartRef__":true,"id":9360},"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":9361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9360":{"this":{"__isSmartRef__":true,"id":9295}},"9361":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:06 GMT-0700 (PDT)\")"},"9362":{"varMapping":{"__isSmartRef__":true,"id":9363},"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":9364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9363":{"this":{"__isSmartRef__":true,"id":9295}},"9364":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9365":{"varMapping":{"__isSmartRef__":true,"id":9366},"source":"function isClosed() {\n    return !(this.isRevealed || this.hasBomb)\n}","funcProperties":{"__isSmartRef__":true,"id":9367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9366":{"this":{"__isSmartRef__":true,"id":9295}},"9367":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9368":{"varMapping":{"__isSmartRef__":true,"id":9369},"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":9370},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9369":{"this":{"__isSmartRef__":true,"id":9295}},"9370":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9371":{"varMapping":{"__isSmartRef__":true,"id":9372},"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":9377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9372":{"this":{"__isSmartRef__":true,"id":9295},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9373}},"9373":{"$super":{"__isSmartRef__":true,"id":9374}},"9374":{"varMapping":{"__isSmartRef__":true,"id":9375},"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":9376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9375":{"obj":{"__isSmartRef__":true,"id":9295},"name":"onMouseDown"},"9376":{},"9377":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:17:40 GMT-0700 (PDT)\")"},"9378":{"varMapping":{"__isSmartRef__":true,"id":9379},"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":9380},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9379":{"this":{"__isSmartRef__":true,"id":9295}},"9380":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:21:19 GMT-0700 (PDT)\")"},"9381":{"varMapping":{"__isSmartRef__":true,"id":9382},"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":9383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9382":{"this":{"__isSmartRef__":true,"id":9295}},"9383":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9384":{"varMapping":{"__isSmartRef__":true,"id":9385},"source":"function setCoordinates(aPoint) {\n    this.coordinates = aPoint;\n}","funcProperties":{"__isSmartRef__":true,"id":9386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9385":{"this":{"__isSmartRef__":true,"id":9295}},"9386":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:02:37 GMT-0700 (PDT)\")"},"9387":{"varMapping":{"__isSmartRef__":true,"id":9388},"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":9389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9388":{"this":{"__isSmartRef__":true,"id":9295}},"9389":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:23:20 GMT-0700 (PDT)\")"},"9390":{"varMapping":{"__isSmartRef__":true,"id":9391},"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":9392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9391":{"this":{"__isSmartRef__":true,"id":9295}},"9392":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:18:26 GMT-0700 (PDT)\")"},"9393":{"varMapping":{"__isSmartRef__":true,"id":9394},"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":9395},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9394":{"this":{"__isSmartRef__":true,"id":9295}},"9395":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:57:50 GMT-0700 (PDT)\")"},"9396":{"varMapping":{"__isSmartRef__":true,"id":9397},"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":9398},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9397":{"this":{"__isSmartRef__":true,"id":9295}},"9398":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:17:33 GMT-0700 (PDT)\")"},"9399":{"varMapping":{"__isSmartRef__":true,"id":9400},"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":9401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9400":{"this":{"__isSmartRef__":true,"id":9295}},"9401":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 17:55:52 GMT-0700 (PDT)\")"},"9402":{"varMapping":{"__isSmartRef__":true,"id":9403},"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":9404},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9403":{"this":{"__isSmartRef__":true,"id":9295}},"9404":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:02:05 GMT-0700 (PDT)\")"},"9405":{"lively.pt(0.0,0.0)":{"__isSmartRef__":true,"id":1},"lively.pt(0.0,1.0)":{"__isSmartRef__":true,"id":402},"lively.pt(0.0,2.0)":{"__isSmartRef__":true,"id":450},"lively.pt(0.0,3.0)":{"__isSmartRef__":true,"id":498},"lively.pt(0.0,4.0)":{"__isSmartRef__":true,"id":546},"lively.pt(0.0,5.0)":{"__isSmartRef__":true,"id":594},"lively.pt(0.0,6.0)":{"__isSmartRef__":true,"id":642},"lively.pt(0.0,7.0)":{"__isSmartRef__":true,"id":690},"lively.pt(0.0,8.0)":{"__isSmartRef__":true,"id":738},"lively.pt(1.0,0.0)":{"__isSmartRef__":true,"id":1122},"lively.pt(1.0,1.0)":{"__isSmartRef__":true,"id":1074},"lively.pt(1.0,2.0)":{"__isSmartRef__":true,"id":1026},"lively.pt(1.0,3.0)":{"__isSmartRef__":true,"id":978},"lively.pt(1.0,4.0)":{"__isSmartRef__":true,"id":930},"lively.pt(1.0,5.0)":{"__isSmartRef__":true,"id":882},"lively.pt(1.0,6.0)":{"__isSmartRef__":true,"id":834},"lively.pt(1.0,7.0)":{"__isSmartRef__":true,"id":786},"lively.pt(1.0,8.0)":{"__isSmartRef__":true,"id":1554},"lively.pt(2.0,0.0)":{"__isSmartRef__":true,"id":1170},"lively.pt(2.0,1.0)":{"__isSmartRef__":true,"id":1218},"lively.pt(2.0,2.0)":{"__isSmartRef__":true,"id":1266},"lively.pt(2.0,3.0)":{"__isSmartRef__":true,"id":1314},"lively.pt(2.0,4.0)":{"__isSmartRef__":true,"id":1362},"lively.pt(2.0,5.0)":{"__isSmartRef__":true,"id":1410},"lively.pt(2.0,6.0)":{"__isSmartRef__":true,"id":1458},"lively.pt(2.0,7.0)":{"__isSmartRef__":true,"id":1506},"lively.pt(2.0,8.0)":{"__isSmartRef__":true,"id":1602},"lively.pt(3.0,0.0)":{"__isSmartRef__":true,"id":1986},"lively.pt(3.0,1.0)":{"__isSmartRef__":true,"id":1938},"lively.pt(3.0,2.0)":{"__isSmartRef__":true,"id":1890},"lively.pt(3.0,3.0)":{"__isSmartRef__":true,"id":1842},"lively.pt(3.0,4.0)":{"__isSmartRef__":true,"id":1794},"lively.pt(3.0,5.0)":{"__isSmartRef__":true,"id":1746},"lively.pt(3.0,6.0)":{"__isSmartRef__":true,"id":1698},"lively.pt(3.0,7.0)":{"__isSmartRef__":true,"id":1650},"lively.pt(3.0,8.0)":{"__isSmartRef__":true,"id":2418},"lively.pt(4.0,0.0)":{"__isSmartRef__":true,"id":2034},"lively.pt(4.0,1.0)":{"__isSmartRef__":true,"id":2082},"lively.pt(4.0,2.0)":{"__isSmartRef__":true,"id":2130},"lively.pt(4.0,3.0)":{"__isSmartRef__":true,"id":2178},"lively.pt(4.0,4.0)":{"__isSmartRef__":true,"id":2226},"lively.pt(4.0,5.0)":{"__isSmartRef__":true,"id":2274},"lively.pt(4.0,6.0)":{"__isSmartRef__":true,"id":2322},"lively.pt(4.0,7.0)":{"__isSmartRef__":true,"id":2370},"lively.pt(4.0,8.0)":{"__isSmartRef__":true,"id":2466},"lively.pt(5.0,0.0)":{"__isSmartRef__":true,"id":2850},"lively.pt(5.0,1.0)":{"__isSmartRef__":true,"id":2802},"lively.pt(5.0,2.0)":{"__isSmartRef__":true,"id":2754},"lively.pt(5.0,3.0)":{"__isSmartRef__":true,"id":2706},"lively.pt(5.0,4.0)":{"__isSmartRef__":true,"id":2658},"lively.pt(5.0,5.0)":{"__isSmartRef__":true,"id":2610},"lively.pt(5.0,6.0)":{"__isSmartRef__":true,"id":2562},"lively.pt(5.0,7.0)":{"__isSmartRef__":true,"id":2514},"lively.pt(5.0,8.0)":{"__isSmartRef__":true,"id":3282},"lively.pt(6.0,0.0)":{"__isSmartRef__":true,"id":2898},"lively.pt(6.0,1.0)":{"__isSmartRef__":true,"id":2946},"lively.pt(6.0,2.0)":{"__isSmartRef__":true,"id":2994},"lively.pt(6.0,3.0)":{"__isSmartRef__":true,"id":3042},"lively.pt(6.0,4.0)":{"__isSmartRef__":true,"id":3090},"lively.pt(6.0,5.0)":{"__isSmartRef__":true,"id":3138},"lively.pt(6.0,6.0)":{"__isSmartRef__":true,"id":3186},"lively.pt(6.0,7.0)":{"__isSmartRef__":true,"id":3234},"lively.pt(6.0,8.0)":{"__isSmartRef__":true,"id":3330},"lively.pt(7.0,0.0)":{"__isSmartRef__":true,"id":3714},"lively.pt(7.0,1.0)":{"__isSmartRef__":true,"id":3666},"lively.pt(7.0,2.0)":{"__isSmartRef__":true,"id":3618},"lively.pt(7.0,3.0)":{"__isSmartRef__":true,"id":3570},"lively.pt(7.0,4.0)":{"__isSmartRef__":true,"id":3522},"lively.pt(7.0,5.0)":{"__isSmartRef__":true,"id":3474},"lively.pt(7.0,6.0)":{"__isSmartRef__":true,"id":3426},"lively.pt(7.0,7.0)":{"__isSmartRef__":true,"id":3378},"lively.pt(7.0,8.0)":{"__isSmartRef__":true,"id":4146},"lively.pt(8.0,0.0)":{"__isSmartRef__":true,"id":3762},"lively.pt(8.0,1.0)":{"__isSmartRef__":true,"id":3810},"lively.pt(8.0,2.0)":{"__isSmartRef__":true,"id":3858},"lively.pt(8.0,3.0)":{"__isSmartRef__":true,"id":3906},"lively.pt(8.0,4.0)":{"__isSmartRef__":true,"id":3954},"lively.pt(8.0,5.0)":{"__isSmartRef__":true,"id":4002},"lively.pt(8.0,6.0)":{"__isSmartRef__":true,"id":4050},"lively.pt(8.0,7.0)":{"__isSmartRef__":true,"id":4098},"lively.pt(8.0,8.0)":{"__isSmartRef__":true,"id":4194}},"9406":{"checkWin":{"__isSmartRef__":true,"id":9407},"getAllSquares":{"__isSmartRef__":true,"id":9410},"getSquare":{"__isSmartRef__":true,"id":9413},"getState":{"__isSmartRef__":true,"id":9416},"getTimes":{"__isSmartRef__":true,"id":9419},"hitBomb":{"__isSmartRef__":true,"id":9422},"init":{"__isSmartRef__":true,"id":9425},"makeBombIndices":{"__isSmartRef__":true,"id":9428},"newGame":{"__isSmartRef__":true,"id":9431},"onBoard":{"__isSmartRef__":true,"id":9434},"removeSquares":{"__isSmartRef__":true,"id":9437},"restoreGameState":{"__isSmartRef__":true,"id":9440},"showBoardState":{"__isSmartRef__":true,"id":9443},"updatePrototype":{"__isSmartRef__":true,"id":9446},"addSquares":{"__isSmartRef__":true,"id":9449},"prepareToPublish":{"__isSmartRef__":true,"id":9452}},"9407":{"varMapping":{"__isSmartRef__":true,"id":9408},"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":9409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9408":{"this":{"__isSmartRef__":true,"id":0}},"9409":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9410":{"varMapping":{"__isSmartRef__":true,"id":9411},"source":"function getAllSquares() {\n    return this.cells.map(function(cell) {return this.getSquare(cell)}, this)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9411":{"this":{"__isSmartRef__":true,"id":0}},"9412":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9413":{"varMapping":{"__isSmartRef__":true,"id":9414},"source":"function getSquare(aCoord) {\n    return this.squares[aCoord]\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9414":{"this":{"__isSmartRef__":true,"id":0}},"9415":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9416":{"varMapping":{"__isSmartRef__":true,"id":9417},"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":9418},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9417":{"this":{"__isSmartRef__":true,"id":0}},"9418":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9419":{"varMapping":{"__isSmartRef__":true,"id":9420},"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":9421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9420":{"this":{"__isSmartRef__":true,"id":0}},"9421":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9422":{"varMapping":{"__isSmartRef__":true,"id":9423},"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":9424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9423":{"this":{"__isSmartRef__":true,"id":0}},"9424":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9425":{"varMapping":{"__isSmartRef__":true,"id":9426},"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":9427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9426":{"this":{"__isSmartRef__":true,"id":0}},"9427":{"__serializedExpressions__":["timestamp"],"user":"rick","timestamp":"new Date(\"Mon Aug 18 2014 09:26:00 GMT-0700 (PDT)\")"},"9428":{"varMapping":{"__isSmartRef__":true,"id":9429},"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":9430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9429":{"this":{"__isSmartRef__":true,"id":0}},"9430":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9431":{"varMapping":{"__isSmartRef__":true,"id":9432},"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":9433},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9432":{"this":{"__isSmartRef__":true,"id":0}},"9433":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9434":{"varMapping":{"__isSmartRef__":true,"id":9435},"source":"function onBoard(aCoord) {\n    return this.dimension.containsPoint(aCoord)\n}","funcProperties":{"__isSmartRef__":true,"id":9436},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9435":{"this":{"__isSmartRef__":true,"id":0}},"9436":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9437":{"varMapping":{"__isSmartRef__":true,"id":9438},"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":9439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9438":{"this":{"__isSmartRef__":true,"id":0}},"9439":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9440":{"varMapping":{"__isSmartRef__":true,"id":9441},"source":"function restoreGameState() {\n    var squares = this.getAllSquares();\n    squares.forEach(function(square) {square.restoreGameAppearance()})\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9441":{"this":{"__isSmartRef__":true,"id":0}},"9442":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9443":{"varMapping":{"__isSmartRef__":true,"id":9444},"source":"function showBoardState() {\n    var squares = this.getAllSquares();\n    squares.forEach(function(square) {square.showDebugState()})\n    \n}","funcProperties":{"__isSmartRef__":true,"id":9445},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9444":{"this":{"__isSmartRef__":true,"id":0}},"9445":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:24:08 GMT-0700 (PDT)\")"},"9446":{"varMapping":{"__isSmartRef__":true,"id":9447},"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":9448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9447":{"this":{"__isSmartRef__":true,"id":0}},"9448":{"__serializedExpressions__":["timestamp"],"user":"rick","timestamp":"new Date(\"Mon Aug 18 2014 07:37:19 GMT-0700 (PDT)\")"},"9449":{"varMapping":{"__isSmartRef__":true,"id":9450},"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":9451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9450":{"this":{"__isSmartRef__":true,"id":0}},"9451":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Aug 17 2014 18:27:28 GMT-0700 (PDT)\")"},"9452":{"varMapping":{"__isSmartRef__":true,"id":9453},"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":9454},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"9453":{"this":{"__isSmartRef__":true,"id":0}},"9454":{"__serializedExpressions__":["timestamp"],"user":"rick","timestamp":"new Date(\"Mon Aug 18 2014 09:51:06 GMT-0700 (PDT)\")"},"isSimplifiedRegistry":true}}