{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1}],"scripts":[],"id":"46D209D1-C9A5-46A0-B1AF-B2E1D8629892","shape":{"__isSmartRef__":true,"id":77},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":85},"showsHalos":false,"name":"FlapPB","partsBinMetaInfo":{"__isSmartRef__":true,"id":86},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":103},"eventHandler":{"__isSmartRef__":true,"id":104},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","FD8E9136-9BEA-45E4-9865-C5A7CB8D4EE6","C4FA1919-048A-48A5-86EF-7C98E19E0939"],"partTests":{"__isSmartRef__":true,"id":105},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":110},"isBeingDragged":false,"prevScroll":[0,0],"distanceToDragEvent":{"__isSmartRef__":true,"id":111},"moved":true,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":112},"__LivelyClassName__":"lively.morphic.Box"},"1":{"submorphs":[{"__isSmartRef__":true,"id":2}],"scripts":[],"id":"1B1A93D3-CEE7-46A2-9D18-D334305DC229","shape":{"__isSmartRef__":true,"id":26},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":33},"showsHalos":false,"name":"FlapHandle","partsBinMetaInfo":{"__isSmartRef__":true,"id":34},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":47},"eventHandler":{"__isSmartRef__":true,"id":48},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","7D91EA8B-AFFC-4145-8CCA-BC215CB5BE9E","A104C981-BE7F-42A1-80F3-CC974584A7E5"],"partTests":{"__isSmartRef__":true,"id":49},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":0},"priorExtent":{"__isSmartRef__":true,"id":54},"distanceToDragEvent":{"__isSmartRef__":true,"id":55},"prevScroll":[0,0],"_Rotation":-4.71238898038469,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":56},"__LivelyClassName__":"lively.morphic.Box"},"2":{"submorphs":[],"scripts":[],"id":"DFFD865F-19FB-4FF3-84D1-F58F6E364062","shape":{"__isSmartRef__":true,"id":3},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":9},"_MaxTextWidth":92,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":6},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text2","partsBinMetaInfo":{"__isSmartRef__":true,"id":10},"textChunks":[{"__isSmartRef__":true,"id":19}],"charsReplaced":"foo!?","lastFindLoc":10,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":21},"renderContextTable":{"__isSmartRef__":true,"id":22},"eventHandler":{"__isSmartRef__":true,"id":23},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":24},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","56BC4D16-4CB3-4DAC-908C-1596AE4F1EE9","939D50D4-A799-43E0-ADFB-0DA632DD36F5"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":92,"_MinTextHeight":null,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":1},"eventsAreIgnored":true,"distanceToDragEvent":{"__isSmartRef__":true,"id":25},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"3":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4},"_Extent":{"__isSmartRef__":true,"id":5},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6},"renderContextTable":{"__isSmartRef__":true,"id":7},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5":{"x":100,"y":27,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"7":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","setComputedStyles":"setComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"8":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"9":{"x":5.984007999999164,"y":6.00399799999883,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"10":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":11},{"__isSmartRef__":true,"id":13},{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":17}],"revisionOnLoad":154263,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"11":{"date":{"__isSmartRef__":true,"id":12},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"12":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (W. Europe Daylight Time)"},"13":{"date":{"__isSmartRef__":true,"id":14},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"14":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (W. Europe Daylight Time)"},"15":{"date":{"__isSmartRef__":true,"id":16},"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"},"16":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (W. Europe Standard Time)"},"17":{"date":{"__isSmartRef__":true,"id":18},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"18":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (W. Europe Daylight Time)"},"19":{"style":{"__isSmartRef__":true,"id":20},"chunkOwner":{"__isSmartRef__":true,"id":2},"storedString":"Parts Bin","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"21":{"x":100,"y":27,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"23":{"morph":{"__isSmartRef__":true,"id":2},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"25":{"x":1.01452202953692,"y":-10.096144192239535,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"26":{"position":{"__isSmartRef__":true,"id":27},"_Extent":{"__isSmartRef__":true,"id":28},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":29},"_Fill":{"__isSmartRef__":true,"id":30},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":31},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":32},"_BorderRadius":17.76,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"27":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"28":{"x":100,"y":37.125936999999986,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"29":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"30":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"31":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","setComputedStyles":"setComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"32":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"33":{"x":384.21789100000035,"y":31.039980000000185,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"34":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":35},{"__isSmartRef__":true,"id":37},{"__isSmartRef__":true,"id":39},{"__isSmartRef__":true,"id":41},{"__isSmartRef__":true,"id":43},{"__isSmartRef__":true,"id":45}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"35":{"date":{"__isSmartRef__":true,"id":36},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"36":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (W. Europe Daylight Time)"},"37":{"date":{"__isSmartRef__":true,"id":38},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"38":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (W. Europe Standard Time)"},"39":{"date":{"__isSmartRef__":true,"id":40},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"40":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (W. Europe Standard Time)"},"41":{"date":{"__isSmartRef__":true,"id":42},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"42":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (W. Europe Standard Time)"},"43":{"date":{"__isSmartRef__":true,"id":44},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"44":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (W. Europe Daylight Time)"},"45":{"date":{"__isSmartRef__":true,"id":46},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"46":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (W. Europe Daylight Time)"},"47":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"48":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"49":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":50}},"50":{"test01IsMorph":{"__isSmartRef__":true,"id":51}},"51":{"varMapping":{"__isSmartRef__":true,"id":52},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":53},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"52":{"this":{"__isSmartRef__":true,"id":49}},"53":{},"54":{"x":100.998001,"y":37.125936999999986,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"55":{"x":-2.987480974467985,"y":-17.10215320425533,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"56":{"onTouchStart":{"__isSmartRef__":true,"id":57},"onTouchMove":{"__isSmartRef__":true,"id":65},"onTouchEnd":{"__isSmartRef__":true,"id":69}},"57":{"varMapping":{"__isSmartRef__":true,"id":58},"source":"function onTouchStart(evt) {\n    this.ownerExtent = this.owner.getExtent();\n    this.beginTouchPosition = evt.getPosition();\n    this.beginMorphPosition = this.owner.getFixedPosition();\n//    this.beginMorphPosition = this.owner.fixedPosition;\n\n    evt.stop();\n    return true;\n}","funcProperties":{"__isSmartRef__":true,"id":63},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"58":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":59}},"59":{"$super":{"__isSmartRef__":true,"id":60}},"60":{"varMapping":{"__isSmartRef__":true,"id":61},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":62},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"61":{"obj":{"__isSmartRef__":true,"id":1},"name":"onTouchStart"},"62":{},"63":{"timestamp":{"__isSmartRef__":true,"id":64},"user":"sstamm","tags":[]},"64":{"isSerializedDate":true,"string":"Tue May 15 2012 10:59:46 GMT+0200 (W. Europe Daylight Time)"},"65":{"varMapping":{"__isSmartRef__":true,"id":66},"source":"function onTouchMove(evt) {\n    var touchPosition = evt.getPosition();\n    var deltaToStart = pt(this.beginTouchPosition.subPt(touchPosition).x,0);\n    deltaToStart = deltaToStart.scaleBy($world.getZoomLevel());\n\n    var positionToSet = this.beginMorphPosition.subPt(deltaToStart);\n    positionToSet.x = Math.max(positionToSet.x, -this.ownerExtent.x);\n    positionToSet.x = Math.min(positionToSet.x, document.documentElement.clientWidth / 3 - this.ownerExtent.x);\n\n    this.owner.setFixedPosition(positionToSet);\n\n    evt.stop();\n    return true;\n}","funcProperties":{"__isSmartRef__":true,"id":67},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"66":{"this":{"__isSmartRef__":true,"id":1}},"67":{"timestamp":{"__isSmartRef__":true,"id":68},"user":"sstamm","tags":[]},"68":{"isSerializedDate":true,"string":"Tue May 15 2012 11:00:10 GMT+0200 (W. Europe Daylight Time)"},"69":{"varMapping":{"__isSmartRef__":true,"id":70},"source":"function onTouchEnd(evt) {\n    var threshold = 10;\n    if(this.owner.getFixedPosition().x < threshold - this.ownerExtent.x) {\n        this.owner.setFixedPosition(pt(-this.ownerExtent.x,0));\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":75},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"70":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":71}},"71":{"$super":{"__isSmartRef__":true,"id":72}},"72":{"varMapping":{"__isSmartRef__":true,"id":73},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":74},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"73":{"obj":{"__isSmartRef__":true,"id":1},"name":"onTouchEnd"},"74":{},"75":{"timestamp":{"__isSmartRef__":true,"id":76},"user":"sstamm","tags":[]},"76":{"isSerializedDate":true,"string":"Tue May 15 2012 11:07:15 GMT+0200 (W. Europe Daylight Time)"},"77":{"position":{"__isSmartRef__":true,"id":78},"_Extent":{"__isSmartRef__":true,"id":79},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":80},"_Fill":{"__isSmartRef__":true,"id":81},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":82},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":83},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":84},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"78":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"79":{"x":634.3333333333334,"y":962,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"80":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"81":{"r":0.921,"g":0.921,"b":0.921,"a":0.8,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"82":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","setComputedStyles":"setComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"83":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"84":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"85":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"86":{"partsSpaceName":"PartsBin/iPadWidgets/","__SourceModuleName__":"Global.lively.PartsBin","comment":"An alternative PartsBin which works with a Flap. Only for iPad.","migrationLevel":4,"partName":"FlapPB","changes":[{"__isSmartRef__":true,"id":87},{"__isSmartRef__":true,"id":89},{"__isSmartRef__":true,"id":91},{"__isSmartRef__":true,"id":93},{"__isSmartRef__":true,"id":95},{"__isSmartRef__":true,"id":97},{"__isSmartRef__":true,"id":99},{"__isSmartRef__":true,"id":101}],"revisionOnLoad":162845,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"87":{"date":{"__isSmartRef__":true,"id":88},"author":"sstamm","message":"initial commit","id":"68172009-DA91-4668-BA31-575B3CA3A31C"},"88":{"isSerializedDate":true,"string":"Tue May 15 2012 16:06:51 GMT+0200 (W. Europe Daylight Time)"},"89":{"date":{"__isSmartRef__":true,"id":90},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"90":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (W. Europe Daylight Time)"},"91":{"date":{"__isSmartRef__":true,"id":92},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"92":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (W. Europe Daylight Time)"},"93":{"date":{"__isSmartRef__":true,"id":94},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"94":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (W. Europe Standard Time)"},"95":{"date":{"__isSmartRef__":true,"id":96},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"96":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (W. Europe Standard Time)"},"97":{"date":{"__isSmartRef__":true,"id":98},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"98":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (W. Europe Standard Time)"},"99":{"date":{"__isSmartRef__":true,"id":100},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"100":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (W. Europe Daylight Time)"},"101":{"date":{"__isSmartRef__":true,"id":102},"author":"undefined","message":"changed color","id":"C8AA0073-4A67-492C-BB9E-72CFE68144B1"},"102":{"isSerializedDate":true,"string":"Wed Jul 04 2012 09:52:32 GMT+0200 (W. Europe Daylight Time)"},"103":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"104":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"105":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":106}},"106":{"test01IsMorph":{"__isSmartRef__":true,"id":107}},"107":{"varMapping":{"__isSmartRef__":true,"id":108},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":109},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"108":{"this":{"__isSmartRef__":true,"id":105}},"109":{},"110":{"x":359.88305833333334,"y":306.3133429999992,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"111":{"x":256.9999999999997,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"112":{"onrestore":{"__isSmartRef__":true,"id":113},"createPartsBin":{"__isSmartRef__":true,"id":121},"addMorphsForPartItems":{"__isSmartRef__":true,"id":125},"addPartItemAsync":{"__isSmartRef__":true,"id":129},"createBackButton":{"__isSmartRef__":true,"id":133},"createCategoryContainer":{"__isSmartRef__":true,"id":137},"createCategoryLabel":{"__isSmartRef__":true,"id":141},"ensureCategories":{"__isSmartRef__":true,"id":145},"getURLForCategoryNamed":{"__isSmartRef__":true,"id":149},"gotoCategory":{"__isSmartRef__":true,"id":153},"partsBinURL":{"__isSmartRef__":true,"id":157},"stopAddingPartItemsAsync":{"__isSmartRef__":true,"id":161},"updateCategoriesDictFromPartsBin":{"__isSmartRef__":true,"id":165},"updateCategoryList":{"__isSmartRef__":true,"id":169},"getAvailablePosition":{"__isSmartRef__":true,"id":173},"onTouchStart":{"__isSmartRef__":true,"id":177},"onTouchMove":{"__isSmartRef__":true,"id":185},"onTouchEnd":{"__isSmartRef__":true,"id":189}},"113":{"varMapping":{"__isSmartRef__":true,"id":114},"source":"function onrestore() {\n    (function(){\n    \n    var extent = pt(document.documentElement.clientWidth / 3, document.documentElement.clientHeight);\n    this.setExtent(extent);\n\n    this.setPosition(pt(-extent.x, 0).scaleBy(1 / $world.getZoomLevel()).addPt(pt(document.body.scrollLeft, document.body.scrollTop)));\n    this.get(\"FlapHandle\").setPosition(pt(extent.x + this.get(\"FlapHandle\").getExtent().y, 50));\n    this.setFixed(true);\n    this.fixedScale = 1;\n    this.createPartsBin();\n    this.disableSelection();\n    }).bind(this).delay(0);\n}","funcProperties":{"__isSmartRef__":true,"id":119},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"114":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":115}},"115":{"$super":{"__isSmartRef__":true,"id":116}},"116":{"varMapping":{"__isSmartRef__":true,"id":117},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":118},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"117":{"obj":{"__isSmartRef__":true,"id":0},"name":"onrestore"},"118":{},"119":{"timestamp":{"__isSmartRef__":true,"id":120},"user":"sstamm","tags":[]},"120":{"isSerializedDate":true,"string":"Tue May 15 2012 16:36:48 GMT+0200 (W. Europe Daylight Time)"},"121":{"varMapping":{"__isSmartRef__":true,"id":122},"source":"function createPartsBin() {\n        this.list = new lively.morphic.TouchList(rect(0,0,0,0));\n        var flap = this;\n        this.list.setExtent(flap.getExtent());\n        this.list.setPosition(pt(0,0));\n        this.list.submorphs[0].setExtent(this.list.getExtent());\n        flap.addMorph(this.list);\n\n        this.header = new lively.morphic.Box(rect(0,0,10,10));\n        this.header.setExtent(pt(this.getExtent().x, 35));\n        this.header.setVisible(false);\n        this.header.setFill(Color.rgb(255,208,157));\n        flap.addMorph(this.header);\n\n\n        var backBtn = this.createBackButton()\n        backBtn.setExtent(pt(100,35));\n        this.header.addMorph(backBtn);\n        this.backBtn = backBtn;\n\n        this.categoryLabel = this.createCategoryLabel();\n        this.categoryLabel.setExtent(pt(500,35))\n        this.categoryLabel.setPosition(pt(120,5));\n        this.header.addMorph(this.categoryLabel);\n\n        this.categoryContainer = this.createCategoryContainer();\n        this.categoryContainer.setPosition(pt(0,0));\n        this.categoryContainer.setExtent(flap.getExtent());\n        flap.addMorphBack(this.categoryContainer);\n\n        this.flap = flap;\n        connect(this.list, \"selection\", this, \"gotoCategory\", {converter: function(input){ if(!input) return \"\"; return input[0]; }});\n        \n\n        this.updateCategoriesDictFromPartsBin();\n}","funcProperties":{"__isSmartRef__":true,"id":123},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"122":{"this":{"__isSmartRef__":true,"id":0}},"123":{"timestamp":{"__isSmartRef__":true,"id":124},"user":"sstamm","tags":[]},"124":{"isSerializedDate":true,"string":"Tue May 15 2012 16:34:11 GMT+0200 (W. Europe Daylight Time)"},"125":{"varMapping":{"__isSmartRef__":true,"id":126},"source":"function addMorphsForPartItems(partItems) {\n    this.partItemsToBeAdded = partItems.clone();\n    delete this.lastPosition;\n    this.startStepping(0, 'addPartItemAsync')\n}","funcProperties":{"__isSmartRef__":true,"id":127},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"126":{"this":{"__isSmartRef__":true,"id":0}},"127":{"timestamp":{"__isSmartRef__":true,"id":128},"user":"sstamm","tags":[]},"128":{"isSerializedDate":true,"string":"Tue May 15 2012 13:56:07 GMT+0200 (W. Europe Daylight Time)"},"129":{"varMapping":{"__isSmartRef__":true,"id":130},"source":"function addPartItemAsync() {\n    if (!this.partItemsToBeAdded || this.partItemsToBeAdded.length == 0) {\n        this.stopAddingPartItemsAsync();\n        return;\n    }\n    var partItem = this.partItemsToBeAdded.shift();\n    var morph = partItem.asPartsBinItem();\n    morph.setPosition(this.getAvailablePosition());\n\n    morph.onTouchStart = function(evt){\n        var touch = evt.touches[0];\n        if(touch) {\n            touch.partItemOffset = touch.screenX;\n        }\n    };\n    morph.onTouchMove = function(evt){\n        var touch = evt.touches[0];\n        evt.hand.setPosition(evt.getPosition());\n        if(touch && touch.partItemOffset) {\n            var delta = (touch.screenX - touch.partItemOffset);\n            if(delta > 100) {\n                \n                var loadingMorph = $world.loadingMorph.copy();\n                loadingMorph.loadPart(this.partItem, function(part) {\n                    part.setPosition($world.firstHand().getPosition());\n                    $world.firstHand().grabMorph(part);\n                });\n                \n                delete touch.partItemOffset;\n                touch.draggingCanceled = true;\n            }\n        }\n    };\n    morph.onTouchEnd = function(evt){\n        evt.world.dispatchDrop(evt);\n    };\n\n\n    this.categoryContainer.addMorph(morph);\n}","funcProperties":{"__isSmartRef__":true,"id":131},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"130":{"this":{"__isSmartRef__":true,"id":0}},"131":{"timestamp":{"__isSmartRef__":true,"id":132},"user":"sstamm","tags":[]},"132":{"isSerializedDate":true,"string":"Tue May 15 2012 15:51:51 GMT+0200 (W. Europe Daylight Time)"},"133":{"varMapping":{"__isSmartRef__":true,"id":134},"source":"function createBackButton() {\n    var okBtn = new lively.morphic.Button(new Rectangle(0, 0, 75, 25));\n    var that = this;\n        okBtn.onTap = function(evt) {\n            \n            that.list.enableEvents();\n            that.list.unignoreEvents();\n\n            that.stopAddingPartItemsAsync();\n            that.categoryLabel.setTextString(\"\");\n            that.header.setVisible(false);\n\n            that.categoryContainer.removeAllMorphs();\n            that.list.openSuperMenu();\n        };\n        okBtn.setLabel(\"Back\");\n        return okBtn;\n}","funcProperties":{"__isSmartRef__":true,"id":135},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"134":{"this":{"__isSmartRef__":true,"id":0}},"135":{"timestamp":{"__isSmartRef__":true,"id":136},"user":"sstamm","tags":[]},"136":{"isSerializedDate":true,"string":"Tue May 15 2012 16:28:25 GMT+0200 (W. Europe Daylight Time)"},"137":{"varMapping":{"__isSmartRef__":true,"id":138},"source":"function createCategoryContainer() {\n    var box = new lively.morphic.Box(new Rectangle(0,0,100,10));\n    var that = this;\n    box.onTouchStart = function(evt) {\n        evt.stop();\n        var touch = evt.touches[0];\n        if(touch) {\n            touch.originalDragOffset = touch.screenY;\n            touch.originalMenuOffset = this.getPosition().y;\n        }\n        return true;\n    };\n\n    box.onTouchMove = function(evt) {\n        evt.stop();\n        var touch = evt.touches[0];\n        if(touch && touch.originalDragOffset && !touch.draggingCanceled) {\n            var delta = (touch.screenY - touch.originalDragOffset);\n            var pos = touch.originalMenuOffset+delta;\n            pos = Math.max(-this.getExtent().y + that.getExtent().y, pos);\n            pos = Math.min(35,pos);\n            this.setPosition(pt(0,pos));\n        }\n        return true;\n    };\n\n\n\n    return box;\n}","funcProperties":{"__isSmartRef__":true,"id":139},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"138":{"this":{"__isSmartRef__":true,"id":0}},"139":{"timestamp":{"__isSmartRef__":true,"id":140},"user":"sstamm","tags":[]},"140":{"isSerializedDate":true,"string":"Tue May 15 2012 15:09:43 GMT+0200 (W. Europe Daylight Time)"},"141":{"varMapping":{"__isSmartRef__":true,"id":142},"source":"function createCategoryLabel() {\n    var text = new TextMorph(new Rectangle(0,0,100,10));\n        text.applyStyle({\n            fill: null,\n            borderWidth: 0,\n            fontSize: 14,\n            textColor: Color.rgb(47,47,47),\n            fontFamily: \"Helvetica, Arial, sans-serif\"\n        });\n        text.textString = \"\";\n     return text;\n}","funcProperties":{"__isSmartRef__":true,"id":143},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"142":{"this":{"__isSmartRef__":true,"id":0}},"143":{"timestamp":{"__isSmartRef__":true,"id":144},"user":"sstamm","tags":[]},"144":{"isSerializedDate":true,"string":"Tue May 15 2012 13:42:43 GMT+0200 (W. Europe Daylight Time)"},"145":{"varMapping":{"__isSmartRef__":true,"id":146},"source":"function ensureCategories() {\n    if (!this.categories)\n        this.categories = {uncategorized: 'PartsBin/'};\n\n}","funcProperties":{"__isSmartRef__":true,"id":147},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"146":{"this":{"__isSmartRef__":true,"id":0}},"147":{"timestamp":{"__isSmartRef__":true,"id":148},"user":"sstamm","tags":[]},"148":{"isSerializedDate":true,"string":"Tue May 15 2012 13:42:43 GMT+0200 (W. Europe Daylight Time)"},"149":{"varMapping":{"__isSmartRef__":true,"id":150},"source":"function getURLForCategoryNamed(categoryName) {\n    this.ensureCategories()\n\n    var relative = this.categories[categoryName];\n    if (!relative) return null;\n    return URL.ensureAbsoluteCodeBaseURL(relative).withRelativePartsResolved()\n}","funcProperties":{"__isSmartRef__":true,"id":151},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"150":{"this":{"__isSmartRef__":true,"id":0}},"151":{"timestamp":{"__isSmartRef__":true,"id":152},"user":"sstamm","tags":[]},"152":{"isSerializedDate":true,"string":"Tue May 15 2012 13:42:43 GMT+0200 (W. Europe Daylight Time)"},"153":{"varMapping":{"__isSmartRef__":true,"id":154},"source":"function gotoCategory(categoryName) {\n    if(!categoryName) return;\n\n    this.categoryLabel.setTextString(categoryName);\n    this.list.disableEvents();\n    this.list.ignoreEvents();\n    \n    this.header.setVisible(true);\n\n    this.categoryContainer.setPosition(pt(0,35));\n\n    var partsSpace = lively.PartsBin.partsSpaceWithURL(this.getURLForCategoryNamed(categoryName));\n    connect(partsSpace, 'partItems', this, 'addMorphsForPartItems', {\n\tconverter: function(partItemObj) { return Properties.ownValues(partItemObj) }})\n    partsSpace.load(true);\n\n}","funcProperties":{"__isSmartRef__":true,"id":155},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"154":{"this":{"__isSmartRef__":true,"id":0}},"155":{"timestamp":{"__isSmartRef__":true,"id":156},"user":"sstamm","tags":[]},"156":{"isSerializedDate":true,"string":"Tue May 15 2012 16:28:40 GMT+0200 (W. Europe Daylight Time)"},"157":{"varMapping":{"__isSmartRef__":true,"id":158},"source":"function partsBinURL() {\n    return new URL(Config.rootPath).withFilename('PartsBin/');\n}","funcProperties":{"__isSmartRef__":true,"id":159},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"158":{"this":{"__isSmartRef__":true,"id":0}},"159":{"timestamp":{"__isSmartRef__":true,"id":160},"user":"sstamm","tags":[]},"160":{"isSerializedDate":true,"string":"Tue May 15 2012 13:42:43 GMT+0200 (W. Europe Daylight Time)"},"161":{"varMapping":{"__isSmartRef__":true,"id":162},"source":"function stopAddingPartItemsAsync() {\n    this.stopStepping();\n    delete this.partItemsToBeAdded;\n}","funcProperties":{"__isSmartRef__":true,"id":163},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"162":{"this":{"__isSmartRef__":true,"id":0}},"163":{"timestamp":{"__isSmartRef__":true,"id":164},"user":"sstamm","tags":[]},"164":{"isSerializedDate":true,"string":"Tue May 15 2012 13:42:43 GMT+0200 (W. Europe Daylight Time)"},"165":{"varMapping":{"__isSmartRef__":true,"id":166},"source":"function updateCategoriesDictFromPartsBin() {\n    this.ensureCategories();\n    var webR = new WebResource(this.partsBinURL());\n    webR.beAsync();\n    var that = this;\n    var callback = function(collections) {\n        collections.forEach(function(dir) {\n            var unescape = Global.urlUnescape || Global.unescape,\n            unescaped = unescape(dir.getURL().filename()),\n            name = unescaped.replace(/\\/$/,\"\");\n            that.categories[name] = that.partsBinURL().withFilename(unescaped);\n        });\n        that.updateCategoryList(that.categoryName);\n    }\n    connect(webR, 'subCollections', {cb: callback}, 'cb', {\n        updater: function($upd, value) {\n            if (!(this.sourceObj.status && this.sourceObj.status.isDone())) return;\n            if (!value) return;\n            $upd(value);\n        },\n    });\n    webR.getSubElements();\n}","funcProperties":{"__isSmartRef__":true,"id":167},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"166":{"this":{"__isSmartRef__":true,"id":0}},"167":{"timestamp":{"__isSmartRef__":true,"id":168},"user":"sstamm","tags":[]},"168":{"isSerializedDate":true,"string":"Tue May 15 2012 13:42:43 GMT+0200 (W. Europe Daylight Time)"},"169":{"varMapping":{"__isSmartRef__":true,"id":170},"source":"function updateCategoryList() {\n    this.list.setup(\n\tProperties.own(this.categories).sortBy(function(name) { return name.toLowerCase() }).map(function(ea){ return [ea, []]; }));\n}","funcProperties":{"__isSmartRef__":true,"id":171},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"170":{"this":{"__isSmartRef__":true,"id":0}},"171":{"timestamp":{"__isSmartRef__":true,"id":172},"user":"sstamm","tags":[]},"172":{"isSerializedDate":true,"string":"Tue May 15 2012 13:42:43 GMT+0200 (W. Europe Daylight Time)"},"173":{"varMapping":{"__isSmartRef__":true,"id":174},"source":"function getAvailablePosition() {\n    if(!this.lastPosition) { this.lastPosition = pt(155,-100); }\n    \n    if(this.lastPosition.x === 30) {\n        this.lastPosition = this.lastPosition.addPt(pt(125, 0));\n    } else {\n        this.lastPosition = this.lastPosition.addPt(pt(-125, 125));\n    }\n    this.categoryContainer.setExtent(pt(this.getExtent().x, this.lastPosition.y+125));\n\n    return this.lastPosition;\n}","funcProperties":{"__isSmartRef__":true,"id":175},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"174":{"this":{"__isSmartRef__":true,"id":0}},"175":{"timestamp":{"__isSmartRef__":true,"id":176},"user":"sstamm","tags":[]},"176":{"isSerializedDate":true,"string":"Tue May 15 2012 14:47:25 GMT+0200 (W. Europe Daylight Time)"},"177":{"varMapping":{"__isSmartRef__":true,"id":178},"source":"function onTouchStart(evt) {\n    evt.stop();\n    return true;\n}","funcProperties":{"__isSmartRef__":true,"id":183},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"178":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":179}},"179":{"$super":{"__isSmartRef__":true,"id":180}},"180":{"varMapping":{"__isSmartRef__":true,"id":181},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":182},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"181":{"obj":{"__isSmartRef__":true,"id":0},"name":"onTouchStart"},"182":{},"183":{"timestamp":{"__isSmartRef__":true,"id":184},"user":"sstamm","tags":[]},"184":{"isSerializedDate":true,"string":"Tue May 15 2012 16:36:08 GMT+0200 (W. Europe Daylight Time)"},"185":{"varMapping":{"__isSmartRef__":true,"id":186},"source":"function onTouchMove(evt) {\n    evt.stop();\n    return true;\n}","funcProperties":{"__isSmartRef__":true,"id":187},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"186":{"this":{"__isSmartRef__":true,"id":0}},"187":{"timestamp":{"__isSmartRef__":true,"id":188},"user":"sstamm","tags":[]},"188":{"isSerializedDate":true,"string":"Tue May 15 2012 16:36:03 GMT+0200 (W. Europe Daylight Time)"},"189":{"varMapping":{"__isSmartRef__":true,"id":190},"source":"function onTouchEnd(evt) {\n    evt.stop();\n    return true;\n}","funcProperties":{"__isSmartRef__":true,"id":195},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"190":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":191}},"191":{"$super":{"__isSmartRef__":true,"id":192}},"192":{"varMapping":{"__isSmartRef__":true,"id":193},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world) \n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":194},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"193":{"obj":{"__isSmartRef__":true,"id":0},"name":"onTouchEnd"},"194":{},"195":{"timestamp":{"__isSmartRef__":true,"id":196},"user":"sstamm","tags":[]},"196":{"isSerializedDate":true,"string":"Tue May 15 2012 16:36:12 GMT+0200 (W. Europe Daylight Time)"},"isSimplifiedRegistry":true}}