mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
Adding init argument to the global API
Will also handle future arguments :)
This commit is contained in:
parent
b0cf9836af
commit
f591fedb77
@ -176,9 +176,8 @@ var equals = function (val, variable){
|
|||||||
global.mermaid = {
|
global.mermaid = {
|
||||||
startOnLoad:true,
|
startOnLoad:true,
|
||||||
htmlLabels:true,
|
htmlLabels:true,
|
||||||
init:function(sequenceConfig){
|
init:function(sequenceConfig, nodes){
|
||||||
|
init.apply(null, arguments);
|
||||||
init(sequenceConfig);
|
|
||||||
},
|
},
|
||||||
version:function(){
|
version:function(){
|
||||||
return exports.version();
|
return exports.version();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user