@@ -152,11 +152,11 @@ function initGraphics(elm, Module) {
152 signalGraph = Signal.constant(signalGraph);
152 signalGraph = Signal.constant(signalGraph);
154 var currentScene = signalGraph.value;
154 var currentScene = signalGraph.value;
156 // Add the currentScene to the DOM
156 // Add the currentScene to the DOM
157 var Render = ElmRuntime.use(ElmRuntime.Render.Element);
157 var Render = ElmRuntime.use(ElmRuntime.Render.Element);
158 elm.node.appendChild(Render.render(currentScene));
158 elm.node.appendChild(Render.render(currentScene));
160 // set up updates so that the DOM is adjusted as necessary.
160 // set up updates so that the DOM is adjusted as necessary.
161 function domUpdate(newScene, currentScene) {
161 function domUpdate(newScene, currentScene) {
162 ElmRuntime.draw(function(_) {
162 ElmRuntime.draw(function(_) {
@@ -174,4 +174,4 @@ function initGraphics(elm, Module) {
174 return renderer;
174 return renderer;