From 3b4c12056a3253610e9b5b09d9384e4f94db66dc Mon Sep 17 00:00:00 2001 From: Evan Czaplicki Date: Sun, 1 Apr 2018 11:51:58 +0200 Subject: [PATCH] Use .embed() to initialize static pages So all programs that can embed have the same name on the JS side --- src/Elm/Kernel/VirtualDom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elm/Kernel/VirtualDom.js b/src/Elm/Kernel/VirtualDom.js index 2c0ad6e..c2a641f 100644 --- a/src/Elm/Kernel/VirtualDom.js +++ b/src/Elm/Kernel/VirtualDom.js @@ -28,7 +28,7 @@ function _VirtualDom_appendChild(parent, child) var _VirtualDom_init = F4(function(virtualNode, flagDecoder, debugMetadata, object) { // NOTE: this function needs __Platform_export available to work - object['init'] = function(node) + object['embed'] = function(node) { node.parentNode.replaceChild( _VirtualDom_render(virtualNode, function() {}),