{"id":0,"registry":{"0":{"shape":{"__isSmartRef__":true,"id":1},"submorphs":[],"scripts":[],"_ClipMode":"visible","derivationIds":["AB2CD9B1-B8A7-488A-8677-EF55AEBC35C7","E6003058-4623-47B9-84B3-2455E1235474","9668B417-0690-4B52-8E2F-8024C3EEF8DD","947F0AB2-E2E5-44F1-BC34-480B220A8931","0F31FF6F-5B8A-401A-ACF5-FBCEC8F68510"],"id":"8F2EB0CD-2F7D-4FDE-9491-FCCFA921DC43","__layered_droppingEnabled__":true,"halosEnabled":true,"_StyleClassNames":["Morph","HtmlWrapperMorph","selectable"],"name":"testbox","eventHandler":{"__isSmartRef__":true,"id":2},"layout":{"__isSmartRef__":true,"id":3},"showsHalos":false,"isBeingDragged":false,"prevScroll":[0,0],"_StyleSheet":{"__isSmartRef__":true,"id":4},"canvasId":"d3-8F2EB0CD2F7D4FDE9491FCCFA921DC43","partsBinMetaInfo":{"__isSmartRef__":true,"id":25},"data":[{"__isSmartRef__":true,"id":32},{"__isSmartRef__":true,"id":33},{"__isSmartRef__":true,"id":34},{"__isSmartRef__":true,"id":35},{"__isSmartRef__":true,"id":36},{"__isSmartRef__":true,"id":37},{"__isSmartRef__":true,"id":38},{"__isSmartRef__":true,"id":39},{"__isSmartRef__":true,"id":40},{"__isSmartRef__":true,"id":41},{"__isSmartRef__":true,"id":42}],"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":43},"__LivelyClassName__":"lively.morphic.HtmlWrapperMorph","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(313.0,-14.0)"},"1":{"_BorderWidth":0,"stringifiedShapeNode":"<div xmlns=\"http://www.w3.org/1999/xhtml\" data-lively-morphid=\"8F2EB0CD-2F7D-4FDE-9491-FCCFA921DC43\" class=\"Morph HtmlWrapperMorph selectable\" id=\"null\" style=\"overflow: visible; border: 0px solid rgb(95, 94, 95); padding: 0px; width: 474px; height: 258px; position: absolute; left: 0px; top: 0px; background-color: rgb(255, 255, 255);\"><div id=\"d3-8F2EB0CD2F7D4FDE9491FCCFA921DC43\"></div></div>","__serializedExpressions__":["_Padding","_BorderColor","_Fill","_Position","_Extent","extent"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(474.0,258.0)","extent":"lively.pt(474.0,258.0)"},"2":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3":{"resizeWidth":true,"resizeHeight":true},"4":{"rules":[{"__isSmartRef__":true,"id":5},{"__isSmartRef__":true,"id":8},{"__isSmartRef__":true,"id":12},{"__isSmartRef__":true,"id":14},{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":20},{"__isSmartRef__":true,"id":22}],"originMorph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.StyleSheet","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"5":{"declarations":[{"__isSmartRef__":true,"id":6},{"__isSmartRef__":true,"id":7}],"styleSheet":{"__isSmartRef__":true,"id":4},"selector":".Morph","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"6":{"values":["10px","sans-serif"],"rule":{"__isSmartRef__":true,"id":5},"property":"font","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"7":{"values":["0"],"rule":{"__isSmartRef__":true,"id":5},"property":"margin","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"8":{"declarations":[{"__isSmartRef__":true,"id":9},{"__isSmartRef__":true,"id":10},{"__isSmartRef__":true,"id":11}],"styleSheet":{"__isSmartRef__":true,"id":4},"selector":".Morph path.line","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"9":{"values":["none"],"rule":{"__isSmartRef__":true,"id":8},"property":"fill","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"10":{"values":["#666"],"rule":{"__isSmartRef__":true,"id":8},"property":"stroke","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"11":{"values":["1.5px"],"rule":{"__isSmartRef__":true,"id":8},"property":"stroke-width","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"12":{"declarations":[{"__isSmartRef__":true,"id":13}],"styleSheet":{"__isSmartRef__":true,"id":4},"selector":".Morph .axis","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"13":{"values":["crispEdges"],"rule":{"__isSmartRef__":true,"id":12},"property":"shape-rendering","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"14":{"declarations":[{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":16},{"__isSmartRef__":true,"id":17}],"styleSheet":{"__isSmartRef__":true,"id":4},"selector":".Morph .x.axis line","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"15":{"values":["#fff"],"rule":{"__isSmartRef__":true,"id":14},"property":"stroke","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"16":{"comment":"/*stroke: #000;*/","values":[""],"rule":{"__isSmartRef__":true,"id":14},"property":"","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetInlineComment","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"17":{"comment":"/*fill: none;*/","values":[""],"rule":{"__isSmartRef__":true,"id":14},"property":"","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetInlineComment","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"18":{"declarations":[{"__isSmartRef__":true,"id":19}],"styleSheet":{"__isSmartRef__":true,"id":4},"selector":".Morph .x.axis .minor","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"19":{"values":[".5"],"rule":{"__isSmartRef__":true,"id":18},"property":"stroke-opacity","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"20":{"declarations":[{"__isSmartRef__":true,"id":21}],"styleSheet":{"__isSmartRef__":true,"id":4},"selector":".Morph .x.axis path","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"21":{"values":["none"],"rule":{"__isSmartRef__":true,"id":20},"property":"display","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"22":{"declarations":[{"__isSmartRef__":true,"id":23},{"__isSmartRef__":true,"id":24}],"styleSheet":{"__isSmartRef__":true,"id":4},"selector":".Morph .y.axis line, .y.axis path","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"23":{"values":["none"],"rule":{"__isSmartRef__":true,"id":22},"property":"fill","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"24":{"values":["#000"],"rule":{"__isSmartRef__":true,"id":22},"property":"stroke","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"25":{"partName":"testbox","requiredModules":[],"partsSpaceName":"PartsBin/Charlie/","comment":"no comment","changes":[{"__isSmartRef__":true,"id":26},{"__isSmartRef__":true,"id":27},{"__isSmartRef__":true,"id":28},{"__isSmartRef__":true,"id":29},{"__isSmartRef__":true,"id":30},{"__isSmartRef__":true,"id":31}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Fri Sep 26 2014 13:54:29 GMT-0700 (Pacific Daylight Time)\")"},"26":{"author":"robertkrahn","message":"no comment","id":"B49F8D2A-09C9-40C6-9E16-238C484F5C45","__serializedExpressions__":["date"],"date":"new Date(\"Sat Jun 14 2014 19:57:00 GMT-0700 (Pacific Daylight Time)\")"},"27":{"author":"robertkrahn","message":"no comment","id":"2C3083B5-AEBA-4315-9796-CFCA7DD0AA99","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 01 2014 00:18:03 GMT-0700 (Pacific Daylight Time)\")"},"28":{"author":"robertkrahn","message":"no comment","id":"DA7483BC-7F0D-47A5-84B4-1D5C4D84A365","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 01 2014 00:11:03 GMT-0700 (Pacific Daylight Time)\")"},"29":{"author":"cmagnuso","message":"no comment","id":"335AA352-AA0B-4846-BA18-A07A09B8EB62","__serializedExpressions__":["date"],"date":"new Date(\"Fri Sep 26 2014 09:58:14 GMT-0700 (Pacific Daylight Time)\")"},"30":{"author":"cmagnuso","message":"no comment","id":"1F087142-D41F-4F3A-928D-22FF902A65A0","__serializedExpressions__":["date"],"date":"new Date(\"Fri Sep 26 2014 13:54:23 GMT-0700 (Pacific Daylight Time)\")"},"31":{"__serializedExpressions__":["date"],"author":"cmagnuso","message":"no comment","id":"A8F7297D-B4CA-4699-881D-D3B3B7EC45B1","date":"new Date(\"Mon Sep 29 2014 14:14:14 GMT-0700 (Pacific Daylight Time)\")"},"32":{"x":0,"y":99.6109401738325},"33":{"x":1,"y":132.14522858621675},"34":{"x":2,"y":94.45553352535394},"35":{"x":3,"y":72.8268529520197},"36":{"x":4,"y":121.12910135296005},"37":{"x":5,"y":93.67436111162138},"38":{"x":6,"y":82.76723981741961},"39":{"x":7,"y":96.75621829362721},"40":{"x":8,"y":90.90185498384628},"41":{"x":9,"y":107.93840186037974},"42":{"x":10,"y":99.03676309062119},"43":{"loadD3":{"__isSmartRef__":true,"id":44},"render":{"__isSmartRef__":true,"id":47},"reset":{"__isSmartRef__":true,"id":50},"onLoad":{"__isSmartRef__":true,"id":53},"testTick":{"__isSmartRef__":true,"id":56},"getData":{"__isSmartRef__":true,"id":59},"timer":{"__isSmartRef__":true,"id":62},"stopTimer":{"__isSmartRef__":true,"id":65},"clearGraph":{"__isSmartRef__":true,"id":68},"morphMenuItems":{"__isSmartRef__":true,"id":71}},"44":{"varMapping":{"__isSmartRef__":true,"id":45},"source":"function loadD3(loadAttemptCount, thenDo) {\n    var self = this;\n    var maxLoadAttemptCount = 5;\n    var d3URL = '//cdnjs.cloudflare.com/ajax/libs/d3/3.4.6/d3.js';\n    if (!loadAttemptCount) loadAttemptCount = 1;\n    $('script[src=\"' + d3URL + '\"]').remove();\n    JSLoader.loadJs(d3URL);\n    Functions.waitFor(\n        5*1000,\n        function() { return typeof d3 !== 'undefined'; },\n        function(err) {\n            var msg;\n            if (err && loadAttemptCount < maxLoadAttemptCount) {\n                msg = Strings.format(\n                    \"Loading d3, attempt %s timed out.\\nTrying again...\",\n                    loadAttemptCount);\n                $world.setStatusMessage(msg, Color.yellow, 5);\n                self.loadD3(loadAttemptCount + 1);\n                return;\n            }\n            if (err) {\n                msg = Strings.format(\n                    \"Cannot load d3 library.\\nSorry, d3 isn't available right now.\",\n                    loadAttemptCount);\n                $world.setStatusMessage(msg, Color.red, 10);\n                return;\n            }\n            msg = Strings.format(\n                \"d3 loaded!\",\n                loadAttemptCount);\n            $world.setStatusMessage(msg, Color.green, 4);\n            thenDo && thenDo();\n            lively.bindings.signal(this, 'd3Loaded');\n        });\n}","funcProperties":{"__isSmartRef__":true,"id":46},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"45":{"this":{"__isSmartRef__":true,"id":0}},"46":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Apr 30 2014 19:42:03 GMT-0700 (Pacific Daylight Time)\")"},"47":{"varMapping":{"__isSmartRef__":true,"id":48},"source":"function render(data) {\n    \n    var data_window = Math.round(data.length / 3600); \n\n    // Sets the size of the svg port from the size of the enclosing morph\n    var morphBounds = this.innerBounds();\n    var margin = {top: 30, right: 30, bottom: 50, left: 35};\n    var width = morphBounds.width - margin.left - margin.right;\n    var height = morphBounds.height - margin.top - margin.bottom;\n    //var y_window =  Math.round(100 * $morph(\"Slider_y\").value);\n    var y_window = 25;\n    \n    // Add an SVG element with the desired dimensions and margin.\n    Global.d3.select(\"#\" + this.canvasId + \" svg\").remove();\n    this.get('Testing').textString = this.canvasId;\n\n    // similar to d3.select(\"body\")\n    var svg = Global.d3.select(\"#\" + this.canvasId)\n        .append(\"svg\")\n            .attr(\"width\", width + margin.left + margin.right)\n            .attr(\"height\", height + margin.top + margin.bottom)\n            .append(\"g\")\n            .attr(\"transform\", \"translate(\" + margin.left + \",\" + margin.top + \")\")\n\n    // Scales and axes. Note the inverted domain for the y-scale: bigger is up!\n    var x = Global.d3.time.scale()\n        .domain([new Date, new Date])\n        .nice(Global.d3.time.second) \n        .range([0, width]);\n        \n    var y = Global.d3.scale.linear()\n        .range([height, 0]);\n        \n    var xAxis = Global.d3.svg.axis()\n        .scale(x)\n        .ticks(6)\n        .tickSize(-height)\n        .tickSubdivide(true)\n        .tickFormat(Global.d3.time.format(\"%H:%M:%S\"));\n        \n    var yAxis = Global.d3.svg.axis()\n        .scale(y)\n        .ticks(4)\n        .orient(\"left\");\n\n\n    // Compute the minimum and maximum x, and the maximum y.\n    x.domain([data[0].x, data[data.length - 1].x]);\n    //y.domain([0, d3.max(data, function(d) { return d.y; })]).nice();\n    \n    // Made the y axis constant\n    y.domain([0, y_window]).nice();\n\n    // Add the x-axis.\n    svg.append(\"g\")\n        .attr(\"class\", \"x axis\")\n        .attr(\"transform\", \"translate(0,\" + height + \")\")\n        .call(xAxis);\n     \n    // x-axis label   \n    svg.append(\"text\")\n        .attr(\"class\", \"x label\")\n        .attr(\"text-anchor\", \"end\")\n        .attr(\"x\", (width / 2 + margin.left))\n        .attr(\"y\", (height + margin.top))\n        .style(\"font-weight\", \"bold\")\n        .text(\"Time Window - \" + data_window + \" Hours\");\n    \n    // Add the y-axis.\n    svg.append(\"g\")\n        .attr(\"class\", \"y axis\")\n        .call(yAxis);\n        \n    // y-axis label    \n    svg.append(\"text\")\n        .attr(\"class\", \"y label\")\n        .attr(\"text-anchor\", \"end\")\n        .attr(\"x\", -(height / 2))\n        .attr(\"y\", -(margin.left / 1.5))\n        .attr(\"transform\", \"rotate(-90)\")\n        .style(\"font-weight\", \"bold\")\n        .text(\"Percent CPU Load\");\n\n    svg.selectAll(\"rect\").remove()\n    \n    svg.selectAll(\"rect\")\n       .data(data)\n       .enter()\n       .append(\"rect\")\n       //.attr(\"x\", function(d, i) { return i * (width / data.length) + 5; })\n       .attr(\"x\", function(d, i) { return i * (width / data.length); })\n       .attr(\"y\", function(d) { return y(d.y); })\n       //.attr(\"width\", function(d) { return (width / data.length) - 5; })\n       .attr(\"width\", function(d) { return (width / data.length); })\n       .attr(\"height\", function(d) { return y(0) - y(d.y) })\n       .attr(\"fill\", \"black\");\n\n        //     .append(\"div\")\n        //     .attr('class', 'chartElement')\n        //     .style('background-color', Color.darkGray.toCSSString())\n\n        // chartElements\n        //     .style(\"height\", yScale.wrap(function($p, d, i) { return $p(d.y) }))\n        //     .style(\"left\", xScale.wrap(function($p, d, i) { return $p(d.x) + 'px' }))\n        //     .style('width', xScale.rangeBand.wrap(function($p, d, i) { return $p(d.x) + 'px' }))\n        //     .style(\"bottom\",  yScale.range()[0])\n        //     .style('text-align', 'center')\n        //     .style('position', 'absolute')\n        //     // .text(function(d) { return d; });\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":49},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"48":{"this":{"__isSmartRef__":true,"id":0}},"49":{"user":"cmagnuso","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Sep 26 2014 10:40:49 GMT-0700 (Pacific Daylight Time)\")"},"50":{"varMapping":{"__isSmartRef__":true,"id":51},"source":"function reset() {\n    this.data = []\n    this.stopStepping();\n    this.canvasId = 'd3-' + this.id.replace(/-/g, '');\n    this.setHTML('<div id=\"' + this.canvasId + '\"></div>')\n    this.setClipMode('visible');\n}","funcProperties":{"__isSmartRef__":true,"id":52},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"51":{"this":{"__isSmartRef__":true,"id":0}},"52":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu May 01 2014 00:12:54 GMT-0700 (Pacific Daylight Time)\")"},"53":{"varMapping":{"__isSmartRef__":true,"id":54},"source":"function onLoad() \n{\n    this.canvasId = 'd3-' + this.id.replace(/-/g, '');\n    this.setHTML('<div id=\"' + this.canvasId + '\"></div>')\n    \n    this.loadD3();\n}","funcProperties":{"__isSmartRef__":true,"id":55},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"54":{"this":{"__isSmartRef__":true,"id":0}},"55":{"user":"cmagnuso","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Sep 26 2014 13:52:26 GMT-0700 (Pacific Daylight Time)\")"},"56":{"varMapping":{"__isSmartRef__":true,"id":57},"source":"function testTick() {\n    // this.data = Array.range(0, 300).map(function(n) { return  })\n    // this.data = []\n    // this.startStepping(1000, 'testTick')\n    \n    this.data = this.data.slice(-5);\n    // data.push({x: data.last() ? data.last().x + 1 : 0, y: Numbers.normalRandom(100, 20)})\n    this.data.push({x: new Date(), y: Numbers.normalRandom(100, 20)})\n    this.render(this.data)\n}","funcProperties":{"__isSmartRef__":true,"id":58},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"57":{"this":{"__isSmartRef__":true,"id":0}},"58":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu May 01 2014 00:12:49 GMT-0700 (Pacific Daylight Time)\")"},"59":{"varMapping":{"__isSmartRef__":true,"id":60},"source":"function getData() {\n    \n    // Lively server\n    var url = new Global.URL(\"http://142.104.17.134:10002\");\n    \n     // VM server\n    //var url = new Global.URL(\"http://142.104.17.139:10002\");\n    \n    var resource = url.asWebResource();\n    var rawData = resource.get().content; // string containing comma separated list of numbers\n    var dataArray = rawData.split(',');\n    \n    var bars = Array.range(0, dataArray.length - 1).collect(function(i) \n           {\n                return {x: i, y: (100 - dataArray[i])}\n           });\n    \n    // bars = Array.range(0,300).collect(function(i) {\n    //            return {x: i, y: (100 - dataArray[i])}\n    //       });\n    \n    //var x_window = Math.round($morph(\"Slider_x\").value * dataArray.length)\n    var x_window = Math.round(0.9 * dataArray.length)\n    //this.get('Testing').textString = x_window;\n    this.render(bars.splice(x_window));\n    //this.render(bars);\n}","funcProperties":{"__isSmartRef__":true,"id":61},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"60":{"this":{"__isSmartRef__":true,"id":0}},"61":{"user":"cmagnuso","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Sep 26 2014 09:55:14 GMT-0700 (Pacific Daylight Time)\")"},"62":{"varMapping":{"__isSmartRef__":true,"id":63},"source":"function timer() {\n    this.startStepping(3000, \"getData\");\n}","funcProperties":{"__isSmartRef__":true,"id":64},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"63":{"this":{"__isSmartRef__":true,"id":0}},"64":{"user":"cmagnuso","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Sep 12 2014 12:24:42 GMT-0700 (Pacific Daylight Time)\")"},"65":{"varMapping":{"__isSmartRef__":true,"id":66},"source":"function stopTimer() {\n    this.stopStepping()     \n}","funcProperties":{"__isSmartRef__":true,"id":67},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"66":{"this":{"__isSmartRef__":true,"id":0}},"67":{"user":"cmagnuso","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Sep 12 2014 10:39:52 GMT-0700 (Pacific Daylight Time)\")"},"68":{"varMapping":{"__isSmartRef__":true,"id":69},"source":"function clearGraph() {\n    Global.d3.select(\"#\" + this.canvasId + \" svg\").remove();\n}","funcProperties":{"__isSmartRef__":true,"id":70},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"69":{"this":{"__isSmartRef__":true,"id":0}},"70":{"user":"cmagnuso","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Tue Sep 16 2014 10:49:44 GMT-0700 (Pacific Daylight Time)\")"},"71":{"varMapping":{"__isSmartRef__":true,"id":72},"source":"function morphMenuItems() {\n    var self = this, items = $super();\n    items.push([\n        'Publish', function(evt) {self.copyToPartsBinWithUserRequest()}])\n    return items;\n}","funcProperties":{"__isSmartRef__":true,"id":77},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"72":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":73}},"73":{"$super":{"__isSmartRef__":true,"id":74}},"74":{"varMapping":{"__isSmartRef__":true,"id":75},"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":76},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"75":{"obj":{"__isSmartRef__":true,"id":0},"name":"morphMenuItems"},"76":{},"77":{"__serializedExpressions__":["timestamp"],"user":"cmagnuso","tags":[],"timestamp":"new Date(\"Mon Sep 29 2014 14:13:53 GMT-0700 (Pacific Daylight Time)\")"},"isSimplifiedRegistry":true}}