{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1}],"scripts":[],"id":"E0B9D6CF-A9AB-4A58-AE3B-0BFA5D6FE09C","shape":{"__isSmartRef__":true,"id":78},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":82},"showsHalos":false,"name":"RelativeMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":83},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":100},"eventHandler":{"__isSmartRef__":true,"id":101},"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","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C"],"partTests":{"__isSmartRef__":true,"id":102},"_ClipMode":"visible","moved":true,"priorExtent":{"__isSmartRef__":true,"id":107},"isBeingDragged":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":108},"__LivelyClassName__":"lively.morphic.Box"},"1":{"submorphs":[],"scripts":[],"id":"F4C3A884-133D-4A9A-8506-FC666ADFBF6A","shape":{"__isSmartRef__":true,"id":2},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5},"showsHalos":false,"name":"RelativeMorph1","partsBinMetaInfo":{"__isSmartRef__":true,"id":6},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":21},"eventHandler":{"__isSmartRef__":true,"id":22},"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","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","E0B9D6CF-A9AB-4A58-AE3B-0BFA5D6FE09C"],"partTests":{"__isSmartRef__":true,"id":23},"_ClipMode":"visible","moved":true,"priorExtent":{"__isSmartRef__":true,"id":28},"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":29},"__LivelyClassName__":"lively.morphic.Box"},"2":{"renderContextTable":{"__isSmartRef__":true,"id":3},"__SourceModuleName__":"Global.lively.morphic.HTMLExperiments","_Extent":{"__isSmartRef__":true,"id":4},"_NodeClass":["morph","box","relative"],"_ComputedBorderWidth":null,"__LivelyClassName__":"lively.morphic.Shapes.NullShape"},"3":{"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"},"4":{"x":593,"y":195,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5":{"x":2.000000000000014,"y":-0.9999999999999858,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really orange one. Its amazing what you can build out of simple boxes.... Who needs stars when you got orange rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":7},{"__isSmartRef__":true,"id":9},{"__isSmartRef__":true,"id":11},{"__isSmartRef__":true,"id":13},{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":17},{"__isSmartRef__":true,"id":19}],"revisionOnLoad":171602,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"7":{"date":{"__isSmartRef__":true,"id":8},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"8":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (Pacific Daylight Time)"},"9":{"date":{"__isSmartRef__":true,"id":10},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"10":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (Pacific Daylight Time)"},"11":{"date":{"__isSmartRef__":true,"id":12},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"12":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (Pacific Daylight Time)"},"13":{"date":{"__isSmartRef__":true,"id":14},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"14":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (Pacific Standard Time)"},"15":{"date":{"__isSmartRef__":true,"id":16},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"16":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (Pacific Daylight Time)"},"17":{"date":{"__isSmartRef__":true,"id":18},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"18":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (Pacific Daylight Time)"},"19":{"date":{"__isSmartRef__":true,"id":20},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"20":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (Pacific Daylight Time)"},"21":{"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"},"22":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"23":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24}},"24":{"test01IsMorph":{"__isSmartRef__":true,"id":25}},"25":{"varMapping":{"__isSmartRef__":true,"id":26},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":27},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"26":{"this":{"__isSmartRef__":true,"id":23}},"27":{},"28":{"x":539,"y":197,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"29":{"initHTML":{"__isSmartRef__":true,"id":30},"getPosition":{"__isSmartRef__":true,"id":38},"setPositionHTML":{"__isSmartRef__":true,"id":46},"setRotationHTML":{"__isSmartRef__":true,"id":54},"setScaleHTML":{"__isSmartRef__":true,"id":62},"appendHTML":{"__isSmartRef__":true,"id":70}},"30":{"varMapping":{"__isSmartRef__":true,"id":31},"source":"function initHTML(ctx) {\n        if (!ctx.morphNode) ctx.morphNode = XHTMLNS.create('ul');;\n        this.setFocusableHTML(ctx, this.isFocusable());\n        //this.setPivotPointHTML(ctx, this.getPivotPoint())\n        //ctx.domInterface.setHTMLTransformOrigin(ctx.morphNode, pt(0,0));\n        //this.setPositionHTML(ctx, this.getPosition());\n        //this.setRotationHTML(ctx, this.getRotation());\n        //this.setScaleHTML(ctx, this.getScale());\n        //this.setClipModeHTML(ctx, this.getClipMode());\n        //this.setHandStyleHTML(ctx, this.getHandStyle());\n        this.setPointerEventsHTML(ctx, this.getPointerEvents());\n        if (this.morphicGetter('Visible') === false)\n            this.setVisibleHTML(ctx, false);\n        var tooltip = this.morphicGetter('ToolTip');\n        tooltip && this.setToolTipHTML(ctx, tooltip);\n        if (UserAgent.fireFoxVersion)\n            ctx.morphNode['-moz-user-modify'] = 'read-only'\n    }","funcProperties":{"__isSmartRef__":true,"id":36},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"31":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":32}},"32":{"$super":{"__isSmartRef__":true,"id":33}},"33":{"varMapping":{"__isSmartRef__":true,"id":34},"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":35},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"34":{"obj":{"__isSmartRef__":true,"id":1},"name":"initHTML"},"35":{},"36":{"timestamp":{"__isSmartRef__":true,"id":37},"user":"bgnauk","tags":[]},"37":{"isSerializedDate":true,"string":"Thu Jul 05 2012 14:32:42 GMT-0700 (Pacific Daylight Time)"},"38":{"varMapping":{"__isSmartRef__":true,"id":39},"source":"function getPosition() {\n    var ctx = this.renderContext();\n    var p = $(ctx.morphNode).position();\n    return pt(p.left, p.top);\n}","funcProperties":{"__isSmartRef__":true,"id":44},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"39":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":40}},"40":{"$super":{"__isSmartRef__":true,"id":41}},"41":{"varMapping":{"__isSmartRef__":true,"id":42},"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":43},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"42":{"obj":{"__isSmartRef__":true,"id":1},"name":"getPosition"},"43":{},"44":{"timestamp":{"__isSmartRef__":true,"id":45},"user":"bgnauk","tags":[]},"45":{"isSerializedDate":true,"string":"Thu Jul 05 2012 14:33:32 GMT-0700 (Pacific Daylight Time)"},"46":{"varMapping":{"__isSmartRef__":true,"id":47},"source":"function setPositionHTML(ctx) {\n    \n}","funcProperties":{"__isSmartRef__":true,"id":52},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"47":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":48}},"48":{"$super":{"__isSmartRef__":true,"id":49}},"49":{"varMapping":{"__isSmartRef__":true,"id":50},"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":51},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"50":{"obj":{"__isSmartRef__":true,"id":1},"name":"setPositionHTML"},"51":{},"52":{"timestamp":{"__isSmartRef__":true,"id":53},"user":"bgnauk","tags":[]},"53":{"isSerializedDate":true,"string":"Thu Jul 05 2012 14:33:46 GMT-0700 (Pacific Daylight Time)"},"54":{"varMapping":{"__isSmartRef__":true,"id":55},"source":"function setRotationHTML(ctx) {\n    \n}","funcProperties":{"__isSmartRef__":true,"id":60},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"55":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":56}},"56":{"$super":{"__isSmartRef__":true,"id":57}},"57":{"varMapping":{"__isSmartRef__":true,"id":58},"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":59},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"58":{"obj":{"__isSmartRef__":true,"id":1},"name":"setRotationHTML"},"59":{},"60":{"timestamp":{"__isSmartRef__":true,"id":61},"user":"bgnauk","tags":[]},"61":{"isSerializedDate":true,"string":"Thu Jul 05 2012 14:33:53 GMT-0700 (Pacific Daylight Time)"},"62":{"varMapping":{"__isSmartRef__":true,"id":63},"source":"function setScaleHTML(ctx) {\n    \n}","funcProperties":{"__isSmartRef__":true,"id":68},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"63":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":64}},"64":{"$super":{"__isSmartRef__":true,"id":65}},"65":{"varMapping":{"__isSmartRef__":true,"id":66},"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":67},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"66":{"obj":{"__isSmartRef__":true,"id":1},"name":"setScaleHTML"},"67":{},"68":{"timestamp":{"__isSmartRef__":true,"id":69},"user":"bgnauk","tags":[]},"69":{"isSerializedDate":true,"string":"Thu Jul 05 2012 14:34:00 GMT-0700 (Pacific Daylight Time)"},"70":{"varMapping":{"__isSmartRef__":true,"id":71},"source":"function appendHTML(ctx, optMorphAfter) {\n        if (!ctx.morphNode) throw dbgOn(new Error('no ctx.morphNode!'));\n        var parentNode = ctx.morphNode.parentNode;\n        if (!parentNode) {\n            var ownerCtx = this.owner && this.owner.renderContext();\n            parentNode = (ownerCtx && ownerCtx.shapeNode) || ctx.parentNode;\n            \n            if (this.owner.getShape().constructor.name === \"NullShape\") {\n             alert(\"Owner is NullShape!\");   \n                \n                \n            }\n            else\n            if (parentNode && ownerCtx && ownerCtx.shapeNode && parentNode === ownerCtx.shapeNode) {\n\n                if (!ownerCtx.originNode) {\n                    ownerCtx.originNode = ownerCtx.domInterface.htmlRect();\n                    ownerCtx.shapeNode.appendChild(ownerCtx.originNode);\n                }\n                this.owner.shape.compensateShapeNode(ownerCtx);\n                \n                parentNode = ownerCtx.originNode;\n            }\n\n            if (!parentNode) {\n                if (Config.debugMissingParentNode) debugger\n                alert('Cannot render ' + this + ' without parentNode')\n                return;\n            }\n        }\n\n        var afterNode = optMorphAfter && optMorphAfter.renderContext().getMorphNode();\n        this.insertMorphNodeInHTML(ctx, ctx.morphNode, parentNode, afterNode);\n        if (this.originClass) this.setOriginClassHTML(ctx, this.originClass);\n        this.getShape().renderUsing(ctx);\n    }","funcProperties":{"__isSmartRef__":true,"id":76},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"71":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":72}},"72":{"$super":{"__isSmartRef__":true,"id":73}},"73":{"varMapping":{"__isSmartRef__":true,"id":74},"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":75},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"74":{"obj":{"__isSmartRef__":true,"id":1},"name":"appendHTML"},"75":{},"76":{"timestamp":{"__isSmartRef__":true,"id":77},"user":"bgnauk","tags":[]},"77":{"isSerializedDate":true,"string":"Thu Jul 05 2012 16:32:26 GMT-0700 (Pacific Daylight Time)"},"78":{"renderContextTable":{"__isSmartRef__":true,"id":79},"__SourceModuleName__":"Global.lively.morphic.HTMLExperiments","_Extent":{"__isSmartRef__":true,"id":80},"_NodeClass":["morph","box","relative"],"_ComputedBorderWidth":10,"_Position":{"__isSmartRef__":true,"id":81},"__LivelyClassName__":"lively.morphic.Shapes.NullShape"},"79":{"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"},"80":{"x":679,"y":247,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"81":{"x":-63.36278886162717,"y":-98.03140816940625,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"82":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"83":{"partsSpaceName":"PartsBin/Sandbox","__SourceModuleName__":"Global.lively.PartsBin","comment":"An HTML morph with relative positioning and size","migrationLevel":4,"partName":"RelativeMorph","changes":[{"__isSmartRef__":true,"id":84},{"__isSmartRef__":true,"id":86},{"__isSmartRef__":true,"id":88},{"__isSmartRef__":true,"id":90},{"__isSmartRef__":true,"id":92},{"__isSmartRef__":true,"id":94},{"__isSmartRef__":true,"id":96},{"__isSmartRef__":true,"id":98}],"revisionOnLoad":171602,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"84":{"date":{"__isSmartRef__":true,"id":85},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"85":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (Pacific Daylight Time)"},"86":{"date":{"__isSmartRef__":true,"id":87},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"87":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (Pacific Daylight Time)"},"88":{"date":{"__isSmartRef__":true,"id":89},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"89":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (Pacific Daylight Time)"},"90":{"date":{"__isSmartRef__":true,"id":91},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"91":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (Pacific Standard Time)"},"92":{"date":{"__isSmartRef__":true,"id":93},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"93":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (Pacific Daylight Time)"},"94":{"date":{"__isSmartRef__":true,"id":95},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"95":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (Pacific Daylight Time)"},"96":{"date":{"__isSmartRef__":true,"id":97},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"97":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (Pacific Daylight Time)"},"98":{"date":{"__isSmartRef__":true,"id":99},"author":"bgnauk","message":"no comment","id":"5855089B-F466-4D79-9352-AD631B9CDF3E"},"99":{"isSerializedDate":true,"string":"Mon Jul 09 2012 14:27:06 GMT-0700 (Pacific Daylight Time)"},"100":{"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"},"101":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"102":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":103}},"103":{"test01IsMorph":{"__isSmartRef__":true,"id":104}},"104":{"varMapping":{"__isSmartRef__":true,"id":105},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":106},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"105":{"this":{"__isSmartRef__":true,"id":102}},"106":{},"107":{"x":671,"y":248,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"108":{"initHTML":{"__isSmartRef__":true,"id":109},"getPosition":{"__isSmartRef__":true,"id":117},"setPositionHTML":{"__isSmartRef__":true,"id":125},"setRotationHTML":{"__isSmartRef__":true,"id":133},"setScaleHTML":{"__isSmartRef__":true,"id":141},"appendHTML":{"__isSmartRef__":true,"id":149},"adjustOrigin":{"__isSmartRef__":true,"id":157},"getRotation":{"__isSmartRef__":true,"id":165},"getScale":{"__isSmartRef__":true,"id":173},"getBounds":{"__isSmartRef__":true,"id":181}},"109":{"varMapping":{"__isSmartRef__":true,"id":110},"source":"function initHTML(ctx) {\n        if (!ctx.morphNode) ctx.morphNode = XHTMLNS.create('ul');;\n        this.setFocusableHTML(ctx, this.isFocusable());\n        //this.setPivotPointHTML(ctx, this.getPivotPoint())\n        //ctx.domInterface.setHTMLTransformOrigin(ctx.morphNode, pt(0,0));\n        //this.setPositionHTML(ctx, this.getPosition());\n        //this.setRotationHTML(ctx, this.getRotation());\n        //this.setScaleHTML(ctx, this.getScale());\n        //this.setClipModeHTML(ctx, this.getClipMode());\n        //this.setHandStyleHTML(ctx, this.getHandStyle());\n        this.setPointerEventsHTML(ctx, this.getPointerEvents());\n        if (this.morphicGetter('Visible') === false)\n            this.setVisibleHTML(ctx, false);\n        var tooltip = this.morphicGetter('ToolTip');\n        tooltip && this.setToolTipHTML(ctx, tooltip);\n        if (UserAgent.fireFoxVersion)\n            ctx.morphNode['-moz-user-modify'] = 'read-only'\n    }","funcProperties":{"__isSmartRef__":true,"id":115},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"110":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":111}},"111":{"$super":{"__isSmartRef__":true,"id":112}},"112":{"varMapping":{"__isSmartRef__":true,"id":113},"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":114},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"113":{"obj":{"__isSmartRef__":true,"id":0},"name":"initHTML"},"114":{},"115":{"timestamp":{"__isSmartRef__":true,"id":116},"user":"bgnauk","tags":[]},"116":{"isSerializedDate":true,"string":"Thu Jul 05 2012 14:32:42 GMT-0700 (Pacific Daylight Time)"},"117":{"varMapping":{"__isSmartRef__":true,"id":118},"source":"function getPosition() {\n    var ctx = this.renderContext();\n    //var ownerCtx = this.owner.renderContext();\n    var ownerPos = this.owner.getPosition();\n    //var p = $(ctx.morphNode).position();\n    var o = $(ctx.morphNode).offset();\n    return pt(o.left, o.top).subPt(ownerPos);\n}","funcProperties":{"__isSmartRef__":true,"id":123},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"118":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":119}},"119":{"$super":{"__isSmartRef__":true,"id":120}},"120":{"varMapping":{"__isSmartRef__":true,"id":121},"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":122},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"121":{"obj":{"__isSmartRef__":true,"id":0},"name":"getPosition"},"122":{},"123":{"timestamp":{"__isSmartRef__":true,"id":124},"user":"bgnauk","tags":[]},"124":{"isSerializedDate":true,"string":"Fri Jul 06 2012 13:17:45 GMT-0700 (Pacific Daylight Time)"},"125":{"varMapping":{"__isSmartRef__":true,"id":126},"source":"function setPositionHTML(ctx) {\n    \n}","funcProperties":{"__isSmartRef__":true,"id":131},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"126":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":127}},"127":{"$super":{"__isSmartRef__":true,"id":128}},"128":{"varMapping":{"__isSmartRef__":true,"id":129},"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":130},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"129":{"obj":{"__isSmartRef__":true,"id":0},"name":"setPositionHTML"},"130":{},"131":{"timestamp":{"__isSmartRef__":true,"id":132},"user":"bgnauk","tags":[]},"132":{"isSerializedDate":true,"string":"Thu Jul 05 2012 14:33:46 GMT-0700 (Pacific Daylight Time)"},"133":{"varMapping":{"__isSmartRef__":true,"id":134},"source":"function setRotationHTML(ctx) {\n    \n}","funcProperties":{"__isSmartRef__":true,"id":139},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"134":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":135}},"135":{"$super":{"__isSmartRef__":true,"id":136}},"136":{"varMapping":{"__isSmartRef__":true,"id":137},"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":138},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"137":{"obj":{"__isSmartRef__":true,"id":0},"name":"setRotationHTML"},"138":{},"139":{"timestamp":{"__isSmartRef__":true,"id":140},"user":"bgnauk","tags":[]},"140":{"isSerializedDate":true,"string":"Thu Jul 05 2012 14:33:53 GMT-0700 (Pacific Daylight Time)"},"141":{"varMapping":{"__isSmartRef__":true,"id":142},"source":"function setScaleHTML(ctx) {\n    \n}","funcProperties":{"__isSmartRef__":true,"id":147},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"142":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":143}},"143":{"$super":{"__isSmartRef__":true,"id":144}},"144":{"varMapping":{"__isSmartRef__":true,"id":145},"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":146},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"145":{"obj":{"__isSmartRef__":true,"id":0},"name":"setScaleHTML"},"146":{},"147":{"timestamp":{"__isSmartRef__":true,"id":148},"user":"bgnauk","tags":[]},"148":{"isSerializedDate":true,"string":"Thu Jul 05 2012 14:34:00 GMT-0700 (Pacific Daylight Time)"},"149":{"varMapping":{"__isSmartRef__":true,"id":150},"source":"function appendHTML(ctx, optMorphAfter) {\n        if (!ctx.morphNode) throw dbgOn(new Error('no ctx.morphNode!'));\n        var parentNode = ctx.morphNode.parentNode;\n        if (!parentNode) {\n            var ownerCtx = this.owner && this.owner.renderContext();\n            parentNode = (ownerCtx && ownerCtx.shapeNode) || ctx.parentNode;\n            \n            if (this.owner.getShape().constructor.name === \"NullShape\") {\n             \n                  parentNode = ownerCtx.morphNode; \n                \n            }\n            else\n            if (parentNode && ownerCtx && ownerCtx.shapeNode && parentNode === ownerCtx.shapeNode) {\n\n                if (!ownerCtx.originNode) {\n                    ownerCtx.originNode = ownerCtx.domInterface.htmlRect();\n                    ownerCtx.shapeNode.appendChild(ownerCtx.originNode);\n                }\n                this.owner.shape.compensateShapeNode(ownerCtx);\n                \n                parentNode = ownerCtx.originNode;\n            }\n\n            if (!parentNode) {\n                if (Config.debugMissingParentNode) debugger\n                alert('Cannot render ' + this + ' without parentNode')\n                return;\n            }\n        }\n\n        var afterNode = optMorphAfter && optMorphAfter.renderContext().getMorphNode();\n        this.insertMorphNodeInHTML(ctx, ctx.morphNode, parentNode, afterNode);\n        //if (this.originClass) this.setOriginClassHTML(ctx, this.originClass);\n        this.getShape().renderUsing(ctx);\n    }","funcProperties":{"__isSmartRef__":true,"id":155},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"150":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":151}},"151":{"$super":{"__isSmartRef__":true,"id":152}},"152":{"varMapping":{"__isSmartRef__":true,"id":153},"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":154},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"153":{"obj":{"__isSmartRef__":true,"id":0},"name":"appendHTML"},"154":{},"155":{"timestamp":{"__isSmartRef__":true,"id":156},"user":"bgnauk","tags":[]},"156":{"isSerializedDate":true,"string":"Thu Jul 05 2012 16:36:31 GMT-0700 (Pacific Daylight Time)"},"157":{"varMapping":{"__isSmartRef__":true,"id":158},"source":"function adjustOrigin() {\n    \n}","funcProperties":{"__isSmartRef__":true,"id":163},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"158":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":159}},"159":{"$super":{"__isSmartRef__":true,"id":160}},"160":{"varMapping":{"__isSmartRef__":true,"id":161},"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":162},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"161":{"obj":{"__isSmartRef__":true,"id":0},"name":"adjustOrigin"},"162":{},"163":{"timestamp":{"__isSmartRef__":true,"id":164},"user":"bgnauk","tags":[]},"164":{"isSerializedDate":true,"string":"Thu Jul 05 2012 16:48:44 GMT-0700 (Pacific Daylight Time)"},"165":{"varMapping":{"__isSmartRef__":true,"id":166},"source":"function getRotation() {\n    return 0;\n}","funcProperties":{"__isSmartRef__":true,"id":171},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"166":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":167}},"167":{"$super":{"__isSmartRef__":true,"id":168}},"168":{"varMapping":{"__isSmartRef__":true,"id":169},"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":170},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"169":{"obj":{"__isSmartRef__":true,"id":0},"name":"getRotation"},"170":{},"171":{"timestamp":{"__isSmartRef__":true,"id":172},"user":"bgnauk","tags":[]},"172":{"isSerializedDate":true,"string":"Thu Jul 05 2012 18:12:36 GMT-0700 (Pacific Daylight Time)"},"173":{"varMapping":{"__isSmartRef__":true,"id":174},"source":"function getScale() {\n    return 1;\n}","funcProperties":{"__isSmartRef__":true,"id":179},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"174":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":175}},"175":{"$super":{"__isSmartRef__":true,"id":176}},"176":{"varMapping":{"__isSmartRef__":true,"id":177},"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":178},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"177":{"obj":{"__isSmartRef__":true,"id":0},"name":"getScale"},"178":{},"179":{"timestamp":{"__isSmartRef__":true,"id":180},"user":"bgnauk","tags":[]},"180":{"isSerializedDate":true,"string":"Thu Jul 05 2012 18:12:59 GMT-0700 (Pacific Daylight Time)"},"181":{"varMapping":{"__isSmartRef__":true,"id":182},"source":"function getBounds() {\n    var p = this.getPosition();\n    var e = this.getExtent();\n    return new Rectangle(p.x, p.y, e.x, e.y);\n}","funcProperties":{"__isSmartRef__":true,"id":187},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"182":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":183}},"183":{"$super":{"__isSmartRef__":true,"id":184}},"184":{"varMapping":{"__isSmartRef__":true,"id":185},"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":186},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"185":{"obj":{"__isSmartRef__":true,"id":0},"name":"getBounds"},"186":{},"187":{"timestamp":{"__isSmartRef__":true,"id":188},"user":"bgnauk","tags":[]},"188":{"isSerializedDate":true,"string":"Fri Jul 06 2012 10:26:27 GMT-0700 (Pacific Daylight Time)"},"isSimplifiedRegistry":true}}