Nicer API for embedding Elm programs
This commit is contained in:
parent
6ba2d70365
commit
1a45cb5eca
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ Elm.fullscreen = function(module) {
|
|||
return init(ElmRuntime.Display.FULLSCREEN, container, module);
|
||||
};
|
||||
|
||||
Elm.domNode = function(container, module) {
|
||||
Elm.embed = function(module, container) {
|
||||
var tag = container.tagName;
|
||||
if (tag !== 'DIV') {
|
||||
throw new Error('Elm.node must be given a DIV, not a ' + tag + '.');
|
||||
|
|
Loading…
Reference in a new issue