{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":1758},{"__isSmartRef__":true,"id":1629},{"__isSmartRef__":true,"id":1646},{"__isSmartRef__":true,"id":1773},{"__isSmartRef__":true,"id":1796},{"__isSmartRef__":true,"id":1885},{"__isSmartRef__":true,"id":1951}],"scripts":[],"id":"927E33BE-C916-4A2B-8CE7-C70843C136ED","shape":{"__isSmartRef__":true,"id":2017},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"2048Game","partsBinMetaInfo":{"__isSmartRef__":true,"id":2018},"eventHandler":{"__isSmartRef__":true,"id":2039},"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"],"partTests":{"__isSmartRef__":true,"id":2040},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"_Rotation":0,"_Scale":1,"isCopyMorphRef":true,"morphRefId":1,"_Visible":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2045},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(242.0,-7.0)"},"1":{"submorphs":[{"__isSmartRef__":true,"id":2},{"__isSmartRef__":true,"id":48},{"__isSmartRef__":true,"id":94},{"__isSmartRef__":true,"id":140},{"__isSmartRef__":true,"id":186},{"__isSmartRef__":true,"id":232},{"__isSmartRef__":true,"id":278},{"__isSmartRef__":true,"id":324},{"__isSmartRef__":true,"id":370},{"__isSmartRef__":true,"id":416},{"__isSmartRef__":true,"id":462},{"__isSmartRef__":true,"id":508},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":600},{"__isSmartRef__":true,"id":646},{"__isSmartRef__":true,"id":692}],"scripts":[],"id":"F89CBDBA-D41B-44F7-98EA-65C22C1CDA75","shape":{"__isSmartRef__":true,"id":738},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Board","partsBinMetaInfo":{"__isSmartRef__":true,"id":739},"eventHandler":{"__isSmartRef__":true,"id":759},"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"],"partTests":{"__isSmartRef__":true,"id":760},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":0},"tiles":[{"__isSmartRef__":true,"id":774},{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":776},{"__isSmartRef__":true,"id":777},{"__isSmartRef__":true,"id":778},{"__isSmartRef__":true,"id":779},{"__isSmartRef__":true,"id":780},{"__isSmartRef__":true,"id":781},{"__isSmartRef__":true,"id":782},{"__isSmartRef__":true,"id":783},{"__isSmartRef__":true,"id":784},{"__isSmartRef__":true,"id":785},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":787},{"__isSmartRef__":true,"id":788},{"__isSmartRef__":true,"id":789}],"isLockOwner":true,"slices":{"__isSmartRef__":true,"id":790},"scratchpad":{"__isSmartRef__":true,"id":795},"lastEvent":{"__isSmartRef__":true,"id":828},"_Rotation":0,"_Scale":1,"gameBoard":[0,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0],"gameOver":false,"totalWinner":false,"blankTiles":[{"__isSmartRef__":true,"id":830},{"__isSmartRef__":true,"id":877},{"__isSmartRef__":true,"id":924},{"__isSmartRef__":true,"id":971},{"__isSmartRef__":true,"id":1018},{"__isSmartRef__":true,"id":1065},{"__isSmartRef__":true,"id":1112},{"__isSmartRef__":true,"id":1159},{"__isSmartRef__":true,"id":1206},{"__isSmartRef__":true,"id":1253},{"__isSmartRef__":true,"id":1300},{"__isSmartRef__":true,"id":1347},{"__isSmartRef__":true,"id":1394},{"__isSmartRef__":true,"id":1441},{"__isSmartRef__":true,"id":1488},{"__isSmartRef__":true,"id":1535}],"prototypeTile":{"__isSmartRef__":true,"id":1582},"bestScore":1972,"animationsInProcess":0,"score":0,"attributeConnections":[{"__isSmartRef__":true,"id":1628},{"__isSmartRef__":true,"id":1645}],"doNotSerialize":["$$score","$$bestScore"],"doNotCopyProperties":["$$score","$$bestScore"],"__serializedExpressions__":["_Position","distanceToDragEvent"],"horizontalRailPrototype":null,"verticalRailPrototype":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1662},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(20.0,110.0)","distanceToDragEvent":"lively.pt(207.0,-10.0)"},"2":{"submorphs":[],"scripts":[],"id":"6A2B2031-356E-4B2B-BEC1-4F1C397D84C8","shape":{"__isSmartRef__":true,"id":3},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile13","partsBinMetaInfo":{"__isSmartRef__":true,"id":4},"textChunks":[{"__isSmartRef__":true,"id":13}],"charsReplaced":"Some Text","lastFindLoc":9,"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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":16},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":17},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(5.0,230.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"3":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"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(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"5":{"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)\")"},"6":{"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)\")"},"7":{"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)\")"},"8":{"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF","__serializedExpressions__":["date"],"date":"new Date(\"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)\")"},"9":{"author":"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)\")"},"10":{"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)\")"},"11":{"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)\")"},"12":{"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)\")"},"13":{"style":{"__isSmartRef__":true,"id":14},"chunkOwner":{"__isSmartRef__":true,"id":2},"_id":"_29821","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"14":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"15":{"morph":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16":{"resizeWidth":true},"17":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18}},"18":{"testGetValue":{"__isSmartRef__":true,"id":19}},"19":{"varMapping":{"__isSmartRef__":true,"id":20},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":21},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20":{"this":{"__isSmartRef__":true,"id":17}},"21":{},"22":{"initialize":{"__isSmartRef__":true,"id":23},"indexValue":{"__isSmartRef__":true,"id":30},"display":{"__isSmartRef__":true,"id":33},"log":{"__isSmartRef__":true,"id":36},"increment":{"__isSmartRef__":true,"id":39},"setValue":{"__isSmartRef__":true,"id":42},"getValue":{"__isSmartRef__":true,"id":45}},"23":{"varMapping":{"__isSmartRef__":true,"id":24},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":29},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"24":{"this":{"__isSmartRef__":true,"id":2},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":25}},"25":{"$super":{"__isSmartRef__":true,"id":26}},"26":{"varMapping":{"__isSmartRef__":true,"id":27},"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":28},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"27":{"obj":{"__isSmartRef__":true,"id":2},"name":"initialize"},"28":{},"29":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"30":{"varMapping":{"__isSmartRef__":true,"id":31},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":32},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"31":{"this":{"__isSmartRef__":true,"id":2}},"32":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"33":{"varMapping":{"__isSmartRef__":true,"id":34},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":35},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"34":{"this":{"__isSmartRef__":true,"id":2}},"35":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"36":{"varMapping":{"__isSmartRef__":true,"id":37},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":38},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37":{"this":{"__isSmartRef__":true,"id":2}},"38":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"39":{"varMapping":{"__isSmartRef__":true,"id":40},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":41},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40":{"this":{"__isSmartRef__":true,"id":2}},"41":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"42":{"varMapping":{"__isSmartRef__":true,"id":43},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":44},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43":{"this":{"__isSmartRef__":true,"id":2}},"44":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"45":{"varMapping":{"__isSmartRef__":true,"id":46},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":47},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"46":{"this":{"__isSmartRef__":true,"id":2}},"47":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"48":{"submorphs":[],"scripts":[],"id":"DFD0E62C-DFD3-4AE6-BE50-B88290784316","shape":{"__isSmartRef__":true,"id":49},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile2","partsBinMetaInfo":{"__isSmartRef__":true,"id":50},"textChunks":[{"__isSmartRef__":true,"id":59}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":61},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":62},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":63},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":68},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(80.0,230.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"49":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"50":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":51},{"__isSmartRef__":true,"id":52},{"__isSmartRef__":true,"id":53},{"__isSmartRef__":true,"id":54},{"__isSmartRef__":true,"id":55},{"__isSmartRef__":true,"id":56},{"__isSmartRef__":true,"id":57},{"__isSmartRef__":true,"id":58}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"51":{"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)\")"},"52":{"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)\")"},"53":{"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)\")"},"54":{"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)\")"},"55":{"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)\")"},"56":{"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)\")"},"57":{"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)\")"},"58":{"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)\")"},"59":{"style":{"__isSmartRef__":true,"id":60},"chunkOwner":{"__isSmartRef__":true,"id":48},"_id":"_29822","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"60":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"61":{"morph":{"__isSmartRef__":true,"id":48},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"62":{"resizeWidth":true},"63":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":64}},"64":{"testGetValue":{"__isSmartRef__":true,"id":65}},"65":{"varMapping":{"__isSmartRef__":true,"id":66},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":67},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"66":{"this":{"__isSmartRef__":true,"id":63}},"67":{},"68":{"initialize":{"__isSmartRef__":true,"id":69},"indexValue":{"__isSmartRef__":true,"id":76},"display":{"__isSmartRef__":true,"id":79},"log":{"__isSmartRef__":true,"id":82},"increment":{"__isSmartRef__":true,"id":85},"setValue":{"__isSmartRef__":true,"id":88},"getValue":{"__isSmartRef__":true,"id":91}},"69":{"varMapping":{"__isSmartRef__":true,"id":70},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":75},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"70":{"this":{"__isSmartRef__":true,"id":48},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":71}},"71":{"$super":{"__isSmartRef__":true,"id":72}},"72":{"varMapping":{"__isSmartRef__":true,"id":73},"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":74},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"73":{"obj":{"__isSmartRef__":true,"id":48},"name":"initialize"},"74":{},"75":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"76":{"varMapping":{"__isSmartRef__":true,"id":77},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":78},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"77":{"this":{"__isSmartRef__":true,"id":48}},"78":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"79":{"varMapping":{"__isSmartRef__":true,"id":80},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":81},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"80":{"this":{"__isSmartRef__":true,"id":48}},"81":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"82":{"varMapping":{"__isSmartRef__":true,"id":83},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":84},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"83":{"this":{"__isSmartRef__":true,"id":48}},"84":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"85":{"varMapping":{"__isSmartRef__":true,"id":86},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":87},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"86":{"this":{"__isSmartRef__":true,"id":48}},"87":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"88":{"varMapping":{"__isSmartRef__":true,"id":89},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":90},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"89":{"this":{"__isSmartRef__":true,"id":48}},"90":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"91":{"varMapping":{"__isSmartRef__":true,"id":92},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":93},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"92":{"this":{"__isSmartRef__":true,"id":48}},"93":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"94":{"submorphs":[],"scripts":[],"id":"8EE9BE81-466D-497F-9E5C-240283ACF1E0","shape":{"__isSmartRef__":true,"id":95},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile7","partsBinMetaInfo":{"__isSmartRef__":true,"id":96},"textChunks":[{"__isSmartRef__":true,"id":105}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":107},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":108},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":109},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":114},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(5.0,155.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"95":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"96":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":97},{"__isSmartRef__":true,"id":98},{"__isSmartRef__":true,"id":99},{"__isSmartRef__":true,"id":100},{"__isSmartRef__":true,"id":101},{"__isSmartRef__":true,"id":102},{"__isSmartRef__":true,"id":103},{"__isSmartRef__":true,"id":104}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"97":{"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)\")"},"98":{"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)\")"},"99":{"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)\")"},"100":{"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)\")"},"101":{"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)\")"},"102":{"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)\")"},"103":{"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)\")"},"104":{"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)\")"},"105":{"style":{"__isSmartRef__":true,"id":106},"chunkOwner":{"__isSmartRef__":true,"id":94},"_id":"_29817","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"106":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"107":{"morph":{"__isSmartRef__":true,"id":94},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"108":{"resizeWidth":true},"109":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":110}},"110":{"testGetValue":{"__isSmartRef__":true,"id":111}},"111":{"varMapping":{"__isSmartRef__":true,"id":112},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"112":{"this":{"__isSmartRef__":true,"id":109}},"113":{},"114":{"initialize":{"__isSmartRef__":true,"id":115},"indexValue":{"__isSmartRef__":true,"id":122},"display":{"__isSmartRef__":true,"id":125},"log":{"__isSmartRef__":true,"id":128},"increment":{"__isSmartRef__":true,"id":131},"setValue":{"__isSmartRef__":true,"id":134},"getValue":{"__isSmartRef__":true,"id":137}},"115":{"varMapping":{"__isSmartRef__":true,"id":116},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"116":{"this":{"__isSmartRef__":true,"id":94},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":117}},"117":{"$super":{"__isSmartRef__":true,"id":118}},"118":{"varMapping":{"__isSmartRef__":true,"id":119},"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":120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"119":{"obj":{"__isSmartRef__":true,"id":94},"name":"initialize"},"120":{},"121":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"122":{"varMapping":{"__isSmartRef__":true,"id":123},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"123":{"this":{"__isSmartRef__":true,"id":94}},"124":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"125":{"varMapping":{"__isSmartRef__":true,"id":126},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"126":{"this":{"__isSmartRef__":true,"id":94}},"127":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"128":{"varMapping":{"__isSmartRef__":true,"id":129},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"129":{"this":{"__isSmartRef__":true,"id":94}},"130":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"131":{"varMapping":{"__isSmartRef__":true,"id":132},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":133},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"132":{"this":{"__isSmartRef__":true,"id":94}},"133":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"134":{"varMapping":{"__isSmartRef__":true,"id":135},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":136},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"135":{"this":{"__isSmartRef__":true,"id":94}},"136":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"137":{"varMapping":{"__isSmartRef__":true,"id":138},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"138":{"this":{"__isSmartRef__":true,"id":94}},"139":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"140":{"submorphs":[],"scripts":[],"id":"C50CA22D-94D3-4DFB-8166-CE8BD9A0BAC6","shape":{"__isSmartRef__":true,"id":141},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile","partsBinMetaInfo":{"__isSmartRef__":true,"id":142},"textChunks":[{"__isSmartRef__":true,"id":151}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":153},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":154},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":155},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":160},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(80.0,155.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"141":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"142":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":143},{"__isSmartRef__":true,"id":144},{"__isSmartRef__":true,"id":145},{"__isSmartRef__":true,"id":146},{"__isSmartRef__":true,"id":147},{"__isSmartRef__":true,"id":148},{"__isSmartRef__":true,"id":149},{"__isSmartRef__":true,"id":150}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"143":{"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)\")"},"144":{"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)\")"},"145":{"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)\")"},"146":{"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)\")"},"147":{"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)\")"},"148":{"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)\")"},"149":{"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)\")"},"150":{"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)\")"},"151":{"style":{"__isSmartRef__":true,"id":152},"chunkOwner":{"__isSmartRef__":true,"id":140},"_id":"_29818","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"152":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"153":{"morph":{"__isSmartRef__":true,"id":140},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"154":{"resizeWidth":true},"155":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":156}},"156":{"testGetValue":{"__isSmartRef__":true,"id":157}},"157":{"varMapping":{"__isSmartRef__":true,"id":158},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"158":{"this":{"__isSmartRef__":true,"id":155}},"159":{},"160":{"initialize":{"__isSmartRef__":true,"id":161},"indexValue":{"__isSmartRef__":true,"id":168},"display":{"__isSmartRef__":true,"id":171},"log":{"__isSmartRef__":true,"id":174},"increment":{"__isSmartRef__":true,"id":177},"setValue":{"__isSmartRef__":true,"id":180},"getValue":{"__isSmartRef__":true,"id":183}},"161":{"varMapping":{"__isSmartRef__":true,"id":162},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"162":{"this":{"__isSmartRef__":true,"id":140},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":163}},"163":{"$super":{"__isSmartRef__":true,"id":164}},"164":{"varMapping":{"__isSmartRef__":true,"id":165},"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":166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"165":{"obj":{"__isSmartRef__":true,"id":140},"name":"initialize"},"166":{},"167":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"168":{"varMapping":{"__isSmartRef__":true,"id":169},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"169":{"this":{"__isSmartRef__":true,"id":140}},"170":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"171":{"varMapping":{"__isSmartRef__":true,"id":172},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"172":{"this":{"__isSmartRef__":true,"id":140}},"173":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"174":{"varMapping":{"__isSmartRef__":true,"id":175},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"175":{"this":{"__isSmartRef__":true,"id":140}},"176":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"177":{"varMapping":{"__isSmartRef__":true,"id":178},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"178":{"this":{"__isSmartRef__":true,"id":140}},"179":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"180":{"varMapping":{"__isSmartRef__":true,"id":181},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"181":{"this":{"__isSmartRef__":true,"id":140}},"182":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"183":{"varMapping":{"__isSmartRef__":true,"id":184},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"184":{"this":{"__isSmartRef__":true,"id":140}},"185":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"186":{"submorphs":[],"scripts":[],"id":"D308EEDD-5EC7-4A68-B149-DA954E941AC7","shape":{"__isSmartRef__":true,"id":187},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile8","partsBinMetaInfo":{"__isSmartRef__":true,"id":188},"textChunks":[{"__isSmartRef__":true,"id":197}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":199},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":200},"_Rotation":0,"_Scale":1,"_Align":"center","value":2,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":201},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":206},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(80.0,80.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"187":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(238,228,218,255)"},"188":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":190},{"__isSmartRef__":true,"id":191},{"__isSmartRef__":true,"id":192},{"__isSmartRef__":true,"id":193},{"__isSmartRef__":true,"id":194},{"__isSmartRef__":true,"id":195},{"__isSmartRef__":true,"id":196}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"189":{"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)\")"},"190":{"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)\")"},"191":{"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)\")"},"192":{"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)\")"},"193":{"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)\")"},"194":{"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)\")"},"195":{"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)\")"},"196":{"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)\")"},"197":{"style":{"__isSmartRef__":true,"id":198},"chunkOwner":{"__isSmartRef__":true,"id":186},"_id":"_29814","storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"198":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"199":{"morph":{"__isSmartRef__":true,"id":186},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"200":{"resizeWidth":true},"201":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":202}},"202":{"testGetValue":{"__isSmartRef__":true,"id":203}},"203":{"varMapping":{"__isSmartRef__":true,"id":204},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"204":{"this":{"__isSmartRef__":true,"id":201}},"205":{},"206":{"initialize":{"__isSmartRef__":true,"id":207},"indexValue":{"__isSmartRef__":true,"id":214},"display":{"__isSmartRef__":true,"id":217},"log":{"__isSmartRef__":true,"id":220},"increment":{"__isSmartRef__":true,"id":223},"setValue":{"__isSmartRef__":true,"id":226},"getValue":{"__isSmartRef__":true,"id":229}},"207":{"varMapping":{"__isSmartRef__":true,"id":208},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"208":{"this":{"__isSmartRef__":true,"id":186},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":209}},"209":{"$super":{"__isSmartRef__":true,"id":210}},"210":{"varMapping":{"__isSmartRef__":true,"id":211},"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":212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"211":{"obj":{"__isSmartRef__":true,"id":186},"name":"initialize"},"212":{},"213":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"214":{"varMapping":{"__isSmartRef__":true,"id":215},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"215":{"this":{"__isSmartRef__":true,"id":186}},"216":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"217":{"varMapping":{"__isSmartRef__":true,"id":218},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"218":{"this":{"__isSmartRef__":true,"id":186}},"219":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"220":{"varMapping":{"__isSmartRef__":true,"id":221},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"221":{"this":{"__isSmartRef__":true,"id":186}},"222":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"223":{"varMapping":{"__isSmartRef__":true,"id":224},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"224":{"this":{"__isSmartRef__":true,"id":186}},"225":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"226":{"varMapping":{"__isSmartRef__":true,"id":227},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"227":{"this":{"__isSmartRef__":true,"id":186}},"228":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"229":{"varMapping":{"__isSmartRef__":true,"id":230},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":231},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"230":{"this":{"__isSmartRef__":true,"id":186}},"231":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"232":{"submorphs":[],"scripts":[],"id":"ED2DB0C6-8432-4702-98BA-D2C0CE1B30B4","shape":{"__isSmartRef__":true,"id":233},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile12","partsBinMetaInfo":{"__isSmartRef__":true,"id":234},"textChunks":[{"__isSmartRef__":true,"id":243}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":245},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":246},"_Rotation":0,"_Scale":1,"_Align":"center","value":2,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":247},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":252},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(5.0,80.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"233":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(238,228,218,255)"},"234":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"235":{"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)\")"},"236":{"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)\")"},"237":{"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)\")"},"238":{"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)\")"},"239":{"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)\")"},"240":{"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)\")"},"241":{"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)\")"},"242":{"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)\")"},"243":{"style":{"__isSmartRef__":true,"id":244},"chunkOwner":{"__isSmartRef__":true,"id":232},"_id":"_29813","storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"244":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"245":{"morph":{"__isSmartRef__":true,"id":232},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"246":{"resizeWidth":true},"247":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":248}},"248":{"testGetValue":{"__isSmartRef__":true,"id":249}},"249":{"varMapping":{"__isSmartRef__":true,"id":250},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"250":{"this":{"__isSmartRef__":true,"id":247}},"251":{},"252":{"initialize":{"__isSmartRef__":true,"id":253},"indexValue":{"__isSmartRef__":true,"id":260},"display":{"__isSmartRef__":true,"id":263},"log":{"__isSmartRef__":true,"id":266},"increment":{"__isSmartRef__":true,"id":269},"setValue":{"__isSmartRef__":true,"id":272},"getValue":{"__isSmartRef__":true,"id":275}},"253":{"varMapping":{"__isSmartRef__":true,"id":254},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"254":{"this":{"__isSmartRef__":true,"id":232},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":255}},"255":{"$super":{"__isSmartRef__":true,"id":256}},"256":{"varMapping":{"__isSmartRef__":true,"id":257},"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":258},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"257":{"obj":{"__isSmartRef__":true,"id":232},"name":"initialize"},"258":{},"259":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"260":{"varMapping":{"__isSmartRef__":true,"id":261},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"261":{"this":{"__isSmartRef__":true,"id":232}},"262":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"263":{"varMapping":{"__isSmartRef__":true,"id":264},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"264":{"this":{"__isSmartRef__":true,"id":232}},"265":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"266":{"varMapping":{"__isSmartRef__":true,"id":267},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"267":{"this":{"__isSmartRef__":true,"id":232}},"268":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"269":{"varMapping":{"__isSmartRef__":true,"id":270},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"270":{"this":{"__isSmartRef__":true,"id":232}},"271":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"272":{"varMapping":{"__isSmartRef__":true,"id":273},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"273":{"this":{"__isSmartRef__":true,"id":232}},"274":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"275":{"varMapping":{"__isSmartRef__":true,"id":276},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"276":{"this":{"__isSmartRef__":true,"id":232}},"277":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"278":{"submorphs":[],"scripts":[],"id":"1AC1F16C-BF12-4B15-B97C-2B489B1F1138","shape":{"__isSmartRef__":true,"id":279},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile14","partsBinMetaInfo":{"__isSmartRef__":true,"id":280},"textChunks":[{"__isSmartRef__":true,"id":289}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":291},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":292},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":293},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":298},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(230.0,155.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"279":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"280":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":281},{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"281":{"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)\")"},"282":{"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)\")"},"283":{"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)\")"},"284":{"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)\")"},"285":{"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)\")"},"286":{"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)\")"},"287":{"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)\")"},"288":{"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)\")"},"289":{"style":{"__isSmartRef__":true,"id":290},"chunkOwner":{"__isSmartRef__":true,"id":278},"_id":"_29820","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"290":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"291":{"morph":{"__isSmartRef__":true,"id":278},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"292":{"resizeWidth":true},"293":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":294}},"294":{"testGetValue":{"__isSmartRef__":true,"id":295}},"295":{"varMapping":{"__isSmartRef__":true,"id":296},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"296":{"this":{"__isSmartRef__":true,"id":293}},"297":{},"298":{"initialize":{"__isSmartRef__":true,"id":299},"indexValue":{"__isSmartRef__":true,"id":306},"display":{"__isSmartRef__":true,"id":309},"log":{"__isSmartRef__":true,"id":312},"increment":{"__isSmartRef__":true,"id":315},"setValue":{"__isSmartRef__":true,"id":318},"getValue":{"__isSmartRef__":true,"id":321}},"299":{"varMapping":{"__isSmartRef__":true,"id":300},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"300":{"this":{"__isSmartRef__":true,"id":278},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":301}},"301":{"$super":{"__isSmartRef__":true,"id":302}},"302":{"varMapping":{"__isSmartRef__":true,"id":303},"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":304},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"303":{"obj":{"__isSmartRef__":true,"id":278},"name":"initialize"},"304":{},"305":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"306":{"varMapping":{"__isSmartRef__":true,"id":307},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"307":{"this":{"__isSmartRef__":true,"id":278}},"308":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"309":{"varMapping":{"__isSmartRef__":true,"id":310},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":311},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"310":{"this":{"__isSmartRef__":true,"id":278}},"311":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"312":{"varMapping":{"__isSmartRef__":true,"id":313},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"313":{"this":{"__isSmartRef__":true,"id":278}},"314":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"315":{"varMapping":{"__isSmartRef__":true,"id":316},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":317},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"316":{"this":{"__isSmartRef__":true,"id":278}},"317":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"318":{"varMapping":{"__isSmartRef__":true,"id":319},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"319":{"this":{"__isSmartRef__":true,"id":278}},"320":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"321":{"varMapping":{"__isSmartRef__":true,"id":322},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"322":{"this":{"__isSmartRef__":true,"id":278}},"323":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"324":{"submorphs":[],"scripts":[],"id":"423B19C9-87C9-4340-9BF4-91DD7842CBA3","shape":{"__isSmartRef__":true,"id":325},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile4","partsBinMetaInfo":{"__isSmartRef__":true,"id":326},"textChunks":[{"__isSmartRef__":true,"id":335}],"charsReplaced":"Some Text","lastFindLoc":9,"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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":338},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":339},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":344},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(230.0,230.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"325":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"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(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"327":{"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)\")"},"328":{"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)\")"},"329":{"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)\")"},"330":{"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)\")"},"331":{"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)\")"},"332":{"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)\")"},"333":{"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)\")"},"334":{"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)\")"},"335":{"style":{"__isSmartRef__":true,"id":336},"chunkOwner":{"__isSmartRef__":true,"id":324},"_id":"_29824","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"336":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"337":{"morph":{"__isSmartRef__":true,"id":324},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"338":{"resizeWidth":true},"339":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":340}},"340":{"testGetValue":{"__isSmartRef__":true,"id":341}},"341":{"varMapping":{"__isSmartRef__":true,"id":342},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"342":{"this":{"__isSmartRef__":true,"id":339}},"343":{},"344":{"initialize":{"__isSmartRef__":true,"id":345},"indexValue":{"__isSmartRef__":true,"id":352},"display":{"__isSmartRef__":true,"id":355},"log":{"__isSmartRef__":true,"id":358},"increment":{"__isSmartRef__":true,"id":361},"setValue":{"__isSmartRef__":true,"id":364},"getValue":{"__isSmartRef__":true,"id":367}},"345":{"varMapping":{"__isSmartRef__":true,"id":346},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"346":{"this":{"__isSmartRef__":true,"id":324},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":347}},"347":{"$super":{"__isSmartRef__":true,"id":348}},"348":{"varMapping":{"__isSmartRef__":true,"id":349},"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":350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"349":{"obj":{"__isSmartRef__":true,"id":324},"name":"initialize"},"350":{},"351":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"352":{"varMapping":{"__isSmartRef__":true,"id":353},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"353":{"this":{"__isSmartRef__":true,"id":324}},"354":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"355":{"varMapping":{"__isSmartRef__":true,"id":356},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"356":{"this":{"__isSmartRef__":true,"id":324}},"357":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"358":{"varMapping":{"__isSmartRef__":true,"id":359},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":360},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"359":{"this":{"__isSmartRef__":true,"id":324}},"360":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"361":{"varMapping":{"__isSmartRef__":true,"id":362},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":363},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"362":{"this":{"__isSmartRef__":true,"id":324}},"363":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"364":{"varMapping":{"__isSmartRef__":true,"id":365},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"365":{"this":{"__isSmartRef__":true,"id":324}},"366":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"367":{"varMapping":{"__isSmartRef__":true,"id":368},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"368":{"this":{"__isSmartRef__":true,"id":324}},"369":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"370":{"submorphs":[],"scripts":[],"id":"82D8E353-8779-4069-B005-F50F50D5858D","shape":{"__isSmartRef__":true,"id":371},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile5","partsBinMetaInfo":{"__isSmartRef__":true,"id":372},"textChunks":[{"__isSmartRef__":true,"id":381}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":383},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":384},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":385},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":390},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(230.0,80.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"371":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"372":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":373},{"__isSmartRef__":true,"id":374},{"__isSmartRef__":true,"id":375},{"__isSmartRef__":true,"id":376},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":378},{"__isSmartRef__":true,"id":379},{"__isSmartRef__":true,"id":380}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"373":{"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)\")"},"374":{"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)\")"},"375":{"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)\")"},"376":{"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)\")"},"377":{"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)\")"},"378":{"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)\")"},"379":{"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)\")"},"380":{"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)\")"},"381":{"style":{"__isSmartRef__":true,"id":382},"chunkOwner":{"__isSmartRef__":true,"id":370},"_id":"_29816","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"382":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"383":{"morph":{"__isSmartRef__":true,"id":370},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"384":{"resizeWidth":true},"385":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":386}},"386":{"testGetValue":{"__isSmartRef__":true,"id":387}},"387":{"varMapping":{"__isSmartRef__":true,"id":388},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"388":{"this":{"__isSmartRef__":true,"id":385}},"389":{},"390":{"initialize":{"__isSmartRef__":true,"id":391},"indexValue":{"__isSmartRef__":true,"id":398},"display":{"__isSmartRef__":true,"id":401},"log":{"__isSmartRef__":true,"id":404},"increment":{"__isSmartRef__":true,"id":407},"setValue":{"__isSmartRef__":true,"id":410},"getValue":{"__isSmartRef__":true,"id":413}},"391":{"varMapping":{"__isSmartRef__":true,"id":392},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"392":{"this":{"__isSmartRef__":true,"id":370},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":393}},"393":{"$super":{"__isSmartRef__":true,"id":394}},"394":{"varMapping":{"__isSmartRef__":true,"id":395},"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":396},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"395":{"obj":{"__isSmartRef__":true,"id":370},"name":"initialize"},"396":{},"397":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"398":{"varMapping":{"__isSmartRef__":true,"id":399},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"399":{"this":{"__isSmartRef__":true,"id":370}},"400":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"401":{"varMapping":{"__isSmartRef__":true,"id":402},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"402":{"this":{"__isSmartRef__":true,"id":370}},"403":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"404":{"varMapping":{"__isSmartRef__":true,"id":405},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"405":{"this":{"__isSmartRef__":true,"id":370}},"406":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"407":{"varMapping":{"__isSmartRef__":true,"id":408},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":409},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"408":{"this":{"__isSmartRef__":true,"id":370}},"409":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"410":{"varMapping":{"__isSmartRef__":true,"id":411},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"411":{"this":{"__isSmartRef__":true,"id":370}},"412":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"413":{"varMapping":{"__isSmartRef__":true,"id":414},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":415},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"414":{"this":{"__isSmartRef__":true,"id":370}},"415":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"416":{"submorphs":[],"scripts":[],"id":"E1793801-D7F3-4082-8466-9661191ED09C","shape":{"__isSmartRef__":true,"id":417},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile6","partsBinMetaInfo":{"__isSmartRef__":true,"id":418},"textChunks":[{"__isSmartRef__":true,"id":427}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":429},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":430},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":431},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":436},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(155.0,155.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"417":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"418":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":419},{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"419":{"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)\")"},"420":{"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)\")"},"421":{"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)\")"},"422":{"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)\")"},"423":{"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)\")"},"424":{"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)\")"},"425":{"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)\")"},"426":{"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)\")"},"427":{"style":{"__isSmartRef__":true,"id":428},"chunkOwner":{"__isSmartRef__":true,"id":416},"_id":"_29819","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"428":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"429":{"morph":{"__isSmartRef__":true,"id":416},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"430":{"resizeWidth":true},"431":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":432}},"432":{"testGetValue":{"__isSmartRef__":true,"id":433}},"433":{"varMapping":{"__isSmartRef__":true,"id":434},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"434":{"this":{"__isSmartRef__":true,"id":431}},"435":{},"436":{"initialize":{"__isSmartRef__":true,"id":437},"indexValue":{"__isSmartRef__":true,"id":444},"display":{"__isSmartRef__":true,"id":447},"log":{"__isSmartRef__":true,"id":450},"increment":{"__isSmartRef__":true,"id":453},"setValue":{"__isSmartRef__":true,"id":456},"getValue":{"__isSmartRef__":true,"id":459}},"437":{"varMapping":{"__isSmartRef__":true,"id":438},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":443},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"438":{"this":{"__isSmartRef__":true,"id":416},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":439}},"439":{"$super":{"__isSmartRef__":true,"id":440}},"440":{"varMapping":{"__isSmartRef__":true,"id":441},"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":442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"441":{"obj":{"__isSmartRef__":true,"id":416},"name":"initialize"},"442":{},"443":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"444":{"varMapping":{"__isSmartRef__":true,"id":445},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"445":{"this":{"__isSmartRef__":true,"id":416}},"446":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"447":{"varMapping":{"__isSmartRef__":true,"id":448},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"448":{"this":{"__isSmartRef__":true,"id":416}},"449":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"450":{"varMapping":{"__isSmartRef__":true,"id":451},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"451":{"this":{"__isSmartRef__":true,"id":416}},"452":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"453":{"varMapping":{"__isSmartRef__":true,"id":454},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"454":{"this":{"__isSmartRef__":true,"id":416}},"455":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"456":{"varMapping":{"__isSmartRef__":true,"id":457},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"457":{"this":{"__isSmartRef__":true,"id":416}},"458":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"459":{"varMapping":{"__isSmartRef__":true,"id":460},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"460":{"this":{"__isSmartRef__":true,"id":416}},"461":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"462":{"submorphs":[],"scripts":[],"id":"681ADF4E-0CDF-4DCA-B8D6-B5FDF23AFDA8","shape":{"__isSmartRef__":true,"id":463},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile15","partsBinMetaInfo":{"__isSmartRef__":true,"id":464},"textChunks":[{"__isSmartRef__":true,"id":473}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":475},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":476},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":477},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":482},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(155.0,230.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"463":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"464":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":465},{"__isSmartRef__":true,"id":466},{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":468},{"__isSmartRef__":true,"id":469},{"__isSmartRef__":true,"id":470},{"__isSmartRef__":true,"id":471},{"__isSmartRef__":true,"id":472}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"465":{"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)\")"},"466":{"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)\")"},"467":{"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)\")"},"468":{"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)\")"},"469":{"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)\")"},"470":{"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)\")"},"471":{"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)\")"},"472":{"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)\")"},"473":{"style":{"__isSmartRef__":true,"id":474},"chunkOwner":{"__isSmartRef__":true,"id":462},"_id":"_29823","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"474":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"475":{"morph":{"__isSmartRef__":true,"id":462},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"476":{"resizeWidth":true},"477":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":478}},"478":{"testGetValue":{"__isSmartRef__":true,"id":479}},"479":{"varMapping":{"__isSmartRef__":true,"id":480},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"480":{"this":{"__isSmartRef__":true,"id":477}},"481":{},"482":{"initialize":{"__isSmartRef__":true,"id":483},"indexValue":{"__isSmartRef__":true,"id":490},"display":{"__isSmartRef__":true,"id":493},"log":{"__isSmartRef__":true,"id":496},"increment":{"__isSmartRef__":true,"id":499},"setValue":{"__isSmartRef__":true,"id":502},"getValue":{"__isSmartRef__":true,"id":505}},"483":{"varMapping":{"__isSmartRef__":true,"id":484},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":489},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"484":{"this":{"__isSmartRef__":true,"id":462},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":485}},"485":{"$super":{"__isSmartRef__":true,"id":486}},"486":{"varMapping":{"__isSmartRef__":true,"id":487},"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":488},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"487":{"obj":{"__isSmartRef__":true,"id":462},"name":"initialize"},"488":{},"489":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"490":{"varMapping":{"__isSmartRef__":true,"id":491},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"491":{"this":{"__isSmartRef__":true,"id":462}},"492":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"493":{"varMapping":{"__isSmartRef__":true,"id":494},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"494":{"this":{"__isSmartRef__":true,"id":462}},"495":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"496":{"varMapping":{"__isSmartRef__":true,"id":497},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"497":{"this":{"__isSmartRef__":true,"id":462}},"498":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"499":{"varMapping":{"__isSmartRef__":true,"id":500},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":501},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"500":{"this":{"__isSmartRef__":true,"id":462}},"501":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"502":{"varMapping":{"__isSmartRef__":true,"id":503},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"503":{"this":{"__isSmartRef__":true,"id":462}},"504":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"505":{"varMapping":{"__isSmartRef__":true,"id":506},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"506":{"this":{"__isSmartRef__":true,"id":462}},"507":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"508":{"submorphs":[],"scripts":[],"id":"93356785-81FF-4187-95C1-F035A74A4062","shape":{"__isSmartRef__":true,"id":509},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile10","partsBinMetaInfo":{"__isSmartRef__":true,"id":510},"textChunks":[{"__isSmartRef__":true,"id":519}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":521},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":522},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":523},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":528},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(155.0,80.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"509":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"510":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":511},{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":513},{"__isSmartRef__":true,"id":514},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":516},{"__isSmartRef__":true,"id":517},{"__isSmartRef__":true,"id":518}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"511":{"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)\")"},"512":{"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)\")"},"513":{"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)\")"},"514":{"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)\")"},"515":{"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)\")"},"516":{"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)\")"},"517":{"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)\")"},"518":{"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)\")"},"519":{"style":{"__isSmartRef__":true,"id":520},"chunkOwner":{"__isSmartRef__":true,"id":508},"_id":"_29815","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"520":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"521":{"morph":{"__isSmartRef__":true,"id":508},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"522":{"resizeWidth":true},"523":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":524}},"524":{"testGetValue":{"__isSmartRef__":true,"id":525}},"525":{"varMapping":{"__isSmartRef__":true,"id":526},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"526":{"this":{"__isSmartRef__":true,"id":523}},"527":{},"528":{"initialize":{"__isSmartRef__":true,"id":529},"indexValue":{"__isSmartRef__":true,"id":536},"display":{"__isSmartRef__":true,"id":539},"log":{"__isSmartRef__":true,"id":542},"increment":{"__isSmartRef__":true,"id":545},"setValue":{"__isSmartRef__":true,"id":548},"getValue":{"__isSmartRef__":true,"id":551}},"529":{"varMapping":{"__isSmartRef__":true,"id":530},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"530":{"this":{"__isSmartRef__":true,"id":508},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":531}},"531":{"$super":{"__isSmartRef__":true,"id":532}},"532":{"varMapping":{"__isSmartRef__":true,"id":533},"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":534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"533":{"obj":{"__isSmartRef__":true,"id":508},"name":"initialize"},"534":{},"535":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"536":{"varMapping":{"__isSmartRef__":true,"id":537},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"537":{"this":{"__isSmartRef__":true,"id":508}},"538":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"539":{"varMapping":{"__isSmartRef__":true,"id":540},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"540":{"this":{"__isSmartRef__":true,"id":508}},"541":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"542":{"varMapping":{"__isSmartRef__":true,"id":543},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"543":{"this":{"__isSmartRef__":true,"id":508}},"544":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"545":{"varMapping":{"__isSmartRef__":true,"id":546},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"546":{"this":{"__isSmartRef__":true,"id":508}},"547":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"548":{"varMapping":{"__isSmartRef__":true,"id":549},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"549":{"this":{"__isSmartRef__":true,"id":508}},"550":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"551":{"varMapping":{"__isSmartRef__":true,"id":552},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":553},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"552":{"this":{"__isSmartRef__":true,"id":508}},"553":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"554":{"submorphs":[],"scripts":[],"id":"D2DA9FFD-E2A9-467D-A41E-CFC9131D5E95","shape":{"__isSmartRef__":true,"id":555},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile3","partsBinMetaInfo":{"__isSmartRef__":true,"id":556},"textChunks":[{"__isSmartRef__":true,"id":565}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":567},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":568},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":569},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":574},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(230.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"555":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"556":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":557},{"__isSmartRef__":true,"id":558},{"__isSmartRef__":true,"id":559},{"__isSmartRef__":true,"id":560},{"__isSmartRef__":true,"id":561},{"__isSmartRef__":true,"id":562},{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":564}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 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":{"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)\")"},"559":{"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)\")"},"560":{"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)\")"},"561":{"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)\")"},"562":{"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)\")"},"563":{"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)\")"},"564":{"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)\")"},"565":{"style":{"__isSmartRef__":true,"id":566},"chunkOwner":{"__isSmartRef__":true,"id":554},"_id":"_29812","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"566":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"567":{"morph":{"__isSmartRef__":true,"id":554},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"568":{"resizeWidth":true},"569":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":570}},"570":{"testGetValue":{"__isSmartRef__":true,"id":571}},"571":{"varMapping":{"__isSmartRef__":true,"id":572},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"572":{"this":{"__isSmartRef__":true,"id":569}},"573":{},"574":{"initialize":{"__isSmartRef__":true,"id":575},"indexValue":{"__isSmartRef__":true,"id":582},"display":{"__isSmartRef__":true,"id":585},"log":{"__isSmartRef__":true,"id":588},"increment":{"__isSmartRef__":true,"id":591},"setValue":{"__isSmartRef__":true,"id":594},"getValue":{"__isSmartRef__":true,"id":597}},"575":{"varMapping":{"__isSmartRef__":true,"id":576},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"576":{"this":{"__isSmartRef__":true,"id":554},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":577}},"577":{"$super":{"__isSmartRef__":true,"id":578}},"578":{"varMapping":{"__isSmartRef__":true,"id":579},"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":580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"579":{"obj":{"__isSmartRef__":true,"id":554},"name":"initialize"},"580":{},"581":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"582":{"varMapping":{"__isSmartRef__":true,"id":583},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"583":{"this":{"__isSmartRef__":true,"id":554}},"584":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"585":{"varMapping":{"__isSmartRef__":true,"id":586},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"586":{"this":{"__isSmartRef__":true,"id":554}},"587":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"588":{"varMapping":{"__isSmartRef__":true,"id":589},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"589":{"this":{"__isSmartRef__":true,"id":554}},"590":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"591":{"varMapping":{"__isSmartRef__":true,"id":592},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"592":{"this":{"__isSmartRef__":true,"id":554}},"593":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"594":{"varMapping":{"__isSmartRef__":true,"id":595},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"595":{"this":{"__isSmartRef__":true,"id":554}},"596":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"597":{"varMapping":{"__isSmartRef__":true,"id":598},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"598":{"this":{"__isSmartRef__":true,"id":554}},"599":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"600":{"submorphs":[],"scripts":[],"id":"C3BC3B00-9891-4610-B3DE-C64EBE208507","shape":{"__isSmartRef__":true,"id":601},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile9","partsBinMetaInfo":{"__isSmartRef__":true,"id":602},"textChunks":[{"__isSmartRef__":true,"id":611}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":613},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":614},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":615},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":620},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(5.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"601":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"602":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":603},{"__isSmartRef__":true,"id":604},{"__isSmartRef__":true,"id":605},{"__isSmartRef__":true,"id":606},{"__isSmartRef__":true,"id":607},{"__isSmartRef__":true,"id":608},{"__isSmartRef__":true,"id":609},{"__isSmartRef__":true,"id":610}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"603":{"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)\")"},"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":"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)\")"},"606":{"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)\")"},"607":{"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)\")"},"608":{"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)\")"},"609":{"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)\")"},"610":{"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)\")"},"611":{"style":{"__isSmartRef__":true,"id":612},"chunkOwner":{"__isSmartRef__":true,"id":600},"_id":"_29809","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"612":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"613":{"morph":{"__isSmartRef__":true,"id":600},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"614":{"resizeWidth":true},"615":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":616}},"616":{"testGetValue":{"__isSmartRef__":true,"id":617}},"617":{"varMapping":{"__isSmartRef__":true,"id":618},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":619},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"618":{"this":{"__isSmartRef__":true,"id":615}},"619":{},"620":{"initialize":{"__isSmartRef__":true,"id":621},"indexValue":{"__isSmartRef__":true,"id":628},"display":{"__isSmartRef__":true,"id":631},"log":{"__isSmartRef__":true,"id":634},"increment":{"__isSmartRef__":true,"id":637},"setValue":{"__isSmartRef__":true,"id":640},"getValue":{"__isSmartRef__":true,"id":643}},"621":{"varMapping":{"__isSmartRef__":true,"id":622},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"622":{"this":{"__isSmartRef__":true,"id":600},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":623}},"623":{"$super":{"__isSmartRef__":true,"id":624}},"624":{"varMapping":{"__isSmartRef__":true,"id":625},"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":626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"625":{"obj":{"__isSmartRef__":true,"id":600},"name":"initialize"},"626":{},"627":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"628":{"varMapping":{"__isSmartRef__":true,"id":629},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"629":{"this":{"__isSmartRef__":true,"id":600}},"630":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"631":{"varMapping":{"__isSmartRef__":true,"id":632},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"632":{"this":{"__isSmartRef__":true,"id":600}},"633":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"634":{"varMapping":{"__isSmartRef__":true,"id":635},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"635":{"this":{"__isSmartRef__":true,"id":600}},"636":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"637":{"varMapping":{"__isSmartRef__":true,"id":638},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":639},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"638":{"this":{"__isSmartRef__":true,"id":600}},"639":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"640":{"varMapping":{"__isSmartRef__":true,"id":641},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"641":{"this":{"__isSmartRef__":true,"id":600}},"642":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"643":{"varMapping":{"__isSmartRef__":true,"id":644},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"644":{"this":{"__isSmartRef__":true,"id":600}},"645":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"646":{"submorphs":[],"scripts":[],"id":"079DE04E-735A-45D9-BDB7-D9FDCF28DD04","shape":{"__isSmartRef__":true,"id":647},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile11","partsBinMetaInfo":{"__isSmartRef__":true,"id":648},"textChunks":[{"__isSmartRef__":true,"id":657}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":659},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":660},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":661},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":666},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(80.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"647":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"648":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":649},{"__isSmartRef__":true,"id":650},{"__isSmartRef__":true,"id":651},{"__isSmartRef__":true,"id":652},{"__isSmartRef__":true,"id":653},{"__isSmartRef__":true,"id":654},{"__isSmartRef__":true,"id":655},{"__isSmartRef__":true,"id":656}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"649":{"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)\")"},"650":{"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)\")"},"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":"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)\")"},"653":{"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)\")"},"654":{"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)\")"},"655":{"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)\")"},"656":{"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)\")"},"657":{"style":{"__isSmartRef__":true,"id":658},"chunkOwner":{"__isSmartRef__":true,"id":646},"_id":"_29810","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"658":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"659":{"morph":{"__isSmartRef__":true,"id":646},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"660":{"resizeWidth":true},"661":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":662}},"662":{"testGetValue":{"__isSmartRef__":true,"id":663}},"663":{"varMapping":{"__isSmartRef__":true,"id":664},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"664":{"this":{"__isSmartRef__":true,"id":661}},"665":{},"666":{"initialize":{"__isSmartRef__":true,"id":667},"indexValue":{"__isSmartRef__":true,"id":674},"display":{"__isSmartRef__":true,"id":677},"log":{"__isSmartRef__":true,"id":680},"increment":{"__isSmartRef__":true,"id":683},"setValue":{"__isSmartRef__":true,"id":686},"getValue":{"__isSmartRef__":true,"id":689}},"667":{"varMapping":{"__isSmartRef__":true,"id":668},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"668":{"this":{"__isSmartRef__":true,"id":646},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":669}},"669":{"$super":{"__isSmartRef__":true,"id":670}},"670":{"varMapping":{"__isSmartRef__":true,"id":671},"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":672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"671":{"obj":{"__isSmartRef__":true,"id":646},"name":"initialize"},"672":{},"673":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"674":{"varMapping":{"__isSmartRef__":true,"id":675},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"675":{"this":{"__isSmartRef__":true,"id":646}},"676":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"677":{"varMapping":{"__isSmartRef__":true,"id":678},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"678":{"this":{"__isSmartRef__":true,"id":646}},"679":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"680":{"varMapping":{"__isSmartRef__":true,"id":681},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"681":{"this":{"__isSmartRef__":true,"id":646}},"682":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"683":{"varMapping":{"__isSmartRef__":true,"id":684},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"684":{"this":{"__isSmartRef__":true,"id":646}},"685":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"686":{"varMapping":{"__isSmartRef__":true,"id":687},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":688},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"687":{"this":{"__isSmartRef__":true,"id":646}},"688":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"689":{"varMapping":{"__isSmartRef__":true,"id":690},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"690":{"this":{"__isSmartRef__":true,"id":646}},"691":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"692":{"submorphs":[],"scripts":[],"id":"01D99C7B-A5F4-4396-9961-CBE698855526","shape":{"__isSmartRef__":true,"id":693},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile1","partsBinMetaInfo":{"__isSmartRef__":true,"id":694},"textChunks":[{"__isSmartRef__":true,"id":703}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":705},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":706},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":707},"owner":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":712},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(155.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"693":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"694":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__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},{"__isSmartRef__":true,"id":702}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"695":{"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)\")"},"696":{"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)\")"},"697":{"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)\")"},"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":"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)\")"},"700":{"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)\")"},"701":{"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)\")"},"702":{"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)\")"},"703":{"style":{"__isSmartRef__":true,"id":704},"chunkOwner":{"__isSmartRef__":true,"id":692},"_id":"_29811","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"704":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"705":{"morph":{"__isSmartRef__":true,"id":692},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"706":{"resizeWidth":true},"707":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":708}},"708":{"testGetValue":{"__isSmartRef__":true,"id":709}},"709":{"varMapping":{"__isSmartRef__":true,"id":710},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"710":{"this":{"__isSmartRef__":true,"id":707}},"711":{},"712":{"initialize":{"__isSmartRef__":true,"id":713},"indexValue":{"__isSmartRef__":true,"id":720},"display":{"__isSmartRef__":true,"id":723},"log":{"__isSmartRef__":true,"id":726},"increment":{"__isSmartRef__":true,"id":729},"setValue":{"__isSmartRef__":true,"id":732},"getValue":{"__isSmartRef__":true,"id":735}},"713":{"varMapping":{"__isSmartRef__":true,"id":714},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"714":{"this":{"__isSmartRef__":true,"id":692},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":715}},"715":{"$super":{"__isSmartRef__":true,"id":716}},"716":{"varMapping":{"__isSmartRef__":true,"id":717},"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":718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"717":{"obj":{"__isSmartRef__":true,"id":692},"name":"initialize"},"718":{},"719":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"720":{"varMapping":{"__isSmartRef__":true,"id":721},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"721":{"this":{"__isSmartRef__":true,"id":692}},"722":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"723":{"varMapping":{"__isSmartRef__":true,"id":724},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"724":{"this":{"__isSmartRef__":true,"id":692}},"725":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"726":{"varMapping":{"__isSmartRef__":true,"id":727},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"727":{"this":{"__isSmartRef__":true,"id":692}},"728":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"729":{"varMapping":{"__isSmartRef__":true,"id":730},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":731},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"730":{"this":{"__isSmartRef__":true,"id":692}},"731":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"732":{"varMapping":{"__isSmartRef__":true,"id":733},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"733":{"this":{"__isSmartRef__":true,"id":692}},"734":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"735":{"varMapping":{"__isSmartRef__":true,"id":736},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":737},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"736":{"this":{"__isSmartRef__":true,"id":692}},"737":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"738":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":8.88,"_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(310.0,310.0)","_BorderColor":"Color.rgba(119,110,101,255)","_Fill":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(0,0,0,0)"},"739":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":740},{"__isSmartRef__":true,"id":741},{"__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},{"__isSmartRef__":true,"id":750},{"__isSmartRef__":true,"id":751},{"__isSmartRef__":true,"id":752},{"__isSmartRef__":true,"id":753},{"__isSmartRef__":true,"id":754},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":756},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":758}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 06:24:00 GMT-0700 (PDT)\")"},"740":{"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)\")"},"741":{"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)\")"},"742":{"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)\")"},"743":{"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)\")"},"744":{"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)\")"},"745":{"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)\")"},"746":{"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)\")"},"747":{"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)\")"},"748":{"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)\")"},"749":{"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)\")"},"750":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"751":{"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)\")"},"752":{"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)\")"},"753":{"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)\")"},"754":{"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)\")"},"755":{"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)\")"},"756":{"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)\")"},"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":"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)\")"},"759":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"760":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":761}},"761":{"test01IsMorph":{"__isSmartRef__":true,"id":762},"checkPosition":{"__isSmartRef__":true,"id":765},"testCompressArray":{"__isSmartRef__":true,"id":768},"testGetSliceIndices":{"__isSmartRef__":true,"id":771}},"762":{"varMapping":{"__isSmartRef__":true,"id":763},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"763":{"this":{"__isSmartRef__":true,"id":760}},"764":{},"765":{"varMapping":{"__isSmartRef__":true,"id":766},"source":"function checkPosition(board) {\n    var currentVal = 0;\n    for(var i = 0; i < board.tiles.length; i++) {\n        board.tiles[i].setValue(currentVal);\n        currentVal = (currentVal == 0)?2:(currentVal == 4096)?0:currentVal << 1;\n        alert(currentVal);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"766":{"this":{"__isSmartRef__":true,"id":760}},"767":{},"768":{"varMapping":{"__isSmartRef__":true,"id":769},"source":"function testCompressArray(board) {\n    // test all 81 (0, 2, 4) arrays\n    var testArray = [0, 0, 0, 0];\n    for(var i = 0; i < 81; i++) {\n        var val = i;\n        for(var j = 0; j < 4; j++) {\n            var logVal = val % 3;\n            testArray[j] = logVal == 0? 0: 1 << logVal;\n            val = Math.floor(val/3);\n        }\n        var result = board.compressArray(testArray);\n        this.assert(result);\n        // test 1: all the 0's should be at the end of result.resultArray\n        var foundZero = false;\n        for(var j = 0; j < 4; j++) {\n            if(foundZero) {\n                this.assert(result.resultArray[j] == 0);\n            }\n            foundZero = foundZero || (result.resultArray[j] == 0);\n        }\n        // test 2: The sum of the values should be the same, the\n        // number of zeros should not have been reduced, and the\n        // number of zeros are the same if and only if the score\n        // is zero\n        var countZero = {result:0, inArray:0};\n        var sum = {result:0, inArray:0};\n        for (var j = 0; j < 4; j++) {\n            sum.result += result.resultArray[j];\n            sum.inArray += testArray[j];\n            if (result.resultArray[j] == 0) ++countZero.result;\n            if (testArray[j] == 0) ++countZero.inArray;\n            \n        }\n        \n        this.assert(sum.result == sum.inArray);\n        this.assert(result.score == 0?countZero.result == countZero.inArray:countZero.result > countZero.inArray)\n        \n    }\n    \n    this.assert(true, 'true should be true');\n}","funcProperties":{"__isSmartRef__":true,"id":770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"769":{"this":{"__isSmartRef__":true,"id":760}},"770":{},"771":{"varMapping":{"__isSmartRef__":true,"id":772},"source":"function testGetSliceIndices(board) {\n    function array_equals(ar1, ar2) {\n        if(ar1.length != ar2.length) {\n            return false;\n        }\n        for(var i = 0; i < ar1.length; i++) {\n            if(ar1[i] != ar2[i]) {\n                return false;\n            }\n        }\n        return true;\n    }\n    this.assert(array_equals(board.getSliceIndices(0, 1), [0, 1, 2, 3]), \"0 across failed\")\n    this.assert(array_equals(board.getSliceIndices(0, 4), [0, 4, 8, 12]), \"0 down  failed\")\n    this.assert(array_equals(board.getSliceIndices(12, 1), [12, 13, 14, 15]), \"12 across failed\")\n    this.assert(array_equals(board.getSliceIndices(3, 4), [3, 7, 11, 15]), \"3 down  failed\")\n    this.assert(array_equals(board.getSliceIndices(3, -1), [0, 1, 2, 3].reverse()), \"3 across failed\")\n    this.assert(array_equals(board.getSliceIndices(12, -4), [0, 4, 8, 12].reverse()), \"12 up  failed\")\n    this.assert(array_equals(board.getSliceIndices(15, -1), [12, 13, 14, 15].reverse()), \"15 across failed\")\n    this.assert(array_equals(board.getSliceIndices(15, -4), [3, 7, 11, 15].reverse()), \"15 up  failed\")\n    this.assert(true, 'true should be true');\n}","funcProperties":{"__isSmartRef__":true,"id":773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"772":{"this":{"__isSmartRef__":true,"id":760}},"773":{},"774":{"__serializedExpressions__":["position"],"index":0,"tile":{"__isSmartRef__":true,"id":600},"position":"lively.pt(5.0,5.0)"},"775":{"__serializedExpressions__":["position"],"index":1,"tile":{"__isSmartRef__":true,"id":646},"position":"lively.pt(80.0,5.0)"},"776":{"__serializedExpressions__":["position"],"index":2,"tile":{"__isSmartRef__":true,"id":692},"position":"lively.pt(155.0,5.0)"},"777":{"__serializedExpressions__":["position"],"index":3,"tile":{"__isSmartRef__":true,"id":554},"position":"lively.pt(230.0,5.0)"},"778":{"__serializedExpressions__":["position"],"index":4,"tile":{"__isSmartRef__":true,"id":232},"position":"lively.pt(5.0,80.0)"},"779":{"__serializedExpressions__":["position"],"index":5,"tile":{"__isSmartRef__":true,"id":186},"position":"lively.pt(80.0,80.0)"},"780":{"__serializedExpressions__":["position"],"index":6,"tile":{"__isSmartRef__":true,"id":508},"position":"lively.pt(155.0,80.0)"},"781":{"__serializedExpressions__":["position"],"index":7,"tile":{"__isSmartRef__":true,"id":370},"position":"lively.pt(230.0,80.0)"},"782":{"__serializedExpressions__":["position"],"index":8,"tile":{"__isSmartRef__":true,"id":94},"position":"lively.pt(5.0,155.0)"},"783":{"__serializedExpressions__":["position"],"index":9,"tile":{"__isSmartRef__":true,"id":140},"position":"lively.pt(80.0,155.0)"},"784":{"__serializedExpressions__":["position"],"index":10,"tile":{"__isSmartRef__":true,"id":416},"position":"lively.pt(155.0,155.0)"},"785":{"__serializedExpressions__":["position"],"index":11,"tile":{"__isSmartRef__":true,"id":278},"position":"lively.pt(230.0,155.0)"},"786":{"__serializedExpressions__":["position"],"index":12,"tile":{"__isSmartRef__":true,"id":2},"position":"lively.pt(5.0,230.0)"},"787":{"__serializedExpressions__":["position"],"index":13,"tile":{"__isSmartRef__":true,"id":48},"position":"lively.pt(80.0,230.0)"},"788":{"__serializedExpressions__":["position"],"index":14,"tile":{"__isSmartRef__":true,"id":462},"position":"lively.pt(155.0,230.0)"},"789":{"__serializedExpressions__":["position"],"index":15,"tile":{"__isSmartRef__":true,"id":324},"position":"lively.pt(230.0,230.0)"},"790":{"Up":{"__isSmartRef__":true,"id":791},"Down":{"__isSmartRef__":true,"id":792},"Left":{"__isSmartRef__":true,"id":793},"Right":{"__isSmartRef__":true,"id":794},"W":{"__isSmartRef__":true,"id":791},"S":{"__isSmartRef__":true,"id":792},"A":{"__isSmartRef__":true,"id":793},"D":{"__isSmartRef__":true,"id":794}},"791":{"indices":[0,1,2,3],"increment":4},"792":{"indices":[12,13,14,15],"increment":-4},"793":{"indices":[0,4,8,12],"increment":1},"794":{"indices":[3,7,11,15],"increment":-1},"795":{"submorphs":[],"scripts":[],"id":"33D2E47E-95A6-443D-B0FB-DECCE51966B9","shape":{"__isSmartRef__":true,"id":796},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Scratchpad","partsBinMetaInfo":{"__isSmartRef__":true,"id":797},"textChunks":[{"__isSmartRef__":true,"id":806}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":808},"_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":809},"owner":null,"_Rotation":0,"_Scale":1,"entries":[],"lastEvent":{"__isSmartRef__":true,"id":810},"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":814},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(15.0,58.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(163.0,-6.0)"},"796":{"fill":null,"_BorderWidth":2.664,"_ClipMode":"visible","_BorderRadius":0.74,"_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(249,248,248)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(200.0,2000.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"797":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":798},{"__isSmartRef__":true,"id":799},{"__isSmartRef__":true,"id":800},{"__isSmartRef__":true,"id":801},{"__isSmartRef__":true,"id":802},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":804},{"__isSmartRef__":true,"id":805}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"798":{"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)\")"},"799":{"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)\")"},"800":{"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)\")"},"801":{"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)\")"},"802":{"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)\")"},"803":{"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)\")"},"804":{"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)\")"},"805":{"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)\")"},"806":{"style":{"__isSmartRef__":true,"id":807},"chunkOwner":{"__isSmartRef__":true,"id":795},"_id":"_29825","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"807":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"808":{"morph":{"__isSmartRef__":true,"id":795},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"809":{"resizeWidth":true},"810":{"altGraphKey":false,"repeat":false,"metaKey":false,"altKey":false,"shiftKey":false,"ctrlKey":false,"keyLocation":0,"location":0,"keyIdentifier":"Up","which":38,"pageY":0,"pageX":0,"layerY":0,"layerX":0,"charCode":0,"keyCode":38,"detail":0,"cancelBubble":false,"returnValue":true,"defaultPrevented":false,"timeStamp":1400108002672,"cancelable":true,"bubbles":true,"eventPhase":0,"currentTarget":null,"type":"keydown","hasLivelyPatch":true,"isMouseEvent":false,"isKeyboardEvent":true,"hand":{"__isSmartRef__":true,"id":811},"__serializedExpressions__":["view","mousePoint"],"view":"lively.module(\"Global\")","mousePoint":"lively.pt(0.0,0.0)"},"811":{"_ClipMode":"visible","_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1,"carriesGrabbedMorphs":false,"droppingEnabled":false,"eventHandler":{"__isSmartRef__":true,"id":812},"eventsAreIgnored":true,"halosEnabled":false,"id":2,"lastScrollTime":1359763263838,"scripts":[],"shape":{"__isSmartRef__":true,"id":813},"submorphs":[],"haloTarget":null,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.HandMorph","__SourceModuleName__":"Global.lively.morphic.Events","withLayers":["Global.NoMagnetsLayer"],"_Position":"lively.pt(268.0,420.0)"},"812":{"morph":{"__isSmartRef__":true,"id":811},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"813":{"_ClipMode":"visible","__serializedExpressions__":["_Extent","_Fill","_Padding","_Position"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":"lively.pt(2.0,2.0)","_Fill":"Color.rgb(204,0,0)","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(0.0,0.0)"},"814":{"initialize":{"__isSmartRef__":true,"id":815},"display":{"__isSmartRef__":true,"id":822},"addEntry":{"__isSmartRef__":true,"id":825}},"815":{"varMapping":{"__isSmartRef__":true,"id":816},"source":"function initialize() {\n    this.entries = [];\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":821},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"816":{"this":{"__isSmartRef__":true,"id":795},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":817}},"817":{"$super":{"__isSmartRef__":true,"id":818}},"818":{"varMapping":{"__isSmartRef__":true,"id":819},"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":820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"819":{"obj":{"__isSmartRef__":true,"id":795},"name":"initialize"},"820":{},"821":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 15:16:56 GMT-0700 (PDT)\")"},"822":{"varMapping":{"__isSmartRef__":true,"id":823},"source":"function display() {\n    this.setTextString(this.entries.join('\\n'));\n    \n}","funcProperties":{"__isSmartRef__":true,"id":824},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"823":{"this":{"__isSmartRef__":true,"id":795}},"824":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 15:17:44 GMT-0700 (PDT)\")"},"825":{"varMapping":{"__isSmartRef__":true,"id":826},"source":"function addEntry(string) {\n    this.entries.push(string);\n    this.display()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"826":{"this":{"__isSmartRef__":true,"id":795}},"827":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 15:19:05 GMT-0700 (PDT)\")"},"828":{"altGraphKey":false,"repeat":false,"metaKey":true,"altKey":false,"shiftKey":false,"ctrlKey":false,"keyLocation":1,"location":1,"keyIdentifier":"Meta","which":91,"pageY":0,"pageX":0,"layerY":0,"layerX":0,"charCode":0,"keyCode":91,"detail":0,"__serializedExpressions__":["view","mousePoint"],"path":{"__isSmartRef__":true,"id":829},"cancelBubble":false,"returnValue":false,"defaultPrevented":true,"timeStamp":1401377440135,"cancelable":true,"bubbles":true,"eventPhase":0,"currentTarget":null,"type":"keydown","hasLivelyPatch":true,"isMouseEvent":false,"isKeyboardEvent":true,"hand":{"__isSmartRef__":true,"id":811},"isStopped":true,"view":"lively.module(\"Global\")","mousePoint":"lively.pt(0.0,0.0)"},"829":{"length":0},"830":{"index":0,"tile":{"__isSmartRef__":true,"id":831},"__serializedExpressions__":["position"],"position":"lively.pt(5.0,5.0)"},"831":{"submorphs":[],"scripts":[],"id":"61A2A384-AD56-4C21-9611-5B129909ECE3","shape":{"__isSmartRef__":true,"id":832},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile1","partsBinMetaInfo":{"__isSmartRef__":true,"id":833},"textChunks":[{"__isSmartRef__":true,"id":842}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":844},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":845},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":846},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":851},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(5.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"832":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"833":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":835},{"__isSmartRef__":true,"id":836},{"__isSmartRef__":true,"id":837},{"__isSmartRef__":true,"id":838},{"__isSmartRef__":true,"id":839},{"__isSmartRef__":true,"id":840},{"__isSmartRef__":true,"id":841}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"834":{"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)\")"},"835":{"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)\")"},"836":{"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)\")"},"837":{"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)\")"},"838":{"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)\")"},"839":{"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)\")"},"840":{"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)\")"},"841":{"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)\")"},"842":{"style":{"__isSmartRef__":true,"id":843},"chunkOwner":{"__isSmartRef__":true,"id":831},"_id":"_37423","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"843":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"844":{"morph":{"__isSmartRef__":true,"id":831},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"845":{"resizeWidth":true},"846":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":847}},"847":{"testGetValue":{"__isSmartRef__":true,"id":848}},"848":{"varMapping":{"__isSmartRef__":true,"id":849},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"849":{"this":{"__isSmartRef__":true,"id":846}},"850":{},"851":{"initialize":{"__isSmartRef__":true,"id":852},"indexValue":{"__isSmartRef__":true,"id":859},"display":{"__isSmartRef__":true,"id":862},"log":{"__isSmartRef__":true,"id":865},"increment":{"__isSmartRef__":true,"id":868},"setValue":{"__isSmartRef__":true,"id":871},"getValue":{"__isSmartRef__":true,"id":874}},"852":{"varMapping":{"__isSmartRef__":true,"id":853},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"853":{"this":{"__isSmartRef__":true,"id":831},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":854}},"854":{"$super":{"__isSmartRef__":true,"id":855}},"855":{"varMapping":{"__isSmartRef__":true,"id":856},"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":857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"856":{"obj":{"__isSmartRef__":true,"id":831},"name":"initialize"},"857":{},"858":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"859":{"varMapping":{"__isSmartRef__":true,"id":860},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"860":{"this":{"__isSmartRef__":true,"id":831}},"861":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"862":{"varMapping":{"__isSmartRef__":true,"id":863},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"863":{"this":{"__isSmartRef__":true,"id":831}},"864":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"865":{"varMapping":{"__isSmartRef__":true,"id":866},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"866":{"this":{"__isSmartRef__":true,"id":831}},"867":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"868":{"varMapping":{"__isSmartRef__":true,"id":869},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"869":{"this":{"__isSmartRef__":true,"id":831}},"870":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"871":{"varMapping":{"__isSmartRef__":true,"id":872},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":873},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"872":{"this":{"__isSmartRef__":true,"id":831}},"873":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"874":{"varMapping":{"__isSmartRef__":true,"id":875},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"875":{"this":{"__isSmartRef__":true,"id":831}},"876":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"877":{"index":1,"tile":{"__isSmartRef__":true,"id":878},"__serializedExpressions__":["position"],"position":"lively.pt(80.0,5.0)"},"878":{"submorphs":[],"scripts":[],"id":"46EB5361-8823-4F46-B117-68CA9662946E","shape":{"__isSmartRef__":true,"id":879},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile2","partsBinMetaInfo":{"__isSmartRef__":true,"id":880},"textChunks":[{"__isSmartRef__":true,"id":889}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":891},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":892},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":893},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":898},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(80.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"879":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"880":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":881},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":883},{"__isSmartRef__":true,"id":884},{"__isSmartRef__":true,"id":885},{"__isSmartRef__":true,"id":886},{"__isSmartRef__":true,"id":887},{"__isSmartRef__":true,"id":888}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"881":{"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)\")"},"882":{"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)\")"},"883":{"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)\")"},"884":{"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)\")"},"885":{"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)\")"},"886":{"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)\")"},"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":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"889":{"style":{"__isSmartRef__":true,"id":890},"chunkOwner":{"__isSmartRef__":true,"id":878},"_id":"_37424","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"890":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"891":{"morph":{"__isSmartRef__":true,"id":878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"892":{"resizeWidth":true},"893":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":894}},"894":{"testGetValue":{"__isSmartRef__":true,"id":895}},"895":{"varMapping":{"__isSmartRef__":true,"id":896},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":897},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"896":{"this":{"__isSmartRef__":true,"id":893}},"897":{},"898":{"initialize":{"__isSmartRef__":true,"id":899},"indexValue":{"__isSmartRef__":true,"id":906},"display":{"__isSmartRef__":true,"id":909},"log":{"__isSmartRef__":true,"id":912},"increment":{"__isSmartRef__":true,"id":915},"setValue":{"__isSmartRef__":true,"id":918},"getValue":{"__isSmartRef__":true,"id":921}},"899":{"varMapping":{"__isSmartRef__":true,"id":900},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"900":{"this":{"__isSmartRef__":true,"id":878},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":901}},"901":{"$super":{"__isSmartRef__":true,"id":902}},"902":{"varMapping":{"__isSmartRef__":true,"id":903},"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":904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"903":{"obj":{"__isSmartRef__":true,"id":878},"name":"initialize"},"904":{},"905":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"906":{"varMapping":{"__isSmartRef__":true,"id":907},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"907":{"this":{"__isSmartRef__":true,"id":878}},"908":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"909":{"varMapping":{"__isSmartRef__":true,"id":910},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"910":{"this":{"__isSmartRef__":true,"id":878}},"911":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"912":{"varMapping":{"__isSmartRef__":true,"id":913},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"913":{"this":{"__isSmartRef__":true,"id":878}},"914":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"915":{"varMapping":{"__isSmartRef__":true,"id":916},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"916":{"this":{"__isSmartRef__":true,"id":878}},"917":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"918":{"varMapping":{"__isSmartRef__":true,"id":919},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"919":{"this":{"__isSmartRef__":true,"id":878}},"920":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"921":{"varMapping":{"__isSmartRef__":true,"id":922},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"922":{"this":{"__isSmartRef__":true,"id":878}},"923":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"924":{"index":2,"tile":{"__isSmartRef__":true,"id":925},"__serializedExpressions__":["position"],"position":"lively.pt(155.0,5.0)"},"925":{"submorphs":[],"scripts":[],"id":"F065167C-67FF-42BA-BA26-8EAED59839AB","shape":{"__isSmartRef__":true,"id":926},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile3","partsBinMetaInfo":{"__isSmartRef__":true,"id":927},"textChunks":[{"__isSmartRef__":true,"id":936}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":938},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":939},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":940},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":945},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(155.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"926":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"927":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":928},{"__isSmartRef__":true,"id":929},{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":931},{"__isSmartRef__":true,"id":932},{"__isSmartRef__":true,"id":933},{"__isSmartRef__":true,"id":934},{"__isSmartRef__":true,"id":935}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"928":{"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)\")"},"929":{"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)\")"},"930":{"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)\")"},"931":{"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)\")"},"932":{"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)\")"},"933":{"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)\")"},"934":{"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)\")"},"935":{"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)\")"},"936":{"style":{"__isSmartRef__":true,"id":937},"chunkOwner":{"__isSmartRef__":true,"id":925},"_id":"_37425","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"937":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"938":{"morph":{"__isSmartRef__":true,"id":925},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"939":{"resizeWidth":true},"940":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":941}},"941":{"testGetValue":{"__isSmartRef__":true,"id":942}},"942":{"varMapping":{"__isSmartRef__":true,"id":943},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"943":{"this":{"__isSmartRef__":true,"id":940}},"944":{},"945":{"initialize":{"__isSmartRef__":true,"id":946},"indexValue":{"__isSmartRef__":true,"id":953},"display":{"__isSmartRef__":true,"id":956},"log":{"__isSmartRef__":true,"id":959},"increment":{"__isSmartRef__":true,"id":962},"setValue":{"__isSmartRef__":true,"id":965},"getValue":{"__isSmartRef__":true,"id":968}},"946":{"varMapping":{"__isSmartRef__":true,"id":947},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"947":{"this":{"__isSmartRef__":true,"id":925},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":948}},"948":{"$super":{"__isSmartRef__":true,"id":949}},"949":{"varMapping":{"__isSmartRef__":true,"id":950},"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":951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"950":{"obj":{"__isSmartRef__":true,"id":925},"name":"initialize"},"951":{},"952":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"953":{"varMapping":{"__isSmartRef__":true,"id":954},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"954":{"this":{"__isSmartRef__":true,"id":925}},"955":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"956":{"varMapping":{"__isSmartRef__":true,"id":957},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"957":{"this":{"__isSmartRef__":true,"id":925}},"958":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"959":{"varMapping":{"__isSmartRef__":true,"id":960},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"960":{"this":{"__isSmartRef__":true,"id":925}},"961":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"962":{"varMapping":{"__isSmartRef__":true,"id":963},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"963":{"this":{"__isSmartRef__":true,"id":925}},"964":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"965":{"varMapping":{"__isSmartRef__":true,"id":966},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"966":{"this":{"__isSmartRef__":true,"id":925}},"967":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"968":{"varMapping":{"__isSmartRef__":true,"id":969},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"969":{"this":{"__isSmartRef__":true,"id":925}},"970":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"971":{"index":3,"tile":{"__isSmartRef__":true,"id":972},"__serializedExpressions__":["position"],"position":"lively.pt(230.0,5.0)"},"972":{"submorphs":[],"scripts":[],"id":"86106A03-8BF2-4CC0-8249-1474516DF5CC","shape":{"__isSmartRef__":true,"id":973},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile4","partsBinMetaInfo":{"__isSmartRef__":true,"id":974},"textChunks":[{"__isSmartRef__":true,"id":983}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":985},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":986},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":987},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":992},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(230.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"973":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"974":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":975},{"__isSmartRef__":true,"id":976},{"__isSmartRef__":true,"id":977},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":979},{"__isSmartRef__":true,"id":980},{"__isSmartRef__":true,"id":981},{"__isSmartRef__":true,"id":982}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"975":{"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)\")"},"976":{"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)\")"},"977":{"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)\")"},"978":{"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)\")"},"979":{"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)\")"},"980":{"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)\")"},"981":{"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)\")"},"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":{"style":{"__isSmartRef__":true,"id":984},"chunkOwner":{"__isSmartRef__":true,"id":972},"_id":"_37426","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"984":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"985":{"morph":{"__isSmartRef__":true,"id":972},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"986":{"resizeWidth":true},"987":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":988}},"988":{"testGetValue":{"__isSmartRef__":true,"id":989}},"989":{"varMapping":{"__isSmartRef__":true,"id":990},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"990":{"this":{"__isSmartRef__":true,"id":987}},"991":{},"992":{"initialize":{"__isSmartRef__":true,"id":993},"indexValue":{"__isSmartRef__":true,"id":1000},"display":{"__isSmartRef__":true,"id":1003},"log":{"__isSmartRef__":true,"id":1006},"increment":{"__isSmartRef__":true,"id":1009},"setValue":{"__isSmartRef__":true,"id":1012},"getValue":{"__isSmartRef__":true,"id":1015}},"993":{"varMapping":{"__isSmartRef__":true,"id":994},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"994":{"this":{"__isSmartRef__":true,"id":972},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":995}},"995":{"$super":{"__isSmartRef__":true,"id":996}},"996":{"varMapping":{"__isSmartRef__":true,"id":997},"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":998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"997":{"obj":{"__isSmartRef__":true,"id":972},"name":"initialize"},"998":{},"999":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1000":{"varMapping":{"__isSmartRef__":true,"id":1001},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1001":{"this":{"__isSmartRef__":true,"id":972}},"1002":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1003":{"varMapping":{"__isSmartRef__":true,"id":1004},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1005},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1004":{"this":{"__isSmartRef__":true,"id":972}},"1005":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1006":{"varMapping":{"__isSmartRef__":true,"id":1007},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1007":{"this":{"__isSmartRef__":true,"id":972}},"1008":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1009":{"varMapping":{"__isSmartRef__":true,"id":1010},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1011},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1010":{"this":{"__isSmartRef__":true,"id":972}},"1011":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1012":{"varMapping":{"__isSmartRef__":true,"id":1013},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1013":{"this":{"__isSmartRef__":true,"id":972}},"1014":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1015":{"varMapping":{"__isSmartRef__":true,"id":1016},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1016":{"this":{"__isSmartRef__":true,"id":972}},"1017":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1018":{"index":4,"tile":{"__isSmartRef__":true,"id":1019},"__serializedExpressions__":["position"],"position":"lively.pt(5.0,80.0)"},"1019":{"submorphs":[],"scripts":[],"id":"AE8E342D-32DB-43C3-B565-030863050365","shape":{"__isSmartRef__":true,"id":1020},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile5","partsBinMetaInfo":{"__isSmartRef__":true,"id":1021},"textChunks":[{"__isSmartRef__":true,"id":1030}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1032},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1033},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1034},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1039},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(5.0,80.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1020":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1021":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1023},{"__isSmartRef__":true,"id":1024},{"__isSmartRef__":true,"id":1025},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":1027},{"__isSmartRef__":true,"id":1028},{"__isSmartRef__":true,"id":1029}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1022":{"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)\")"},"1023":{"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)\")"},"1024":{"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)\")"},"1025":{"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)\")"},"1026":{"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)\")"},"1027":{"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)\")"},"1028":{"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)\")"},"1029":{"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)\")"},"1030":{"style":{"__isSmartRef__":true,"id":1031},"chunkOwner":{"__isSmartRef__":true,"id":1019},"_id":"_37427","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1031":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1032":{"morph":{"__isSmartRef__":true,"id":1019},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1033":{"resizeWidth":true},"1034":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1035}},"1035":{"testGetValue":{"__isSmartRef__":true,"id":1036}},"1036":{"varMapping":{"__isSmartRef__":true,"id":1037},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1037":{"this":{"__isSmartRef__":true,"id":1034}},"1038":{},"1039":{"initialize":{"__isSmartRef__":true,"id":1040},"indexValue":{"__isSmartRef__":true,"id":1047},"display":{"__isSmartRef__":true,"id":1050},"log":{"__isSmartRef__":true,"id":1053},"increment":{"__isSmartRef__":true,"id":1056},"setValue":{"__isSmartRef__":true,"id":1059},"getValue":{"__isSmartRef__":true,"id":1062}},"1040":{"varMapping":{"__isSmartRef__":true,"id":1041},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1041":{"this":{"__isSmartRef__":true,"id":1019},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1042}},"1042":{"$super":{"__isSmartRef__":true,"id":1043}},"1043":{"varMapping":{"__isSmartRef__":true,"id":1044},"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":1045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1044":{"obj":{"__isSmartRef__":true,"id":1019},"name":"initialize"},"1045":{},"1046":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1047":{"varMapping":{"__isSmartRef__":true,"id":1048},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1048":{"this":{"__isSmartRef__":true,"id":1019}},"1049":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1050":{"varMapping":{"__isSmartRef__":true,"id":1051},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1052},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1051":{"this":{"__isSmartRef__":true,"id":1019}},"1052":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1053":{"varMapping":{"__isSmartRef__":true,"id":1054},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1054":{"this":{"__isSmartRef__":true,"id":1019}},"1055":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1056":{"varMapping":{"__isSmartRef__":true,"id":1057},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1057":{"this":{"__isSmartRef__":true,"id":1019}},"1058":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1059":{"varMapping":{"__isSmartRef__":true,"id":1060},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1060":{"this":{"__isSmartRef__":true,"id":1019}},"1061":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1062":{"varMapping":{"__isSmartRef__":true,"id":1063},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1063":{"this":{"__isSmartRef__":true,"id":1019}},"1064":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1065":{"index":5,"tile":{"__isSmartRef__":true,"id":1066},"__serializedExpressions__":["position"],"position":"lively.pt(80.0,80.0)"},"1066":{"submorphs":[],"scripts":[],"id":"EC58A794-8A60-4F8C-9B3B-FD8A5CD8F0C1","shape":{"__isSmartRef__":true,"id":1067},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile6","partsBinMetaInfo":{"__isSmartRef__":true,"id":1068},"textChunks":[{"__isSmartRef__":true,"id":1077}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1079},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1080},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1081},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1086},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(80.0,80.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1067":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1068":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1069},{"__isSmartRef__":true,"id":1070},{"__isSmartRef__":true,"id":1071},{"__isSmartRef__":true,"id":1072},{"__isSmartRef__":true,"id":1073},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1075},{"__isSmartRef__":true,"id":1076}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1069":{"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)\")"},"1070":{"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)\")"},"1071":{"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)\")"},"1072":{"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)\")"},"1073":{"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)\")"},"1074":{"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)\")"},"1075":{"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)\")"},"1076":{"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)\")"},"1077":{"style":{"__isSmartRef__":true,"id":1078},"chunkOwner":{"__isSmartRef__":true,"id":1066},"_id":"_37428","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1078":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1079":{"morph":{"__isSmartRef__":true,"id":1066},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1080":{"resizeWidth":true},"1081":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1082}},"1082":{"testGetValue":{"__isSmartRef__":true,"id":1083}},"1083":{"varMapping":{"__isSmartRef__":true,"id":1084},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1084":{"this":{"__isSmartRef__":true,"id":1081}},"1085":{},"1086":{"initialize":{"__isSmartRef__":true,"id":1087},"indexValue":{"__isSmartRef__":true,"id":1094},"display":{"__isSmartRef__":true,"id":1097},"log":{"__isSmartRef__":true,"id":1100},"increment":{"__isSmartRef__":true,"id":1103},"setValue":{"__isSmartRef__":true,"id":1106},"getValue":{"__isSmartRef__":true,"id":1109}},"1087":{"varMapping":{"__isSmartRef__":true,"id":1088},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1088":{"this":{"__isSmartRef__":true,"id":1066},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1089}},"1089":{"$super":{"__isSmartRef__":true,"id":1090}},"1090":{"varMapping":{"__isSmartRef__":true,"id":1091},"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":1092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1091":{"obj":{"__isSmartRef__":true,"id":1066},"name":"initialize"},"1092":{},"1093":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1094":{"varMapping":{"__isSmartRef__":true,"id":1095},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1095":{"this":{"__isSmartRef__":true,"id":1066}},"1096":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1097":{"varMapping":{"__isSmartRef__":true,"id":1098},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1098":{"this":{"__isSmartRef__":true,"id":1066}},"1099":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1100":{"varMapping":{"__isSmartRef__":true,"id":1101},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1101":{"this":{"__isSmartRef__":true,"id":1066}},"1102":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1103":{"varMapping":{"__isSmartRef__":true,"id":1104},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1104":{"this":{"__isSmartRef__":true,"id":1066}},"1105":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1106":{"varMapping":{"__isSmartRef__":true,"id":1107},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1107":{"this":{"__isSmartRef__":true,"id":1066}},"1108":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1109":{"varMapping":{"__isSmartRef__":true,"id":1110},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1110":{"this":{"__isSmartRef__":true,"id":1066}},"1111":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1112":{"index":6,"tile":{"__isSmartRef__":true,"id":1113},"__serializedExpressions__":["position"],"position":"lively.pt(155.0,80.0)"},"1113":{"submorphs":[],"scripts":[],"id":"9D2CC586-8B7A-4956-9DCD-1E0D785ADF4E","shape":{"__isSmartRef__":true,"id":1114},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile7","partsBinMetaInfo":{"__isSmartRef__":true,"id":1115},"textChunks":[{"__isSmartRef__":true,"id":1124}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1126},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1127},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1128},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1133},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(155.0,80.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1114":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1115":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1116},{"__isSmartRef__":true,"id":1117},{"__isSmartRef__":true,"id":1118},{"__isSmartRef__":true,"id":1119},{"__isSmartRef__":true,"id":1120},{"__isSmartRef__":true,"id":1121},{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1123}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1116":{"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)\")"},"1117":{"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)\")"},"1118":{"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)\")"},"1119":{"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)\")"},"1120":{"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)\")"},"1121":{"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)\")"},"1122":{"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)\")"},"1123":{"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)\")"},"1124":{"style":{"__isSmartRef__":true,"id":1125},"chunkOwner":{"__isSmartRef__":true,"id":1113},"_id":"_37429","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1125":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1126":{"morph":{"__isSmartRef__":true,"id":1113},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1127":{"resizeWidth":true},"1128":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1129}},"1129":{"testGetValue":{"__isSmartRef__":true,"id":1130}},"1130":{"varMapping":{"__isSmartRef__":true,"id":1131},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1131":{"this":{"__isSmartRef__":true,"id":1128}},"1132":{},"1133":{"initialize":{"__isSmartRef__":true,"id":1134},"indexValue":{"__isSmartRef__":true,"id":1141},"display":{"__isSmartRef__":true,"id":1144},"log":{"__isSmartRef__":true,"id":1147},"increment":{"__isSmartRef__":true,"id":1150},"setValue":{"__isSmartRef__":true,"id":1153},"getValue":{"__isSmartRef__":true,"id":1156}},"1134":{"varMapping":{"__isSmartRef__":true,"id":1135},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1135":{"this":{"__isSmartRef__":true,"id":1113},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1136}},"1136":{"$super":{"__isSmartRef__":true,"id":1137}},"1137":{"varMapping":{"__isSmartRef__":true,"id":1138},"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":1139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1138":{"obj":{"__isSmartRef__":true,"id":1113},"name":"initialize"},"1139":{},"1140":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1141":{"varMapping":{"__isSmartRef__":true,"id":1142},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1142":{"this":{"__isSmartRef__":true,"id":1113}},"1143":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1144":{"varMapping":{"__isSmartRef__":true,"id":1145},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1145":{"this":{"__isSmartRef__":true,"id":1113}},"1146":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1147":{"varMapping":{"__isSmartRef__":true,"id":1148},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1148":{"this":{"__isSmartRef__":true,"id":1113}},"1149":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1150":{"varMapping":{"__isSmartRef__":true,"id":1151},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1151":{"this":{"__isSmartRef__":true,"id":1113}},"1152":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1153":{"varMapping":{"__isSmartRef__":true,"id":1154},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1154":{"this":{"__isSmartRef__":true,"id":1113}},"1155":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1156":{"varMapping":{"__isSmartRef__":true,"id":1157},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1157":{"this":{"__isSmartRef__":true,"id":1113}},"1158":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1159":{"index":7,"tile":{"__isSmartRef__":true,"id":1160},"__serializedExpressions__":["position"],"position":"lively.pt(230.0,80.0)"},"1160":{"submorphs":[],"scripts":[],"id":"8955163D-2B7E-4CA8-8D36-E88029045A02","shape":{"__isSmartRef__":true,"id":1161},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile8","partsBinMetaInfo":{"__isSmartRef__":true,"id":1162},"textChunks":[{"__isSmartRef__":true,"id":1171}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1173},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1174},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1175},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1180},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(230.0,80.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1161":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1162":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1163},{"__isSmartRef__":true,"id":1164},{"__isSmartRef__":true,"id":1165},{"__isSmartRef__":true,"id":1166},{"__isSmartRef__":true,"id":1167},{"__isSmartRef__":true,"id":1168},{"__isSmartRef__":true,"id":1169},{"__isSmartRef__":true,"id":1170}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1163":{"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)\")"},"1164":{"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)\")"},"1165":{"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)\")"},"1166":{"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)\")"},"1167":{"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)\")"},"1168":{"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)\")"},"1169":{"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)\")"},"1170":{"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)\")"},"1171":{"style":{"__isSmartRef__":true,"id":1172},"chunkOwner":{"__isSmartRef__":true,"id":1160},"_id":"_37430","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1172":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1173":{"morph":{"__isSmartRef__":true,"id":1160},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1174":{"resizeWidth":true},"1175":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1176}},"1176":{"testGetValue":{"__isSmartRef__":true,"id":1177}},"1177":{"varMapping":{"__isSmartRef__":true,"id":1178},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1179},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1178":{"this":{"__isSmartRef__":true,"id":1175}},"1179":{},"1180":{"initialize":{"__isSmartRef__":true,"id":1181},"indexValue":{"__isSmartRef__":true,"id":1188},"display":{"__isSmartRef__":true,"id":1191},"log":{"__isSmartRef__":true,"id":1194},"increment":{"__isSmartRef__":true,"id":1197},"setValue":{"__isSmartRef__":true,"id":1200},"getValue":{"__isSmartRef__":true,"id":1203}},"1181":{"varMapping":{"__isSmartRef__":true,"id":1182},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1182":{"this":{"__isSmartRef__":true,"id":1160},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1183}},"1183":{"$super":{"__isSmartRef__":true,"id":1184}},"1184":{"varMapping":{"__isSmartRef__":true,"id":1185},"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":1186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1185":{"obj":{"__isSmartRef__":true,"id":1160},"name":"initialize"},"1186":{},"1187":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1188":{"varMapping":{"__isSmartRef__":true,"id":1189},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1189":{"this":{"__isSmartRef__":true,"id":1160}},"1190":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1191":{"varMapping":{"__isSmartRef__":true,"id":1192},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1192":{"this":{"__isSmartRef__":true,"id":1160}},"1193":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1194":{"varMapping":{"__isSmartRef__":true,"id":1195},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1195":{"this":{"__isSmartRef__":true,"id":1160}},"1196":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1197":{"varMapping":{"__isSmartRef__":true,"id":1198},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1199},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1198":{"this":{"__isSmartRef__":true,"id":1160}},"1199":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1200":{"varMapping":{"__isSmartRef__":true,"id":1201},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1201":{"this":{"__isSmartRef__":true,"id":1160}},"1202":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1203":{"varMapping":{"__isSmartRef__":true,"id":1204},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1204":{"this":{"__isSmartRef__":true,"id":1160}},"1205":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1206":{"index":8,"tile":{"__isSmartRef__":true,"id":1207},"__serializedExpressions__":["position"],"position":"lively.pt(5.0,155.0)"},"1207":{"submorphs":[],"scripts":[],"id":"144A6006-E4D9-4A63-8A31-443E83E19A12","shape":{"__isSmartRef__":true,"id":1208},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile9","partsBinMetaInfo":{"__isSmartRef__":true,"id":1209},"textChunks":[{"__isSmartRef__":true,"id":1218}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1220},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1221},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1222},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1227},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(5.0,155.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1208":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1209":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1210},{"__isSmartRef__":true,"id":1211},{"__isSmartRef__":true,"id":1212},{"__isSmartRef__":true,"id":1213},{"__isSmartRef__":true,"id":1214},{"__isSmartRef__":true,"id":1215},{"__isSmartRef__":true,"id":1216},{"__isSmartRef__":true,"id":1217}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1210":{"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)\")"},"1211":{"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)\")"},"1212":{"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)\")"},"1213":{"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)\")"},"1214":{"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)\")"},"1215":{"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)\")"},"1216":{"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)\")"},"1217":{"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)\")"},"1218":{"style":{"__isSmartRef__":true,"id":1219},"chunkOwner":{"__isSmartRef__":true,"id":1207},"_id":"_37431","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1219":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1220":{"morph":{"__isSmartRef__":true,"id":1207},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1221":{"resizeWidth":true},"1222":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1223}},"1223":{"testGetValue":{"__isSmartRef__":true,"id":1224}},"1224":{"varMapping":{"__isSmartRef__":true,"id":1225},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1225":{"this":{"__isSmartRef__":true,"id":1222}},"1226":{},"1227":{"initialize":{"__isSmartRef__":true,"id":1228},"indexValue":{"__isSmartRef__":true,"id":1235},"display":{"__isSmartRef__":true,"id":1238},"log":{"__isSmartRef__":true,"id":1241},"increment":{"__isSmartRef__":true,"id":1244},"setValue":{"__isSmartRef__":true,"id":1247},"getValue":{"__isSmartRef__":true,"id":1250}},"1228":{"varMapping":{"__isSmartRef__":true,"id":1229},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1229":{"this":{"__isSmartRef__":true,"id":1207},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1230}},"1230":{"$super":{"__isSmartRef__":true,"id":1231}},"1231":{"varMapping":{"__isSmartRef__":true,"id":1232},"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":1233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1232":{"obj":{"__isSmartRef__":true,"id":1207},"name":"initialize"},"1233":{},"1234":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1235":{"varMapping":{"__isSmartRef__":true,"id":1236},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1236":{"this":{"__isSmartRef__":true,"id":1207}},"1237":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1238":{"varMapping":{"__isSmartRef__":true,"id":1239},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1239":{"this":{"__isSmartRef__":true,"id":1207}},"1240":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1241":{"varMapping":{"__isSmartRef__":true,"id":1242},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1242":{"this":{"__isSmartRef__":true,"id":1207}},"1243":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1244":{"varMapping":{"__isSmartRef__":true,"id":1245},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1245":{"this":{"__isSmartRef__":true,"id":1207}},"1246":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1247":{"varMapping":{"__isSmartRef__":true,"id":1248},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1248":{"this":{"__isSmartRef__":true,"id":1207}},"1249":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1250":{"varMapping":{"__isSmartRef__":true,"id":1251},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1251":{"this":{"__isSmartRef__":true,"id":1207}},"1252":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1253":{"index":9,"tile":{"__isSmartRef__":true,"id":1254},"__serializedExpressions__":["position"],"position":"lively.pt(80.0,155.0)"},"1254":{"submorphs":[],"scripts":[],"id":"A22B9939-1DB0-47F5-9763-AAABAFE199C0","shape":{"__isSmartRef__":true,"id":1255},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile10","partsBinMetaInfo":{"__isSmartRef__":true,"id":1256},"textChunks":[{"__isSmartRef__":true,"id":1265}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1267},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1268},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1269},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1274},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(80.0,155.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1255":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1256":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1257},{"__isSmartRef__":true,"id":1258},{"__isSmartRef__":true,"id":1259},{"__isSmartRef__":true,"id":1260},{"__isSmartRef__":true,"id":1261},{"__isSmartRef__":true,"id":1262},{"__isSmartRef__":true,"id":1263},{"__isSmartRef__":true,"id":1264}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1257":{"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)\")"},"1258":{"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)\")"},"1259":{"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)\")"},"1260":{"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)\")"},"1261":{"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)\")"},"1262":{"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)\")"},"1263":{"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)\")"},"1264":{"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)\")"},"1265":{"style":{"__isSmartRef__":true,"id":1266},"chunkOwner":{"__isSmartRef__":true,"id":1254},"_id":"_37432","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1266":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1267":{"morph":{"__isSmartRef__":true,"id":1254},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1268":{"resizeWidth":true},"1269":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1270}},"1270":{"testGetValue":{"__isSmartRef__":true,"id":1271}},"1271":{"varMapping":{"__isSmartRef__":true,"id":1272},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1272":{"this":{"__isSmartRef__":true,"id":1269}},"1273":{},"1274":{"initialize":{"__isSmartRef__":true,"id":1275},"indexValue":{"__isSmartRef__":true,"id":1282},"display":{"__isSmartRef__":true,"id":1285},"log":{"__isSmartRef__":true,"id":1288},"increment":{"__isSmartRef__":true,"id":1291},"setValue":{"__isSmartRef__":true,"id":1294},"getValue":{"__isSmartRef__":true,"id":1297}},"1275":{"varMapping":{"__isSmartRef__":true,"id":1276},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1276":{"this":{"__isSmartRef__":true,"id":1254},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1277}},"1277":{"$super":{"__isSmartRef__":true,"id":1278}},"1278":{"varMapping":{"__isSmartRef__":true,"id":1279},"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":1280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1279":{"obj":{"__isSmartRef__":true,"id":1254},"name":"initialize"},"1280":{},"1281":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1282":{"varMapping":{"__isSmartRef__":true,"id":1283},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1283":{"this":{"__isSmartRef__":true,"id":1254}},"1284":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1285":{"varMapping":{"__isSmartRef__":true,"id":1286},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1287},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1286":{"this":{"__isSmartRef__":true,"id":1254}},"1287":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1288":{"varMapping":{"__isSmartRef__":true,"id":1289},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1289":{"this":{"__isSmartRef__":true,"id":1254}},"1290":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1291":{"varMapping":{"__isSmartRef__":true,"id":1292},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1292":{"this":{"__isSmartRef__":true,"id":1254}},"1293":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1294":{"varMapping":{"__isSmartRef__":true,"id":1295},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1295":{"this":{"__isSmartRef__":true,"id":1254}},"1296":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1297":{"varMapping":{"__isSmartRef__":true,"id":1298},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1298":{"this":{"__isSmartRef__":true,"id":1254}},"1299":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1300":{"index":10,"tile":{"__isSmartRef__":true,"id":1301},"__serializedExpressions__":["position"],"position":"lively.pt(155.0,155.0)"},"1301":{"submorphs":[],"scripts":[],"id":"43B00809-CF14-477E-8125-537008022C87","shape":{"__isSmartRef__":true,"id":1302},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile11","partsBinMetaInfo":{"__isSmartRef__":true,"id":1303},"textChunks":[{"__isSmartRef__":true,"id":1312}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1314},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1315},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1316},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1321},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(155.0,155.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1302":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1303":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1304},{"__isSmartRef__":true,"id":1305},{"__isSmartRef__":true,"id":1306},{"__isSmartRef__":true,"id":1307},{"__isSmartRef__":true,"id":1308},{"__isSmartRef__":true,"id":1309},{"__isSmartRef__":true,"id":1310},{"__isSmartRef__":true,"id":1311}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1304":{"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)\")"},"1305":{"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)\")"},"1306":{"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)\")"},"1307":{"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)\")"},"1308":{"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)\")"},"1309":{"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)\")"},"1310":{"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)\")"},"1311":{"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)\")"},"1312":{"style":{"__isSmartRef__":true,"id":1313},"chunkOwner":{"__isSmartRef__":true,"id":1301},"_id":"_37433","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1313":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1314":{"morph":{"__isSmartRef__":true,"id":1301},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1315":{"resizeWidth":true},"1316":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1317}},"1317":{"testGetValue":{"__isSmartRef__":true,"id":1318}},"1318":{"varMapping":{"__isSmartRef__":true,"id":1319},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1320},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1319":{"this":{"__isSmartRef__":true,"id":1316}},"1320":{},"1321":{"initialize":{"__isSmartRef__":true,"id":1322},"indexValue":{"__isSmartRef__":true,"id":1329},"display":{"__isSmartRef__":true,"id":1332},"log":{"__isSmartRef__":true,"id":1335},"increment":{"__isSmartRef__":true,"id":1338},"setValue":{"__isSmartRef__":true,"id":1341},"getValue":{"__isSmartRef__":true,"id":1344}},"1322":{"varMapping":{"__isSmartRef__":true,"id":1323},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1323":{"this":{"__isSmartRef__":true,"id":1301},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1324}},"1324":{"$super":{"__isSmartRef__":true,"id":1325}},"1325":{"varMapping":{"__isSmartRef__":true,"id":1326},"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":1327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1326":{"obj":{"__isSmartRef__":true,"id":1301},"name":"initialize"},"1327":{},"1328":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1329":{"varMapping":{"__isSmartRef__":true,"id":1330},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1330":{"this":{"__isSmartRef__":true,"id":1301}},"1331":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1332":{"varMapping":{"__isSmartRef__":true,"id":1333},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1333":{"this":{"__isSmartRef__":true,"id":1301}},"1334":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1335":{"varMapping":{"__isSmartRef__":true,"id":1336},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1336":{"this":{"__isSmartRef__":true,"id":1301}},"1337":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1338":{"varMapping":{"__isSmartRef__":true,"id":1339},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1339":{"this":{"__isSmartRef__":true,"id":1301}},"1340":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1341":{"varMapping":{"__isSmartRef__":true,"id":1342},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1342":{"this":{"__isSmartRef__":true,"id":1301}},"1343":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1344":{"varMapping":{"__isSmartRef__":true,"id":1345},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1345":{"this":{"__isSmartRef__":true,"id":1301}},"1346":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1347":{"index":11,"tile":{"__isSmartRef__":true,"id":1348},"__serializedExpressions__":["position"],"position":"lively.pt(230.0,155.0)"},"1348":{"submorphs":[],"scripts":[],"id":"B94239F3-30FA-4405-8277-A1489F413206","shape":{"__isSmartRef__":true,"id":1349},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile12","partsBinMetaInfo":{"__isSmartRef__":true,"id":1350},"textChunks":[{"__isSmartRef__":true,"id":1359}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1361},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1362},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1363},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1368},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(230.0,155.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1349":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1350":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1351},{"__isSmartRef__":true,"id":1352},{"__isSmartRef__":true,"id":1353},{"__isSmartRef__":true,"id":1354},{"__isSmartRef__":true,"id":1355},{"__isSmartRef__":true,"id":1356},{"__isSmartRef__":true,"id":1357},{"__isSmartRef__":true,"id":1358}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1351":{"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)\")"},"1352":{"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)\")"},"1353":{"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)\")"},"1354":{"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)\")"},"1355":{"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)\")"},"1356":{"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)\")"},"1357":{"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)\")"},"1358":{"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)\")"},"1359":{"style":{"__isSmartRef__":true,"id":1360},"chunkOwner":{"__isSmartRef__":true,"id":1348},"_id":"_37434","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1360":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1361":{"morph":{"__isSmartRef__":true,"id":1348},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1362":{"resizeWidth":true},"1363":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1364}},"1364":{"testGetValue":{"__isSmartRef__":true,"id":1365}},"1365":{"varMapping":{"__isSmartRef__":true,"id":1366},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1367},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1366":{"this":{"__isSmartRef__":true,"id":1363}},"1367":{},"1368":{"initialize":{"__isSmartRef__":true,"id":1369},"indexValue":{"__isSmartRef__":true,"id":1376},"display":{"__isSmartRef__":true,"id":1379},"log":{"__isSmartRef__":true,"id":1382},"increment":{"__isSmartRef__":true,"id":1385},"setValue":{"__isSmartRef__":true,"id":1388},"getValue":{"__isSmartRef__":true,"id":1391}},"1369":{"varMapping":{"__isSmartRef__":true,"id":1370},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1370":{"this":{"__isSmartRef__":true,"id":1348},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1371}},"1371":{"$super":{"__isSmartRef__":true,"id":1372}},"1372":{"varMapping":{"__isSmartRef__":true,"id":1373},"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":1374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1373":{"obj":{"__isSmartRef__":true,"id":1348},"name":"initialize"},"1374":{},"1375":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1376":{"varMapping":{"__isSmartRef__":true,"id":1377},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1377":{"this":{"__isSmartRef__":true,"id":1348}},"1378":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1379":{"varMapping":{"__isSmartRef__":true,"id":1380},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1380":{"this":{"__isSmartRef__":true,"id":1348}},"1381":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1382":{"varMapping":{"__isSmartRef__":true,"id":1383},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1383":{"this":{"__isSmartRef__":true,"id":1348}},"1384":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1385":{"varMapping":{"__isSmartRef__":true,"id":1386},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1387},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1386":{"this":{"__isSmartRef__":true,"id":1348}},"1387":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1388":{"varMapping":{"__isSmartRef__":true,"id":1389},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1390},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1389":{"this":{"__isSmartRef__":true,"id":1348}},"1390":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1391":{"varMapping":{"__isSmartRef__":true,"id":1392},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1393},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1392":{"this":{"__isSmartRef__":true,"id":1348}},"1393":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1394":{"index":12,"tile":{"__isSmartRef__":true,"id":1395},"__serializedExpressions__":["position"],"position":"lively.pt(5.0,230.0)"},"1395":{"submorphs":[],"scripts":[],"id":"6AFE9E4C-89F4-4AD3-95DB-1EDABB1E63A5","shape":{"__isSmartRef__":true,"id":1396},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile13","partsBinMetaInfo":{"__isSmartRef__":true,"id":1397},"textChunks":[{"__isSmartRef__":true,"id":1406}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1408},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1409},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1410},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1415},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(5.0,230.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1396":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1397":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1398},{"__isSmartRef__":true,"id":1399},{"__isSmartRef__":true,"id":1400},{"__isSmartRef__":true,"id":1401},{"__isSmartRef__":true,"id":1402},{"__isSmartRef__":true,"id":1403},{"__isSmartRef__":true,"id":1404},{"__isSmartRef__":true,"id":1405}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1398":{"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)\")"},"1399":{"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)\")"},"1400":{"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)\")"},"1401":{"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)\")"},"1402":{"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)\")"},"1403":{"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)\")"},"1404":{"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)\")"},"1405":{"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)\")"},"1406":{"style":{"__isSmartRef__":true,"id":1407},"chunkOwner":{"__isSmartRef__":true,"id":1395},"_id":"_37435","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1407":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1408":{"morph":{"__isSmartRef__":true,"id":1395},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1409":{"resizeWidth":true},"1410":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1411}},"1411":{"testGetValue":{"__isSmartRef__":true,"id":1412}},"1412":{"varMapping":{"__isSmartRef__":true,"id":1413},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1413":{"this":{"__isSmartRef__":true,"id":1410}},"1414":{},"1415":{"initialize":{"__isSmartRef__":true,"id":1416},"indexValue":{"__isSmartRef__":true,"id":1423},"display":{"__isSmartRef__":true,"id":1426},"log":{"__isSmartRef__":true,"id":1429},"increment":{"__isSmartRef__":true,"id":1432},"setValue":{"__isSmartRef__":true,"id":1435},"getValue":{"__isSmartRef__":true,"id":1438}},"1416":{"varMapping":{"__isSmartRef__":true,"id":1417},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1417":{"this":{"__isSmartRef__":true,"id":1395},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1418}},"1418":{"$super":{"__isSmartRef__":true,"id":1419}},"1419":{"varMapping":{"__isSmartRef__":true,"id":1420},"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":1421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1420":{"obj":{"__isSmartRef__":true,"id":1395},"name":"initialize"},"1421":{},"1422":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1423":{"varMapping":{"__isSmartRef__":true,"id":1424},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1425},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1424":{"this":{"__isSmartRef__":true,"id":1395}},"1425":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1426":{"varMapping":{"__isSmartRef__":true,"id":1427},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1427":{"this":{"__isSmartRef__":true,"id":1395}},"1428":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1429":{"varMapping":{"__isSmartRef__":true,"id":1430},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1431},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1430":{"this":{"__isSmartRef__":true,"id":1395}},"1431":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1432":{"varMapping":{"__isSmartRef__":true,"id":1433},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1433":{"this":{"__isSmartRef__":true,"id":1395}},"1434":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1435":{"varMapping":{"__isSmartRef__":true,"id":1436},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1437},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1436":{"this":{"__isSmartRef__":true,"id":1395}},"1437":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1438":{"varMapping":{"__isSmartRef__":true,"id":1439},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1439":{"this":{"__isSmartRef__":true,"id":1395}},"1440":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1441":{"index":13,"tile":{"__isSmartRef__":true,"id":1442},"__serializedExpressions__":["position"],"position":"lively.pt(80.0,230.0)"},"1442":{"submorphs":[],"scripts":[],"id":"9977414C-08E1-4DED-8E42-C1373BE476C9","shape":{"__isSmartRef__":true,"id":1443},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile14","partsBinMetaInfo":{"__isSmartRef__":true,"id":1444},"textChunks":[{"__isSmartRef__":true,"id":1453}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1455},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1456},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1457},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1462},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(80.0,230.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1443":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1444":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1445},{"__isSmartRef__":true,"id":1446},{"__isSmartRef__":true,"id":1447},{"__isSmartRef__":true,"id":1448},{"__isSmartRef__":true,"id":1449},{"__isSmartRef__":true,"id":1450},{"__isSmartRef__":true,"id":1451},{"__isSmartRef__":true,"id":1452}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1445":{"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)\")"},"1446":{"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)\")"},"1447":{"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)\")"},"1448":{"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)\")"},"1449":{"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)\")"},"1450":{"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)\")"},"1451":{"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)\")"},"1452":{"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)\")"},"1453":{"style":{"__isSmartRef__":true,"id":1454},"chunkOwner":{"__isSmartRef__":true,"id":1442},"_id":"_37436","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1454":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1455":{"morph":{"__isSmartRef__":true,"id":1442},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1456":{"resizeWidth":true},"1457":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1458}},"1458":{"testGetValue":{"__isSmartRef__":true,"id":1459}},"1459":{"varMapping":{"__isSmartRef__":true,"id":1460},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1460":{"this":{"__isSmartRef__":true,"id":1457}},"1461":{},"1462":{"initialize":{"__isSmartRef__":true,"id":1463},"indexValue":{"__isSmartRef__":true,"id":1470},"display":{"__isSmartRef__":true,"id":1473},"log":{"__isSmartRef__":true,"id":1476},"increment":{"__isSmartRef__":true,"id":1479},"setValue":{"__isSmartRef__":true,"id":1482},"getValue":{"__isSmartRef__":true,"id":1485}},"1463":{"varMapping":{"__isSmartRef__":true,"id":1464},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1469},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1464":{"this":{"__isSmartRef__":true,"id":1442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1465}},"1465":{"$super":{"__isSmartRef__":true,"id":1466}},"1466":{"varMapping":{"__isSmartRef__":true,"id":1467},"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":1468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1467":{"obj":{"__isSmartRef__":true,"id":1442},"name":"initialize"},"1468":{},"1469":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1470":{"varMapping":{"__isSmartRef__":true,"id":1471},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1472},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1471":{"this":{"__isSmartRef__":true,"id":1442}},"1472":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1473":{"varMapping":{"__isSmartRef__":true,"id":1474},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1474":{"this":{"__isSmartRef__":true,"id":1442}},"1475":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1476":{"varMapping":{"__isSmartRef__":true,"id":1477},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1478},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1477":{"this":{"__isSmartRef__":true,"id":1442}},"1478":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1479":{"varMapping":{"__isSmartRef__":true,"id":1480},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1480":{"this":{"__isSmartRef__":true,"id":1442}},"1481":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1482":{"varMapping":{"__isSmartRef__":true,"id":1483},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1483":{"this":{"__isSmartRef__":true,"id":1442}},"1484":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1485":{"varMapping":{"__isSmartRef__":true,"id":1486},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1486":{"this":{"__isSmartRef__":true,"id":1442}},"1487":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1488":{"index":14,"tile":{"__isSmartRef__":true,"id":1489},"__serializedExpressions__":["position"],"position":"lively.pt(155.0,230.0)"},"1489":{"submorphs":[],"scripts":[],"id":"A8FCA05B-ED9A-4566-B34B-C109B154AE93","shape":{"__isSmartRef__":true,"id":1490},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile15","partsBinMetaInfo":{"__isSmartRef__":true,"id":1491},"textChunks":[{"__isSmartRef__":true,"id":1500}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1502},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1503},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1504},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1509},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(155.0,230.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1490":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1491":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1492},{"__isSmartRef__":true,"id":1493},{"__isSmartRef__":true,"id":1494},{"__isSmartRef__":true,"id":1495},{"__isSmartRef__":true,"id":1496},{"__isSmartRef__":true,"id":1497},{"__isSmartRef__":true,"id":1498},{"__isSmartRef__":true,"id":1499}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1492":{"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)\")"},"1493":{"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)\")"},"1494":{"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)\")"},"1495":{"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)\")"},"1496":{"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)\")"},"1497":{"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)\")"},"1498":{"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)\")"},"1499":{"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)\")"},"1500":{"style":{"__isSmartRef__":true,"id":1501},"chunkOwner":{"__isSmartRef__":true,"id":1489},"_id":"_37437","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1501":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1502":{"morph":{"__isSmartRef__":true,"id":1489},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1503":{"resizeWidth":true},"1504":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1505}},"1505":{"testGetValue":{"__isSmartRef__":true,"id":1506}},"1506":{"varMapping":{"__isSmartRef__":true,"id":1507},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1507":{"this":{"__isSmartRef__":true,"id":1504}},"1508":{},"1509":{"initialize":{"__isSmartRef__":true,"id":1510},"indexValue":{"__isSmartRef__":true,"id":1517},"display":{"__isSmartRef__":true,"id":1520},"log":{"__isSmartRef__":true,"id":1523},"increment":{"__isSmartRef__":true,"id":1526},"setValue":{"__isSmartRef__":true,"id":1529},"getValue":{"__isSmartRef__":true,"id":1532}},"1510":{"varMapping":{"__isSmartRef__":true,"id":1511},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1511":{"this":{"__isSmartRef__":true,"id":1489},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1512}},"1512":{"$super":{"__isSmartRef__":true,"id":1513}},"1513":{"varMapping":{"__isSmartRef__":true,"id":1514},"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":1515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1514":{"obj":{"__isSmartRef__":true,"id":1489},"name":"initialize"},"1515":{},"1516":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1517":{"varMapping":{"__isSmartRef__":true,"id":1518},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1518":{"this":{"__isSmartRef__":true,"id":1489}},"1519":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1520":{"varMapping":{"__isSmartRef__":true,"id":1521},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1521":{"this":{"__isSmartRef__":true,"id":1489}},"1522":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1523":{"varMapping":{"__isSmartRef__":true,"id":1524},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1524":{"this":{"__isSmartRef__":true,"id":1489}},"1525":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1526":{"varMapping":{"__isSmartRef__":true,"id":1527},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1527":{"this":{"__isSmartRef__":true,"id":1489}},"1528":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1529":{"varMapping":{"__isSmartRef__":true,"id":1530},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1530":{"this":{"__isSmartRef__":true,"id":1489}},"1531":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1532":{"varMapping":{"__isSmartRef__":true,"id":1533},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1533":{"this":{"__isSmartRef__":true,"id":1489}},"1534":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1535":{"index":15,"tile":{"__isSmartRef__":true,"id":1536},"__serializedExpressions__":["position"],"position":"lively.pt(230.0,230.0)"},"1536":{"submorphs":[],"scripts":[],"id":"D19CA4D3-9575-432D-B575-A21CE66A9586","shape":{"__isSmartRef__":true,"id":1537},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile16","partsBinMetaInfo":{"__isSmartRef__":true,"id":1538},"textChunks":[{"__isSmartRef__":true,"id":1547}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1549},"_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","2256AE5F-147D-419F-AEC9-521D48B9B2D8"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1550},"_Rotation":0,"_Scale":1,"_Align":"center","value":0,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1551},"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1556},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(230.0,230.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(119,110,101,255)"},"1537":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(205,192,180,255)"},"1538":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1539},{"__isSmartRef__":true,"id":1540},{"__isSmartRef__":true,"id":1541},{"__isSmartRef__":true,"id":1542},{"__isSmartRef__":true,"id":1543},{"__isSmartRef__":true,"id":1544},{"__isSmartRef__":true,"id":1545},{"__isSmartRef__":true,"id":1546}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1539":{"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)\")"},"1540":{"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)\")"},"1541":{"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)\")"},"1542":{"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)\")"},"1543":{"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)\")"},"1544":{"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)\")"},"1545":{"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)\")"},"1546":{"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)\")"},"1547":{"style":{"__isSmartRef__":true,"id":1548},"chunkOwner":{"__isSmartRef__":true,"id":1536},"_id":"_37438","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1548":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(119,110,101,255)"},"1549":{"morph":{"__isSmartRef__":true,"id":1536},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1550":{"resizeWidth":true},"1551":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1552}},"1552":{"testGetValue":{"__isSmartRef__":true,"id":1553}},"1553":{"varMapping":{"__isSmartRef__":true,"id":1554},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1555},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1554":{"this":{"__isSmartRef__":true,"id":1551}},"1555":{},"1556":{"initialize":{"__isSmartRef__":true,"id":1557},"indexValue":{"__isSmartRef__":true,"id":1564},"display":{"__isSmartRef__":true,"id":1567},"log":{"__isSmartRef__":true,"id":1570},"increment":{"__isSmartRef__":true,"id":1573},"setValue":{"__isSmartRef__":true,"id":1576},"getValue":{"__isSmartRef__":true,"id":1579}},"1557":{"varMapping":{"__isSmartRef__":true,"id":1558},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1558":{"this":{"__isSmartRef__":true,"id":1536},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1559}},"1559":{"$super":{"__isSmartRef__":true,"id":1560}},"1560":{"varMapping":{"__isSmartRef__":true,"id":1561},"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":1562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1561":{"obj":{"__isSmartRef__":true,"id":1536},"name":"initialize"},"1562":{},"1563":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1564":{"varMapping":{"__isSmartRef__":true,"id":1565},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1565":{"this":{"__isSmartRef__":true,"id":1536}},"1566":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1567":{"varMapping":{"__isSmartRef__":true,"id":1568},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1569},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1568":{"this":{"__isSmartRef__":true,"id":1536}},"1569":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1570":{"varMapping":{"__isSmartRef__":true,"id":1571},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1571":{"this":{"__isSmartRef__":true,"id":1536}},"1572":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1573":{"varMapping":{"__isSmartRef__":true,"id":1574},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1574":{"this":{"__isSmartRef__":true,"id":1536}},"1575":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1576":{"varMapping":{"__isSmartRef__":true,"id":1577},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1577":{"this":{"__isSmartRef__":true,"id":1536}},"1578":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1579":{"varMapping":{"__isSmartRef__":true,"id":1580},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1580":{"this":{"__isSmartRef__":true,"id":1536}},"1581":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1582":{"submorphs":[],"scripts":[],"id":"2256AE5F-147D-419F-AEC9-521D48B9B2D8","shape":{"__isSmartRef__":true,"id":1583},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":36,"name":"Tile","partsBinMetaInfo":{"__isSmartRef__":true,"id":1584},"textChunks":[{"__isSmartRef__":true,"id":1593}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1595},"_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":1596},"owner":null,"_Rotation":0,"_Scale":1,"_Align":"center","value":32,"__serializedExpressions__":["backgroundColors.0","backgroundColors.1","backgroundColors.2","backgroundColors.3","backgroundColors.4","backgroundColors.5","backgroundColors.6","backgroundColors.7","backgroundColors.8","backgroundColors.9","backgroundColors.10","backgroundColors.11","backgroundColors.12","_Position","textColor","_Padding","distanceToDragEvent","borderColor","_TextColor"],"backgroundColors":["Color.rgba(205,192,180,255)","Color.rgba(238,228,218,255)","Color.rgba(237,224,200,255)","Color.rgba(242,177,121,255)","Color.rgba(245,149,99,255)","Color.rgba(246,124,95,255)","Color.rgba(246,94,59,255)","Color.rgba(240,212,114,255)","Color.rgba(237,204,97,255)","Color.rgba(237,201,81,255)","Color.rgba(220,182,49,255)","Color.rgba(232,192,46,255)","Color.rgba(133,211,143,255)"],"partTests":{"__isSmartRef__":true,"id":1597},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1602},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(355.0,232.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(53.0,-11.0)","borderColor":"Color.rgba(187,173,160,255)","_TextColor":"Color.rgba(255,255,255,255)"},"1583":{"fill":null,"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.0,75.0)","_BorderColor":"Color.rgba(187,173,160,255)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgba(246,124,95,255)"},"1584":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1585},{"__isSmartRef__":true,"id":1586},{"__isSmartRef__":true,"id":1587},{"__isSmartRef__":true,"id":1588},{"__isSmartRef__":true,"id":1589},{"__isSmartRef__":true,"id":1590},{"__isSmartRef__":true,"id":1591},{"__isSmartRef__":true,"id":1592}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1585":{"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)\")"},"1586":{"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)\")"},"1587":{"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)\")"},"1588":{"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)\")"},"1589":{"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)\")"},"1590":{"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)\")"},"1591":{"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)\")"},"1592":{"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)\")"},"1593":{"style":{"__isSmartRef__":true,"id":1594},"chunkOwner":{"__isSmartRef__":true,"id":1582},"_id":"_10901","storedString":"32","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1594":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgba(255,255,255,255)"},"1595":{"morph":{"__isSmartRef__":true,"id":1582},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1596":{"resizeWidth":true},"1597":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1598}},"1598":{"testGetValue":{"__isSmartRef__":true,"id":1599}},"1599":{"varMapping":{"__isSmartRef__":true,"id":1600},"source":"function testGetValue(colorTile) {\n    for(var i = 0; i < 4100; i++) {\n        colorTile.setValue(i);\n        if(colorTile.getValue() == i) {\n            colorTile.log(i.toString());\n        }\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":1601},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1600":{"this":{"__isSmartRef__":true,"id":1597}},"1601":{},"1602":{"initialize":{"__isSmartRef__":true,"id":1603},"indexValue":{"__isSmartRef__":true,"id":1610},"display":{"__isSmartRef__":true,"id":1613},"log":{"__isSmartRef__":true,"id":1616},"increment":{"__isSmartRef__":true,"id":1619},"setValue":{"__isSmartRef__":true,"id":1622},"getValue":{"__isSmartRef__":true,"id":1625}},"1603":{"varMapping":{"__isSmartRef__":true,"id":1604},"source":"function initialize() {\n    this.backgroundColors = [\n        Color.rgba(205,192,180,255),\n        Color.rgba(238,228,218,255),\n        Color.rgba(237,224,200,255),\n        Color.rgba(242,177,121,255),\n        Color.rgba(245,149,99,255),\n        Color.rgba(246,124,95,255),\n        Color.rgba(246,94,59,255),\n        Color.rgba(240,212,114,255),\n        Color.rgba(237,204,97,255),\n        Color.rgba(237,201,81,255),\n        Color.rgba(220,182,49,255),\n        Color.rgba(232,192,46,255),\n        Color.rgba(133,211,143,255)];\n    this.borderColor = Color.rgba(187,173,160,255);\n    this.setBorderColor(this.borderColor);\n    this.value = 0;\n    this.display();\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1604":{"this":{"__isSmartRef__":true,"id":1582},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1605}},"1605":{"$super":{"__isSmartRef__":true,"id":1606}},"1606":{"varMapping":{"__isSmartRef__":true,"id":1607},"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":1608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1607":{"obj":{"__isSmartRef__":true,"id":1582},"name":"initialize"},"1608":{},"1609":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:52:00 GMT-0700 (PDT)\")"},"1610":{"varMapping":{"__isSmartRef__":true,"id":1611},"source":"function indexValue() {\n    if (this.value == 0) return 0;\n    for(var val = this.value, result = 0; val > 1; val >>= 1) result++;\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1612},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1611":{"this":{"__isSmartRef__":true,"id":1582}},"1612":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:36:55 GMT-0700 (PDT)\")"},"1613":{"varMapping":{"__isSmartRef__":true,"id":1614},"source":"function display() {\n    var index = this.indexValue();\n    this.setFill(this.backgroundColors[index]);\n    if (this.value > 0) {\n        this.setTextString(this.value.toString());\n    } else {\n        this.setTextString(\"\");\n    }\n    if(this.value <= 4) {\n        this.setTextColor(Color.rgba(119,110,101,255));\n    } else {\n        this.setTextColor(Color.rgba(255, 255, 255, 255));\n    }\n    if(this.value < 128) {\n        this.setFontSize(36);\n    } else if (this.value < 1024) {\n        this.setFontSize(28);\n    } else {\n        this.setFontSize(20);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1615},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1614":{"this":{"__isSmartRef__":true,"id":1582}},"1615":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:01:16 GMT-0700 (PDT)\")"},"1616":{"varMapping":{"__isSmartRef__":true,"id":1617},"source":"function log(string) {\n    var scratchpad = $world.get('Scratchpad');\n    if (scratchpad) {\n        scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1617":{"this":{"__isSmartRef__":true,"id":1582}},"1618":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:33:03 GMT-0700 (PDT)\")"},"1619":{"varMapping":{"__isSmartRef__":true,"id":1620},"source":"function increment() {\n    if (this.value == 0) {\n        this.value = 2;\n    } else if(this.value == 4096) {\n        this.value = 0;\n    } else {\n        this.value <<= 1;\n    }\n    this.display();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1620":{"this":{"__isSmartRef__":true,"id":1582}},"1621":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 16:40:40 GMT-0700 (PDT)\")"},"1622":{"varMapping":{"__isSmartRef__":true,"id":1623},"source":"function setValue(newValue) {\n    if (newValue > 4096) {\n        return;\n    }\n    if ((newValue & (newValue - 1)) == 0) {\n        this.value = newValue;\n        this.display();\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1623":{"this":{"__isSmartRef__":true,"id":1582}},"1624":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:24:20 GMT-0700 (PDT)\")"},"1625":{"varMapping":{"__isSmartRef__":true,"id":1626},"source":"function getValue() {\n    return this.value;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1626":{"this":{"__isSmartRef__":true,"id":1582}},"1627":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 12 2014 17:20:32 GMT-0700 (PDT)\")"},"1628":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"score","targetObj":{"__isSmartRef__":true,"id":1629},"targetMethodName":"textString","varMapping":{"__isSmartRef__":true,"id":1644},"converterString":"function converter(value) {\n    return 'Score\\n' + value\n}","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1629":{"submorphs":[],"scripts":[],"id":"968D404E-5403-4899-9BE5-ACC207895232","shape":{"__isSmartRef__":true,"id":1630},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":15,"name":"Scorebox","partsBinMetaInfo":{"__isSmartRef__":true,"id":1631},"textChunks":[{"__isSmartRef__":true,"id":1640}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1642},"_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,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1643},"owner":{"__isSmartRef__":true,"id":0},"_Align":"center","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(130.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(72.0,-10.0)","_TextColor":"Color.rgb(255,255,255)"},"1630":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":10,"_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.rgba(183,174,165,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,50.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1631":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__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},{"__isSmartRef__":true,"id":1639}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1632":{"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)\")"},"1633":{"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)\")"},"1634":{"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)\")"},"1635":{"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)\")"},"1636":{"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)\")"},"1637":{"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)\")"},"1638":{"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)\")"},"1639":{"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)\")"},"1640":{"style":{"__isSmartRef__":true,"id":1641},"chunkOwner":{"__isSmartRef__":true,"id":1629},"_id":"_29807","storedString":"Score\n0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1641":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1642":{"morph":{"__isSmartRef__":true,"id":1629},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1643":{"resizeWidth":true},"1644":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":1629}},"1645":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"bestScore","targetObj":{"__isSmartRef__":true,"id":1646},"targetMethodName":"textString","varMapping":{"__isSmartRef__":true,"id":1661},"converterString":"function converter(value) {\n    return 'Best\\n' + value\n}","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1646":{"submorphs":[],"scripts":[],"id":"E51EAC04-7413-4321-AC28-94DE149B70DC","shape":{"__isSmartRef__":true,"id":1647},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":15,"name":"BestScoreBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":1648},"textChunks":[{"__isSmartRef__":true,"id":1657}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1659},"_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","968D404E-5403-4899-9BE5-ACC207895232"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1660},"_Align":"center","owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(240.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(72.0,-10.0)","_TextColor":"Color.rgb(255,255,255)"},"1647":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":10,"_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.rgba(183,174,165,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,50.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1648":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1649},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":1651},{"__isSmartRef__":true,"id":1652},{"__isSmartRef__":true,"id":1653},{"__isSmartRef__":true,"id":1654},{"__isSmartRef__":true,"id":1655},{"__isSmartRef__":true,"id":1656}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1649":{"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)\")"},"1650":{"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)\")"},"1651":{"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)\")"},"1652":{"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)\")"},"1653":{"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)\")"},"1654":{"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)\")"},"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":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1657":{"style":{"__isSmartRef__":true,"id":1658},"chunkOwner":{"__isSmartRef__":true,"id":1646},"_id":"_29808","storedString":"Best\n1972","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1658":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1659":{"morph":{"__isSmartRef__":true,"id":1646},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1660":{"resizeWidth":true},"1661":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":1646}},"1662":{"fill":{"__isSmartRef__":true,"id":1663},"compressArray":{"__isSmartRef__":true,"id":1666},"getSlice":{"__isSmartRef__":true,"id":1669},"validIndex":{"__isSmartRef__":true,"id":1672},"setSlice":{"__isSmartRef__":true,"id":1675},"getSliceIndices":{"__isSmartRef__":true,"id":1678},"swipeToDirection":{"__isSmartRef__":true,"id":1681},"onKeyDown":{"__isSmartRef__":true,"id":1684},"arrayCompressable":{"__isSmartRef__":true,"id":1691},"initialize":{"__isSmartRef__":true,"id":1694},"movePossible":{"__isSmartRef__":true,"id":1701},"log":{"__isSmartRef__":true,"id":1704},"clearLog":{"__isSmartRef__":true,"id":1707},"newGame":{"__isSmartRef__":true,"id":1710},"setRandomEmptySquare":{"__isSmartRef__":true,"id":1713},"emptySquareIndices":{"__isSmartRef__":true,"id":1716},"setupTiles":{"__isSmartRef__":true,"id":1719},"restoreGame":{"__isSmartRef__":true,"id":1722},"saveGame":{"__isSmartRef__":true,"id":1725},"restartGame":{"__isSmartRef__":true,"id":1728},"winnerBoard":{"__isSmartRef__":true,"id":1731},"moveTiles":{"__isSmartRef__":true,"id":1734},"addTileArray":{"__isSmartRef__":true,"id":1737},"setupCheckBoard":{"__isSmartRef__":true,"id":1740},"deadBoard":{"__isSmartRef__":true,"id":1743},"sanityCheck":{"__isSmartRef__":true,"id":1746},"doRestOfMove":{"__isSmartRef__":true,"id":1749},"showDisplayTiles":{"__isSmartRef__":true,"id":1752},"movePossibleInDirection":{"__isSmartRef__":true,"id":1755}},"1663":{"varMapping":{"__isSmartRef__":true,"id":1664},"source":"function fill() {\n    this.removeAllMorphs();\n    this.tiles = this.addTileArray(this.prototypeTile);      // tiles which hold the values\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1664":{"this":{"__isSmartRef__":true,"id":1}},"1665":{"__serializedExpressions__":["timestamp"],"user":"rick","tags":[],"timestamp":"new Date(\"Mon May 26 2014 09:37:30 GMT-0700 (PDT)\")"},"1666":{"varMapping":{"__isSmartRef__":true,"id":1667},"source":"function compressArray(inputArray) {\n    // Compress an array as in 2048, right to left: move all the \n    // numbers as far to the left as possible, over empty (value 0, here)\n    // tiles.  Combine two side-by-side tiles with the same value into \n    // a single tile with twice the value, but only combine once: you \n    // can't go 2-4-8 in a single turn...\n    // returns a pair (score, resultArray, originalPositions)\n    // originalPositions supports animation: it shows for each index in the\n    // result array, the INDICES in the original array which were moved into that\n    // position.  Thus, if originalPositions[0] = [1, 3], tiles 1 and 3 were moved\n    // to position 0...moveTiles is the script that uses this array\n    var result = {score:0, resultArray: [0, 0, 0, 0], originalPositions:[[],[],[],[],[]]};\n    var currentResultIndex = 0;\n    // this.log(\"Compressing array [\" + inputArray.toString() + \"]\")\n    for(var inputIndex = 0; inputIndex < 4; inputIndex++) {\n        if (inputArray[inputIndex] == 0) continue;\n        if (result.resultArray[currentResultIndex] == 0) {\n            result.resultArray[currentResultIndex] = inputArray[inputIndex];\n            result.originalPositions[currentResultIndex].push(inputIndex);\n        } else if (result.resultArray[currentResultIndex] == inputArray[inputIndex]) {\n            // new tile and score!\n            result.resultArray[currentResultIndex] <<= 1;\n            result.score += result.resultArray[currentResultIndex];\n            result.originalPositions[currentResultIndex].push(inputIndex);\n            // now that we have doubled the value in result.resultArray[currentResultIndex],\n            // we can't do it again.  increment currentResultIndex so we won't consider it further\n            ++currentResultIndex;\n        } else {\n            // result.resultArray[currentResultIndex] != result.resultArray[currentResultIndex]\n            // and both are nonzero.  move inputArray[inputIndex] to result.resultArray[currentResultIndex + 1]\n            // and leave it open for doubling\n            ++currentResultIndex;\n            result.resultArray[currentResultIndex] = inputArray[inputIndex];\n            result.originalPositions[currentResultIndex].push(inputIndex);\n            \n        }\n    }\n    // all done and return\n    var originalPositionString = \"[\"\n    for (var j = 0; j < result.originalPositions.length; j++) {\n        originalPositionString += \"[\" + result.originalPositions[j].toString() + \"]\"\n    }\n    originalPositionString += \"]\";\n    // this.log(\"result [\" + result.resultArray.toString() + \"] score:\" + result.score.toString() + \".  Original Positions: \" + originalPositionString);\n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1667":{"this":{"__isSmartRef__":true,"id":1}},"1668":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri May 23 2014 14:18:59 GMT-0700 (PDT)\")"},"1669":{"varMapping":{"__isSmartRef__":true,"id":1670},"source":"function getSlice(initialIndex, increment, arrayToGetSliceFrom) {\n    var indexArray = this.getSliceIndices(initialIndex, increment);\n    var resultArray = [];\n    for (var i = 0; i < indexArray.length; i++) {\n        // resultArray.push(this.tiles[indexArray[i]].getValue());\n        var gameBoardIndex = indexArray[i];\n        resultArray.push(arrayToGetSliceFrom[gameBoardIndex]);\n    }\n    return resultArray;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1670":{"this":{"__isSmartRef__":true,"id":1}},"1671":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun May 18 2014 10:09:59 GMT-0700 (PDT)\")"},"1672":{"varMapping":{"__isSmartRef__":true,"id":1673},"source":"function validIndex(index) {\n    return index >= 0 && index < 16;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1673":{"this":{"__isSmartRef__":true,"id":1}},"1674":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Tue May 13 2014 22:08:04 GMT-0700 (PDT)\")"},"1675":{"varMapping":{"__isSmartRef__":true,"id":1676},"source":"function setSlice(initialIndex, increment, valueArray, arrayToStoreSliceTo) {\n    var indices = this.getSliceIndices(initialIndex, increment);\n    // this.log(\"Setting slice (\" + initialIndex + \", \" + increment + \") [\" + indices + \"] to [\" + valueArray +\"]\");\n    \n    for (var i = 0; i < indices.length ; i++) {\n        var boardIndex = indices[i];\n        arrayToStoreSliceTo[boardIndex] = valueArray[i];\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1677},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1676":{"this":{"__isSmartRef__":true,"id":1}},"1677":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri May 23 2014 14:32:58 GMT-0700 (PDT)\")"},"1678":{"varMapping":{"__isSmartRef__":true,"id":1679},"source":"function getSliceIndices(initialIndex, increment) {\n    var resultArray = [];\n    for (var i = 0, index = initialIndex; i < 4 && this.validIndex(index); i++, index += increment) {\n        resultArray.push(index);\n    }\n    return resultArray;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1679":{"this":{"__isSmartRef__":true,"id":1}},"1680":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed May 14 2014 11:52:12 GMT-0700 (PDT)\")"},"1681":{"varMapping":{"__isSmartRef__":true,"id":1682},"source":"function swipeToDirection(direction, next) {\n    var indices = this.slices[direction].indices, increment = this.slices[direction].increment;\n    this.animationsInProcess = 0;\n    for(var i = 0; i < indices.length; i++) {\n        var arrayToCompress = this.getSlice(indices[i], increment, this.gameBoard);\n        var compressResult = this.compressArray(arrayToCompress);\n        this.setSlice(indices[i], increment, compressResult.resultArray, this.gameBoard);\n        // check to see if we have changed the array; if we have, move the tiles\n        for( var j = 0, tilesToMove = false; j < arrayToCompress.length; j++) {\n            if (arrayToCompress[j] != compressResult.resultArray[j]) {\n                tilesToMove = true;\n                break;\n            }\n        }\n        this.score += compressResult.score;\n        if(tilesToMove) {\n            this.moveTiles(indices[i], increment, compressResult)\n            // this.sanityCheck();\n        }\n        // this.log(\"Updating score \" + this.score + \" by \" + compressResult.score)\n        // this.score += compressResult.score;\n        // this.log(\"Score is now: \" + this.score)\n    }\n    \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1683},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1682":{"this":{"__isSmartRef__":true,"id":1}},"1683":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun May 25 2014 19:47:42 GMT-0700 (PDT)\")"},"1684":{"varMapping":{"__isSmartRef__":true,"id":1685},"source":"function onKeyDown(evt) {\n    this.clearLog();\n    if(!this.movePossible()) {\n        this.doRestOfMove();\n    } else {\n        var direction = evt.getKeyString();\n        if ((direction in this.slices) && (this.movePossibleInDirection(direction))) {\n            this.swipeToDirection(evt.getKeyString(), this.doRestOfMove);\n        }\n    }\n    this.lastEvent = evt;\n    evt.stop();\n    return true;\n}","funcProperties":{"__isSmartRef__":true,"id":1690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1685":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1686}},"1686":{"$super":{"__isSmartRef__":true,"id":1687}},"1687":{"varMapping":{"__isSmartRef__":true,"id":1688},"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":1689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1688":{"obj":{"__isSmartRef__":true,"id":1},"name":"onKeyDown"},"1689":{},"1690":{"__serializedExpressions__":["timestamp"],"user":"rick","tags":[],"timestamp":"new Date(\"Tue May 27 2014 15:52:20 GMT-0700 (PDT)\")"},"1691":{"varMapping":{"__isSmartRef__":true,"id":1692},"source":"function arrayCompressable(array) {\n    for(var i = 1; i < array.length; i++) {\n        if (array[i] == 0) continue;\n        if (array[i-1] == 0) return true;\n        if (array[i] == array[i-1]) return true;\n    }\n    return false;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1692":{"this":{"__isSmartRef__":true,"id":1}},"1693":{"__serializedExpressions__":["timestamp"],"user":"rick","tags":[],"timestamp":"new Date(\"Wed May 28 2014 19:04:43 GMT-0700 (PDT)\")"},"1694":{"varMapping":{"__isSmartRef__":true,"id":1695},"source":"function initialize() {\n    this.slices = {\n        Up: {indices:[0, 1, 2, 3], increment:4},\n        Down: {indices: [12, 13, 14, 15], increment:-4},\n        Left: {indices:[0, 4, 8, 12], increment:1},\n        Right: {indices:[3, 7, 11, 15], increment:-1}\n    };\n    this.slices.W = this.slices.Up;\n    this.slices.S = this.slices.Down;\n    this.slices.A = this.slices.Left;\n    this.slices.D = this.slices.Right;\n    if ($world.get('Scratchpad')) {\n        this.scratchpad = $world.get('Scratchpad');\n    }\n    if (!localStorage.game2048) {\n        this.newGame();\n    } else {\n        this.restoreGame();\n    }\n    this.focus();\n}","funcProperties":{"__isSmartRef__":true,"id":1700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1695":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1696}},"1696":{"$super":{"__isSmartRef__":true,"id":1697}},"1697":{"varMapping":{"__isSmartRef__":true,"id":1698},"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":1699},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1698":{"obj":{"__isSmartRef__":true,"id":1},"name":"initialize"},"1699":{},"1700":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu May 15 2014 15:32:35 GMT-0700 (PDT)\")"},"1701":{"varMapping":{"__isSmartRef__":true,"id":1702},"source":"function movePossible() {\n    var directions = ['Up', 'Left'];\n    for(var i = 0; i < directions.length; i++) {\n        if (this.movePossibleInDirection(directions[i])) return true;\n    }\n    return false;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1703},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1702":{"this":{"__isSmartRef__":true,"id":1}},"1703":{"__serializedExpressions__":["timestamp"],"user":"rick","tags":[],"timestamp":"new Date(\"Tue May 27 2014 15:50:25 GMT-0700 (PDT)\")"},"1704":{"varMapping":{"__isSmartRef__":true,"id":1705},"source":"function log(string) {\n    if(this.scratchpad) {\n        this.scratchpad.addEntry(string);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1705":{"this":{"__isSmartRef__":true,"id":1}},"1706":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed May 14 2014 17:03:37 GMT-0700 (PDT)\")"},"1707":{"varMapping":{"__isSmartRef__":true,"id":1708},"source":"function clearLog() {\n    if (this.scratchpad) {\n        this.scratchpad.initialize()\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1708":{"this":{"__isSmartRef__":true,"id":1}},"1709":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed May 14 2014 17:45:25 GMT-0700 (PDT)\")"},"1710":{"varMapping":{"__isSmartRef__":true,"id":1711},"source":"function newGame() {\n    this.bestScore = 0;\n    this.restartGame(); // restart does the save...\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1711":{"this":{"__isSmartRef__":true,"id":1}},"1712":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu May 15 2014 15:03:29 GMT-0700 (PDT)\")"},"1713":{"varMapping":{"__isSmartRef__":true,"id":1714},"source":"function setRandomEmptySquare() {\n    var empties = this.emptySquareIndices();\n    if (empties.length == 0) {\n        // this.log(\"No empty tiles\");\n        return;\n    }\n    var emptyTileValues = [];\n    for(var i = 0; i < empties.length; i++) emptyTileValues.push(this.gameBoard[i]);\n    // this.log(\"Empty tiles [\" + empties + \"] values [\" + emptyTileValues + \"]\")\n    var randomIndex = Math.floor(Math.random() * empties.length);\n    if (randomIndex == empties.length) --randomIndex;\n    var tileIndex = empties[randomIndex];\n    var randomValue = Math.random() < 0.9?2:4;\n    this.gameBoard[tileIndex] = randomValue;\n    // this.log(\"Setting tile \" + tileIndex.toString() + \" to \" + randomValue.toString());\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1715},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1714":{"this":{"__isSmartRef__":true,"id":1}},"1715":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri May 23 2014 14:27:50 GMT-0700 (PDT)\")"},"1716":{"varMapping":{"__isSmartRef__":true,"id":1717},"source":"function emptySquareIndices() {\n    var result = [];\n    var vals = [];\n    for(var i = 0; i < this.gameBoard.length; i++) {\n        var val = this.gameBoard[i];\n        vals.push(val);\n        if (val == 0) result.push(i);\n    }\n    // this.log(\"Values: [\" + vals + \"] empty indices[\" + result + \"]\")\n    \n    return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1717":{"this":{"__isSmartRef__":true,"id":1}},"1718":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri May 23 2014 14:20:06 GMT-0700 (PDT)\")"},"1719":{"varMapping":{"__isSmartRef__":true,"id":1720},"source":"function setupTiles() {\n    for(var i = 0; i < 16; i++) {\n        this.tiles[i].tile.setValue(this.gameBoard[i])\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1721},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1720":{"this":{"__isSmartRef__":true,"id":1}},"1721":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 19 2014 11:19:03 GMT-0700 (PDT)\")"},"1722":{"varMapping":{"__isSmartRef__":true,"id":1723},"source":"function restoreGame() {\n    var game = JSON.parse(localStorage.game2048);\n    this.score = game.score;\n    this.bestScore = game.bestScore;\n    this.gameBoard = game.gameBoard;\n    this.totalWinner = game.totalWinner;\n    this.gameOver = game.gameOver;\n    this.setupTiles();\n    this.focus();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1723":{"this":{"__isSmartRef__":true,"id":1}},"1724":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri May 23 2014 14:26:57 GMT-0700 (PDT)\")"},"1725":{"varMapping":{"__isSmartRef__":true,"id":1726},"source":"function saveGame() {\n    localStorage.game2048 = JSON.stringify({score:this.score, bestScore:this.bestScore, gameBoard:this.gameBoard, totalWinner:this.totalWinner, gameOver:this.gameOver});\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1727},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1726":{"this":{"__isSmartRef__":true,"id":1}},"1727":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu May 15 2014 18:32:56 GMT-0700 (PDT)\")"},"1728":{"varMapping":{"__isSmartRef__":true,"id":1729},"source":"function restartGame() {\n    this.score =  0;\n    this.gameBoard = [];\n    this.totalWinner = false;\n    this.gameOver = false;\n    for(var i = 0; i < 16; i++) this.gameBoard.push(0);\n    this.setRandomEmptySquare();\n    this.setRandomEmptySquare();\n    this.saveGame();\n    this.setupTiles();\n    this.sanityCheck();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1729":{"this":{"__isSmartRef__":true,"id":1}},"1730":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu May 22 2014 17:57:29 GMT-0700 (PDT)\")"},"1731":{"varMapping":{"__isSmartRef__":true,"id":1732},"source":"function winnerBoard() {\n    this.gameBoard[0] = 2048;\n    this.setupTiles();\n    this.focus();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1733},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1732":{"this":{"__isSmartRef__":true,"id":1}},"1733":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri May 23 2014 13:52:51 GMT-0700 (PDT)\")"},"1734":{"varMapping":{"__isSmartRef__":true,"id":1735},"source":"function moveTiles(initialIndex, increment, compressResult) {\n    \n    // Move the tiles as directed by compressResult.  compressResult.originalPositions[j]\n    // has the indices of the tiles which were moved to  position j. There might be more\n    // than one, so when there is we need to move the excess tiles to now-free slots; there\n    // is a little bookkeeping.  \n    \n    var steps = [0, 15, 30, 45]; // 75 px/square, figure a 5 px movement is right\n    // set up the motion records\n    var moveRecords = []; \n    for(var i = 0; i < 4; i++) {\n        moveRecords[i] = {targetIndex:i, originalIndex:i, moveAfterAnimation:i}\n        moveRecords[i].toString = function() {return this.originalIndex.toString() + '->' + this.targetIndex + '=>' + this.moveAfterAnimation;};\n    }\n    \n    // tilesInSlot[k] == which tiles are in this slot at the end of the turn.  This is in three\n    // phases.  Phase 1 is the start, where tilesInSlot[k] = k.  Phase II is the animation motion,\n    // whose result is given in compressResult.originalPositions[k] with some additional information\n    // given by tiles who were 0 at the start of the turn.  Phase III, and final, is when we move\n    // overwritten tiles to blank slots.  At the end of phase III, tilesInSlots = a permutation of\n    // [0, 1, 2, 3]\n    \n    // phase 1\n    var tilesInSlot = [[0], [1], [2], [3]]\n    // phase 2 -- \"move\" the tiles by putting them in the slots given by compressResult.originalPositions,\n    // and removing them from their original slots.  Note that if k in compressResult.originalPositions[i],\n    // k > i (tiles move *left*), and so when we are looking at compressResult.originalPositions[i],\n    // tilesInSlot[k] = [k] or tilesInSlot[k] = [] for all k >= i.\n    for(var i = 0; i < 4; i++) {\n        var originalPositionsForTilesEndingAtI = compressResult.originalPositions[i];\n        for(var j = 0; j <  originalPositionsForTilesEndingAtI.length; j++) {\n            var tileIndex = originalPositionsForTilesEndingAtI[j]; // tileIndex > i; tiles move left!\n            moveRecords[tileIndex].targetIndex = i;\n            tilesInSlot[tileIndex] = []; // change from [tileIndex] -- note that tile tileIndex doesn't end up in slot tileIndex.\n            tilesInSlot[i].push(tileIndex); // note that tileIndex is now in i\n        }\n    }\n    tilesInSlot.toString = function() {\n        var result = '[';\n        var terminators = \",,,]\";\n        for(var i = 0; i < 4; i++) {\n            result += '|' + this[i].toString() +'|' + terminators[i];\n        }\n        return result;\n    }\n    // this.log(\"After Phase 2\");\n    // this.log(\"Tiles in Slot: \" + tilesInSlot.toString());\n    // this.log(\"Move Records:\" + moveRecords.toString());\n    \n    \n    // At this point, tilesInSlot[j] contains all the tiles that wind up in slot j.\n    // So now redistribute the extra tiles to the slots left empty...when we are\n    // done, tilesInSlot[j] will just have one element, so for convenience later\n    // we'll just set it to k, rather than [k]\n    var freeTiles = []; // tiles which are free to move\n    // Algorithm is very simple.  Take all the tiles that wound up in slot i and push them onto\n    // freeTiles.  Then pull the last element added to freeTiles and stick it back into slot i.\n    // If tilesInSlot[i] was empty before, it now has a tile that was an overflow on a previous\n    // slot; if not, it now has the highest-index tile that was sitting there before, and the\n    // others are overflow.\n    for(var i = 0; i < 4; i++) {\n        freeTiles = freeTiles.concat(tilesInSlot[i])\n        tilesInSlot[i] = freeTiles.pop(); // note conversion from list of lists to list of numbers.\n    }\n    \n    // last step of bookeeping.  note moveAfterAnimation in the moveRecord\n    // where required.  Look at the moveRecord of the tile sitting in slot i;\n    // if its animation target index isn't i, it must be moved to i after animation.\n    // ATM, \n    \n    for(var i = 0; i < 4; i++) {\n        var moveRecord = moveRecords[tilesInSlot[i]];\n        moveRecord.moveAfterAnimation = i;\n    }\n    \n    // this.log(\"After Phase 3\");\n    // this.log(\"Tiles in Slot: \" + tilesInSlot.toString());\n    // this.log(\"Move Records:\" + moveRecords.toString());\n    // At this point, tilesInSlot[k] = [j], where j is the tile\n    // that winds up in slot[k].  Moreover, moveRecords[i].originalIndex[ == i,\n    // .targetIndex = index to animate to (j <= i); and .moveAfterAnimation =\n    // index to move to after animation...\n    // Now we do the move.  First, we grab the tileHolders, which will put positions to the\n    // indices\n    var tileHoldersInSlice = this.getSlice(initialIndex, increment, this.tiles);\n    var indices = this.getSliceIndices(initialIndex, increment);\n    // get the actual tiles from their holders\n    var actualTiles = [];\n    for(var i = 0; i < 4; i++) {\n        actualTiles[i] = tileHoldersInSlice[i].tile;\n        // if (!tileHoldersInSlice[i].position.eqPt(actualTiles[i].getPosition())) {\n        //    this.log(\"Error at index \" + indices[i]);\n        //    this.log(\"Expected position: \" + tileHoldersInSlice[i].position, \". Actual Position: \" + actualTiles[i].getPosition())\n        //}\n    }\n    // OK.  For tile i, first, animate it to the physical position of\n    // tileHoldersInSlice[moveRecords[i].targetIndex], then (if moveRecords[i].moveAfterAnimation != -1)\n    // move it to the position of index moveAfterAnimation\n    for (var i = 0; i < 4; i++) {\n        var tile = actualTiles[i];\n        var endIndex = moveRecords[i].targetIndex;\n        var animationSteps = steps[i - endIndex]; // number of steps to take; endIndex <= i, by construction \n        var endPosition = tileHoldersInSlice[endIndex].position;\n        var finalIndex = moveRecords[i].moveAfterAnimation;\n        if (endPosition.eqPt(tile.getPosition())) {\n            tile.setValue(compressResult.resultArray[finalIndex]);\n            tile.setPosition(tileHoldersInSlice[finalIndex].position);\n            tile.bringToFront();\n            tileHoldersInSlice[finalIndex].tile = tile;\n        } else {\n            ++this.animationsInProcess;\n            tile.animatedInterpolateTo(endPosition, animationSteps, 5,\n            function() {\n                var moveToPt = this.tileHolders[this.lastIndex].position;\n                this.tile.setPosition(moveToPt);\n                this.tile.setValue(this.value);\n                this.tile.bringToFront();\n                this.tileHolders[this.lastIndex].tile = this.tile;\n                --this.board.animationsInProcess;\n                if (this.board.animationsInProcess == 0) {\n                    this.board.doRestOfMove();\n                }\n            }.bind({tile:tile, board:this, tileHolders:tileHoldersInSlice, lastIndex:finalIndex, value:compressResult.resultArray[finalIndex]}),0);\n        }\n\n    }\n   \n    \n}","funcProperties":{"__isSmartRef__":true,"id":1736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1735":{"this":{"__isSmartRef__":true,"id":1}},"1736":{"__serializedExpressions__":["timestamp"],"user":"rick","tags":[],"timestamp":"new Date(\"Mon May 26 2014 09:06:31 GMT-0700 (PDT)\")"},"1737":{"varMapping":{"__isSmartRef__":true,"id":1738},"source":"function addTileArray(prototypeTile) {\n    var x = 5, y = 5;\n    var result = []\n    for(var i = 0; i < 16; i++) {\n        var newTile = prototypeTile.copy();\n        this.addMorphFront(newTile);\n        newTile.setPosition(pt(x, y));\n        newTile.setValue(0);\n        result.push({position:pt(x, y), index:i, tile:newTile});\n        x += 75;\n        if (x > 300) {\n            x = 5; \n            y += 75;\n        }\n    }\n    return result;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1738":{"this":{"__isSmartRef__":true,"id":1}},"1739":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 19 2014 12:28:49 GMT-0700 (PDT)\")"},"1740":{"varMapping":{"__isSmartRef__":true,"id":1741},"source":"function setupCheckBoard() {\n    var currentVal = 0;\n    for(var i = 0; i < this.tiles.length; i++) {\n        this.tiles[i].tile.setValue(currentVal);\n        currentVal = (currentVal == 0)?2:(currentVal == 4096)?0:currentVal << 1;\n        // alert(currentVal);\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1741":{"this":{"__isSmartRef__":true,"id":1}},"1742":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon May 19 2014 10:57:31 GMT-0700 (PDT)\")"},"1743":{"varMapping":{"__isSmartRef__":true,"id":1744},"source":"function deadBoard() {\n    var first = 4, next = 2;\n    for(var i = 0; i < 4; i++) {\n        this.gameBoard[4*i] = this.gameBoard[4*i + 2] = first;\n        this.gameBoard[4*i+1] = this.gameBoard[4*i + 3] = next;\n        var tmp = next; next = first; first = tmp;\n    }\n    this.setupTiles();\n    this.focus();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1745},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1744":{"this":{"__isSmartRef__":true,"id":1}},"1745":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri May 23 2014 13:32:45 GMT-0700 (PDT)\")"},"1746":{"varMapping":{"__isSmartRef__":true,"id":1747},"source":"function sanityCheck() {\n    for(var i = 0; i < 16; i++) {\n        var tilePosition = this.tiles[i].tile.getPosition();\n        var errors = \"\";\n        if (!tilePosition.eqPt(this.tiles[i].position)) {\n            errors = \"Holder position \" + this.tiles[i].position + \" tile position \" + tilePosition;\n        } \n        if (this.gameBoard[i] != this.tiles[i].tile.getValue()) {\n            errors += \"\\n game value \" + this.gameBoard[i] +\". Tile value \" + this.tiles[i].tile.getValue();\n        }\n        if (errors.length > 0) {\n            this.log(\"Error at tile \" + i + \":\\n\" + errors);\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1747":{"this":{"__isSmartRef__":true,"id":1}},"1748":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu May 22 2014 17:41:51 GMT-0700 (PDT)\")"},"1749":{"varMapping":{"__isSmartRef__":true,"id":1750},"source":"function doRestOfMove() {\n    var newTotalWinner = false;\n    // this.showDisplayTiles();\n    this.setRandomEmptySquare();\n    if (this.score > this.bestScore) {\n        this.bestScore = this.score;\n    }\n    if(!this.totalWinner) {\n        for(var i = 0; i < 16; i++) {\n            if(this.gameBoard[i] == 2048) {\n                this.totalWinner = true;\n                newTotalWinner = true;\n            }\n        }\n    }\n    this.setupTiles();\n    this.saveGame();\n    if(newTotalWinner) {\n        var winScreen = this.owner.get('WinScreen');\n        winScreen.setVisible(true);\n        winScreen.focus();\n    } else {\n        this.gameOver = !this.movePossible();\n        if (this.gameOver) {\n            var gameOverScreen = this.owner.get('GameOverScreen')\n            gameOverScreen.setVisible(true)\n            gameOverScreen.bringToFront()\n            gameOverScreen.focus()\n        }\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1750":{"this":{"__isSmartRef__":true,"id":1}},"1751":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri May 23 2014 14:19:44 GMT-0700 (PDT)\")"},"1752":{"varMapping":{"__isSmartRef__":true,"id":1753},"source":"function showDisplayTiles() {\n    this.tiles.forEach(function(tileHolder, index, ar) {tileHolder.tile.show();});\n    // this.tiles.forEach(function(tileHolder, index, ar) {$world.get('Scratchpad').addEntry(\"\" + index + \": \" + tileHolder.tile.getPosition())})\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1753":{"this":{"__isSmartRef__":true,"id":1}},"1754":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri May 23 2014 14:28:44 GMT-0700 (PDT)\")"},"1755":{"varMapping":{"__isSmartRef__":true,"id":1756},"source":"function movePossibleInDirection(direction) {\n    var slice = this.slices[direction];\n    for(var j = 0; j < slice.indices.length; j++) {\n        var arrayToCheck = this.getSlice(slice.indices[j], slice.increment, this.gameBoard);\n        if (this.arrayCompressable(arrayToCheck)) return true;\n    }\n    return false;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1756":{"this":{"__isSmartRef__":true,"id":1}},"1757":{"__serializedExpressions__":["timestamp"],"user":"rick","tags":[],"timestamp":"new Date(\"Tue May 27 2014 15:49:02 GMT-0700 (PDT)\")"},"1758":{"submorphs":[],"scripts":[],"id":"CD9E00A4-D173-4CB1-B747-0A9893E27EDD","shape":{"__isSmartRef__":true,"id":1759},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":32,"name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":1760},"textChunks":[{"__isSmartRef__":true,"id":1769}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1771},"_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":1772},"owner":{"__isSmartRef__":true,"id":0},"_Align":"center","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(20.0,5.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(71.0,-12.0)","_TextColor":"Color.rgb(255,255,255)"},"1759":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":19.61,"_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.rgba(232,192,46,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.0,100.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1760":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1761},{"__isSmartRef__":true,"id":1762},{"__isSmartRef__":true,"id":1763},{"__isSmartRef__":true,"id":1764},{"__isSmartRef__":true,"id":1765},{"__isSmartRef__":true,"id":1766},{"__isSmartRef__":true,"id":1767},{"__isSmartRef__":true,"id":1768}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1761":{"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)\")"},"1762":{"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)\")"},"1763":{"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)\")"},"1764":{"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)\")"},"1765":{"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)\")"},"1766":{"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)\")"},"1767":{"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)\")"},"1768":{"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)\")"},"1769":{"style":{"__isSmartRef__":true,"id":1770},"chunkOwner":{"__isSmartRef__":true,"id":1758},"_id":"_19869","storedString":"2048","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1770":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(255,255,255)"},"1771":{"morph":{"__isSmartRef__":true,"id":1758},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1772":{"resizeWidth":true},"1773":{"submorphs":[],"scripts":[],"id":"C9B93F3F-A0D1-4D18-9AD4-80FF51EFCDBC","shape":{"__isSmartRef__":true,"id":1774},"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":14,"name":"Text1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1775},"textChunks":[{"__isSmartRef__":true,"id":1784}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1786},"_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,"previousSelection":[0,7],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1787},"owner":{"__isSmartRef__":true,"id":0},"_Align":"center","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1788},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(176.0,69.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(78.0,-13.0)"},"1774":{"fill":null,"_BorderWidth":2.516,"_ClipMode":"visible","_BorderRadius":20.72,"_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.rgba(251,248,239,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(107.7,33.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1775":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__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},{"__isSmartRef__":true,"id":1783}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1776":{"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)\")"},"1777":{"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)\")"},"1778":{"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)\")"},"1779":{"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)\")"},"1780":{"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)\")"},"1781":{"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)\")"},"1782":{"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)\")"},"1783":{"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)\")"},"1784":{"style":{"__isSmartRef__":true,"id":1785},"morph":{"__isSmartRef__":true,"id":1773},"chunkOwner":{"__isSmartRef__":true,"id":1773},"storedString":"Restart","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1785":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1786":{"morph":{"__isSmartRef__":true,"id":1773},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1787":{"resizeWidth":true},"1788":{"onMouseDown":{"__isSmartRef__":true,"id":1789}},"1789":{"varMapping":{"__isSmartRef__":true,"id":1790},"source":"function onMouseDown(evt) {\n    this.owner.restart();\n    evt.stop();\n    this.owner.get('Board').focus();\n    return true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1790":{"this":{"__isSmartRef__":true,"id":1773},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1791}},"1791":{"$super":{"__isSmartRef__":true,"id":1792}},"1792":{"varMapping":{"__isSmartRef__":true,"id":1793},"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":1794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1793":{"obj":{"__isSmartRef__":true,"id":1773},"name":"onMouseDown"},"1794":{},"1795":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun May 18 2014 10:06:40 GMT-0700 (PDT)\")"},"1796":{"submorphs":[{"__isSmartRef__":true,"id":1797},{"__isSmartRef__":true,"id":1812},{"__isSmartRef__":true,"id":1835}],"scripts":[],"id":"1431C89F-1829-48C0-ABE8-E91227BA4A05","shape":{"__isSmartRef__":true,"id":1858},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"WinScreen","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"],"partTests":{"__isSmartRef__":true,"id":1880},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"_Visible":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(217.0,-2.0)"},"1797":{"submorphs":[],"scripts":[],"id":"029B748C-E1D4-4D7D-A180-7DCB6DB76B4B","shape":{"__isSmartRef__":true,"id":1798},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":90,"name":"WinScreenText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1799},"textChunks":[{"__isSmartRef__":true,"id":1808}],"charsReplaced":"","lastFindLoc":4,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1810},"_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":1811},"owner":{"__isSmartRef__":true,"id":1796},"_Rotation":0,"_Scale":1,"board":{"__isSmartRef__":true,"id":0},"_Align":"center","_Visible":true,"_PreviousBorderWidth":5,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__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(240.0,-12.0)","_TextColor":"Color.rgb(174,176,185)"},"1798":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":10,"_Opacity":0.7185,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgba(251,248,239,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(346.0,294.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(4,2,0,0)"},"1799":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1800},{"__isSmartRef__":true,"id":1801},{"__isSmartRef__":true,"id":1802},{"__isSmartRef__":true,"id":1803},{"__isSmartRef__":true,"id":1804},{"__isSmartRef__":true,"id":1805},{"__isSmartRef__":true,"id":1806},{"__isSmartRef__":true,"id":1807}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1800":{"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)\")"},"1801":{"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)\")"},"1802":{"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)\")"},"1803":{"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)\")"},"1804":{"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)\")"},"1805":{"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)\")"},"1806":{"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)\")"},"1807":{"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)\")"},"1808":{"style":{"__isSmartRef__":true,"id":1809},"morph":{"__isSmartRef__":true,"id":1797},"chunkOwner":{"__isSmartRef__":true,"id":1797},"storedString":"You\nWin","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1809":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(174,176,185)"},"1810":{"morph":{"__isSmartRef__":true,"id":1797},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1811":{"resizeWidth":true},"1812":{"submorphs":[],"scripts":[],"id":"E1A13A77-EAB7-4BB6-BB8C-CF391CCFD7B4","shape":{"__isSmartRef__":true,"id":1813},"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":14,"name":"KeepGoing","partsBinMetaInfo":{"__isSmartRef__":true,"id":1814},"textChunks":[{"__isSmartRef__":true,"id":1823}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1825},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","59440FC5-E676-4B9B-A828-C150A05765C0"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1826},"owner":{"__isSmartRef__":true,"id":1796},"_Rotation":0,"_Scale":1,"_Align":"center","__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1827},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(35.0,356.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1813":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_Fill":null,"_BorderRadius":20,"_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(120.0,32.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1814":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1815},{"__isSmartRef__":true,"id":1816},{"__isSmartRef__":true,"id":1817},{"__isSmartRef__":true,"id":1818},{"__isSmartRef__":true,"id":1819},{"__isSmartRef__":true,"id":1820},{"__isSmartRef__":true,"id":1821},{"__isSmartRef__":true,"id":1822}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1815":{"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)\")"},"1816":{"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)\")"},"1817":{"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)\")"},"1818":{"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)\")"},"1819":{"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)\")"},"1820":{"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)\")"},"1821":{"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)\")"},"1822":{"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)\")"},"1823":{"style":{"__isSmartRef__":true,"id":1824},"chunkOwner":{"__isSmartRef__":true,"id":1812},"_id":"_9615","storedString":"Keep Going","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1824":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1825":{"morph":{"__isSmartRef__":true,"id":1812},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1826":{"resizeWidth":true},"1827":{"onMouseDown":{"__isSmartRef__":true,"id":1828}},"1828":{"varMapping":{"__isSmartRef__":true,"id":1829},"source":"function onMouseDown(evt) {\n    this.owner.setVisible(false);\n    evt.stop()\n    var board2048 = this.owner.owner;\n    board2048.get('Board').focus();\n    return true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1829":{"this":{"__isSmartRef__":true,"id":1812},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1830}},"1830":{"$super":{"__isSmartRef__":true,"id":1831}},"1831":{"varMapping":{"__isSmartRef__":true,"id":1832},"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":1833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1832":{"obj":{"__isSmartRef__":true,"id":1812},"name":"onMouseDown"},"1833":{},"1834":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun May 18 2014 10:05:19 GMT-0700 (PDT)\")"},"1835":{"submorphs":[],"scripts":[],"id":"66DC6218-C308-429B-A101-26E57764B5CB","shape":{"__isSmartRef__":true,"id":1836},"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":14,"name":"Restart","partsBinMetaInfo":{"__isSmartRef__":true,"id":1837},"textChunks":[{"__isSmartRef__":true,"id":1846}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1848},"_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","E1A13A77-EAB7-4BB6-BB8C-CF391CCFD7B4"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1849},"_Rotation":0,"_Scale":1,"_Align":"center","owner":{"__isSmartRef__":true,"id":1796},"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1850},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(195.0,356.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1836":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_Fill":null,"_BorderRadius":20,"_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(120.0,32.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1837":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1838},{"__isSmartRef__":true,"id":1839},{"__isSmartRef__":true,"id":1840},{"__isSmartRef__":true,"id":1841},{"__isSmartRef__":true,"id":1842},{"__isSmartRef__":true,"id":1843},{"__isSmartRef__":true,"id":1844},{"__isSmartRef__":true,"id":1845}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1838":{"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)\")"},"1839":{"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)\")"},"1840":{"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)\")"},"1841":{"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)\")"},"1842":{"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)\")"},"1843":{"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)\")"},"1844":{"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)\")"},"1845":{"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)\")"},"1846":{"style":{"__isSmartRef__":true,"id":1847},"chunkOwner":{"__isSmartRef__":true,"id":1835},"_id":"_9841","storedString":"Restart","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1847":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1848":{"morph":{"__isSmartRef__":true,"id":1835},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1849":{"resizeWidth":true},"1850":{"onMouseDown":{"__isSmartRef__":true,"id":1851}},"1851":{"varMapping":{"__isSmartRef__":true,"id":1852},"source":"function onMouseDown(evt) {\n    this.owner.setVisible(false);\n    evt.stop()\n    var board2048 = this.owner.owner;\n    board2048.restart();\n    board2048.get('Board').focus();\n    return true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1852":{"this":{"__isSmartRef__":true,"id":1835},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1853}},"1853":{"$super":{"__isSmartRef__":true,"id":1854}},"1854":{"varMapping":{"__isSmartRef__":true,"id":1855},"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":1856},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1855":{"obj":{"__isSmartRef__":true,"id":1835},"name":"onMouseDown"},"1856":{},"1857":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun May 18 2014 10:04:41 GMT-0700 (PDT)\")"},"1858":{"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":10,"_Opacity":50,"_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(350.0,425.0)","_BorderColor":"Color.rgb(255,255,255)","_Fill":"Color.rgba(251,248,239,255)","_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 06:24:00 GMT-0700 (PDT)\")"},"1860":{"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)\")"},"1861":{"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)\")"},"1862":{"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)\")"},"1863":{"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)\")"},"1864":{"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)\")"},"1865":{"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)\")"},"1866":{"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)\")"},"1867":{"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)\")"},"1868":{"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)\")"},"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":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1871":{"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)\")"},"1872":{"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)\")"},"1873":{"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)\")"},"1874":{"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)\")"},"1875":{"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)\")"},"1876":{"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)\")"},"1877":{"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)\")"},"1878":{"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)\")"},"1879":{"morph":{"__isSmartRef__":true,"id":1796},"__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":[{"__isSmartRef__":true,"id":1886},{"__isSmartRef__":true,"id":1901}],"scripts":[],"id":"FB0EAD68-4772-4C50-9B63-C9D9EA4FEA21","shape":{"__isSmartRef__":true,"id":1924},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"GameOverScreen","partsBinMetaInfo":{"__isSmartRef__":true,"id":1925},"eventHandler":{"__isSmartRef__":true,"id":1945},"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","1431C89F-1829-48C0-ABE8-E91227BA4A05"],"partTests":{"__isSmartRef__":true,"id":1946},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"_Visible":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(217.0,-2.0)"},"1886":{"submorphs":[],"scripts":[],"id":"256BA7C9-73D1-40D3-BB47-D29096BB7367","shape":{"__isSmartRef__":true,"id":1887},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":90,"name":"WinScreenText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1888},"textChunks":[{"__isSmartRef__":true,"id":1897}],"charsReplaced":"You\nWin","lastFindLoc":14,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1899},"_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","029B748C-E1D4-4D7D-A180-7DCB6DB76B4B"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1900},"owner":{"__isSmartRef__":true,"id":1885},"board":{"__isSmartRef__":true,"id":0},"_Align":"center","previousSelection":[4,4],"_Visible":true,"_PreviousBorderWidth":5,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__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(240.0,-12.0)","_TextColor":"Color.rgb(174,176,185)"},"1887":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":10,"_Opacity":0.7185,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgba(251,248,239,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(346.0,294.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(4,2,0,0)"},"1888":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1889},{"__isSmartRef__":true,"id":1890},{"__isSmartRef__":true,"id":1891},{"__isSmartRef__":true,"id":1892},{"__isSmartRef__":true,"id":1893},{"__isSmartRef__":true,"id":1894},{"__isSmartRef__":true,"id":1895},{"__isSmartRef__":true,"id":1896}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1889":{"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)\")"},"1890":{"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)\")"},"1891":{"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)\")"},"1892":{"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)\")"},"1893":{"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)\")"},"1894":{"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)\")"},"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":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1897":{"style":{"__isSmartRef__":true,"id":1898},"morph":{"__isSmartRef__":true,"id":1886},"chunkOwner":{"__isSmartRef__":true,"id":1886},"storedString":"Game Over","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1898":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(174,176,185)"},"1899":{"morph":{"__isSmartRef__":true,"id":1886},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1900":{"resizeWidth":true},"1901":{"submorphs":[],"scripts":[],"id":"E02F23DE-52F9-44C2-AA51-93E525EEA182","shape":{"__isSmartRef__":true,"id":1902},"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":14,"name":"Restart","partsBinMetaInfo":{"__isSmartRef__":true,"id":1903},"textChunks":[{"__isSmartRef__":true,"id":1912}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1914},"_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","E1A13A77-EAB7-4BB6-BB8C-CF391CCFD7B4","66DC6218-C308-429B-A101-26E57764B5CB"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1915},"_Align":"center","owner":{"__isSmartRef__":true,"id":1885},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1916},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(115.0,356.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1902":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_Fill":null,"_BorderRadius":20,"_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(120.0,32.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1903":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1904},{"__isSmartRef__":true,"id":1905},{"__isSmartRef__":true,"id":1906},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1908},{"__isSmartRef__":true,"id":1909},{"__isSmartRef__":true,"id":1910},{"__isSmartRef__":true,"id":1911}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1904":{"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)\")"},"1905":{"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)\")"},"1906":{"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)\")"},"1907":{"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)\")"},"1908":{"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)\")"},"1909":{"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)\")"},"1910":{"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)\")"},"1911":{"author":"robertkrahn","message":"resizeWidth = true","id":"E402462A-7AB2-487B-82BD-A3369C1C1F75","__serializedExpressions__":["date"],"date":"new Date(\"Sat Apr 05 2014 01:58:52 GMT-0700 (PDT)\")"},"1912":{"style":{"__isSmartRef__":true,"id":1913},"chunkOwner":{"__isSmartRef__":true,"id":1901},"_id":"_9841","storedString":"Restart","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1913":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1914":{"morph":{"__isSmartRef__":true,"id":1901},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1915":{"resizeWidth":true},"1916":{"onMouseDown":{"__isSmartRef__":true,"id":1917}},"1917":{"varMapping":{"__isSmartRef__":true,"id":1918},"source":"function onMouseDown(evt) {\n    this.owner.setVisible(false);\n    evt.stop()\n    var board2048 = this.owner.owner;\n    board2048.restart();\n    board2048.get('Board').focus();\n    return true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1918":{"this":{"__isSmartRef__":true,"id":1901},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1919}},"1919":{"$super":{"__isSmartRef__":true,"id":1920}},"1920":{"varMapping":{"__isSmartRef__":true,"id":1921},"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":1922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1921":{"obj":{"__isSmartRef__":true,"id":1901},"name":"onMouseDown"},"1922":{},"1923":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun May 18 2014 10:04:06 GMT-0700 (PDT)\")"},"1924":{"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":10,"_Opacity":50,"_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(350.0,425.0)","_BorderColor":"Color.rgb(255,255,255)","_Fill":"Color.rgba(251,248,239,255)","_Padding":"lively.rect(0,0,0,0)"},"1925":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1926},{"__isSmartRef__":true,"id":1927},{"__isSmartRef__":true,"id":1928},{"__isSmartRef__":true,"id":1929},{"__isSmartRef__":true,"id":1930},{"__isSmartRef__":true,"id":1931},{"__isSmartRef__":true,"id":1932},{"__isSmartRef__":true,"id":1933},{"__isSmartRef__":true,"id":1934},{"__isSmartRef__":true,"id":1935},{"__isSmartRef__":true,"id":1936},{"__isSmartRef__":true,"id":1937},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1939},{"__isSmartRef__":true,"id":1940},{"__isSmartRef__":true,"id":1941},{"__isSmartRef__":true,"id":1942},{"__isSmartRef__":true,"id":1943},{"__isSmartRef__":true,"id":1944}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 06:24:00 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":{"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)\")"},"1928":{"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)\")"},"1929":{"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)\")"},"1930":{"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)\")"},"1931":{"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)\")"},"1932":{"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)\")"},"1933":{"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)\")"},"1934":{"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)\")"},"1935":{"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)\")"},"1936":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"1937":{"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)\")"},"1938":{"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)\")"},"1939":{"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)\")"},"1940":{"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)\")"},"1941":{"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)\")"},"1942":{"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)\")"},"1943":{"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)\")"},"1944":{"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)\")"},"1945":{"morph":{"__isSmartRef__":true,"id":1885},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1946":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1947}},"1947":{"test01IsMorph":{"__isSmartRef__":true,"id":1948}},"1948":{"varMapping":{"__isSmartRef__":true,"id":1949},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1949":{"this":{"__isSmartRef__":true,"id":1946}},"1950":{},"1951":{"submorphs":[{"__isSmartRef__":true,"id":1952},{"__isSmartRef__":true,"id":1967}],"scripts":[],"id":"CA6E22AF-07F8-497F-A8FB-E306DCB5180A","shape":{"__isSmartRef__":true,"id":1990},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"GameOverScreen","partsBinMetaInfo":{"__isSmartRef__":true,"id":1991},"eventHandler":{"__isSmartRef__":true,"id":2011},"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","1431C89F-1829-48C0-ABE8-E91227BA4A05"],"partTests":{"__isSmartRef__":true,"id":2012},"_ClipMode":"visible","moved":true,"droppingEnabled":true,"_Visible":false,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(247.0,13.0)"},"1952":{"submorphs":[],"scripts":[],"id":"94D11A6E-B2EA-43C2-95C9-98A4F73E9238","shape":{"__isSmartRef__":true,"id":1953},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":90,"name":"GameOverScreenText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1954},"textChunks":[{"__isSmartRef__":true,"id":1963}],"charsReplaced":"","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1965},"_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","029B748C-E1D4-4D7D-A180-7DCB6DB76B4B"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1966},"owner":{"__isSmartRef__":true,"id":1951},"board":{"__isSmartRef__":true,"id":0},"_Align":"center","_Visible":true,"_PreviousBorderWidth":5,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent","_TextColor"],"__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(240.0,-12.0)","_TextColor":"Color.rgb(174,176,185)"},"1953":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":10,"_Opacity":0.7185,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Fill","_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Fill":"Color.rgba(251,248,239,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(346.0,294.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(4,2,0,0)"},"1954":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1955},{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1955":{"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)\")"},"1956":{"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)\")"},"1957":{"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)\")"},"1958":{"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)\")"},"1959":{"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)\")"},"1960":{"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)\")"},"1961":{"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)\")"},"1962":{"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)\")"},"1963":{"style":{"__isSmartRef__":true,"id":1964},"chunkOwner":{"__isSmartRef__":true,"id":1952},"_id":"_3352","storedString":"Score\n4","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1964":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1965":{"morph":{"__isSmartRef__":true,"id":1952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1966":{"resizeWidth":true},"1967":{"submorphs":[],"scripts":[],"id":"C2101C81-5208-4287-BF65-0B3539DE147A","shape":{"__isSmartRef__":true,"id":1968},"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":14,"name":"Restart","partsBinMetaInfo":{"__isSmartRef__":true,"id":1969},"textChunks":[{"__isSmartRef__":true,"id":1978}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1980},"_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","E1A13A77-EAB7-4BB6-BB8C-CF391CCFD7B4","66DC6218-C308-429B-A101-26E57764B5CB"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"layout":{"__isSmartRef__":true,"id":1981},"_Align":"center","owner":{"__isSmartRef__":true,"id":1951},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1982},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(115.0,356.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(85.0,-9.0)"},"1968":{"fill":null,"_BorderWidth":2,"_ClipMode":"visible","_Fill":null,"_BorderRadius":20,"_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(120.0,32.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"1969":{"partsSpaceName":"PartsBin/Basic/","migrationLevel":8,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":1970},{"__isSmartRef__":true,"id":1971},{"__isSmartRef__":true,"id":1972},{"__isSmartRef__":true,"id":1973},{"__isSmartRef__":true,"id":1974},{"__isSmartRef__":true,"id":1975},{"__isSmartRef__":true,"id":1976},{"__isSmartRef__":true,"id":1977}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:08 GMT-0700 (PDT)\")"},"1970":{"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)\")"},"1971":{"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)\")"},"1972":{"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)\")"},"1973":{"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)\")"},"1974":{"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)\")"},"1975":{"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)\")"},"1976":{"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)\")"},"1977":{"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)\")"},"1978":{"style":{"__isSmartRef__":true,"id":1979},"chunkOwner":{"__isSmartRef__":true,"id":1967},"_id":"_9841","storedString":"Restart","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1979":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1980":{"morph":{"__isSmartRef__":true,"id":1967},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1981":{"resizeWidth":true},"1982":{"onMouseDown":{"__isSmartRef__":true,"id":1983}},"1983":{"varMapping":{"__isSmartRef__":true,"id":1984},"source":"function onMouseDown(evt) {\n    this.owner.setVisible(false);\n    evt.stop()\n    var board2048 = this.owner.owner;\n    board2048.restart();\n    board2048.get('Board').focus();\n    return true;\n    \n}","funcProperties":{"__isSmartRef__":true,"id":1989},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1984":{"this":{"__isSmartRef__":true,"id":1967},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1985}},"1985":{"$super":{"__isSmartRef__":true,"id":1986}},"1986":{"varMapping":{"__isSmartRef__":true,"id":1987},"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":1988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1987":{"obj":{"__isSmartRef__":true,"id":1967},"name":"onMouseDown"},"1988":{},"1989":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun May 18 2014 10:04:41 GMT-0700 (PDT)\")"},"1990":{"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":10,"_Opacity":50,"_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(350.0,425.0)","_BorderColor":"Color.rgb(255,255,255)","_Fill":"Color.rgba(251,248,239,255)","_Padding":"lively.rect(0,0,0,0)"},"1991":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":8,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":1992},{"__isSmartRef__":true,"id":1993},{"__isSmartRef__":true,"id":1994},{"__isSmartRef__":true,"id":1995},{"__isSmartRef__":true,"id":1996},{"__isSmartRef__":true,"id":1997},{"__isSmartRef__":true,"id":1998},{"__isSmartRef__":true,"id":1999},{"__isSmartRef__":true,"id":2000},{"__isSmartRef__":true,"id":2001},{"__isSmartRef__":true,"id":2002},{"__isSmartRef__":true,"id":2003},{"__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}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 06:24:00 GMT-0700 (PDT)\")"},"1992":{"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)\")"},"1993":{"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)\")"},"1994":{"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)\")"},"1995":{"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)\")"},"1996":{"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)\")"},"1997":{"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)\")"},"1998":{"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)\")"},"1999":{"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)\")"},"2000":{"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)\")"},"2001":{"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)\")"},"2002":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2003":{"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)\")"},"2004":{"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)\")"},"2005":{"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)\")"},"2006":{"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)\")"},"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":"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)\")"},"2009":{"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)\")"},"2010":{"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)\")"},"2011":{"morph":{"__isSmartRef__":true,"id":1951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2012":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2013}},"2013":{"test01IsMorph":{"__isSmartRef__":true,"id":2014}},"2014":{"varMapping":{"__isSmartRef__":true,"id":2015},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2015":{"this":{"__isSmartRef__":true,"id":2012}},"2016":{},"2017":{"_BorderWidth":5,"_ClipMode":"visible","_BorderRadius":10,"_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(350.0,425.0)","_BorderColor":"Color.rgb(255,255,255)","_Fill":"Color.rgba(251,248,239,255)","_Padding":"lively.rect(0,0,0,0)"},"2018":{"partsSpaceName":"PartsBin/Rick","comment":"A plain simple rectangle","migrationLevel":8,"partName":"2048Game","changes":[{"__isSmartRef__":true,"id":2019},{"__isSmartRef__":true,"id":2020},{"__isSmartRef__":true,"id":2021},{"__isSmartRef__":true,"id":2022},{"__isSmartRef__":true,"id":2023},{"__isSmartRef__":true,"id":2024},{"__isSmartRef__":true,"id":2025},{"__isSmartRef__":true,"id":2026},{"__isSmartRef__":true,"id":2027},{"__isSmartRef__":true,"id":2028},{"__isSmartRef__":true,"id":2029},{"__isSmartRef__":true,"id":2030},{"__isSmartRef__":true,"id":2031},{"__isSmartRef__":true,"id":2032},{"__isSmartRef__":true,"id":2033},{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2035},{"__isSmartRef__":true,"id":2036},{"__isSmartRef__":true,"id":2037},{"__isSmartRef__":true,"id":2038}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Mar 12 2014 06:24:00 GMT-0700 (PDT)\")"},"2019":{"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)\")"},"2020":{"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)\")"},"2021":{"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)\")"},"2022":{"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)\")"},"2023":{"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)\")"},"2024":{"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)\")"},"2025":{"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)\")"},"2026":{"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)\")"},"2027":{"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)\")"},"2028":{"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)\")"},"2029":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"2030":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)\")"},"2031":{"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)\")"},"2032":{"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)\")"},"2033":{"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)\")"},"2034":{"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)\")"},"2035":{"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)\")"},"2036":{"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)\")"},"2037":{"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)\")"},"2038":{"__serializedExpressions__":["date"],"author":"rick","message":"no comment","id":"0453D3B1-6BEB-48DA-AAF9-D86F89D09CCC","date":"new Date(\"Thu May 29 2014 08:31:24 GMT-0700 (PDT)\")"},"2039":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2040":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2041}},"2041":{"test01IsMorph":{"__isSmartRef__":true,"id":2042}},"2042":{"varMapping":{"__isSmartRef__":true,"id":2043},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2043":{"this":{"__isSmartRef__":true,"id":2040}},"2044":{},"2045":{"restart":{"__isSmartRef__":true,"id":2046},"initialize":{"__isSmartRef__":true,"id":2049}},"2046":{"varMapping":{"__isSmartRef__":true,"id":2047},"source":"function restart() {\n    this.get('Board').restartGame()\n    \n}","funcProperties":{"__isSmartRef__":true,"id":2048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2047":{"this":{"__isSmartRef__":true,"id":0}},"2048":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu May 15 2014 15:08:35 GMT-0700 (PDT)\")"},"2049":{"varMapping":{"__isSmartRef__":true,"id":2050},"source":"function initialize() {\n    this.get('Board').initialize();\n    \n}","funcProperties":{"__isSmartRef__":true,"id":2055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2050":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2051}},"2051":{"$super":{"__isSmartRef__":true,"id":2052}},"2052":{"varMapping":{"__isSmartRef__":true,"id":2053},"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":2054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2053":{"obj":{"__isSmartRef__":true,"id":0},"name":"initialize"},"2054":{},"2055":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun May 25 2014 19:35:48 GMT-0700 (PDT)\")"},"isSimplifiedRegistry":true}}